Fix: Lodash import
This commit is contained in:
Родитель
b92ef605a9
Коммит
11f5ad8ac3
|
@ -86,6 +86,12 @@
|
|||
"integrity": "sha512-orGL5LXERPYsLov6CWs3Fh6203+dXzJkR7OnddIr2514Hsecwc8xRpzCapshBbKFImCsvS/mk6+FWiN5LyZJAQ==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/lodash": {
|
||||
"version": "4.14.101",
|
||||
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.101.tgz",
|
||||
"integrity": "sha512-QLOgVuUtCm23+4crlMKAeFfk9KGFXpRAwQeH7rYByu57hD074lX4uXMLJ0F1B7AO5kDhBRgQc6Dv0lCiiquUCw==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "8.0.14",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.14.tgz",
|
||||
|
@ -416,7 +422,7 @@
|
|||
"convert-source-map": "1.5.1",
|
||||
"fs-readdir-recursive": "1.1.0",
|
||||
"glob": "7.1.2",
|
||||
"lodash": "4.17.4",
|
||||
"lodash": "4.17.5",
|
||||
"output-file-sync": "1.1.2",
|
||||
"path-is-absolute": "1.0.1",
|
||||
"slash": "1.0.0",
|
||||
|
@ -490,7 +496,7 @@
|
|||
"convert-source-map": "1.5.1",
|
||||
"debug": "2.6.9",
|
||||
"json5": "0.5.1",
|
||||
"lodash": "4.17.4",
|
||||
"lodash": "4.17.5",
|
||||
"minimatch": "3.0.4",
|
||||
"path-is-absolute": "1.0.1",
|
||||
"private": "0.1.8",
|
||||
|
@ -526,7 +532,7 @@
|
|||
"babel-types": "6.26.0",
|
||||
"detect-indent": "4.0.0",
|
||||
"jsesc": "1.3.0",
|
||||
"lodash": "4.17.4",
|
||||
"lodash": "4.17.5",
|
||||
"source-map": "0.5.7",
|
||||
"trim-right": "1.0.1"
|
||||
},
|
||||
|
@ -614,7 +620,7 @@
|
|||
"requires": {
|
||||
"babel-runtime": "6.26.0",
|
||||
"babel-types": "6.26.0",
|
||||
"lodash": "4.17.4"
|
||||
"lodash": "4.17.5"
|
||||
}
|
||||
},
|
||||
"babel-helper-remap-async-to-generator": {
|
||||
|
@ -854,7 +860,7 @@
|
|||
"babel-runtime": "6.26.0",
|
||||
"core-js": "2.5.3",
|
||||
"home-or-tmp": "2.0.0",
|
||||
"lodash": "4.17.4",
|
||||
"lodash": "4.17.5",
|
||||
"mkdirp": "0.5.1",
|
||||
"source-map-support": "0.4.18"
|
||||
},
|
||||
|
@ -889,7 +895,7 @@
|
|||
"babel-traverse": "6.26.0",
|
||||
"babel-types": "6.26.0",
|
||||
"babylon": "6.18.0",
|
||||
"lodash": "4.17.4"
|
||||
"lodash": "4.17.5"
|
||||
}
|
||||
},
|
||||
"babel-traverse": {
|
||||
|
@ -906,7 +912,7 @@
|
|||
"debug": "2.6.9",
|
||||
"globals": "9.18.0",
|
||||
"invariant": "2.2.2",
|
||||
"lodash": "4.17.4"
|
||||
"lodash": "4.17.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": {
|
||||
|
@ -934,7 +940,7 @@
|
|||
"requires": {
|
||||
"babel-runtime": "6.26.0",
|
||||
"esutils": "2.0.2",
|
||||
"lodash": "4.17.4",
|
||||
"lodash": "4.17.5",
|
||||
"to-fast-properties": "1.0.3"
|
||||
}
|
||||
},
|
||||
|
@ -1772,7 +1778,7 @@
|
|||
"js-yaml": "3.10.0",
|
||||
"json-stable-stringify-without-jsonify": "1.0.1",
|
||||
"levn": "0.3.0",
|
||||
"lodash": "4.17.4",
|
||||
"lodash": "4.17.5",
|
||||
"minimatch": "3.0.4",
|
||||
"mkdirp": "0.5.1",
|
||||
"natural-compare": "1.4.0",
|
||||
|
@ -3456,7 +3462,7 @@
|
|||
"cli-width": "2.2.0",
|
||||
"external-editor": "2.1.0",
|
||||
"figures": "2.0.0",
|
||||
"lodash": "4.17.4",
|
||||
"lodash": "4.17.5",
|
||||
"mute-stream": "0.0.7",
|
||||
"run-async": "2.3.0",
|
||||
"rx-lite": "4.0.8",
|
||||
|
@ -3983,15 +3989,16 @@
|
|||
}
|
||||
},
|
||||
"lodash": {
|
||||
"version": "4.17.4",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz",
|
||||
"integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=",
|
||||
"version": "4.17.5",
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz",
|
||||
"integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==",
|
||||
"dev": true
|
||||
},
|
||||
"lodash.clonedeep": {
|
||||
"version": "4.5.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz",
|
||||
"integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8="
|
||||
"integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=",
|
||||
"dev": true
|
||||
},
|
||||
"lodash.clonedeepwith": {
|
||||
"version": "4.5.0",
|
||||
|
@ -10189,7 +10196,7 @@
|
|||
"ajv": "5.5.2",
|
||||
"ajv-keywords": "2.1.1",
|
||||
"chalk": "2.3.0",
|
||||
"lodash": "4.17.4",
|
||||
"lodash": "4.17.5",
|
||||
"slice-ansi": "1.0.0",
|
||||
"string-width": "2.1.1"
|
||||
}
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
"timeout": "1m"
|
||||
},
|
||||
"dependencies": {
|
||||
"locale-code": "^1.1.1",
|
||||
"lodash.clonedeep": "^4.5.0"
|
||||
"locale-code": "^1.1.1"
|
||||
},
|
||||
"description": "sonarwhal rule to validate Microsoft's JSLL configuration.",
|
||||
"devDependencies": {
|
||||
"@types/debug": "0.0.30",
|
||||
"@types/lodash": "^4.14.101",
|
||||
"@types/node": "8.0.14",
|
||||
"async-retry": "^1.1.4",
|
||||
"ava": "^0.24.0",
|
||||
|
@ -30,6 +30,7 @@
|
|||
"eslint-plugin-markdown": "^1.0.0-beta.6",
|
||||
"eslint-plugin-typescript": "^0.8.1",
|
||||
"express": "^4.16.2",
|
||||
"lodash": "^4.17.5",
|
||||
"markdownlint-cli": "^0.6.0",
|
||||
"npm-run-all": "^4.1.2",
|
||||
"on-headers": "^1.0.1",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as cloneDeep from 'lodash.cloneDeep';
|
||||
import { cloneDeep } from 'lodash';
|
||||
|
||||
/** Look for the target property recursively and modify/delete the value */
|
||||
export const modifyValue = (obj, targetProp: string, targetValue) => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче