Initial version

This commit is contained in:
Jonatan Nilsson 2024-11-21 08:12:27 +00:00
parent eda8393b4b
commit 4eb263f9a8
9 changed files with 65 additions and 2 deletions

View file

@ -1,3 +1,6 @@
# lodash-no-cve # lodash.template/lodash.pick
Individual methods from lodash exposed except now with fixed audit 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.

1
pick/.npmrc Normal file
View file

@ -0,0 +1 @@
package-lock=false

3
pick/index.d.ts vendored Normal file
View file

@ -0,0 +1,3 @@
import _ from 'lodash'
export default _.pick

3
pick/index.js Normal file
View file

@ -0,0 +1,3 @@
const _ = require('lodash')
module.exports = _.template

18
pick/package.json Normal file
View file

@ -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"
}

1
template/.npmrc Normal file
View file

@ -0,0 +1 @@
package-lock=false

3
template/index.d.ts vendored Normal file
View file

@ -0,0 +1,3 @@
import _ from 'lodash'
export default _.template

3
template/index.js Normal file
View file

@ -0,0 +1,3 @@
const _ = require('lodash')
module.exports = _.template

28
template/package.json Normal file
View file

@ -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"
}
}