Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pothos/plugin-relay

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pothos/plugin-relay - npm Package Compare versions

Comparing version 3.16.0 to 3.17.0

10

CHANGELOG.md
# Change Log
## 3.17.0
### Minor Changes
- 3a7ff291: Refactor internal imports to remove import cycles
### Patch Changes
- 3a7ff291: Update dev dependencies
## 3.16.0

@@ -4,0 +14,0 @@

2

dts/global-types.d.ts
import { FieldKind, FieldNullability, FieldOptionsFromKind, FieldRef, FieldRequiredness, InputFieldMap, InputFieldRef, InputFieldsFromShape, InputShapeFromFields, InputShapeFromTypeParam, inputShapeKey, InterfaceParam, NormalizeArgs, ObjectFieldsShape, ObjectFieldThunk, ObjectParam, OutputShape, OutputType, ParentShape, Resolver, SchemaTypes, ShapeFromTypeParam } from '@pothos/core';
import { ConnectionShape, ConnectionShapeForType, ConnectionShapeFromResolve, GlobalIDFieldOptions, GlobalIDInputFieldOptions, GlobalIDInputShape, GlobalIDListFieldOptions, GlobalIDListInputFieldOptions, InputShapeWithClientMutationId, NodeFieldOptions, NodeListFieldOptions, NodeObjectOptions, PageInfoShape, RelayMutationFieldOptions, RelayMutationInputOptions, RelayMutationPayloadOptions, RelayPluginOptions } from './types';
import { DefaultEdgesNullability, PothosRelayPlugin } from '.';
import type { DefaultEdgesNullability, PothosRelayPlugin } from '.';
declare global {

@@ -5,0 +5,0 @@ export namespace PothosSchemaTypes {

@@ -1,2 +0,2 @@

import SchemaBuilder, { createContextCache, getTypeBrand, InputObjectRef, ObjectRef, verifyRef } from '@pothos/core';
/* eslint-disable @typescript-eslint/no-unsafe-return */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ import SchemaBuilder, { createContextCache, getTypeBrand, InputObjectRef, ObjectRef, verifyRef } from '@pothos/core';
import { capitalize, resolveNodes } from './utils/index.js';

@@ -3,0 +3,0 @@ const schemaBuilderProto = SchemaBuilder.prototype;

@@ -7,9 +7,9 @@ "use strict";

for(var name in all)Object.defineProperty(target, name, {
get: all[name],
enumerable: true
enumerable: true,
get: all[name]
});
}
_export(exports, {
PothosRelayPlugin: ()=>PothosRelayPlugin,
default: ()=>_default
default: ()=>_default,
PothosRelayPlugin: ()=>PothosRelayPlugin
});

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

require("./schema-builder");
const _core = _interopRequireWildcard(require("@pothos/core"));
const _core = /*#__PURE__*/ _interopRequireWildcard(require("@pothos/core"));
const _internal = require("./utils/internal");

@@ -36,12 +36,12 @@ _exportStar(require("./types"), exports);

}
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 = 'relay';
var _default = pluginName;
const _default = pluginName;
class PothosRelayPlugin extends _core.BasePlugin {

@@ -82,0 +82,0 @@ wrapResolve(resolver, fieldConfig) {

@@ -1,2 +0,2 @@

"use strict";
/* eslint-disable @typescript-eslint/no-unsafe-return */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ "use strict";
Object.defineProperty(exports, "__esModule", {

@@ -7,4 +7,4 @@ value: true

for(var name in all)Object.defineProperty(target, name, {
get: all[name],
enumerable: true
enumerable: true,
get: all[name]
});

@@ -16,14 +16,14 @@ }

});
const _core = _interopRequireWildcard(require("@pothos/core"));
const _core = /*#__PURE__*/ _interopRequireWildcard(require("@pothos/core"));
const _utils = require("./utils");
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;

@@ -36,3 +36,3 @@ }

}
var cache = _getRequireWildcardCache();
var cache = _getRequireWildcardCache(nodeInterop);
if (cache && cache.has(obj)) {

@@ -44,3 +44,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;

@@ -47,0 +47,0 @@ if (desc && (desc.get || desc.set)) {

@@ -7,12 +7,12 @@ "use strict";

for(var name in all)Object.defineProperty(target, name, {
get: all[name],
enumerable: true
enumerable: true,
get: all[name]
});
}
_export(exports, {
resolveOffsetConnection: ()=>resolveOffsetConnection,
cursorToOffset: ()=>cursorToOffset,
offsetToCursor: ()=>offsetToCursor,
resolveArrayConnection: ()=>resolveArrayConnection,
resolveCursorConnection: ()=>resolveCursorConnection,
resolveOffsetConnection: ()=>resolveOffsetConnection
resolveCursorConnection: ()=>resolveCursorConnection
});

@@ -19,0 +19,0 @@ const OFFSET_CURSOR_PREFIX = 'OffsetConnection:';

@@ -7,10 +7,10 @@ "use strict";

for(var name in all)Object.defineProperty(target, name, {
get: all[name],
enumerable: true
enumerable: true,
get: all[name]
});
}
_export(exports, {
capitalize: ()=>capitalize,
encodeGlobalID: ()=>encodeGlobalID,
decodeGlobalID: ()=>decodeGlobalID,
encodeGlobalID: ()=>encodeGlobalID
capitalize: ()=>capitalize
});

@@ -17,0 +17,0 @@ _exportStar(require("./connections"), exports);

@@ -7,9 +7,9 @@ "use strict";

for(var name in all)Object.defineProperty(target, name, {
get: all[name],
enumerable: true
enumerable: true,
get: all[name]
});
}
_export(exports, {
internalDecodeGlobalID: ()=>internalDecodeGlobalID,
internalEncodeGlobalID: ()=>internalEncodeGlobalID
internalEncodeGlobalID: ()=>internalEncodeGlobalID,
internalDecodeGlobalID: ()=>internalDecodeGlobalID
});

@@ -16,0 +16,0 @@ const _ = require(".");

@@ -7,4 +7,4 @@ "use strict";

for(var name in all)Object.defineProperty(target, name, {
get: all[name],
enumerable: true
enumerable: true,
get: all[name]
});

@@ -11,0 +11,0 @@ }

{
"name": "@pothos/plugin-relay",
"version": "3.16.0",
"version": "3.17.0",
"description": "A Pothos plugin for adding relay style connections, nodes, and cursor based pagination to your GraphQL schema",

@@ -40,5 +40,5 @@ "main": "./lib/index.js",

"devDependencies": {
"@pothos/core": "3.12.1",
"@pothos/plugin-complexity": "3.4.0",
"@pothos/test-utils": "1.2.3",
"@pothos/core": "3.13.0",
"@pothos/plugin-complexity": "3.6.0",
"@pothos/test-utils": "1.3.0",
"graphql": "16.5.0",

@@ -45,0 +45,0 @@ "graphql-subscriptions": "^2.0.0",

@@ -44,4 +44,5 @@ import {

} from './types';
import { DefaultEdgesNullability, PothosRelayPlugin } from '.';
import type { DefaultEdgesNullability, PothosRelayPlugin } from '.';
declare global {

@@ -48,0 +49,0 @@ export namespace PothosSchemaTypes {

{
"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

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