Socket
Socket
Sign inDemoInstall

@pothos/plugin-directives

Package Overview
Dependencies
Maintainers
0
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pothos/plugin-directives - npm Package Compare versions

Comparing version 3.10.2 to 3.10.3

6

CHANGELOG.md
# Change Log
## 3.10.3
### Patch Changes
- 1ecea46: revert accidental pinning of graphql peer dependency
## 3.10.2

@@ -4,0 +10,0 @@

2

dts/index.d.ts

@@ -6,3 +6,3 @@ import './global-types';

export * from './types';
declare const pluginName: "directives";
declare const pluginName = "directives";
export default pluginName;

@@ -9,0 +9,0 @@ export declare class PothosDirectivesPlugin<Types extends SchemaTypes> extends BasePlugin<Types> {

@@ -6,3 +6,3 @@ import './global-types.js';

export * from './types.js';
declare const pluginName: "directives";
declare const pluginName = "directives";
export default pluginName;

@@ -9,0 +9,0 @@ export declare class PothosDirectivesPlugin<Types extends SchemaTypes> extends BasePlugin<Types> {

@@ -66,6 +66,6 @@ /* eslint-disable no-param-reassign */ import './global-types.js';

var _schema_extensions;
var _ref;
var _schema_extensions_directives;
schema.extensions = {
...schema.extensions,
directives: this.normalizeDirectives(this.mergeDirectives((_ref = (_schema_extensions = schema.extensions) === null || _schema_extensions === void 0 ? void 0 : _schema_extensions.directives) !== null && _ref !== void 0 ? _ref : {}, this.options.schemaDirectives))
directives: this.normalizeDirectives(this.mergeDirectives((_schema_extensions_directives = (_schema_extensions = schema.extensions) === null || _schema_extensions === void 0 ? void 0 : _schema_extensions.directives) !== null && _schema_extensions_directives !== void 0 ? _schema_extensions_directives : {}, this.options.schemaDirectives))
};

@@ -72,0 +72,0 @@ mockAst(schema);

@@ -12,21 +12,27 @@ /* eslint-disable no-param-reassign */ "use strict";

_export(exports, {
default: ()=>_default,
PothosDirectivesPlugin: ()=>PothosDirectivesPlugin
PothosDirectivesPlugin: function() {
return PothosDirectivesPlugin;
},
default: function() {
return _default;
}
});
require("./global-types");
const _core = /*#__PURE__*/ _interopRequireWildcard(require("@pothos/core"));
const _mockAst = /*#__PURE__*/ _interopRequireDefault(require("./mock-ast"));
_exportStar(require("./types"), exports);
function _exportStar(from, to) {
const _core = /*#__PURE__*/ _interop_require_wildcard(require("@pothos/core"));
const _mockast = /*#__PURE__*/ _interop_require_default(require("./mock-ast"));
_export_star(require("./types"), exports);
function _export_star(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];
}
});
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) {
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {

@@ -44,3 +50,3 @@ default: obj

}
function _interopRequireWildcard(obj, nodeInterop) {
function _interop_require_wildcard(obj, nodeInterop) {
if (!nodeInterop && obj && obj.__esModule) {

@@ -58,3 +64,5 @@ return obj;

}
var newObj = {};
var newObj = {
__proto__: null
};
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;

@@ -138,8 +146,8 @@ for(var key in obj){

var _schema_extensions;
var _ref;
var _schema_extensions_directives;
schema.extensions = {
...schema.extensions,
directives: this.normalizeDirectives(this.mergeDirectives((_ref = (_schema_extensions = schema.extensions) === null || _schema_extensions === void 0 ? void 0 : _schema_extensions.directives) !== null && _ref !== void 0 ? _ref : {}, this.options.schemaDirectives))
directives: this.normalizeDirectives(this.mergeDirectives((_schema_extensions_directives = (_schema_extensions = schema.extensions) === null || _schema_extensions === void 0 ? void 0 : _schema_extensions.directives) !== null && _schema_extensions_directives !== void 0 ? _schema_extensions_directives : {}, this.options.schemaDirectives))
};
(0, _mockAst.default)(schema);
(0, _mockast.default)(schema);
return schema;

@@ -146,0 +154,0 @@ }

@@ -7,3 +7,5 @@ /* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */ /* eslint-disable no-param-reassign */ "use strict";

enumerable: true,
get: ()=>mockAst
get: function() {
return mockAst;
}
});

@@ -32,3 +34,3 @@ require("./global-types");

}
].filter(({ node , operation })=>node && node.name !== `${operation[0].toUpperCase()}${operation.slice(1)}`).map(({ operation , node })=>({
].filter(({ node, operation })=>node && node.name !== `${operation[0].toUpperCase()}${operation.slice(1)}`).map(({ operation, node })=>({
kind: _graphql.Kind.OPERATION_TYPE_DEFINITION,

@@ -35,0 +37,0 @@ operation,

{
"name": "@pothos/plugin-directives",
"version": "3.10.2",
"version": "3.10.3",
"description": "Directive plugin for Pothos, enables using graphql-tools based directives with Pothos",

@@ -42,9 +42,9 @@ "main": "./lib/index.js",

"devDependencies": {
"@graphql-tools/utils": "^9.2.1",
"graphql": "16.6.0",
"graphql-rate-limit-directive": "^2.0.3",
"@graphql-tools/utils": "^10.2.0",
"graphql": "^16.8.1",
"graphql-rate-limit-directive": "^2.0.5",
"graphql-tag": "^2.12.6",
"rate-limiter-flexible": "^2.4.1",
"@pothos/core": "3.30.0",
"@pothos/test-utils": "1.4.8"
"rate-limiter-flexible": "^5.0.3",
"@pothos/core": "3.41.2",
"@pothos/test-utils": "1.4.9"
},

@@ -56,4 +56,4 @@ "gitHead": "9dfe52f1975f41a111e01bf96a20033a914e2acc",

"build:clean": "git clean -dfX esm lib",
"build:cjs": "swc src -d lib --config-file ../../.swcrc -C module.type=commonjs",
"build:esm": "cp -r dts/* esm/ && swc src -d esm --config-file ../../.swcrc -C module.type=es6 && pnpm esm:extensions",
"build:cjs": "swc src -d lib --config-file ../../.swcrc -C module.type=commonjs --strip-leading-paths",
"build:esm": "cp -r dts/* esm/ && swc src -d esm --config-file ../../.swcrc -C module.type=es6 --strip-leading-paths && pnpm esm:extensions",
"build:dts": "tsc",

@@ -60,0 +60,0 @@ "esm:extensions": "TS_NODE_PROJECT=../../tsconfig.json node -r @swc-node/register ../../scripts/esm-transformer.ts",

@@ -17,3 +17,3 @@ /* eslint-disable no-param-reassign */

const pluginName = 'directives' as const;
const pluginName = 'directives';

@@ -20,0 +20,0 @@ export default pluginName;

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc