@atlaspack/transformer-graphql 2.14.16-typescript-8a6ec6c8b.0 → 2.14.17-unified-308e6415c.0

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,12 @@
1
1
  # @atlaspack/transformer-graphql
2
2
 
3
+ ## 2.14.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/plugin@2.14.16
9
+
3
10
  ## 2.14.15
4
11
 
5
12
  ### Patch Changes
@@ -32,12 +32,11 @@ 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, loadImport);
36
- async function loadImport(to, from) {
35
+ const expandedDocument = await (0, _graphqlImportMacro().processDocumentImports)(document, async function loadImport(to, from) {
37
36
  const filePath = await resolve(to, from);
38
37
  asset.invalidateOnFileChange(filePath);
39
38
  return (0, _graphql().parse)(new (_graphql().Source)(await options.inputFS.readFile(filePath, 'utf-8'), filePath));
40
- }
39
+ });
41
40
  const generated = asset.env.shouldOptimize ? (0, _graphql().stripIgnoredCharacters)((0, _graphql().print)(expandedDocument)) : (0, _graphql().print)(expandedDocument);
42
41
  asset.type = 'js';
43
42
  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.16-typescript-8a6ec6c8b.0",
3
+ "version": "2.14.17-unified-308e6415c.0",
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.16-typescript-8a6ec6c8b.0",
18
+ "@atlaspack/plugin": "2.14.17-unified-308e6415c.0",
19
19
  "graphql": "^15.0.0",
20
20
  "graphql-import-macro": "^1.0.0"
21
21
  },
22
22
  "type": "commonjs",
23
- "gitHead": "8a6ec6c8bed0bbf5461f5b0f899577a576906051"
23
+ "gitHead": "308e6415c9da9c8d08944fe7dabb27dc47de1cc4"
24
24
  }