@pothos/plugin-directives
Advanced tools
Comparing version 3.4.2 to 3.4.3
# Change Log | ||
## 3.4.3 | ||
### Patch Changes | ||
- 7311904e: Update dev deps | ||
## 3.4.2 | ||
@@ -4,0 +10,0 @@ |
@@ -5,21 +5,27 @@ "use strict"; | ||
}); | ||
var _exportNames = { | ||
PothosDirectivesPlugin: true | ||
}; | ||
exports.default = void 0; | ||
function _export(target, all) { | ||
for(var name in all)Object.defineProperty(target, name, { | ||
get: all[name], | ||
enumerable: true | ||
}); | ||
} | ||
_export(exports, { | ||
PothosDirectivesPlugin: ()=>PothosDirectivesPlugin, | ||
default: ()=>_default | ||
}); | ||
require("./global-types"); | ||
var _core = _interopRequireWildcard(require("@pothos/core")); | ||
var _mockAst = _interopRequireDefault(require("./mock-ast")); | ||
var _types = _interopRequireWildcard(require("./types")); | ||
Object.keys(_types).forEach(function(key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _types[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function() { | ||
return _types[key]; | ||
} | ||
const _core = _interopRequireWildcard(require("@pothos/core")); | ||
const _mockAst = _interopRequireDefault(require("./mock-ast")); | ||
_exportStar(require("./types"), exports); | ||
function _exportStar(from, to) { | ||
Object.keys(from).forEach(function(k) { | ||
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) Object.defineProperty(to, k, { | ||
enumerable: true, | ||
get: function() { | ||
return from[k]; | ||
} | ||
}); | ||
}); | ||
}); | ||
return from; | ||
} | ||
function _interopRequireDefault(obj) { | ||
@@ -71,3 +77,2 @@ return obj && obj.__esModule ? obj : { | ||
var _default = pluginName; | ||
exports.default = _default; | ||
class PothosDirectivesPlugin extends _core.BasePlugin { | ||
@@ -131,3 +136,3 @@ onOutputFieldConfig(fieldConfig) { | ||
afterBuild(schema) { | ||
(0, _mockAst).default(schema); | ||
(0, _mockAst.default)(schema); | ||
return schema; | ||
@@ -177,5 +182,4 @@ } | ||
} | ||
exports.PothosDirectivesPlugin = PothosDirectivesPlugin; | ||
_core.default.registerPlugin(pluginName, PothosDirectivesPlugin); | ||
//# sourceMappingURL=index.js.map |
@@ -5,5 +5,8 @@ "use strict"; | ||
}); | ||
exports.default = mockAst; | ||
Object.defineProperty(exports, "default", { | ||
get: ()=>mockAst, | ||
enumerable: true | ||
}); | ||
require("./global-types"); | ||
var _graphql = require("graphql"); | ||
const _graphql = require("graphql"); | ||
function mockAst(schema) { | ||
@@ -154,3 +157,3 @@ const types = schema.getTypeMap(); | ||
default: | ||
return (0, _graphql).parseValue(JSON.stringify(value)); | ||
return (0, _graphql.parseValue)(JSON.stringify(value)); | ||
} | ||
@@ -157,0 +160,0 @@ } |
{ | ||
"name": "@pothos/plugin-directives", | ||
"version": "3.4.2", | ||
"version": "3.4.3", | ||
"description": "Directive plugin for Pothos, enables using graphql-tools based directives with Pothos", | ||
@@ -37,4 +37,4 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@graphql-tools/utils": "^8.7.0", | ||
"@pothos/core": "3.12.0", | ||
"@graphql-tools/utils": "^8.8.0", | ||
"@pothos/core": "3.12.1", | ||
"@pothos/test-utils": "1.2.3", | ||
@@ -41,0 +41,0 @@ "graphql": "16.5.0", |
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
156522
1430