Socket
Socket
Sign inDemoInstall

postgraphile-core

Package Overview
Dependencies
75
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.8.0 to 4.9.0

14

node8plus/index.d.ts

@@ -7,3 +7,3 @@ import { Plugin, Options, SchemaListener, Build, Context, SchemaBuilder, Inflection } from "graphile-build";

export { Plugin, Build, Context, SchemaBuilder, SchemaListener, Inflection, Options, formatSQLForDebugging, };
export declare type mixed = {} | string | number | boolean | undefined | null;
export declare type mixed = Record<string, any> | string | number | boolean | undefined | null;
export interface PostGraphileCoreOptions {

@@ -46,3 +46,3 @@ dynamicJson?: boolean;

enableTags?: boolean;
readCache?: string | object;
readCache?: string | Record<string, any>;
writeCache?: string;

@@ -75,5 +75,5 @@ setWriteCacheCallback?: (fn: () => Promise<void>) => void;

export declare const PostGraphileClassicIdsInflectionPlugin: Plugin;
export declare const getPostGraphileBuilder: (pgConfig: PgConfig, schemas: string | string[], options?: PostGraphileCoreOptions) => Promise<SchemaBuilder>;
export declare const createPostGraphileSchema: (pgConfig: PgConfig, schemas: string | string[], options?: PostGraphileCoreOptions) => Promise<GraphQLSchema>;
export declare const watchPostGraphileSchema: (pgConfig: PgConfig, schemas: string | string[], options: PostGraphileCoreOptions | undefined, onNewSchema: SchemaListener) => Promise<() => Promise<void>>;
export declare const getPostGraphileBuilder: (pgConfig: PgConfig, schemas: string | Array<string>, options?: PostGraphileCoreOptions) => Promise<SchemaBuilder>;
export declare const createPostGraphileSchema: (pgConfig: PgConfig, schemas: Array<string> | string, options?: PostGraphileCoreOptions) => Promise<GraphQLSchema>;
export declare const watchPostGraphileSchema: (pgConfig: PgConfig, schemas: Array<string> | string, options: PostGraphileCoreOptions | undefined, onNewSchema: SchemaListener) => Promise<() => Promise<void>>;
export declare const postGraphQLBaseOverrides: {

@@ -87,3 +87,3 @@ enumName(value: string): any;

export declare const postGraphQLClassicIdsInflection: any;
export declare const createPostGraphQLSchema: (pgConfig: PgConfig, schemas: string | string[], options?: PostGraphileCoreOptions) => Promise<GraphQLSchema>;
export declare const watchPostGraphQLSchema: (pgConfig: PgConfig, schemas: string | string[], options: PostGraphileCoreOptions | undefined, onNewSchema: SchemaListener) => Promise<() => Promise<void>>;
export declare const createPostGraphQLSchema: (pgConfig: PgConfig, schemas: Array<string> | string, options?: PostGraphileCoreOptions) => Promise<GraphQLSchema>;
export declare const watchPostGraphQLSchema: (pgConfig: PgConfig, schemas: Array<string> | string, options: PostGraphileCoreOptions | undefined, onNewSchema: SchemaListener) => Promise<() => Promise<void>>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watchPostGraphQLSchema = exports.createPostGraphQLSchema = exports.postGraphQLClassicIdsInflection = exports.postGraphQLInflection = exports.postGraphQLClassicIdsOverrides = exports.postGraphQLBaseOverrides = exports.watchPostGraphileSchema = exports.createPostGraphileSchema = exports.getPostGraphileBuilder = exports.PostGraphileClassicIdsInflectionPlugin = exports.PostGraphileInflectionPlugin = exports.postGraphileClassicIdsInflection = exports.postGraphileInflection = exports.postGraphileClassicIdsOverrides = exports.postGraphileBaseOverrides = exports.inflections = exports.formatSQLForDebugging = exports.SchemaBuilder = void 0;
// @flow
const fs = require("fs");
const graphile_build_1 = require("graphile-build");
exports.SchemaBuilder = graphile_build_1.SchemaBuilder;
Object.defineProperty(exports, "SchemaBuilder", { enumerable: true, get: function () { return graphile_build_1.SchemaBuilder; } });
const graphile_build_pg_1 = require("graphile-build-pg");
exports.inflections = graphile_build_pg_1.inflections;
exports.formatSQLForDebugging = graphile_build_pg_1.formatSQLForDebugging;
Object.defineProperty(exports, "inflections", { enumerable: true, get: function () { return graphile_build_pg_1.inflections; } });
Object.defineProperty(exports, "formatSQLForDebugging", { enumerable: true, get: function () { return graphile_build_pg_1.formatSQLForDebugging; } });
const ensureValidPlugins = (name, arr) => {

@@ -73,3 +74,3 @@ if (!Array.isArray(arr)) {

exports.getPostGraphileBuilder = async (pgConfig, schemas, options = {}) => {
// @ts-ignore
// @ts-ignore Deprecated, doesn't exist on types, checking in JS only
if (options.inflector) {

@@ -76,0 +77,0 @@ throw new Error("Passing an inflector via PostGraphile options was deprecated in v4.0.0-beta.7; instead please write an inflector plugin: https://www.graphile.org/postgraphile/inflection/");

{
"name": "postgraphile-core",
"version": "4.8.0",
"version": "4.9.0",
"description": "",

@@ -22,17 +22,17 @@ "main": "node8plus/index.js",

"dependencies": {
"graphile-build": "4.8.0",
"graphile-build-pg": "4.8.0",
"tslib": "^1.13.0"
"graphile-build": "4.9.0",
"graphile-build-pg": "4.9.0",
"tslib": "^2.0.1"
},
"devDependencies": {
"@types/node": "^12.0.0",
"@types/node": "^14.6.4",
"@types/pg": "^7.4.14",
"debug": "^4.1.1",
"jest": "^24.8.0",
"jest-serializer-graphql-schema": "4.8.0",
"jest-silent-reporter": "^0.1.2",
"jest": "25.x",
"jest-serializer-graphql-schema": "4.9.0",
"jest-silent-reporter": "^0.2.1",
"jsonwebtoken": "^8.5.1",
"pg-connection-string": "^2.1.0",
"ts-node": "^8.1.0",
"typescript": "^3.4.5"
"ts-node": "^9.0.0",
"typescript": "^4.0.2"
},

@@ -50,3 +50,3 @@ "peerDependencies": {

},
"gitHead": "9bd73ee7d20c059856af8e8d347e3711ba1b0d72"
"gitHead": "a575f0ac46f7636e726ed9092a374aef65ef23eb"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc