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
889
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.230 to 2.0.0-nightly.234

5

lib/applyRuntimes.js

@@ -67,3 +67,6 @@ "use strict";

filePath,
env: bundle.env
env: bundle.env,
// Runtime assets should be considered source, as they should be
// e.g. compiled to run in the target environment
isSource: true
};

@@ -70,0 +73,0 @@ connections.push({

7

lib/Transformation.js

@@ -152,2 +152,3 @@ "use strict";

pipeline,
isSource: isSourceOverride,
sideEffects

@@ -159,4 +160,6 @@ } = this.request;

hash,
isSource
} = await (0, _summarizeRequest.default)(this.options.inputFS, this.request); // If the transformer request passed code rather than a filename,
isSource: summarizedIsSource
} = await (0, _summarizeRequest.default)(this.options.inputFS, this.request); // Prefer `isSource` originating from the AssetRequest.
let isSource = isSourceOverride !== null && isSourceOverride !== void 0 ? isSourceOverride : summarizedIsSource; // If the transformer request passed code rather than a filename,
// use a hash as the base for the id to ensure it is unique.

@@ -163,0 +166,0 @@

{
"name": "@parcel/core",
"version": "2.0.0-nightly.230+6bf8145c",
"version": "2.0.0-nightly.234+297087a8",
"license": "MIT",

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

"dependencies": {
"@parcel/cache": "2.0.0-nightly.232+6bf8145c",
"@parcel/diagnostic": "2.0.0-nightly.232+6bf8145c",
"@parcel/events": "2.0.0-nightly.232+6bf8145c",
"@parcel/fs": "2.0.0-nightly.232+6bf8145c",
"@parcel/logger": "2.0.0-nightly.232+6bf8145c",
"@parcel/package-manager": "2.0.0-nightly.232+6bf8145c",
"@parcel/plugin": "2.0.0-nightly.232+6bf8145c",
"@parcel/cache": "2.0.0-nightly.236+297087a8",
"@parcel/diagnostic": "2.0.0-nightly.236+297087a8",
"@parcel/events": "2.0.0-nightly.236+297087a8",
"@parcel/fs": "2.0.0-nightly.236+297087a8",
"@parcel/logger": "2.0.0-nightly.236+297087a8",
"@parcel/package-manager": "2.0.0-nightly.236+297087a8",
"@parcel/plugin": "2.0.0-nightly.236+297087a8",
"@parcel/source-map": "2.0.0-alpha.4.9",
"@parcel/types": "2.0.0-nightly.232+6bf8145c",
"@parcel/utils": "2.0.0-nightly.232+6bf8145c",
"@parcel/workers": "2.0.0-nightly.232+6bf8145c",
"@parcel/types": "2.0.0-nightly.236+297087a8",
"@parcel/utils": "2.0.0-nightly.236+297087a8",
"@parcel/workers": "2.0.0-nightly.236+297087a8",
"abortcontroller-polyfill": "^1.1.9",

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

},
"gitHead": "6bf8145c61334e29e20f0619d6ce52b9dcd1f236"
"gitHead": "297087a806f9ed958fad1e2217d735b284cd3d5c"
}

@@ -66,2 +66,5 @@ // @flow strict-local

env: bundle.env,
// Runtime assets should be considered source, as they should be
// e.g. compiled to run in the target environment
isSource: true,
};

@@ -68,0 +71,0 @@ connections.push({

@@ -143,8 +143,20 @@ // @flow strict-local

async loadAsset(): Promise<UncommittedAsset> {
let {filePath, env, code, pipeline, sideEffects} = this.request;
let {content, size, hash, isSource} = await summarizeRequest(
this.options.inputFS,
this.request,
);
let {
filePath,
env,
code,
pipeline,
isSource: isSourceOverride,
sideEffects,
} = this.request;
let {
content,
size,
hash,
isSource: summarizedIsSource,
} = await summarizeRequest(this.options.inputFS, this.request);
// Prefer `isSource` originating from the AssetRequest.
let isSource = isSourceOverride ?? summarizedIsSource;
// If the transformer request passed code rather than a filename,

@@ -151,0 +163,0 @@ // use a hash as the base for the id to ensure it is unique.

@@ -194,2 +194,3 @@ // @flow strict-local

env: Environment,
isSource?: boolean,
sideEffects?: boolean,

@@ -196,0 +197,0 @@ code?: string,

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