Socket
Socket
Sign inDemoInstall

ts-invariant

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-invariant - npm Package Compare versions

Comparing version 0.10.2 to 0.10.3

lib/invariant.cjs.native.js

4

package.json
{
"name": "ts-invariant",
"version": "0.10.2",
"version": "0.10.3",
"author": "Ben Newman <ben@apollographql.com>",

@@ -46,3 +46,3 @@ "description": "TypeScript implementation of invariant(condition, message)",

},
"gitHead": "384e0631f2cbc282cafc240df67a0c7d190f58cd"
"gitHead": "c8a2d6d2e839e9bdc595ae5fd2a50331b2b01014"
}

@@ -8,5 +8,6 @@ {

"sideEffects": [
"./main.js",
"./main.cjs",
"./main.cjs.native.js",
"./index.js"
]
}

@@ -0,1 +1,3 @@

import { promises as fs } from "fs";
const globals = {

@@ -13,2 +15,15 @@ __proto__: null,

function copyPlugin() {
return {
name: "copy *.cjs to *.cjs.native.js",
async writeBundle({ file }) {
const buffer = await fs.readFile(file);
await fs.writeFile(
file + ".native.js",
buffer,
);
},
};
}
const jobs = [];

@@ -28,2 +43,5 @@ export default jobs;

},
plugins: [
copyPlugin(),
],
});

@@ -55,2 +73,5 @@

},
plugins: [
copyPlugin(),
],
});

Sorry, the diff of this file is not supported yet

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