New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@raynode/graphql-connector

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@raynode/graphql-connector - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

8

lib/base-schema-generator.d.ts

@@ -1,5 +0,5 @@

import { AnyModel } from 'model';
import { GeneratedModelMapper } from 'model-mapper';
import { NamingStrategy } from 'naming-strategy';
import { TypeMapper } from 'type-converter';
import { AnyModel } from './model';
import { GeneratedModelMapper } from './model-mapper';
import { NamingStrategy } from './naming-strategy';
import { TypeMapper } from './type-converter';
export declare type ModelList<Types, Models> = Array<AnyModel<Types, Models>>;

@@ -6,0 +6,0 @@ export interface GeneratorConfiguration<Types, Models> extends PartialGeneratorConfiguration<Types, Models> {

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

Object.defineProperty(exports, "__esModule", { value: true });
var generic_types_1 = require("generic-types");
var naming_strategy_1 = require("naming-strategy");
var type_converter_1 = require("type-converter");
var generic_types_1 = require("./generic-types");
var naming_strategy_1 = require("./naming-strategy");
var type_converter_1 = require("./type-converter");
var graphql_1 = require("graphql");

@@ -19,0 +19,0 @@ exports.createBaseSchemaGenerator = function (partialConfiguration) {

@@ -1,6 +0,6 @@

export * from 'base-schema-generator';
export * from 'naming-strategy';
export * from 'type-converter';
export * from 'model';
export * from 'model-mapper';
export * from 'utils';
export * from './base-schema-generator';
export * from './naming-strategy';
export * from './type-converter';
export * from './model';
export * from './model-mapper';
export * from './utils';

@@ -6,8 +6,8 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__export(require("base-schema-generator"));
__export(require("naming-strategy"));
__export(require("type-converter"));
__export(require("model"));
__export(require("model-mapper"));
__export(require("utils"));
__export(require("./base-schema-generator"));
__export(require("./naming-strategy"));
__export(require("./type-converter"));
__export(require("./model"));
__export(require("./model-mapper"));
__export(require("./utils"));
//# sourceMappingURL=index.js.map

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

import { AnyModel, PartialAssociation, PartialAttribute } from 'model';
import { AnyModel, PartialAssociation, PartialAttribute } from './model';
export declare type ModelMapperFn<Types, Models> = <Key extends keyof Models>(model: Models[Key], addAttribute: (attribute: PartialAttribute<Types>) => void, addAssociation: (association: PartialAssociation<keyof Models>) => void) => void;

@@ -3,0 +3,0 @@ export declare type GeneratedModelMapper<Types, Models> = <Key extends keyof Models>(key: Key, model: Models[Key]) => AnyModel<Types, Models, Models[Key]>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var model_1 = require("model");
var model_1 = require("./model");
exports.createModelMapper = function (mapper) {

@@ -5,0 +5,0 @@ var creator = model_1.modelCreator();

import { GraphQLInputObjectType, GraphQLObjectType } from 'graphql';
import { RecordOf } from 'utils';
import { RecordOf } from './utils';
export declare type AttributeFieldType = 'Attribute';

@@ -4,0 +4,0 @@ export declare type AssociationFieldType = 'Association';

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

Object.defineProperty(exports, "__esModule", { value: true });
var utils_1 = require("utils");
var utils_1 = require("./utils");
exports.isAttributeField = function (field) {

@@ -17,0 +17,0 @@ return field.fieldType === 'Attribute';

import { GraphQLType } from 'graphql';
import { Attribute, BaseField, ExtendedModel } from 'model';
import { Attribute, BaseField, ExtendedModel } from './model';
export declare type TypeMapper<Types, Models> = (type: Attribute<Types>) => GraphQLType;
export declare const applyTypeMapper: <Types, Models>(typeMapper: TypeMapper<Types, Models>, getModel: (name: keyof Models) => ExtendedModel<Types, Models>) => (field: BaseField<Types, Models>) => GraphQLType;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var graphql_1 = require("graphql");
var model_1 = require("model");
var model_1 = require("./model");
exports.applyTypeMapper = function (typeMapper, getModel) { return function (field) {

@@ -6,0 +6,0 @@ if (model_1.isAssociationField(field)) {

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

import { BaseSchema } from 'base-schema-generator';
import { BaseSchema } from './base-schema-generator';
import { GraphQLSchema } from 'graphql';

@@ -3,0 +3,0 @@ export declare type RecordOf<Keys, Type> = {

{
"name": "@raynode/graphql-connector",
"version": "0.2.0",
"version": "0.2.1",
"description": "",

@@ -64,3 +64,3 @@ "main": "lib/index.js",

},
"gitHead": "a7be15fe0eaf59fe530bc0d3a35b343b03ee4d1c"
"gitHead": "bae77e6301119cc09d8bc5ca20dbc931bc6c7d75"
}

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