libcors
Advanced tools
Comparing version 1.0.3 to 2.0.0
@@ -11,2 +11,3 @@ /** | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.setup = exports.simpleResponseHeaders = exports.simpleRequestHeaders = exports.simpleMethods = void 0; | ||
exports.simpleMethods = Object.freeze([ | ||
@@ -13,0 +14,0 @@ "GET", |
{ | ||
"name": "libcors", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"description": "CORS handling, 100% transportation agnostic", | ||
@@ -15,3 +15,3 @@ "author": "Gustaf Räntilä", | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=12" | ||
}, | ||
@@ -21,7 +21,4 @@ "main": "./dist/index.js", | ||
"scripts": { | ||
"build": "./node_modules/.bin/rimraf dist && ./node_modules/.bin/tsc -p .", | ||
"mocha": "./node_modules/.bin/mocha dist/test", | ||
"test": "./node_modules/.bin/nyc npm run mocha", | ||
"coverage": "node_modules/.bin/nyc report --reporter=html", | ||
"semantic-release": "semantic-release", | ||
"build": "rimraf dist && tsc -p tsconfig.prod.json", | ||
"test": "jest", | ||
"cz": "git-cz" | ||
@@ -40,14 +37,12 @@ }, | ||
"devDependencies": { | ||
"@types/mocha": "5.2.7", | ||
"@types/node": "13.5.0", | ||
"already": "^1.10.0", | ||
"chai": "4.x", | ||
"commitizen": "4.0.3", | ||
"cz-conventional-changelog": "3.0.2", | ||
"mocha": "7.0.0", | ||
"nyc": "15.0.0", | ||
"rimraf": "3.0.0", | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "15.12.4", | ||
"already": "^2.1.0", | ||
"commitizen": "4.2.4", | ||
"cz-conventional-changelog": "3.3.0", | ||
"jest": "^27.0.4", | ||
"rimraf": "3.0.2", | ||
"semantic-release": "^16.0.3", | ||
"sinon": "8.1.1", | ||
"typescript": "3.7.5" | ||
"ts-jest": "^27.0.3", | ||
"typescript": "4.3.4" | ||
}, | ||
@@ -58,3 +53,22 @@ "config": { | ||
} | ||
}, | ||
"jest": { | ||
"preset": "ts-jest", | ||
"testEnvironment": "node", | ||
"testMatch": [ | ||
"<rootDir>/lib/**/*.test.ts" | ||
], | ||
"collectCoverageFrom": [ | ||
"<rootDir>/lib/**" | ||
], | ||
"coveragePathIgnorePatterns": [ | ||
"/node_modules/", | ||
"/__snapshots__/" | ||
], | ||
"coverageReporters": [ | ||
"lcov", | ||
"text", | ||
"html" | ||
] | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10
16011
4
238
1