From 4eb263f9a807b5ca87aee9d6a109d811df8b7fe3 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Thu, 21 Nov 2024 08:12:27 +0000 Subject: [PATCH] Initial version --- README.md | 7 +++++-- pick/.npmrc | 1 + pick/index.d.ts | 3 +++ pick/index.js | 3 +++ pick/package.json | 18 ++++++++++++++++++ template/.npmrc | 1 + template/index.d.ts | 3 +++ template/index.js | 3 +++ template/package.json | 28 ++++++++++++++++++++++++++++ 9 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 pick/.npmrc create mode 100644 pick/index.d.ts create mode 100644 pick/index.js create mode 100644 pick/package.json create mode 100644 template/.npmrc create mode 100644 template/index.d.ts create mode 100644 template/index.js create mode 100644 template/package.json 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" + } +}