@atlaspack/transformer-graphql 2.14.5-canary.9 → 2.14.5-dev.55

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/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @atlaspack/transformer-graphql
2
2
 
3
+ ## 2.14.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/plugin@2.14.9
9
+
10
+ ## 2.14.8
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies []:
15
+ - @atlaspack/plugin@2.14.8
16
+
17
+ ## 2.14.7
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies []:
22
+ - @atlaspack/plugin@2.14.7
23
+
24
+ ## 2.14.6
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies []:
29
+ - @atlaspack/plugin@2.14.6
30
+
31
+ ## 2.14.5
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies []:
36
+ - @atlaspack/plugin@2.14.5
37
+
3
38
  ## 2.14.4
4
39
 
5
40
  ### Patch Changes
@@ -32,11 +32,12 @@ var _default = exports.default = new (_plugin().Transformer)({
32
32
  resolve
33
33
  }) {
34
34
  const document = (0, _graphql().parse)(new (_graphql().Source)(await asset.getCode(), asset.filePath));
35
- const expandedDocument = await (0, _graphqlImportMacro().processDocumentImports)(document, async function loadImport(to, from) {
35
+ const expandedDocument = await (0, _graphqlImportMacro().processDocumentImports)(document, loadImport);
36
+ async function loadImport(to, from) {
36
37
  const filePath = await resolve(to, from);
37
38
  asset.invalidateOnFileChange(filePath);
38
39
  return (0, _graphql().parse)(new (_graphql().Source)(await options.inputFS.readFile(filePath, 'utf-8'), filePath));
39
- });
40
+ }
40
41
  const generated = asset.env.shouldOptimize ? (0, _graphql().stripIgnoredCharacters)((0, _graphql().print)(expandedDocument)) : (0, _graphql().print)(expandedDocument);
41
42
  asset.type = 'js';
42
43
  asset.setCode(`module.exports=${JSON.stringify(generated)};`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/transformer-graphql",
3
- "version": "2.14.5-canary.9+4c1714103",
3
+ "version": "2.14.5-dev.55+5a11f33c5",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,10 +15,10 @@
15
15
  "node": ">= 16.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@atlaspack/plugin": "2.14.5-canary.9+4c1714103",
18
+ "@atlaspack/plugin": "2.14.5-dev.55+5a11f33c5",
19
19
  "graphql": "^15.0.0",
20
20
  "graphql-import-macro": "^1.0.0"
21
21
  },
22
22
  "type": "commonjs",
23
- "gitHead": "4c1714103dab2aa9039c488f381551d2b65d1d01"
23
+ "gitHead": "5a11f33c51ff74d1cf8d4b72cfa0fda833aa980a"
24
24
  }