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
889
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-canary.1688 to 2.0.0-canary.1690

lib/helpers/browser/esm-js-loader-retry.js

18

lib/JSRuntime.js

@@ -401,2 +401,20 @@ "use strict";

}
if (needsEsmLoadPrelude && options.featureFlags.importRetry) {
loaderCode = `
Object.defineProperty(module, 'exports', { get: () => {
let load = require('./helpers/browser/esm-js-loader-retry');
return ${loaderCode}.then((v) => {
Object.defineProperty(module, "exports", { value: Promise.resolve(v) })
return v
});
}})`;
return {
filePath: __filename,
code: loaderCode,
dependency,
env: {
sourceType: 'module'
}
};
}
let code = [];

@@ -403,0 +421,0 @@ if (needsEsmLoadPrelude) {

12

package.json
{
"name": "@parcel/runtime-js",
"version": "2.0.0-canary.1688+ae9644820",
"version": "2.0.0-canary.1690+29778a2f4",
"license": "MIT",

@@ -20,11 +20,11 @@ "publishConfig": {

"node": ">= 16.0.0",
"parcel": "^2.0.0-canary.1686+ae9644820"
"parcel": "^2.0.0-canary.1688+29778a2f4"
},
"dependencies": {
"@parcel/diagnostic": "2.0.0-canary.1688+ae9644820",
"@parcel/plugin": "2.0.0-canary.1688+ae9644820",
"@parcel/utils": "2.0.0-canary.1688+ae9644820",
"@parcel/diagnostic": "2.0.0-canary.1690+29778a2f4",
"@parcel/plugin": "2.0.0-canary.1690+29778a2f4",
"@parcel/utils": "2.0.0-canary.1690+29778a2f4",
"nullthrows": "^1.1.1"
},
"gitHead": "ae9644820b06cdbd7e6ffcfc18e4f25b6f14990a"
"gitHead": "29778a2f4737b191b727882a0f97653344b70368"
}

@@ -487,2 +487,20 @@ // @flow strict-local

if (needsEsmLoadPrelude && options.featureFlags.importRetry) {
loaderCode = `
Object.defineProperty(module, 'exports', { get: () => {
let load = require('./helpers/browser/esm-js-loader-retry');
return ${loaderCode}.then((v) => {
Object.defineProperty(module, "exports", { value: Promise.resolve(v) })
return v
});
}})`;
return {
filePath: __filename,
code: loaderCode,
dependency,
env: {sourceType: 'module'},
};
}
let code = [];

@@ -489,0 +507,0 @@

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