graphql-compose-modules
Advanced tools
Comparing version 1.0.1 to 1.0.2
/// <reference types="node" /> | ||
import { requireSchemaDirectory, RequireOptions } from './requireSchemaDirectory'; | ||
import { requireAstToSchema, AstOptions } from './requireAstToSchema'; | ||
export interface BuildOptions extends RequireOptions, AstOptions { | ||
import { directoryToAst, Options } from './directoryToAst'; | ||
import { astToSchema, AstOptions } from './astToSchema'; | ||
export interface BuildOptions extends Options, AstOptions { | ||
} | ||
export declare function buildSchema(module: NodeModule, opts?: BuildOptions): import("graphql").GraphQLSchema; | ||
export declare function loadSchemaComposer(module: NodeModule, opts: BuildOptions): import("graphql-compose").SchemaComposer<any>; | ||
export { requireSchemaDirectory, requireAstToSchema }; | ||
export { directoryToAst, astToSchema }; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var requireSchemaDirectory_1 = require("./requireSchemaDirectory"); | ||
exports.requireSchemaDirectory = requireSchemaDirectory_1.requireSchemaDirectory; | ||
var requireAstToSchema_1 = require("./requireAstToSchema"); | ||
exports.requireAstToSchema = requireAstToSchema_1.requireAstToSchema; | ||
var directoryToAst_1 = require("./directoryToAst"); | ||
exports.directoryToAst = directoryToAst_1.directoryToAst; | ||
var astToSchema_1 = require("./astToSchema"); | ||
exports.astToSchema = astToSchema_1.astToSchema; | ||
function buildSchema(module, opts) { | ||
@@ -13,4 +13,4 @@ if (opts === void 0) { opts = {}; } | ||
function loadSchemaComposer(module, opts) { | ||
var ast = requireSchemaDirectory_1.requireSchemaDirectory(module, opts); | ||
var sc = requireAstToSchema_1.requireAstToSchema(ast, opts); | ||
var ast = directoryToAst_1.directoryToAst(module, opts); | ||
var sc = astToSchema_1.astToSchema(ast, opts); | ||
return sc; | ||
@@ -17,0 +17,0 @@ } |
{ | ||
"name": "graphql-compose-modules", | ||
"license": "MIT", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A toolset for construction GraphQL Schema via file structure", | ||
@@ -50,3 +50,3 @@ "repository": "https://github.com/graphql-compose/graphql-compose-modules", | ||
"start-example2": "cd ./examples/simpleNamespaces && yarn install && yarn watch", | ||
"start-example3": "cd ./examples/forTests && yarn install && yarn watch" | ||
"start-example3": "cd ./examples/testSchema && yarn install && yarn watch" | ||
}, | ||
@@ -53,0 +53,0 @@ "collective": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
34810
400
1