formidable
Advanced tools
Comparing version
{ | ||
"name": "formidable", | ||
"version": "3.5.3", | ||
"version": "3.5.4", | ||
"license": "MIT", | ||
@@ -51,20 +51,19 @@ "description": "A node.js module for parsing form data, especially file uploads.", | ||
"build-package": "rollup --config ./tool/rollup.config.js", | ||
"prepublishOnly": "npm run build-package", | ||
"prepublishOnly": "pnpm run build-package", | ||
"bench": "node benchmark", | ||
"bench2prep": "node benchmark/server.js", | ||
"bench2": "bombardier --body-file=\"./README.md\" --method=POST --duration=10s --connections=100 http://localhost:3000/api/upload", | ||
"fmt": "yarn run fmt:prepare '**/*'", | ||
"fmt": "pnpm run fmt:prepare '**/*'", | ||
"fmt:prepare": "prettier --write", | ||
"lint": "yarn run lint:prepare .", | ||
"lint": "pnpm run lint:prepare .", | ||
"lint:prepare": "eslint --cache --fix --quiet --format codeframe", | ||
"reinstall": "del-cli ./node_modules ./yarn.lock", | ||
"postreinstall": "yarn setup", | ||
"setup": "yarn", | ||
"pretest": "del-cli ./test/tmp && make-dir ./test/tmp", | ||
"fresh": "rm -rf ./node_modules", | ||
"test-specific": "node --disable-warning=ExperimentalWarning --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathPattern=test/standalone/keep-alive-error.test.js", | ||
"test": "npm run test-specific && npm run test-jest && npm run test-node", | ||
"test-jest": "node --disable-warning=ExperimentalWarning --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathPattern=test/ --coverage", | ||
"test-node": "node --disable-warning=ExperimentalWarning --test --experimental-test-coverage test-node/**/*.test.js", | ||
"pretest:ci": "yarn run pretest", | ||
"test:ci": "node --disable-warning=ExperimentalWarning --experimental-vm-modules node_modules/.bin/nyc jest --testPathPattern=test/ --coverage && node --disable-warning=ExperimentalWarning --experimental-vm-modules node_modules/.bin/nyc node --test test-node/" | ||
"test-node": "node --disable-warning=ExperimentalWarning --test ./test-node/**/*.test.js", | ||
"test-jest:ci": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --testPathPattern=test/ --coverage", | ||
"test:local": "pnpm run test-node && pnpm run test-jest", | ||
"audit": "pnpm audit --prod --fix", | ||
"pretest": "rm -rf ./test/tmp && mkdir ./test/tmp", | ||
"test": "pnpm run audit && node --test ./test-node/**/*.test.js && pnpm run test-jest:ci" | ||
}, | ||
@@ -76,5 +75,4 @@ "dependencies": { | ||
}, | ||
"packageManager": "pnpm@10.8.1", | ||
"devDependencies": { | ||
"@commitlint/cli": "8.3.5", | ||
"@commitlint/config-conventional": "8.3.4", | ||
"@rollup/plugin-commonjs": "^25.0.2", | ||
@@ -84,3 +82,2 @@ "@rollup/plugin-node-resolve": "^15.1.0", | ||
"@tunnckocore/prettier-config": "1.3.8", | ||
"del-cli": "3.0.0", | ||
"eslint": "6.8.0", | ||
@@ -93,7 +90,4 @@ "eslint-config-airbnb-base": "14.1.0", | ||
"formdata-polyfill": "^4.0.10", | ||
"husky": "4.2.5", | ||
"jest": "27.2.4", | ||
"koa": "2.11.0", | ||
"lint-staged": "10.2.7", | ||
"make-dir-cli": "2.0.0", | ||
"koa": "2.16.1", | ||
"nyc": "15.1.0", | ||
@@ -105,31 +99,8 @@ "prettier": "2.0.5", | ||
}, | ||
"engines": { | ||
"node": ">=14.0.0" | ||
}, | ||
"jest": { | ||
"verbose": true | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "git status --porcelain && yarn lint-staged", | ||
"commit-msg": "yarn commitlint -E HUSKY_GIT_PARAMS" | ||
} | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"lint-staged": { | ||
"!*.{js,jsx,ts,tsx}": [ | ||
"yarn run fmt:prepare" | ||
], | ||
"*.{js,jsx,ts,tsx}": [ | ||
"yarn run lint" | ||
] | ||
}, | ||
"renovate": { | ||
"extends": [ | ||
"@tunnckocore", | ||
":pinAllExceptPeerDependencies" | ||
] | ||
}, | ||
"packageManager": "yarn@1.22.17", | ||
"keywords": [ | ||
@@ -136,0 +107,0 @@ "multipart", |
@@ -19,3 +19,3 @@ /* eslint-disable class-methods-use-this */ | ||
const CUID2_FINGERPRINT = `${process.env.NODE_ENV}-${os.platform()}-${os.hostname()}-${os.machine()}` | ||
const CUID2_FINGERPRINT = `${process.env.NODE_ENV}-${os.platform()}-${os.hostname()}` | ||
const createId = cuid2init({ length: 25, fingerprint: CUID2_FINGERPRINT.toLowerCase() }); | ||
@@ -22,0 +22,0 @@ |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
18
-25%0
-100%203750
-0.41%9
-18.18%0
-100%