@parcel/runtime-js
Advanced tools
Comparing version 2.0.0-canary.1688 to 2.0.0-canary.1690
@@ -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) { |
{ | ||
"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 @@ |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
77946
44
1960