Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wry/equality

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wry/equality - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

lib/bundle.cjs

24

package.json
{
"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"
),
];
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc