@snowtop/ent 0.0.28-alpha.2 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowtop/ent",
3
- "version": "0.0.28-alpha.2",
3
+ "version": "0.0.28",
4
4
  "description": "snowtop ent framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -39,7 +39,7 @@
39
39
  }
40
40
  },
41
41
  "engines": {
42
- "node": "^16.1.0"
42
+ "node": ">=14.0"
43
43
  },
44
44
  "devDependencies": {},
45
45
  "scripts": {},
@@ -132,19 +132,15 @@ function findGraphQLPath(filePath) {
132
132
  }
133
133
  async function main() {
134
134
  // known custom types that are not required
135
- // scalar Time will successfully parse
136
- // TODO add a mechanism for a type we should check for to
137
- // add this to schema.gql
138
- // e.g. scalar Time will be added to schemas which don't use it (yet)
139
- // TODO foreign non-scalars??
140
- (0, graphql_1.addCustomType)({
141
- importPath: "../graphql/scalars/time",
142
- type: "GraphQLTime",
143
- });
144
135
  // if not in the schema, will be ignored
145
136
  // something like GraphQLUpload gotten via gqlArg({type: gqlFileUpload})
146
137
  // these 2 need this because they're added by the schema
147
138
  // if this list grows too long, need to build this into golang types and passed here
139
+ // TODO foreign non-scalars eventually
140
+ (0, graphql_1.addCustomType)({
141
+ importPath: "../graphql/scalars/time",
142
+ type: "GraphQLTime",
143
+ });
148
144
  (0, graphql_1.addCustomType)({
149
145
  importPath: "graphql-type-json",
150
146
  type: "GraphQLJSON",