Skip to content

Commit 77ba97d

Browse files
authored
chore(deps): lodash security vuln (#847)
1 parent bd7c6de commit 77ba97d

File tree

4 files changed

+18
-37
lines changed

4 files changed

+18
-37
lines changed

package-lock.json

+14-30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/oas-to-har/package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@
5050
},
5151
"dependencies": {
5252
"@readme/data-urls": "^3.0.0",
53-
"lodash.get": "^4.4.2",
54-
"lodash.set": "^4.3.2",
53+
"lodash-es": "^4.17.21",
5554
"oas": "file:../oas",
5655
"qs": "^6.11.2",
5756
"remove-undefined-objects": "^5.0.0"
5857
},
5958
"devDependencies": {
6059
"@readme/oas-examples": "^5.12.0",
6160
"@types/har-format": "^1.2.12",
62-
"@types/lodash.get": "^4.4.8",
63-
"@types/lodash.set": "^4.3.8",
61+
"@types/lodash-es": "^4.17.12",
6462
"@types/qs": "^6.9.8",
6563
"@vitest/coverage-v8": "^0.34.4",
6664
"eslint": "^8.49.0",

packages/oas-to-har/src/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ import type {
1616
} from 'oas/types';
1717

1818
import { parse as parseDataUrl } from '@readme/data-urls';
19-
import lodashGet from 'lodash.get';
20-
import lodashSet from 'lodash.set';
19+
import { get as lodashGet, set as lodashSet } from 'lodash-es';
2120
import { HEADERS, PROXY_ENABLED } from 'oas/extensions';
2221
import { Operation } from 'oas/operation';
2322
import { isRef } from 'oas/types';

packages/oas-to-har/src/lib/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { JSONSchema, SchemaObject } from 'oas/types';
22

3-
import lodashGet from 'lodash.get';
3+
import { get as lodashGet } from 'lodash-es';
44

55
/**
66
* Determine if a schema `type` is, or contains, a specific discriminator.

0 commit comments

Comments
 (0)