@homebound/graphql-typescript-scalar-type-policies
Advanced tools
Comparing version 1.5.0 to 2.6.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toImp = exports.isScalarType = exports.isObjectType = exports.plugin = void 0; | ||
const graphql_1 = require("graphql"); | ||
const ts_poet_1 = require("ts-poet"); | ||
/** Generates field policies for user-defined types, i.e. Date handling. */ | ||
exports.plugin = async (schema, _, config) => { | ||
const plugin = async (schema, _, config) => { | ||
const { scalarTypePolicies = {} } = config || {}; | ||
@@ -36,2 +37,3 @@ function isScalarWithTypePolicy(f) { | ||
}; | ||
exports.plugin = plugin; | ||
function isObjectType(t) { | ||
@@ -38,0 +40,0 @@ return t instanceof graphql_1.GraphQLObjectType; |
{ | ||
"name": "@homebound/graphql-typescript-scalar-type-policies", | ||
"version": "1.5.0", | ||
"version": "2.6.0", | ||
"main": "./build/index.js", | ||
@@ -15,16 +15,14 @@ "types": "./build/", | ||
"dependencies": { | ||
"@graphql-codegen/plugin-helpers": "^1.13.2", | ||
"@graphql-codegen/plugin-helpers": "^2.0.0", | ||
"change-case": "^4.1.1", | ||
"ts-poet": "^3.0.0" | ||
"ts-poet": "^4.5.0" | ||
}, | ||
"devDependencies": { | ||
"@graphql-codegen/cli": "^1.13.2", | ||
"graphql": "^15.0.0", | ||
"eslint-config-prettier": "^6.5.0", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"@graphql-codegen/cli": "^2.0.1", | ||
"graphql": "^15.5.1", | ||
"husky": "^3.0.9", | ||
"jest": "^24.9.0", | ||
"prettier": "^1.18.2", | ||
"ts-jest": "^24.0.2", | ||
"typescript": "^3.6.3" | ||
"jest": "^27.0.6", | ||
"prettier": "^2.3.2", | ||
"ts-jest": "^27.0.4", | ||
"typescript": "^4.3.5" | ||
}, | ||
@@ -31,0 +29,0 @@ "husky": { |
Sorry, the diff of this file is not supported yet
7
12
78
7179
+ Added@graphql-codegen/plugin-helpers@2.7.2(transitive)
+ Added@graphql-tools/utils@8.13.1(transitive)
+ Addedchange-case-all@1.0.14(transitive)
+ Addedcommon-tags@1.8.2(transitive)
+ Addedgraphql@16.10.0(transitive)
+ Addedis-lower-case@2.0.2(transitive)
+ Addedis-upper-case@2.0.2(transitive)
+ Addedlower-case-first@2.0.2(transitive)
+ Addedsponge-case@1.0.1(transitive)
+ Addedswap-case@2.0.2(transitive)
+ Addedtitle-case@3.0.3(transitive)
+ Addedts-poet@4.15.0(transitive)
+ Addedtslib@2.4.1(transitive)
- Removed@ardatan/aggregate-error@0.0.6(transitive)
- Removed@graphql-codegen/plugin-helpers@1.18.8(transitive)
- Removed@graphql-tools/utils@7.10.0(transitive)
- Removed@types/prettier@1.19.1(transitive)
- Removedcommon-tags@1.8.0(transitive)
- Removedgraphql@15.9.0(transitive)
- Removedts-poet@3.3.1(transitive)
- Removedtslib@2.0.32.2.02.3.1(transitive)
Updatedts-poet@^4.5.0