Replaced eval with Function for security

This commit is contained in:
Peng-YM
2022-06-03 20:36:06 +08:00
parent cc628788fc
commit 1678d2cb65
5 changed files with 34 additions and 26 deletions

View File

@@ -1,17 +1,18 @@
{
"name": "sub-store",
"version": "1.5.1",
"version": "1.6",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "sub-store",
"version": "1.5.1",
"version": "1.6",
"license": "GPL",
"dependencies": {
"body-parser": "^1.19.0",
"express": "^4.17.1",
"js-base64": "^3.7.2",
"lodash": "^4.17.21",
"request": "^2.88.2",
"static-js-yaml": "^1.0.0"
},
@@ -7628,6 +7629,11 @@
"node": ">=6"
}
},
"node_modules/lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
},
"node_modules/lodash._reinterpolate": {
"version": "3.0.0",
"resolved": "https://registry.npmmirror.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz",
@@ -18538,6 +18544,11 @@
"path-exists": "^3.0.0"
}
},
"lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
},
"lodash._reinterpolate": {
"version": "3.0.0",
"resolved": "https://registry.npmmirror.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz",