@graphcommerce/magento-graphql 6.2.0-canary.48 → 6.2.0-canary.49
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 +2 -0
- package/package.json +5 -5
- package/plugins/magentoGraphqlConfig.ts +4 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-graphql",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "6.2.0-canary.
|
|
5
|
+
"version": "6.2.0-canary.49",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "index.ts",
|
|
8
8
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "6.2.0-canary.
|
|
17
|
-
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.
|
|
18
|
-
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "6.2.0-canary.49",
|
|
17
|
+
"@graphcommerce/prettier-config-pwa": "6.2.0-canary.49",
|
|
18
|
+
"@graphcommerce/typescript-config-pwa": "6.2.0-canary.49"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@graphcommerce/graphql": "6.2.0-canary.
|
|
21
|
+
"@graphcommerce/graphql": "6.2.0-canary.49"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"next": "^13.2.0",
|
|
@@ -5,7 +5,9 @@ import { magentoTypePolicies } from '../typePolicies'
|
|
|
5
5
|
export const func = 'graphqlConfig'
|
|
6
6
|
export const exported = '@graphcommerce/graphql/config'
|
|
7
7
|
|
|
8
|
-
const magentoGraphqlConfig: MethodPlugin<typeof graphqlConfig> = (prev, config) =>
|
|
9
|
-
|
|
8
|
+
const magentoGraphqlConfig: MethodPlugin<typeof graphqlConfig> = (prev, config) => {
|
|
9
|
+
const results = prev(config)
|
|
10
|
+
return { ...results, policies: [magentoTypePolicies, ...results.policies] }
|
|
11
|
+
}
|
|
10
12
|
|
|
11
13
|
export const plugin = magentoGraphqlConfig
|