@pothos/plugin-directives
Advanced tools
Comparing version 3.4.3 to 3.5.0
# Change Log | ||
## 3.5.0 | ||
### Minor Changes | ||
- 3a7ff291: Refactor internal imports to remove import cycles | ||
### Patch Changes | ||
- 3a7ff291: Update dev dependencies | ||
## 3.4.3 | ||
@@ -4,0 +14,0 @@ |
import { EnumValues, FieldNullability, FieldRequiredness, InputFieldMap, InputType, InterfaceParam, ObjectParam, RootName, SchemaTypes, TypeParam } from '@pothos/core'; | ||
import { DirectiveLocation, Directives } from './types'; | ||
import { PothosDirectivesPlugin } from '.'; | ||
import type { PothosDirectivesPlugin } from '.'; | ||
declare global { | ||
@@ -5,0 +5,0 @@ export namespace PothosSchemaTypes { |
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -3,0 +3,0 @@ value: true |
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
/* eslint-disable no-param-reassign */ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -7,13 +7,13 @@ value: true | ||
for(var name in all)Object.defineProperty(target, name, { | ||
get: all[name], | ||
enumerable: true | ||
enumerable: true, | ||
get: all[name] | ||
}); | ||
} | ||
_export(exports, { | ||
PothosDirectivesPlugin: ()=>PothosDirectivesPlugin, | ||
default: ()=>_default | ||
default: ()=>_default, | ||
PothosDirectivesPlugin: ()=>PothosDirectivesPlugin | ||
}); | ||
require("./global-types"); | ||
const _core = _interopRequireWildcard(require("@pothos/core")); | ||
const _mockAst = _interopRequireDefault(require("./mock-ast")); | ||
const _core = /*#__PURE__*/ _interopRequireWildcard(require("@pothos/core")); | ||
const _mockAst = /*#__PURE__*/ _interopRequireDefault(require("./mock-ast")); | ||
_exportStar(require("./types"), exports); | ||
@@ -36,12 +36,12 @@ function _exportStar(from, to) { | ||
} | ||
function _getRequireWildcardCache() { | ||
function _getRequireWildcardCache(nodeInterop) { | ||
if (typeof WeakMap !== "function") return null; | ||
var cache = new WeakMap(); | ||
_getRequireWildcardCache = function() { | ||
return cache; | ||
}; | ||
return cache; | ||
var cacheBabelInterop = new WeakMap(); | ||
var cacheNodeInterop = new WeakMap(); | ||
return (_getRequireWildcardCache = function(nodeInterop) { | ||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop; | ||
})(nodeInterop); | ||
} | ||
function _interopRequireWildcard(obj) { | ||
if (obj && obj.__esModule) { | ||
function _interopRequireWildcard(obj, nodeInterop) { | ||
if (!nodeInterop && obj && obj.__esModule) { | ||
return obj; | ||
@@ -54,3 +54,3 @@ } | ||
} | ||
var cache = _getRequireWildcardCache(); | ||
var cache = _getRequireWildcardCache(nodeInterop); | ||
if (cache && cache.has(obj)) { | ||
@@ -62,3 +62,3 @@ return cache.get(obj); | ||
for(var key in obj){ | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; | ||
@@ -79,3 +79,3 @@ if (desc && (desc.get || desc.set)) { | ||
const pluginName = 'directives'; | ||
var _default = pluginName; | ||
const _default = pluginName; | ||
class PothosDirectivesPlugin extends _core.BasePlugin { | ||
@@ -82,0 +82,0 @@ onOutputFieldConfig(fieldConfig) { |
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */ /* eslint-disable no-param-reassign */ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -6,4 +6,4 @@ value: true | ||
Object.defineProperty(exports, "default", { | ||
get: ()=>mockAst, | ||
enumerable: true | ||
enumerable: true, | ||
get: ()=>mockAst | ||
}); | ||
@@ -10,0 +10,0 @@ require("./global-types"); |
{ | ||
"name": "@pothos/plugin-directives", | ||
"version": "3.4.3", | ||
"version": "3.5.0", | ||
"description": "Directive plugin for Pothos, enables using graphql-tools based directives with Pothos", | ||
@@ -38,4 +38,4 @@ "main": "./lib/index.js", | ||
"@graphql-tools/utils": "^8.8.0", | ||
"@pothos/core": "3.12.1", | ||
"@pothos/test-utils": "1.2.3", | ||
"@pothos/core": "3.13.0", | ||
"@pothos/test-utils": "1.3.0", | ||
"graphql": "16.5.0", | ||
@@ -42,0 +42,0 @@ "graphql-rate-limit-directive": "^2.0.2", |
@@ -15,4 +15,5 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ | ||
import { DirectiveLocation, Directives } from './types'; | ||
import { PothosDirectivesPlugin } from '.'; | ||
import type { PothosDirectivesPlugin } from '.'; | ||
declare global { | ||
@@ -19,0 +20,0 @@ export namespace PothosSchemaTypes { |
@@ -34,3 +34,3 @@ /* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */ | ||
} from 'graphql'; | ||
import { DirectiveList } from './types'; | ||
import type { DirectiveList } from './types'; | ||
@@ -37,0 +37,0 @@ export default function mockAst(schema: GraphQLSchema) { |
{ | ||
"compilerOptions": { | ||
"skipLibCheck": true, | ||
"skipLibCheck": false | ||
}, | ||
@@ -8,4 +8,4 @@ "extends": "../../tsconfig.options.json", | ||
"src/**/*", | ||
"tests/**/*", | ||
"tests/**/*" | ||
] | ||
} | ||
} |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157232
1431