@atlaspack/core 2.12.1-canary.3387 → 2.12.1-canary.3389

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.
@@ -129,12 +129,11 @@ function getAssetGraph(serializedGraph, options) {
129
129
  value: null
130
130
  });
131
131
  } else if (node.type === 'asset') {
132
- let id = node.value.id;
133
- let asset = node.value.asset;
132
+ let asset = node.value;
133
+ let id = asset.id;
134
134
  asset.meta.id = id;
135
135
  asset = {
136
136
  ...asset,
137
- id,
138
137
  env: {
139
138
  ...asset.env,
140
139
  sourceType: sourceTypeLookup[asset.env.sourceType]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.12.1-canary.3387+0a600cb70",
3
+ "version": "2.12.1-canary.3389+f3f45390a",
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-canary.3387+0a600cb70",
24
- "@atlaspack/diagnostic": "2.12.1-canary.3387+0a600cb70",
25
- "@atlaspack/events": "2.12.1-canary.3387+0a600cb70",
26
- "@atlaspack/feature-flags": "2.12.1-canary.3387+0a600cb70",
27
- "@atlaspack/fs": "2.12.1-canary.3387+0a600cb70",
28
- "@atlaspack/graph": "3.2.1-canary.3387+0a600cb70",
29
- "@atlaspack/logger": "2.12.1-canary.3387+0a600cb70",
30
- "@atlaspack/package-manager": "2.12.1-canary.3387+0a600cb70",
31
- "@atlaspack/plugin": "2.12.1-canary.3387+0a600cb70",
32
- "@atlaspack/profiler": "2.12.1-canary.3387+0a600cb70",
33
- "@atlaspack/rust": "2.12.1-canary.3387+0a600cb70",
34
- "@atlaspack/types": "2.12.1-canary.3387+0a600cb70",
35
- "@atlaspack/utils": "2.12.1-canary.3387+0a600cb70",
36
- "@atlaspack/workers": "2.12.1-canary.3387+0a600cb70",
23
+ "@atlaspack/cache": "2.12.1-canary.3389+f3f45390a",
24
+ "@atlaspack/diagnostic": "2.12.1-canary.3389+f3f45390a",
25
+ "@atlaspack/events": "2.12.1-canary.3389+f3f45390a",
26
+ "@atlaspack/feature-flags": "2.12.1-canary.3389+f3f45390a",
27
+ "@atlaspack/fs": "2.12.1-canary.3389+f3f45390a",
28
+ "@atlaspack/graph": "3.2.1-canary.3389+f3f45390a",
29
+ "@atlaspack/logger": "2.12.1-canary.3389+f3f45390a",
30
+ "@atlaspack/package-manager": "2.12.1-canary.3389+f3f45390a",
31
+ "@atlaspack/plugin": "2.12.1-canary.3389+f3f45390a",
32
+ "@atlaspack/profiler": "2.12.1-canary.3389+f3f45390a",
33
+ "@atlaspack/rust": "2.12.1-canary.3389+f3f45390a",
34
+ "@atlaspack/types": "2.12.1-canary.3389+f3f45390a",
35
+ "@atlaspack/utils": "2.12.1-canary.3389+f3f45390a",
36
+ "@atlaspack/workers": "2.12.1-canary.3389+f3f45390a",
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": "0a600cb7070becc8626f8a1dc5ef4861174da6b3"
58
+ "gitHead": "f3f45390a87f524afd255e783b7b9648b1b81290"
59
59
  }
@@ -124,6 +124,7 @@ function getAssetGraph(serializedGraph, options) {
124
124
  let cachedAssets = new Map();
125
125
  let changedAssets = new Map();
126
126
  let entry = 0;
127
+
127
128
  for (let node of serializedGraph.nodes) {
128
129
  if (node.type === 'root') {
129
130
  let index = graph.addNodeByContentKey('@@root', {
@@ -142,13 +143,13 @@ function getAssetGraph(serializedGraph, options) {
142
143
  value: null,
143
144
  });
144
145
  } else if (node.type === 'asset') {
145
- let id = node.value.id;
146
- let asset = node.value.asset;
146
+ let asset = node.value;
147
+ let id = asset.id;
148
+
147
149
  asset.meta.id = id;
148
150
 
149
151
  asset = {
150
152
  ...asset,
151
- id,
152
153
  env: {
153
154
  ...asset.env,
154
155
  sourceType: sourceTypeLookup[asset.env.sourceType],