@atlaspack/core 2.12.1-canary.3574 → 2.12.1-canary.3576

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.
@@ -924,11 +924,17 @@ class RequestTracker {
924
924
  if (this.options.shouldDisableCache) {
925
925
  return;
926
926
  }
927
+ let total = 0;
928
+ (0, _ReporterRunner.report)({
929
+ type: 'cache',
930
+ phase: 'start',
931
+ total,
932
+ size: this.graph.nodes.length
933
+ });
927
934
  let serialisedGraph = this.graph.serialize();
928
935
 
929
936
  // Delete an existing request graph cache, to prevent invalid states
930
937
  await this.options.cache.deleteLargeBlob(requestGraphKey);
931
- let total = 0;
932
938
  const serialiseAndSet = async (key, contents) => {
933
939
  if (signal !== null && signal !== void 0 && signal.aborted) {
934
940
  throw new Error('Serialization was aborted');
@@ -947,12 +953,6 @@ class RequestTracker {
947
953
  let queue = new (_utils().PromiseQueue)({
948
954
  maxConcurrent: 32
949
955
  });
950
- (0, _ReporterRunner.report)({
951
- type: 'cache',
952
- phase: 'start',
953
- total,
954
- size: this.graph.nodes.length
955
- });
956
956
 
957
957
  // Preallocating a sparse array is faster than pushing when N is high enough
958
958
  let cacheableNodes = new Array(serialisedGraph.nodes.length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.12.1-canary.3574+65610cf8c",
3
+ "version": "2.12.1-canary.3576+b62bf25eb",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,21 +20,21 @@
20
20
  "check-ts": "tsc --noEmit index.d.ts"
21
21
  },
22
22
  "dependencies": {
23
- "@atlaspack/build-cache": "2.12.1-canary.3574+65610cf8c",
24
- "@atlaspack/cache": "2.12.1-canary.3574+65610cf8c",
25
- "@atlaspack/diagnostic": "2.12.1-canary.3574+65610cf8c",
26
- "@atlaspack/events": "2.12.1-canary.3574+65610cf8c",
27
- "@atlaspack/feature-flags": "2.12.1-canary.3574+65610cf8c",
28
- "@atlaspack/fs": "2.12.1-canary.3574+65610cf8c",
29
- "@atlaspack/graph": "3.2.1-canary.3574+65610cf8c",
30
- "@atlaspack/logger": "2.12.1-canary.3574+65610cf8c",
31
- "@atlaspack/package-manager": "2.12.1-canary.3574+65610cf8c",
32
- "@atlaspack/plugin": "2.12.1-canary.3574+65610cf8c",
33
- "@atlaspack/profiler": "2.12.1-canary.3574+65610cf8c",
34
- "@atlaspack/rust": "2.12.1-canary.3574+65610cf8c",
35
- "@atlaspack/types": "2.12.1-canary.3574+65610cf8c",
36
- "@atlaspack/utils": "2.12.1-canary.3574+65610cf8c",
37
- "@atlaspack/workers": "2.12.1-canary.3574+65610cf8c",
23
+ "@atlaspack/build-cache": "2.12.1-canary.3576+b62bf25eb",
24
+ "@atlaspack/cache": "2.12.1-canary.3576+b62bf25eb",
25
+ "@atlaspack/diagnostic": "2.12.1-canary.3576+b62bf25eb",
26
+ "@atlaspack/events": "2.12.1-canary.3576+b62bf25eb",
27
+ "@atlaspack/feature-flags": "2.12.1-canary.3576+b62bf25eb",
28
+ "@atlaspack/fs": "2.12.1-canary.3576+b62bf25eb",
29
+ "@atlaspack/graph": "3.2.1-canary.3576+b62bf25eb",
30
+ "@atlaspack/logger": "2.12.1-canary.3576+b62bf25eb",
31
+ "@atlaspack/package-manager": "2.12.1-canary.3576+b62bf25eb",
32
+ "@atlaspack/plugin": "2.12.1-canary.3576+b62bf25eb",
33
+ "@atlaspack/profiler": "2.12.1-canary.3576+b62bf25eb",
34
+ "@atlaspack/rust": "2.12.1-canary.3576+b62bf25eb",
35
+ "@atlaspack/types": "2.12.1-canary.3576+b62bf25eb",
36
+ "@atlaspack/utils": "2.12.1-canary.3576+b62bf25eb",
37
+ "@atlaspack/workers": "2.12.1-canary.3576+b62bf25eb",
38
38
  "@mischnic/json-sourcemap": "^0.1.0",
39
39
  "@parcel/source-map": "^2.1.1",
40
40
  "base-x": "^3.0.8",
@@ -66,5 +66,5 @@
66
66
  "browser": {
67
67
  "./src/serializerCore.js": "./src/serializerCore.browser.js"
68
68
  },
69
- "gitHead": "65610cf8cb5fd42027a59849f58df2706388ac8d"
69
+ "gitHead": "b62bf25eb49634807a561f0978efc3f4d0642c71"
70
70
  }
@@ -1457,12 +1457,19 @@ export default class RequestTracker {
1457
1457
  return;
1458
1458
  }
1459
1459
 
1460
+ let total = 0;
1461
+ report({
1462
+ type: 'cache',
1463
+ phase: 'start',
1464
+ total,
1465
+ size: this.graph.nodes.length,
1466
+ });
1467
+
1460
1468
  let serialisedGraph = this.graph.serialize();
1461
1469
 
1462
1470
  // Delete an existing request graph cache, to prevent invalid states
1463
1471
  await this.options.cache.deleteLargeBlob(requestGraphKey);
1464
1472
 
1465
- let total = 0;
1466
1473
  const serialiseAndSet = async (
1467
1474
  key: string,
1468
1475
  // $FlowFixMe serialise input is any type
@@ -1496,13 +1503,6 @@ export default class RequestTracker {
1496
1503
  maxConcurrent: 32,
1497
1504
  });
1498
1505
 
1499
- report({
1500
- type: 'cache',
1501
- phase: 'start',
1502
- total,
1503
- size: this.graph.nodes.length,
1504
- });
1505
-
1506
1506
  // Preallocating a sparse array is faster than pushing when N is high enough
1507
1507
  let cacheableNodes = new Array(serialisedGraph.nodes.length);
1508
1508
  for (let i = 0; i < serialisedGraph.nodes.length; i += 1) {