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

@parcel/runtime-js

Package Overview
Dependencies
Maintainers
1
Versions
892
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/runtime-js - npm Package Compare versions

Comparing version 2.0.0-nightly.339 to 2.0.0-nightly.340

12

lib/JSRuntime.js

@@ -153,4 +153,14 @@ "use strict";

return entries.some(e => bundleGroup.entryAssetId === e.id);
})); // URL dependency or not, fall back to including a runtime that exports the url
}));
if (bundle.env.outputFormat === 'commonjs') {
assets.push({
filePath: __filename,
dependency,
code: `module.exports = require("./" + ${getRelativePathExpr(bundle, mainBundle)})`
});
continue;
} // URL dependency or not, fall back to including a runtime that exports the url
assets.push(getURLRuntime(dependency, bundle, mainBundle));

@@ -157,0 +167,0 @@ }

8

package.json
{
"name": "@parcel/runtime-js",
"version": "2.0.0-nightly.339+afc2c9ef",
"version": "2.0.0-nightly.340+8d643288",
"license": "MIT",

@@ -23,7 +23,7 @@ "publishConfig": {

"dependencies": {
"@parcel/plugin": "2.0.0-nightly.339+afc2c9ef",
"@parcel/utils": "2.0.0-nightly.339+afc2c9ef",
"@parcel/plugin": "2.0.0-nightly.340+8d643288",
"@parcel/utils": "2.0.0-nightly.340+8d643288",
"nullthrows": "^1.1.1"
},
"gitHead": "afc2c9efc2cfcd016bc743291706099eaab004e4"
"gitHead": "8d64328859b787164e596a2140cccfa320e3a799"
}

@@ -160,2 +160,14 @@ // @flow strict-local

if (bundle.env.outputFormat === 'commonjs') {
assets.push({
filePath: __filename,
dependency,
code: `module.exports = require("./" + ${getRelativePathExpr(
bundle,
mainBundle,
)})`,
});
continue;
}
// URL dependency or not, fall back to including a runtime that exports the url

@@ -162,0 +174,0 @@ assets.push(getURLRuntime(dependency, bundle, mainBundle));

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