diff --git a/README.md b/README.md index fd0bd36..afa4fe5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ -# lodash-no-cve +# lodash.template/lodash.pick -Individual methods from lodash exposed except now with fixed audit \ No newline at end of file +Both of npm's `lodash.template` and `lodash.pick` have CVE that makes audit angry. +Unfortunately neither have been updated. + +This package provides either of `lodash.template` or `lodash.pick` with the latest version of lodash to fix audit errors. diff --git a/pick/.npmrc b/pick/.npmrc new file mode 100644 index 0000000..9cf9495 --- /dev/null +++ b/pick/.npmrc @@ -0,0 +1 @@ +package-lock=false \ No newline at end of file diff --git a/pick/index.d.ts b/pick/index.d.ts new file mode 100644 index 0000000..e914dfa --- /dev/null +++ b/pick/index.d.ts @@ -0,0 +1,3 @@ +import _ from 'lodash' + +export default _.pick diff --git a/pick/index.js b/pick/index.js new file mode 100644 index 0000000..f185c15 --- /dev/null +++ b/pick/index.js @@ -0,0 +1,3 @@ +const _ = require('lodash') + +module.exports = _.template diff --git a/pick/package.json b/pick/package.json new file mode 100644 index 0000000..ebb9934 --- /dev/null +++ b/pick/package.json @@ -0,0 +1,18 @@ +{ + "name": "lodash.pick.nocve", + "version": "4.17.21", + "description": "The lodash method _.pick exported as node.js module but without cve", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://git.nfp.is/TheThing/lodash-no-cve.git" + }, + "keywords": [ + "lodash" + ], + "author": "Jonatan Nilsson", + "license": "WTFPL" +} diff --git a/template/.npmrc b/template/.npmrc new file mode 100644 index 0000000..9cf9495 --- /dev/null +++ b/template/.npmrc @@ -0,0 +1 @@ +package-lock=false \ No newline at end of file diff --git a/template/index.d.ts b/template/index.d.ts new file mode 100644 index 0000000..b29d716 --- /dev/null +++ b/template/index.d.ts @@ -0,0 +1,3 @@ +import _ from 'lodash' + +export default _.template diff --git a/template/index.js b/template/index.js new file mode 100644 index 0000000..f185c15 --- /dev/null +++ b/template/index.js @@ -0,0 +1,3 @@ +const _ = require('lodash') + +module.exports = _.template diff --git a/template/package.json b/template/package.json new file mode 100644 index 0000000..956167c --- /dev/null +++ b/template/package.json @@ -0,0 +1,28 @@ +{ + "name": "lodash.template.nocve", + "version": "4.17.21", + "description": "The lodash method _.template exported as node.js module but without cve", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://git.nfp.is/TheThing/lodash-no-cve.git" + }, + "keywords": [ + "lodash", + "lodash.template" + ], + "author": "Jonatan Nilsson", + "license": "WTFPL", + "files": [ + "index.js", + "index.d.ts", + "README.md", + "LICENSE" + ], + "dependencies": { + "lodash": "4.17.21" + } +}