@parcel/core
Advanced tools
Comparing version 2.0.0-nightly.70 to 2.0.0-nightly.77
@@ -13,4 +13,2 @@ "use strict"; | ||
var _diagnostic = _interopRequireWildcard(require("@parcel/diagnostic")); | ||
var _ParcelConfig = _interopRequireDefault(require("./ParcelConfig")); | ||
@@ -22,4 +20,2 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
@@ -29,2 +25,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
@@ -64,2 +62,4 @@ | ||
(0, _logger.patchConsole)(); | ||
} else { | ||
(0, _logger.unpatchConsole)(); | ||
} | ||
@@ -81,5 +81,4 @@ } | ||
} catch (e) { | ||
throw new _diagnostic.default({ | ||
diagnostic: (0, _diagnostic.errorToDiagnostic)(e, reporter.name) | ||
}); | ||
// We shouldn't emit a report event here as we will cause infinite loops... | ||
_logger.INTERNAL_ORIGINAL_CONSOLE.error(e); | ||
} | ||
@@ -86,0 +85,0 @@ } |
@@ -113,3 +113,3 @@ "use strict"; | ||
async run(request, api) { | ||
api.invalidateOnFileUpdate(request.filePath); | ||
api.invalidateOnFileUpdate((await this.options.inputFS.realpath(request.filePath))); | ||
let start = Date.now(); | ||
@@ -116,0 +116,0 @@ let { |
@@ -111,2 +111,6 @@ "use strict"; | ||
filePath = decodeURIComponent(parsed.pathname); | ||
if (!pipeline) { | ||
pipeline = 'url'; | ||
} | ||
} | ||
@@ -113,0 +117,0 @@ |
@@ -43,2 +43,8 @@ "use strict"; | ||
} | ||
}, { | ||
type: 'object', | ||
properties: {}, | ||
additionalProperties: { | ||
type: 'boolean' | ||
} | ||
}] | ||
@@ -45,0 +51,0 @@ }, |
{ | ||
"name": "@parcel/core", | ||
"version": "2.0.0-nightly.70+a0d19756", | ||
"version": "2.0.0-nightly.77+287ac639", | ||
"license": "MIT", | ||
@@ -19,13 +19,13 @@ "publishConfig": { | ||
"dependencies": { | ||
"@parcel/cache": "2.0.0-nightly.72+a0d19756", | ||
"@parcel/diagnostic": "2.0.0-nightly.72+a0d19756", | ||
"@parcel/events": "2.0.0-nightly.72+a0d19756", | ||
"@parcel/fs": "2.0.0-nightly.72+a0d19756", | ||
"@parcel/logger": "2.0.0-nightly.72+a0d19756", | ||
"@parcel/package-manager": "2.0.0-nightly.72+a0d19756", | ||
"@parcel/plugin": "2.0.0-nightly.72+a0d19756", | ||
"@parcel/source-map": "2.0.0-nightly.72+a0d19756", | ||
"@parcel/types": "2.0.0-nightly.72+a0d19756", | ||
"@parcel/utils": "2.0.0-nightly.72+a0d19756", | ||
"@parcel/workers": "2.0.0-nightly.72+a0d19756", | ||
"@parcel/cache": "2.0.0-nightly.79+287ac639", | ||
"@parcel/diagnostic": "2.0.0-nightly.79+287ac639", | ||
"@parcel/events": "2.0.0-nightly.79+287ac639", | ||
"@parcel/fs": "2.0.0-nightly.79+287ac639", | ||
"@parcel/logger": "2.0.0-nightly.79+287ac639", | ||
"@parcel/package-manager": "2.0.0-nightly.79+287ac639", | ||
"@parcel/plugin": "2.0.0-nightly.79+287ac639", | ||
"@parcel/source-map": "2.0.0-nightly.79+287ac639", | ||
"@parcel/types": "2.0.0-nightly.79+287ac639", | ||
"@parcel/utils": "2.0.0-nightly.79+287ac639", | ||
"@parcel/workers": "2.0.0-nightly.79+287ac639", | ||
"abortcontroller-polyfill": "^1.1.9", | ||
@@ -46,3 +46,3 @@ "browserslist": "^4.6.6", | ||
}, | ||
"gitHead": "a0d19756a842b80ae8114b9e664a3b84057fcb70" | ||
"gitHead": "287ac6397ade28595d56ac73971edb832bda8ff7" | ||
} |
@@ -86,3 +86,6 @@ // @flow | ||
get includeNodeModules(): boolean | Array<PackageName> { | ||
get includeNodeModules(): | ||
| boolean | ||
| Array<PackageName> | ||
| {[PackageName]: boolean, ...} { | ||
return this.#environment.includeNodeModules; | ||
@@ -89,0 +92,0 @@ } |
@@ -8,5 +8,9 @@ // @flow strict-local | ||
import {bus} from '@parcel/workers'; | ||
import ThrowableDiagnostic, {errorToDiagnostic} from '@parcel/diagnostic'; | ||
import ParcelConfig from './ParcelConfig'; | ||
import logger, {patchConsole, PluginLogger} from '@parcel/logger'; | ||
import logger, { | ||
patchConsole, | ||
unpatchConsole, | ||
PluginLogger, | ||
INTERNAL_ORIGINAL_CONSOLE, | ||
} from '@parcel/logger'; | ||
import PluginOptions from './public/PluginOptions'; | ||
@@ -50,2 +54,4 @@ | ||
patchConsole(); | ||
} else { | ||
unpatchConsole(); | ||
} | ||
@@ -65,5 +71,4 @@ } | ||
} catch (e) { | ||
throw new ThrowableDiagnostic({ | ||
diagnostic: errorToDiagnostic(e, reporter.name), | ||
}); | ||
// We shouldn't emit a report event here as we will cause infinite loops... | ||
INTERNAL_ORIGINAL_CONSOLE.error(e); | ||
} | ||
@@ -70,0 +75,0 @@ } |
@@ -158,3 +158,5 @@ // @flow strict-local | ||
async run(request: AssetRequestDesc, api: RequestRunnerAPI) { | ||
api.invalidateOnFileUpdate(request.filePath); | ||
api.invalidateOnFileUpdate( | ||
await this.options.inputFS.realpath(request.filePath), | ||
); | ||
let start = Date.now(); | ||
@@ -161,0 +163,0 @@ let {assets, configRequests} = await this.runTransform({ |
@@ -97,2 +97,5 @@ // @flow | ||
filePath = decodeURIComponent(parsed.pathname); | ||
if (!pipeline) { | ||
pipeline = 'url'; | ||
} | ||
} | ||
@@ -99,0 +102,0 @@ |
@@ -52,2 +52,9 @@ // @flow strict-local | ||
}, | ||
{ | ||
type: 'object', | ||
properties: {}, | ||
additionalProperties: { | ||
type: 'boolean', | ||
}, | ||
}, | ||
], | ||
@@ -54,0 +61,0 @@ }, |
@@ -37,3 +37,6 @@ // @flow strict-local | ||
engines: Engines, | ||
includeNodeModules: boolean | Array<PackageName>, | ||
includeNodeModules: | ||
| boolean | ||
| Array<PackageName> | ||
| {[PackageName]: boolean, ...}, | ||
outputFormat: OutputFormat, | ||
@@ -40,0 +43,0 @@ isLibrary: boolean, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
611281
17601
+ Addedcaniuse-lite@1.0.30001686(transitive)
+ Addedelectron-to-chromium@1.5.68(transitive)
- Removedcaniuse-lite@1.0.30001685(transitive)
- Removedelectron-to-chromium@1.5.67(transitive)