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
310
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

to
2.12.1-canary.3568

9

lib/JSRuntime.js

@@ -409,5 +409,8 @@ "use strict";

// This bundle has a conditional dependency, we need to load the bundle group
// Load conditional bundles with helper (and a dev mode with additional hints)
loaderModules.push(`require('./helpers/conditional-loader${options.mode === 'development' ? '-dev' : ''}')('${cond.key}', function (){return Promise.all([${cond.ifTrueBundles.map(targetBundle => getLoaderForBundle(bundle, targetBundle)).join(',')}]);}, function (){return Promise.all([${cond.ifFalseBundles.map(targetBundle => getLoaderForBundle(bundle, targetBundle)).join(',')}]);})`);
const ifTrueLoaders = cond.ifTrueBundles.map(targetBundle => getLoaderForBundle(bundle, targetBundle));
const ifFalseLoaders = cond.ifFalseBundles.map(targetBundle => getLoaderForBundle(bundle, targetBundle));
if (ifTrueLoaders.length > 0 || ifFalseLoaders.length > 0) {
// Load conditional bundles with helper (and a dev mode with additional hints)
loaderModules.push(`require('./helpers/conditional-loader${options.mode === 'development' ? '-dev' : ''}')('${cond.key}', function (){return Promise.all([${ifTrueLoaders.join(',')}]);}, function (){return Promise.all([${ifFalseLoaders.join(',')}]);})`);
}
}

@@ -414,0 +417,0 @@ }

{
"name": "@atlaspack/runtime-js",
"version": "2.12.1-canary.3567+e0effea53",
"version": "2.12.1-canary.3568+2bb7fb28f",
"license": "(MIT OR Apache-2.0)",

@@ -15,13 +15,13 @@ "publishConfig": {

"engines": {
"atlaspack": "2.12.1-canary.3567+e0effea53",
"atlaspack": "2.12.1-canary.3568+2bb7fb28f",
"node": ">= 16.0.0"
},
"dependencies": {
"@atlaspack/diagnostic": "2.12.1-canary.3567+e0effea53",
"@atlaspack/feature-flags": "2.12.1-canary.3567+e0effea53",
"@atlaspack/plugin": "2.12.1-canary.3567+e0effea53",
"@atlaspack/utils": "2.12.1-canary.3567+e0effea53",
"@atlaspack/diagnostic": "2.12.1-canary.3568+2bb7fb28f",
"@atlaspack/feature-flags": "2.12.1-canary.3568+2bb7fb28f",
"@atlaspack/plugin": "2.12.1-canary.3568+2bb7fb28f",
"@atlaspack/utils": "2.12.1-canary.3568+2bb7fb28f",
"nullthrows": "^1.1.1"
},
"gitHead": "e0effea53c21b3c3e3bc9d368468c562e5f80531"
"gitHead": "2bb7fb28f58d6d8e17c7917c4d0be72df125c328"
}

@@ -486,13 +486,23 @@ // @flow strict-local

// This bundle has a conditional dependency, we need to load the bundle group
const ifTrueLoaders = cond.ifTrueBundles.map((targetBundle) =>
getLoaderForBundle(bundle, targetBundle),
);
const ifFalseLoaders = cond.ifFalseBundles.map((targetBundle) =>
getLoaderForBundle(bundle, targetBundle),
);
// Load conditional bundles with helper (and a dev mode with additional hints)
loaderModules.push(
`require('./helpers/conditional-loader${
options.mode === 'development' ? '-dev' : ''
}')('${cond.key}', function (){return Promise.all([${cond.ifTrueBundles
.map((targetBundle) => getLoaderForBundle(bundle, targetBundle))
.join(',')}]);}, function (){return Promise.all([${cond.ifFalseBundles
.map((targetBundle) => getLoaderForBundle(bundle, targetBundle))
.join(',')}]);})`,
);
if (ifTrueLoaders.length > 0 || ifFalseLoaders.length > 0) {
// Load conditional bundles with helper (and a dev mode with additional hints)
loaderModules.push(
`require('./helpers/conditional-loader${
options.mode === 'development' ? '-dev' : ''
}')('${
cond.key
}', function (){return Promise.all([${ifTrueLoaders.join(
',',
)}]);}, function (){return Promise.all([${ifFalseLoaders.join(
',',
)}]);})`,
);
}
}

@@ -499,0 +509,0 @@ }