@atlaspack/core 2.12.1-dev.3356 → 2.12.1-dev.3367
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/RequestTracker.js +1 -1
- package/lib/loadAtlaspackPlugin.js +1 -1
- package/lib/types.js +1 -2
- package/package.json +16 -16
- package/src/RequestTracker.js +1 -1
- package/src/loadAtlaspackPlugin.js +1 -1
- package/src/types.js +0 -1
- package/test/TargetRequest.test.js +1 -1
- package/test/test-utils.js +1 -2
package/lib/RequestTracker.js
CHANGED
|
@@ -947,7 +947,7 @@ class RequestTracker {
|
|
|
947
947
|
});
|
|
948
948
|
let opts = getWatcherOptions(this.options);
|
|
949
949
|
let snapshotPath = _path2().default.join(this.options.cacheDir, `snapshot-${cacheKey}` + '.txt');
|
|
950
|
-
await this.options.
|
|
950
|
+
await this.options.outputFS.writeSnapshot(this.options.watchDir, snapshotPath, opts);
|
|
951
951
|
} catch (err) {
|
|
952
952
|
// If we have aborted, ignore the error and continue
|
|
953
953
|
if (!(signal !== null && signal !== void 0 && signal.aborted)) throw err;
|
|
@@ -38,7 +38,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
38
38
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
39
39
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
40
40
|
const NODE_MODULES = `${_path().default.sep}node_modules${_path().default.sep}`;
|
|
41
|
-
const CONFIG = Symbol.for('
|
|
41
|
+
const CONFIG = Symbol.for('parcel-plugin-config');
|
|
42
42
|
async function loadPlugin(pluginName, configPath, keyPath, options) {
|
|
43
43
|
let resolveFrom = configPath;
|
|
44
44
|
let range;
|
package/lib/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/core",
|
|
3
|
-
"version": "2.12.1-dev.
|
|
3
|
+
"version": "2.12.1-dev.3367+07fefed65",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"check-ts": "tsc --noEmit index.d.ts"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@atlaspack/cache": "2.12.1-dev.
|
|
24
|
-
"@atlaspack/diagnostic": "2.12.1-dev.
|
|
25
|
-
"@atlaspack/events": "2.12.1-dev.
|
|
26
|
-
"@atlaspack/feature-flags": "2.12.1-dev.
|
|
27
|
-
"@atlaspack/fs": "2.12.1-dev.
|
|
28
|
-
"@atlaspack/graph": "3.2.1-dev.
|
|
29
|
-
"@atlaspack/logger": "2.12.1-dev.
|
|
30
|
-
"@atlaspack/package-manager": "2.12.1-dev.
|
|
31
|
-
"@atlaspack/plugin": "2.12.1-dev.
|
|
32
|
-
"@atlaspack/profiler": "2.12.1-dev.
|
|
33
|
-
"@atlaspack/rust": "2.12.1-dev.
|
|
34
|
-
"@atlaspack/types": "2.12.1-dev.
|
|
35
|
-
"@atlaspack/utils": "2.12.1-dev.
|
|
36
|
-
"@atlaspack/workers": "2.12.1-dev.
|
|
23
|
+
"@atlaspack/cache": "2.12.1-dev.3367+07fefed65",
|
|
24
|
+
"@atlaspack/diagnostic": "2.12.1-dev.3367+07fefed65",
|
|
25
|
+
"@atlaspack/events": "2.12.1-dev.3367+07fefed65",
|
|
26
|
+
"@atlaspack/feature-flags": "2.12.1-dev.3367+07fefed65",
|
|
27
|
+
"@atlaspack/fs": "2.12.1-dev.3367+07fefed65",
|
|
28
|
+
"@atlaspack/graph": "3.2.1-dev.3367+07fefed65",
|
|
29
|
+
"@atlaspack/logger": "2.12.1-dev.3367+07fefed65",
|
|
30
|
+
"@atlaspack/package-manager": "2.12.1-dev.3367+07fefed65",
|
|
31
|
+
"@atlaspack/plugin": "2.12.1-dev.3367+07fefed65",
|
|
32
|
+
"@atlaspack/profiler": "2.12.1-dev.3367+07fefed65",
|
|
33
|
+
"@atlaspack/rust": "2.12.1-dev.3367+07fefed65",
|
|
34
|
+
"@atlaspack/types": "2.12.1-dev.3367+07fefed65",
|
|
35
|
+
"@atlaspack/utils": "2.12.1-dev.3367+07fefed65",
|
|
36
|
+
"@atlaspack/workers": "2.12.1-dev.3367+07fefed65",
|
|
37
37
|
"@mischnic/json-sourcemap": "^0.1.0",
|
|
38
38
|
"@parcel/source-map": "^2.1.1",
|
|
39
39
|
"base-x": "^3.0.8",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"browser": {
|
|
56
56
|
"./src/serializerCore.js": "./src/serializerCore.browser.js"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "07fefed65a9a4d7bd0bdc9c45b39704ee4ca70dd"
|
|
59
59
|
}
|
package/src/RequestTracker.js
CHANGED
|
@@ -1510,7 +1510,7 @@ export default class RequestTracker {
|
|
|
1510
1510
|
let opts = getWatcherOptions(this.options);
|
|
1511
1511
|
let snapshotPath = path.join(this.options.cacheDir, snapshotKey + '.txt');
|
|
1512
1512
|
|
|
1513
|
-
await this.options.
|
|
1513
|
+
await this.options.outputFS.writeSnapshot(
|
|
1514
1514
|
this.options.watchDir,
|
|
1515
1515
|
snapshotPath,
|
|
1516
1516
|
opts,
|
|
@@ -24,7 +24,7 @@ import {type ProjectPath, toProjectPath} from './projectPath';
|
|
|
24
24
|
import {version as ATLASPACK_VERSION} from '../package.json';
|
|
25
25
|
|
|
26
26
|
const NODE_MODULES = `${path.sep}node_modules${path.sep}`;
|
|
27
|
-
const CONFIG = Symbol.for('
|
|
27
|
+
const CONFIG = Symbol.for('parcel-plugin-config');
|
|
28
28
|
|
|
29
29
|
export default async function loadPlugin<T>(
|
|
30
30
|
pluginName: PackageName,
|
package/src/types.js
CHANGED
package/test/test-utils.js
CHANGED
|
@@ -5,7 +5,6 @@ import type {Environment, AtlaspackOptions, Target} from '../src/types';
|
|
|
5
5
|
import {DEFAULT_FEATURE_FLAGS} from '@atlaspack/feature-flags';
|
|
6
6
|
import {FSCache} from '@atlaspack/cache';
|
|
7
7
|
import tempy from 'tempy';
|
|
8
|
-
import path from 'path';
|
|
9
8
|
import {inputFS, outputFS} from '@atlaspack/test-utils';
|
|
10
9
|
import {relativePath} from '@atlaspack/utils';
|
|
11
10
|
import {NodePackageManager} from '@atlaspack/package-manager';
|
|
@@ -17,7 +16,7 @@ export let cache: FSCache = new FSCache(outputFS, cacheDir);
|
|
|
17
16
|
cache.ensure();
|
|
18
17
|
|
|
19
18
|
export const DEFAULT_OPTIONS: AtlaspackOptions = {
|
|
20
|
-
cacheDir
|
|
19
|
+
cacheDir,
|
|
21
20
|
atlaspackVersion: '',
|
|
22
21
|
watchDir: __dirname,
|
|
23
22
|
watchIgnore: undefined,
|