Socket
Socket
Sign inDemoInstall

graphile-build

Package Overview
Dependencies
38
Maintainers
1
Versions
164
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.0-alpha.15 to 5.0.0-alpha.16

9

CHANGELOG.md
# graphile-build
## 5.0.0-alpha.16
### Patch Changes
- [#420](https://github.com/benjie/postgraphile-private/pull/420)
[`c1518fad0`](https://github.com/benjie/postgraphile-private/commit/c1518fad093dc53c033866541f378878aab69b5c)
Thanks [@benjie](https://github.com/benjie)! - Fix schema so it can run
without NodePlugin
## 5.0.0-alpha.15

@@ -4,0 +13,0 @@

4

dist/plugins/NodeAccessorPlugin.d.ts

@@ -10,4 +10,4 @@ import "graphile-config";

interface Build {
specForHandler(handler: NodeIdHandler, codec: NodeIdCodec): (nodeId: string) => any;
nodeFetcherByTypeName(typeName: string): NodeFetcher | null;
specForHandler?(handler: NodeIdHandler, codec: NodeIdCodec): (nodeId: string) => any;
nodeFetcherByTypeName?(typeName: string): NodeFetcher | null;
}

@@ -14,0 +14,0 @@ interface Inflection {

@@ -49,3 +49,5 @@ "use strict";

const { specForHandler } = finalBuild;
const handler = finalBuild.getNodeIdHandler(typeName);
if (!specForHandler)
return null;
const handler = finalBuild.getNodeIdHandler?.(typeName);
if (!handler)

@@ -76,2 +78,5 @@ return null;

}
if (!build.nodeFetcherByTypeName) {
return fields;
}
const typeNames = build.getNodeTypeNames();

@@ -78,0 +83,0 @@ const nodeIdFieldName = build.inflection.nodeIdFieldName();

@@ -9,13 +9,13 @@ import "graphile-config";

interface Build {
[NODE_ID_CODECS]: {
[NODE_ID_CODECS]?: {
[codecName: string]: NodeIdCodec;
};
[NODE_ID_HANDLER_BY_TYPE_NAME]: {
[NODE_ID_HANDLER_BY_TYPE_NAME]?: {
[typeName: string]: NodeIdHandler;
};
registerNodeIdCodec(codec: NodeIdCodec): void;
getNodeIdCodec(codecName: string): NodeIdCodec;
registerNodeIdHandler(matcher: NodeIdHandler): void;
getNodeIdHandler(typeName: string): NodeIdHandler | undefined;
getNodeTypeNames(): string[];
registerNodeIdCodec?(codec: NodeIdCodec): void;
getNodeIdCodec?(codecName: string): NodeIdCodec;
registerNodeIdHandler?(matcher: NodeIdHandler): void;
getNodeIdHandler?(typeName: string): NodeIdHandler | undefined;
getNodeTypeNames?(): string[];
}

@@ -22,0 +22,0 @@ interface ScopeObjectFieldsField {

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

export declare const version = "5.0.0-alpha.15";
export declare const version = "5.0.0-alpha.16";
//# sourceMappingURL=version.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

// This file is autogenerated by /scripts/postversion.mjs
exports.version = "5.0.0-alpha.15";
exports.version = "5.0.0-alpha.16";
//# sourceMappingURL=version.js.map
{
"name": "graphile-build",
"version": "5.0.0-alpha.15",
"version": "5.0.0-alpha.16",
"description": "Build a GraphQL schema from plugins",

@@ -5,0 +5,0 @@ "type": "commonjs",

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc