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
888
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.203 to 2.0.0-nightly.207

2

lib/AssetGraphBuilder.js

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

if (request != null) {
if (request != null && this.requestTracker.isTracked(request.id)) {
this.requestTracker.untrackRequest(request.id);

@@ -395,0 +395,0 @@ }

@@ -466,2 +466,7 @@ "use strict";

}, opts);
} // This is mainly for integration tests and it not public api!
_getResolvedParcelOptions() {
return (0, _nullthrows.default)(_classPrivateFieldGet(this, _resolvedOptions), 'Resolved options is null, please let parcel intitialise before accessing this.');
}

@@ -468,0 +473,0 @@

@@ -33,2 +33,6 @@ "use strict";

get instanceId() {
return _classPrivateFieldGet(this, _options).instanceId;
}
get mode() {

@@ -35,0 +39,0 @@ return _classPrivateFieldGet(this, _options).mode;

@@ -30,4 +30,8 @@ "use strict";

const DEFAULT_CACHE_DIRNAME = '.parcel-cache';
const LOCK_FILE_NAMES = ['yarn.lock', 'package-lock.json', 'pnpm-lock.yaml'];
const LOCK_FILE_NAMES = ['yarn.lock', 'package-lock.json', 'pnpm-lock.yaml']; // Generate a unique instanceId, will change on every run of parcel
function generateInstanceId(entries) {
return (0, _utils.md5FromString)(`${entries.join(',')}-${Date.now()}-${Math.round(Math.random() * 100)}`);
}
async function resolveOptions(initialOptions) {

@@ -99,4 +103,5 @@ var _initialOptions$mode, _initialOptions$minif, _initialOptions$patch, _initialOptions$env, _initialOptions$autoi, _initialOptions$hot, _initialOptions$serve, _initialOptions$disab, _initialOptions$killW, _initialOptions$profi, _initialOptions$sourc, _initialOptions$scope, _initialOptions$publi, _initialOptions$logLe;

cache,
packageManager
packageManager,
instanceId: generateInstanceId(entries)
};
}
{
"name": "@parcel/core",
"version": "2.0.0-nightly.203+68b5050a",
"version": "2.0.0-nightly.207+3944c6e2",
"license": "MIT",

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

"dependencies": {
"@parcel/cache": "2.0.0-nightly.205+68b5050a",
"@parcel/diagnostic": "2.0.0-nightly.205+68b5050a",
"@parcel/events": "2.0.0-nightly.205+68b5050a",
"@parcel/fs": "2.0.0-nightly.205+68b5050a",
"@parcel/logger": "2.0.0-nightly.205+68b5050a",
"@parcel/package-manager": "2.0.0-nightly.205+68b5050a",
"@parcel/plugin": "2.0.0-nightly.205+68b5050a",
"@parcel/cache": "2.0.0-nightly.209+3944c6e2",
"@parcel/diagnostic": "2.0.0-nightly.209+3944c6e2",
"@parcel/events": "2.0.0-nightly.209+3944c6e2",
"@parcel/fs": "2.0.0-nightly.209+3944c6e2",
"@parcel/logger": "2.0.0-nightly.209+3944c6e2",
"@parcel/package-manager": "2.0.0-nightly.209+3944c6e2",
"@parcel/plugin": "2.0.0-nightly.209+3944c6e2",
"@parcel/source-map": "^2.0.0-alpha.4.6",
"@parcel/types": "2.0.0-nightly.205+68b5050a",
"@parcel/utils": "2.0.0-nightly.205+68b5050a",
"@parcel/workers": "2.0.0-nightly.205+68b5050a",
"@parcel/types": "2.0.0-nightly.209+3944c6e2",
"@parcel/utils": "2.0.0-nightly.209+3944c6e2",
"@parcel/workers": "2.0.0-nightly.209+3944c6e2",
"abortcontroller-polyfill": "^1.1.9",

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

},
"gitHead": "68b5050ae0e84c4a65ebdc2e57415c1ed0ceacd2"
"gitHead": "3944c6e27dd21d826bbc73f3010f1421a8736e2f"
}

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

let request = this.getCorrespondingRequest(node);
if (request != null) {
if (request != null && this.requestTracker.isTracked(request.id)) {
this.requestTracker.untrackRequest(request.id);

@@ -376,0 +376,0 @@ }

@@ -377,2 +377,10 @@ // @flow strict-local

}
// This is mainly for integration tests and it not public api!
_getResolvedParcelOptions() {
return nullthrows(
this.#resolvedOptions,
'Resolved options is null, please let parcel intitialise before accessing this.',
);
}
}

@@ -379,0 +387,0 @@

@@ -33,2 +33,6 @@ // @flow

get instanceId(): string {
return this.#options.instanceId;
}
get mode(): BuildMode {

@@ -35,0 +39,0 @@ return this.#options.mode;

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

import path from 'path';
import {resolveConfig} from '@parcel/utils';
import {resolveConfig, md5FromString} from '@parcel/utils';
import {NodeFS} from '@parcel/fs';

@@ -19,2 +19,9 @@ import Cache from '@parcel/cache';

// Generate a unique instanceId, will change on every run of parcel
function generateInstanceId(entries: Array<FilePath>): string {
return md5FromString(
`${entries.join(',')}-${Date.now()}-${Math.round(Math.random() * 100)}`,
);
}
export default async function resolveOptions(

@@ -111,3 +118,4 @@ initialOptions: InitialParcelOptions,

packageManager,
instanceId: generateInstanceId(entries),
};
}

@@ -161,2 +161,4 @@ // @flow strict-local

packageManager: PackageManager,
instanceId: string,
|};

@@ -163,0 +165,0 @@

@@ -37,2 +37,3 @@ // @flow

packageManager: new NodePackageManager(inputFS),
instanceId: 'test',
};
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