Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

fix: use lodash dep instead of lodash.set #215

Merged
merged 3 commits into from
Apr 4, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,14 @@
"dependency-graph": "~0.11.0",
"fast-memoize": "^2.5.2",
"immer": "^9.0.6",
"lodash.get": "^4.4.2",
"lodash.set": "^4.3.2",
"lodash": "^4.17.21",
"tslib": "^2.3.1",
"urijs": "^1.19.6"
},
"devDependencies": {
"@stoplight/scripts": "^5",
"@types/jest": "^24.9.0",
"@types/lodash.get": "^4.4.6",
"@types/lodash.set": "^4.3.6",
"@types/lodash": "^4.14.178",
"benchmark": "^2.1",
"jest": "^24.9",
"ts-jest": "^24.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/crawler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { pointerToPath } from '@stoplight/json';
import { Optional } from '@stoplight/types';
import { DepGraph } from 'dependency-graph';
import get = require('lodash.get');
import get = require('lodash/get');

import * as Types from './types';
import * as Utils from './utils';
Expand Down
4 changes: 2 additions & 2 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { pathToPointer, pointerToPath, startsWith, trimStart } from '@stoplight/
import { dirname, join, stripRoot, toFSPath } from '@stoplight/path';
import { DepGraph } from 'dependency-graph';
import produce, { original } from 'immer';
import get = require('lodash.get');
import set = require('lodash.set');
import get = require('lodash/get');
import set = require('lodash/set');
import * as URI from 'urijs';
import { ExtendedURI } from './uri';

Expand Down
21 changes: 6 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -932,25 +932,16 @@
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.4.tgz#38fd73ddfd9b55abb1e1b2ed578cb55bd7b7d339"
integrity sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==

"@types/lodash.get@^4.4.6":
version "4.4.6"
resolved "https://registry.yarnpkg.com/@types/lodash.get/-/lodash.get-4.4.6.tgz#0c7ac56243dae0f9f09ab6f75b29471e2e777240"
integrity sha512-E6zzjR3GtNig8UJG/yodBeJeIOtgPkMgsLjDU3CbgCAPC++vJ0eCMnJhVpRZb/ENqEFlov1+3K9TKtY4UdWKtQ==
dependencies:
"@types/lodash" "*"

"@types/lodash.set@^4.3.6":
version "4.3.6"
resolved "https://registry.yarnpkg.com/@types/lodash.set/-/lodash.set-4.3.6.tgz#33e635c2323f855359225df6a5c8c6f1f1908264"
integrity sha512-ZeGDDlnRYTvS31Laij0RsSaguIUSBTYIlJFKL3vm3T2OAZAQj2YpSvVWJc0WiG4jqg9fGX6PAPGvDqBcHfSgFg==
dependencies:
"@types/lodash" "*"

"@types/lodash@*", "@types/lodash@^4.14.110":
"@types/lodash@^4.14.110":
version "4.14.168"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.168.tgz#fe24632e79b7ade3f132891afff86caa5e5ce008"
integrity sha512-oVfRvqHV/V6D1yifJbVRU3TMp8OT6o6BG+U9MkwuJ3U8/CsDHvalRpsxBqivn71ztOFZBTfJMvETbqHiaNSj7Q==

"@types/lodash@^4.14.178":
version "4.14.178"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.178.tgz#341f6d2247db528d4a13ddbb374bcdc80406f4f8"
integrity sha512-0d5Wd09ItQWH1qFbEyQ7oTQ3GZrMfth5JkbN3EvTKLXcHLRDSXeLnlvlOn0wvxVIwK5o2M8JzP/OWz7T3NRsbw==

"@types/marked@^0.4.0":
version "0.4.2"
resolved "https://registry.yarnpkg.com/@types/marked/-/marked-0.4.2.tgz#64a89e53ea37f61cc0f3ee1732c555c2dbf6452f"
Expand Down