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

@parcel/core

Package Overview
Dependencies
Maintainers
1
Versions
885
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/core - npm Package Compare versions

Comparing version 2.0.0-nightly.110 to 2.0.0-nightly.113

10

lib/PackagerRunner.js

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

let includedBundles = getBundlesIncludedInHash(bundle.id, bundleInfoMap);
let includedBundles = [...getBundlesIncludedInHash(bundle.id, bundleInfoMap)];
hashRefToNameHash.set(bundle.hashReference, (0, _utils.md5FromString)(includedBundles.map(bundleId => bundleInfoMap[bundleId].hash).join(':')).slice(-8));

@@ -453,4 +453,4 @@ }

function getBundlesIncludedInHash(bundleId, bundleInfoMap, included = []) {
included.push(bundleId);
function getBundlesIncludedInHash(bundleId, bundleInfoMap, included = new Set()) {
included.add(bundleId);

@@ -460,4 +460,4 @@ for (let hashRef of bundleInfoMap[bundleId].hashReferences) {

if (!included.includes(referencedId)) {
included.push(...getBundlesIncludedInHash(referencedId, bundleInfoMap, included));
if (!included.has(referencedId)) {
getBundlesIncludedInHash(referencedId, bundleInfoMap, included);
}

@@ -464,0 +464,0 @@ }

{
"name": "@parcel/core",
"version": "2.0.0-nightly.110+9e4870b8",
"version": "2.0.0-nightly.113+54b8e94f",
"license": "MIT",

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

"dependencies": {
"@parcel/cache": "2.0.0-nightly.112+9e4870b8",
"@parcel/diagnostic": "2.0.0-nightly.112+9e4870b8",
"@parcel/events": "2.0.0-nightly.112+9e4870b8",
"@parcel/fs": "2.0.0-nightly.112+9e4870b8",
"@parcel/logger": "2.0.0-nightly.112+9e4870b8",
"@parcel/package-manager": "2.0.0-nightly.112+9e4870b8",
"@parcel/plugin": "2.0.0-nightly.112+9e4870b8",
"@parcel/source-map": "2.0.0-nightly.112+9e4870b8",
"@parcel/types": "2.0.0-nightly.112+9e4870b8",
"@parcel/utils": "2.0.0-nightly.112+9e4870b8",
"@parcel/workers": "2.0.0-nightly.112+9e4870b8",
"@parcel/cache": "2.0.0-nightly.115+54b8e94f",
"@parcel/diagnostic": "2.0.0-nightly.115+54b8e94f",
"@parcel/events": "2.0.0-nightly.115+54b8e94f",
"@parcel/fs": "2.0.0-nightly.115+54b8e94f",
"@parcel/logger": "2.0.0-nightly.115+54b8e94f",
"@parcel/package-manager": "2.0.0-nightly.115+54b8e94f",
"@parcel/plugin": "2.0.0-nightly.115+54b8e94f",
"@parcel/source-map": "2.0.0-nightly.115+54b8e94f",
"@parcel/types": "2.0.0-nightly.115+54b8e94f",
"@parcel/utils": "2.0.0-nightly.115+54b8e94f",
"@parcel/workers": "2.0.0-nightly.115+54b8e94f",
"abortcontroller-polyfill": "^1.1.9",

@@ -46,3 +46,3 @@ "browserslist": "^4.6.6",

},
"gitHead": "9e4870b8c861134e45750671a84bee966eacbd8c"
"gitHead": "54b8e94f553af144b455573f2a3ad6bb74737d93"
}

@@ -538,3 +538,5 @@ // @flow strict-local

let includedBundles = getBundlesIncludedInHash(bundle.id, bundleInfoMap);
let includedBundles = [
...getBundlesIncludedInHash(bundle.id, bundleInfoMap),
];

@@ -550,10 +552,12 @@ hashRefToNameHash.set(

function getBundlesIncludedInHash(bundleId, bundleInfoMap, included = []) {
included.push(bundleId);
function getBundlesIncludedInHash(
bundleId,
bundleInfoMap,
included = new Set(),
) {
included.add(bundleId);
for (let hashRef of bundleInfoMap[bundleId].hashReferences) {
let referencedId = getIdFromHashRef(hashRef);
if (!included.includes(referencedId)) {
included.push(
...getBundlesIncludedInHash(referencedId, bundleInfoMap, included),
);
if (!included.has(referencedId)) {
getBundlesIncludedInHash(referencedId, bundleInfoMap, included);
}

@@ -560,0 +564,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