@wry/equality
Advanced tools
Comparing version 0.5.3 to 0.5.4
{ | ||
"name": "@wry/equality", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"author": "Ben Newman <ben@eloper.dev>", | ||
"description": "Structural equality checking for JavaScript values", | ||
"license": "MIT", | ||
"main": "lib/equality.js", | ||
"module": "lib/equality.esm.js", | ||
"types": "lib/equality.d.ts", | ||
"type": "module", | ||
"main": "lib/bundle.cjs", | ||
"module": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"keywords": [], | ||
@@ -20,9 +21,10 @@ "homepage": "https://github.com/benjamn/wryware", | ||
"scripts": { | ||
"clean": "../../node_modules/.bin/rimraf lib", | ||
"tsc": "../../node_modules/.bin/tsc", | ||
"rollup": "../../node_modules/.bin/rollup -c", | ||
"build": "npm run clean && npm run tsc && npm run rollup", | ||
"mocha": "../../scripts/test.sh lib/tests.cjs.js", | ||
"build": "npm run clean:before && npm run tsc && npm run rollup", | ||
"clean:before": "rimraf lib", | ||
"tsc": "tsc", | ||
"rollup": "rollup -c rollup.config.js", | ||
"prepare": "npm run build", | ||
"test": "npm run build && npm run mocha" | ||
"test:cjs": "../../scripts/test.sh lib/tests/bundle.cjs", | ||
"test:esm": "../../scripts/test.sh lib/tests/bundle.js", | ||
"test": "npm run test:esm && npm run test:cjs" | ||
}, | ||
@@ -35,3 +37,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "4cb5c26fead3594a6b17cf9d67968cfa8d11e045" | ||
"gitHead": "85851ce64233c9fe7cc4dba987cf26ffb12dcecf" | ||
} |
@@ -1,58 +0,21 @@ | ||
import typescriptPlugin from 'rollup-plugin-typescript2'; | ||
import typescript from 'typescript'; | ||
import { build } from "../../scripts/rollup.config.js"; | ||
const globals = { | ||
__proto__: null, | ||
tslib: "tslib", | ||
assert: "assert", | ||
}; | ||
function external(id) { | ||
return id in globals; | ||
} | ||
export default [{ | ||
input: "src/equality.ts", | ||
external, | ||
output: { | ||
file: "lib/equality.esm.js", | ||
format: "esm", | ||
sourcemap: true, | ||
globals, | ||
}, | ||
plugins: [ | ||
typescriptPlugin({ | ||
typescript, | ||
tsconfig: "./tsconfig.rollup.json", | ||
}), | ||
], | ||
}, { | ||
input: "lib/equality.esm.js", | ||
external, | ||
output: { | ||
// Intentionally overwrite the equality.js file written by tsc: | ||
file: "lib/equality.js", | ||
format: "cjs", | ||
exports: "named", | ||
sourcemap: true, | ||
name: "equality", | ||
globals, | ||
}, | ||
}, { | ||
input: "src/tests.ts", | ||
external, | ||
output: { | ||
file: "lib/tests.cjs.js", | ||
format: "cjs", | ||
exports: "named", | ||
sourcemap: true, | ||
name: "equality-tests", | ||
globals, | ||
}, | ||
plugins: [ | ||
typescriptPlugin({ | ||
typescript, | ||
tsconfig: "./tsconfig.test.json", | ||
}), | ||
], | ||
}]; | ||
// This package doesn't use the lib/es5 directory, so we need to override the | ||
// default export from ../../scripts/rollup.config.js. | ||
export default [ | ||
build( | ||
"lib/index.js", | ||
"lib/bundle.cjs", | ||
"cjs" | ||
), | ||
build( | ||
"lib/tests/main.js", | ||
"lib/tests/bundle.js", | ||
"esm" | ||
), | ||
build( | ||
"lib/tests/main.js", | ||
"lib/tests/bundle.cjs", | ||
"cjs" | ||
), | ||
]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Yes
37902
9
420
1