New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atlaspack/runtime-js

Package Overview
Dependencies
Maintainers
0
Versions
303
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaspack/runtime-js - npm Package Compare versions

Comparing version 2.12.1-canary.3366 to 2.12.1-canary.3367

12

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

@@ -16,4 +16,4 @@ "use strict";

case 0:
if (!atlaspackRequire.retryState) {
atlaspackRequire.retryState = {};
if (!parcelRequire.retryState) {
parcelRequire.retryState = {};
}

@@ -32,8 +32,8 @@ if (globalThis.navigator.onLine) {

url = require('../bundle-manifest').resolve(id);
if (atlaspackRequire.retryState[id] != undefined) {
url = "".concat(url, "?retry=").concat(atlaspackRequire.retryState[id]);
if (parcelRequire.retryState[id] != undefined) {
url = "".concat(url, "?retry=").concat(parcelRequire.retryState[id]);
}
_context.prev = 6;
_context.next = 9;
return __atlaspack__import__(url);
return __parcel__import__(url);
case 9:

@@ -44,3 +44,3 @@ return _context.abrupt("return", _context.sent);

_context.t0 = _context["catch"](6);
atlaspackRequire.retryState[id] = Date.now();
parcelRequire.retryState[id] = Date.now();
case 15:

@@ -47,0 +47,0 @@ case "end":

@@ -5,4 +5,4 @@ "use strict";

// eslint-disable-next-line no-undef
return __atlaspack__import__(require('../bundle-manifest').resolve(id));
return __parcel__import__(require('../bundle-manifest').resolve(id));
}
module.exports = load;
"use strict";
/* global __atlaspack__importScripts__:readonly*/
/* global __parcel__importScripts__:readonly*/
var cacheLoader = require('../cacheLoader');

@@ -8,3 +8,3 @@ module.exports = cacheLoader(function (bundle) {

try {
__atlaspack__importScripts__(bundle);
__parcel__importScripts__(bundle);
resolve();

@@ -11,0 +11,0 @@ } catch (e) {

@@ -356,3 +356,3 @@ "use strict";

if (!needsDynamicImportPolyfill) {
loaderModules.push(`__atlaspack__import__("./" + ${relativePathExpr})`);
loaderModules.push(`__parcel__import__("./" + ${relativePathExpr})`);
continue;

@@ -362,3 +362,3 @@ }

} else if (to.type === 'js' && to.env.outputFormat === 'commonjs') {
loaderModules.push(`Promise.resolve(__atlaspack__require__("./" + ${relativePathExpr}))`);
loaderModules.push(`Promise.resolve(__parcel__require__("./" + ${relativePathExpr}))`);
continue;

@@ -400,4 +400,4 @@ }

if (mainBundle.type === 'js') {
let atlaspackRequire = bundle.env.shouldScopeHoist ? 'atlaspackRequire' : 'module.bundle.root';
loaderCode += `.then(() => ${atlaspackRequire}('${bundleGraph.getAssetPublicId(bundleGraph.getAssetById(bundleGroup.entryAssetId))}'))`;
let parcelRequire = bundle.env.shouldScopeHoist ? 'parcelRequire' : 'module.bundle.root';
loaderCode += `.then(() => ${parcelRequire}('${bundleGraph.getAssetPublicId(bundleGraph.getAssetById(bundleGroup.entryAssetId))}'))`;
}

@@ -488,3 +488,3 @@ if (needsEsmLoadPrelude && options.featureFlags.importRetry) {

if (from.env.outputFormat === 'esmodule' && from.env.supports('import-meta-url')) {
code += `let url = new __atlaspack__URL__(${relativePathExpr});\n`;
code += `let url = new __parcel__URL__(${relativePathExpr});\n`;
code += `module.exports = workerURL(url.toString(), url.origin, ${String(from.env.outputFormat === 'esmodule')});`;

@@ -531,3 +531,3 @@ } else {

}, entryBundle);
let baseUrl = entryBundle.env.outputFormat === 'esmodule' && entryBundle.env.supports('import-meta-url') ? 'new __atlaspack__URL__("").toString()' // <-- this isn't ideal. We should use `import.meta.url` directly but it gets replaced currently
let baseUrl = entryBundle.env.outputFormat === 'esmodule' && entryBundle.env.supports('import-meta-url') ? 'new __parcel__URL__("").toString()' // <-- this isn't ideal. We should use `import.meta.url` directly but it gets replaced currently
: `require('./helpers/bundle-url').getBundleURL('${entryBundle.publicId}')`;

@@ -549,3 +549,3 @@ return `require('./helpers/bundle-manifest').register(${baseUrl},JSON.parse(${JSON.stringify(JSON.stringify(mappings))}));`;

// This will be compiled to new URL(url, import.meta.url) or new URL(url, 'file:' + __filename).
return `new __atlaspack__URL__(${relativePathExpr}).toString()`;
return `new __parcel__URL__(${relativePathExpr}).toString()`;
} else {

@@ -552,0 +552,0 @@ return `require('./helpers/bundle-url').getBundleURL('${bundle.publicId}') + ${relativePathExpr}`;

{
"name": "@atlaspack/runtime-js",
"version": "2.12.1-canary.3366+4100cb64c",
"version": "2.12.1-canary.3367+815758ba7",
"license": "MIT",

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

"node": ">= 16.0.0",
"atlaspack": "2.12.1-canary.3366+4100cb64c"
"parcel": "2.12.1-canary.3367+815758ba7"
},
"dependencies": {
"@atlaspack/diagnostic": "2.12.1-canary.3366+4100cb64c",
"@atlaspack/plugin": "2.12.1-canary.3366+4100cb64c",
"@atlaspack/utils": "2.12.1-canary.3366+4100cb64c",
"@atlaspack/diagnostic": "2.12.1-canary.3367+815758ba7",
"@atlaspack/plugin": "2.12.1-canary.3367+815758ba7",
"@atlaspack/utils": "2.12.1-canary.3367+815758ba7",
"nullthrows": "^1.1.1"
},
"gitHead": "4100cb64ca5e666092cee90af18f4124c15292fa"
"gitHead": "815758ba750fdf03c404e4ab67e0930acc51404a"
}
async function load(id) {
if (!atlaspackRequire.retryState) {
atlaspackRequire.retryState = {};
if (!parcelRequire.retryState) {
parcelRequire.retryState = {};
}

@@ -14,4 +14,4 @@

if (atlaspackRequire.retryState[id] != undefined) {
url = `${url}?retry=${atlaspackRequire.retryState[id]}`;
if (parcelRequire.retryState[id] != undefined) {
url = `${url}?retry=${parcelRequire.retryState[id]}`;
}

@@ -21,5 +21,5 @@

// eslint-disable-next-line no-undef
return await __atlaspack__import__(url);
return await __parcel__import__(url);
} catch (error) {
atlaspackRequire.retryState[id] = Date.now();
parcelRequire.retryState[id] = Date.now();
}

@@ -26,0 +26,0 @@ }

function load(id) {
// eslint-disable-next-line no-undef
return __atlaspack__import__(require('../bundle-manifest').resolve(id));
return __parcel__import__(require('../bundle-manifest').resolve(id));
}
module.exports = load;

@@ -1,2 +0,2 @@

/* global __atlaspack__importScripts__:readonly*/
/* global __parcel__importScripts__:readonly*/
const cacheLoader = require('../cacheLoader');

@@ -7,3 +7,3 @@

try {
__atlaspack__importScripts__(bundle);
__parcel__importScripts__(bundle);
resolve();

@@ -10,0 +10,0 @@ } catch (e) {

@@ -403,3 +403,3 @@ // @flow strict-local

if (!needsDynamicImportPolyfill) {
loaderModules.push(`__atlaspack__import__("./" + ${relativePathExpr})`);
loaderModules.push(`__parcel__import__("./" + ${relativePathExpr})`);
continue;

@@ -414,3 +414,3 @@ }

loaderModules.push(
`Promise.resolve(__atlaspack__require__("./" + ${relativePathExpr}))`,
`Promise.resolve(__parcel__require__("./" + ${relativePathExpr}))`,
);

@@ -481,6 +481,6 @@ continue;

if (mainBundle.type === 'js') {
let atlaspackRequire = bundle.env.shouldScopeHoist
? 'atlaspackRequire'
let parcelRequire = bundle.env.shouldScopeHoist
? 'parcelRequire'
: 'module.bundle.root';
loaderCode += `.then(() => ${atlaspackRequire}('${bundleGraph.getAssetPublicId(
loaderCode += `.then(() => ${parcelRequire}('${bundleGraph.getAssetPublicId(
bundleGraph.getAssetById(bundleGroup.entryAssetId),

@@ -621,3 +621,3 @@ )}'))`;

) {
code += `let url = new __atlaspack__URL__(${relativePathExpr});\n`;
code += `let url = new __parcel__URL__(${relativePathExpr});\n`;
code += `module.exports = workerURL(url.toString(), url.origin, ${String(

@@ -682,3 +682,3 @@ from.env.outputFormat === 'esmodule',

entryBundle.env.supports('import-meta-url')
? 'new __atlaspack__URL__("").toString()' // <-- this isn't ideal. We should use `import.meta.url` directly but it gets replaced currently
? 'new __parcel__URL__("").toString()' // <-- this isn't ideal. We should use `import.meta.url` directly but it gets replaced currently
: `require('./helpers/bundle-url').getBundleURL('${entryBundle.publicId}')`;

@@ -712,3 +712,3 @@

// This will be compiled to new URL(url, import.meta.url) or new URL(url, 'file:' + __filename).
return `new __atlaspack__URL__(${relativePathExpr}).toString()`;
return `new __parcel__URL__(${relativePathExpr}).toString()`;
} else {

@@ -715,0 +715,0 @@ return `require('./helpers/bundle-url').getBundleURL('${bundle.publicId}') + ${relativePathExpr}`;

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