@pothos/plugin-scope-auth
Advanced tools
Comparing version 0.0.0-preview-20220211212258 to 0.0.0-preview-20220211214221
# Change Log | ||
## 0.0.0-preview-20220211212258 | ||
## 0.0.0-preview-20220211214221 | ||
### Minor Changes | ||
- 82b27b07: Add runScopesOnType option for better type level auth checks | ||
- 5ade1c8c: Add runScopesOnType option for better type level auth checks | ||
- 4ad5f4ff: Add cacheKey option | ||
@@ -9,0 +9,0 @@ - 4ad5f4ff: Normalize resloveType and isTypeOf behavior to match graphql spec behavir and allow both |
@@ -91,5 +91,5 @@ import './global-types.js'; | ||
? this.createStepsForType(typeConfig, { | ||
skipTypeScopes: (_a = ((fieldConfig.kind === "Interface" || fieldConfig.kind === "Object") && | ||
skipTypeScopes: (_a = ((fieldConfig.graphqlKind === "Interface" || fieldConfig.graphqlKind === "Object") && | ||
fieldConfig.pothosOptions.skipTypeScopes)) !== null && _a !== void 0 ? _a : false, | ||
skipInterfaceScopes: (_b = ((fieldConfig.kind === "Interface" || fieldConfig.kind === "Object") && | ||
skipInterfaceScopes: (_b = ((fieldConfig.graphqlKind === "Interface" || fieldConfig.kind === "Object") && | ||
fieldConfig.pothosOptions.skipInterfaceScopes)) !== null && _b !== void 0 ? _b : false, | ||
@@ -96,0 +96,0 @@ forField: true, |
@@ -116,5 +116,5 @@ "use strict"; | ||
? this.createStepsForType(typeConfig, { | ||
skipTypeScopes: (_a = ((fieldConfig.kind === 'Interface' || fieldConfig.kind === 'Object') && | ||
skipTypeScopes: (_a = ((fieldConfig.graphqlKind === 'Interface' || fieldConfig.graphqlKind === 'Object') && | ||
fieldConfig.pothosOptions.skipTypeScopes)) !== null && _a !== void 0 ? _a : false, | ||
skipInterfaceScopes: (_b = ((fieldConfig.kind === 'Interface' || fieldConfig.kind === 'Object') && | ||
skipInterfaceScopes: (_b = ((fieldConfig.graphqlKind === 'Interface' || fieldConfig.kind === 'Object') && | ||
fieldConfig.pothosOptions.skipInterfaceScopes)) !== null && _b !== void 0 ? _b : false, | ||
@@ -121,0 +121,0 @@ forField: true, |
{ | ||
"name": "@pothos/plugin-scope-auth", | ||
"version": "0.0.0-preview-20220211212258", | ||
"version": "0.0.0-preview-20220211214221", | ||
"description": "A Pothos plugin for adding scope based authorization checks to your GraphQL Schema", | ||
@@ -38,3 +38,3 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@pothos/core": "0.0.0-preview-20220211212258", | ||
"@pothos/core": "0.0.0-preview-20220211214221", | ||
"@pothos/test-utils": "1.0.1", | ||
@@ -41,0 +41,0 @@ "graphql": "16.3.0", |
@@ -197,7 +197,7 @@ import './global-types'; | ||
skipTypeScopes: | ||
((fieldConfig.kind === 'Interface' || fieldConfig.kind === 'Object') && | ||
((fieldConfig.graphqlKind === 'Interface' || fieldConfig.graphqlKind === 'Object') && | ||
fieldConfig.pothosOptions.skipTypeScopes) ?? | ||
false, | ||
skipInterfaceScopes: | ||
((fieldConfig.kind === 'Interface' || fieldConfig.kind === 'Object') && | ||
((fieldConfig.graphqlKind === 'Interface' || fieldConfig.kind === 'Object') && | ||
fieldConfig.pothosOptions.skipInterfaceScopes) ?? | ||
@@ -204,0 +204,0 @@ false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
309742
83