quicktype 17.0.1 → 17.0.2
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/dist/cli/CompressedJSONFromStream.js +26 -38
- package/dist/cli/GraphQLIntrospection.js +33 -41
- package/dist/cli/TypeSource.d.ts +1 -1
- package/dist/cli/URLGrammar.js +4 -3
- package/dist/cli/index.js +363 -364
- package/dist/quicktype-core/Annotation.js +2 -0
- package/dist/quicktype-core/ConvenienceRenderer.d.ts +17 -17
- package/dist/quicktype-core/ConvenienceRenderer.js +104 -81
- package/dist/quicktype-core/DateTime.js +1 -0
- package/dist/quicktype-core/DeclarationIR.d.ts +1 -1
- package/dist/quicktype-core/DeclarationIR.js +13 -10
- package/dist/quicktype-core/EncodedMarkovChain.js +1 -0
- package/dist/quicktype-core/GatherNames.js +47 -25
- package/dist/quicktype-core/Graph.d.ts +2 -2
- package/dist/quicktype-core/Graph.js +23 -19
- package/dist/quicktype-core/GraphRewriting.d.ts +2 -2
- package/dist/quicktype-core/GraphRewriting.js +65 -54
- package/dist/quicktype-core/MakeTransformations.js +23 -22
- package/dist/quicktype-core/MarkovChain.d.ts +3 -3
- package/dist/quicktype-core/MarkovChain.js +9 -8
- package/dist/quicktype-core/Messages.d.ts +3 -3
- package/dist/quicktype-core/Messages.js +8 -3
- package/dist/quicktype-core/Naming.d.ts +11 -11
- package/dist/quicktype-core/Naming.js +76 -61
- package/dist/quicktype-core/Renderer.d.ts +6 -6
- package/dist/quicktype-core/Renderer.js +34 -17
- package/dist/quicktype-core/RendererOptions.d.ts +5 -5
- package/dist/quicktype-core/RendererOptions.js +6 -3
- package/dist/quicktype-core/Run.d.ts +9 -9
- package/dist/quicktype-core/Run.js +72 -67
- package/dist/quicktype-core/Source.d.ts +3 -3
- package/dist/quicktype-core/Source.js +19 -18
- package/dist/quicktype-core/TargetLanguage.d.ts +10 -10
- package/dist/quicktype-core/TargetLanguage.js +6 -2
- package/dist/quicktype-core/Transformers.d.ts +25 -25
- package/dist/quicktype-core/Transformers.js +94 -66
- package/dist/quicktype-core/Type.d.ts +41 -43
- package/dist/quicktype-core/Type.js +96 -71
- package/dist/quicktype-core/TypeBuilder.d.ts +2 -2
- package/dist/quicktype-core/TypeBuilder.js +53 -47
- package/dist/quicktype-core/TypeGraph.d.ts +4 -4
- package/dist/quicktype-core/TypeGraph.js +49 -40
- package/dist/quicktype-core/TypeUtils.d.ts +2 -2
- package/dist/quicktype-core/TypeUtils.js +23 -22
- package/dist/quicktype-core/UnifyClasses.js +16 -12
- package/dist/quicktype-core/UnionBuilder.d.ts +3 -3
- package/dist/quicktype-core/UnionBuilder.js +33 -30
- package/dist/quicktype-core/attributes/AccessorNames.d.ts +2 -2
- package/dist/quicktype-core/attributes/AccessorNames.js +18 -17
- package/dist/quicktype-core/attributes/Constraints.d.ts +3 -3
- package/dist/quicktype-core/attributes/Constraints.js +8 -4
- package/dist/quicktype-core/attributes/Description.js +6 -5
- package/dist/quicktype-core/attributes/EnumValues.js +4 -3
- package/dist/quicktype-core/attributes/StringTypes.d.ts +1 -1
- package/dist/quicktype-core/attributes/StringTypes.js +24 -21
- package/dist/quicktype-core/attributes/TypeAttributes.d.ts +3 -3
- package/dist/quicktype-core/attributes/TypeAttributes.js +12 -10
- package/dist/quicktype-core/attributes/TypeNames.d.ts +9 -9
- package/dist/quicktype-core/attributes/TypeNames.js +49 -21
- package/dist/quicktype-core/attributes/URIAttributes.d.ts +1 -1
- package/dist/quicktype-core/attributes/URIAttributes.js +10 -6
- package/dist/quicktype-core/index.js +128 -125
- package/dist/quicktype-core/input/CompressedJSON.d.ts +7 -7
- package/dist/quicktype-core/input/CompressedJSON.js +49 -54
- package/dist/quicktype-core/input/FetchingJSONSchemaStore.js +5 -13
- package/dist/quicktype-core/input/Inference.d.ts +2 -2
- package/dist/quicktype-core/input/Inference.js +25 -17
- package/dist/quicktype-core/input/Inputs.d.ts +2 -2
- package/dist/quicktype-core/input/Inputs.js +38 -54
- package/dist/quicktype-core/input/JSONSchemaInput.d.ts +11 -11
- package/dist/quicktype-core/input/JSONSchemaInput.js +503 -523
- package/dist/quicktype-core/input/JSONSchemaStore.d.ts +1 -1
- package/dist/quicktype-core/input/JSONSchemaStore.js +24 -35
- package/dist/quicktype-core/input/PostmanCollection.js +2 -1
- package/dist/quicktype-core/input/io/NodeIO.js +55 -44
- package/dist/quicktype-core/input/io/get-stream/index.js +6 -2
- package/dist/quicktype-core/language/All.js +3 -2
- package/dist/quicktype-core/language/CPlusPlus.d.ts +8 -8
- package/dist/quicktype-core/language/CPlusPlus.js +185 -151
- package/dist/quicktype-core/language/CSharp.d.ts +7 -7
- package/dist/quicktype-core/language/CSharp.js +82 -72
- package/dist/quicktype-core/language/Crystal.d.ts +2 -2
- package/dist/quicktype-core/language/Crystal.js +18 -17
- package/dist/quicktype-core/language/Dart.d.ts +4 -4
- package/dist/quicktype-core/language/Dart.js +36 -34
- package/dist/quicktype-core/language/Elm.d.ts +6 -6
- package/dist/quicktype-core/language/Elm.js +47 -45
- package/dist/quicktype-core/language/Golang.d.ts +4 -4
- package/dist/quicktype-core/language/Golang.js +23 -20
- package/dist/quicktype-core/language/Haskell.d.ts +5 -5
- package/dist/quicktype-core/language/Haskell.js +25 -23
- package/dist/quicktype-core/language/JSONSchema.d.ts +3 -3
- package/dist/quicktype-core/language/JSONSchema.js +17 -16
- package/dist/quicktype-core/language/Java.d.ts +2 -2
- package/dist/quicktype-core/language/Java.js +97 -97
- package/dist/quicktype-core/language/JavaScript.d.ts +7 -7
- package/dist/quicktype-core/language/JavaScript.js +19 -17
- package/dist/quicktype-core/language/JavaScriptPropTypes.js +15 -13
- package/dist/quicktype-core/language/JavaScriptUnicodeMaps.js +12 -11
- package/dist/quicktype-core/language/Kotlin.d.ts +2 -2
- package/dist/quicktype-core/language/Kotlin.js +39 -37
- package/dist/quicktype-core/language/Objective-C.d.ts +3 -3
- package/dist/quicktype-core/language/Objective-C.js +45 -41
- package/dist/quicktype-core/language/Php.d.ts +2 -2
- package/dist/quicktype-core/language/Php.js +66 -41
- package/dist/quicktype-core/language/Pike.d.ts +1 -1
- package/dist/quicktype-core/language/Pike.js +18 -17
- package/dist/quicktype-core/language/Python.d.ts +8 -8
- package/dist/quicktype-core/language/Python.js +63 -64
- package/dist/quicktype-core/language/Rust.d.ts +2 -2
- package/dist/quicktype-core/language/Rust.js +21 -19
- package/dist/quicktype-core/language/Swift.d.ts +7 -7
- package/dist/quicktype-core/language/Swift.js +568 -565
- package/dist/quicktype-core/language/TypeScriptFlow.d.ts +7 -7
- package/dist/quicktype-core/language/TypeScriptFlow.js +28 -26
- package/dist/quicktype-core/language/ruby/index.d.ts +4 -4
- package/dist/quicktype-core/language/ruby/index.js +49 -24
- package/dist/quicktype-core/language/ruby/keywords.js +1 -0
- package/dist/quicktype-core/rewrites/CombineClasses.js +9 -8
- package/dist/quicktype-core/rewrites/ExpandStrings.d.ts +1 -1
- package/dist/quicktype-core/rewrites/ExpandStrings.js +18 -17
- package/dist/quicktype-core/rewrites/FlattenStrings.js +7 -6
- package/dist/quicktype-core/rewrites/FlattenUnions.js +9 -8
- package/dist/quicktype-core/rewrites/InferMaps.js +11 -10
- package/dist/quicktype-core/rewrites/ReplaceObjectType.js +8 -7
- package/dist/quicktype-core/rewrites/ResolveIntersections.js +68 -67
- package/dist/quicktype-core/support/Acronyms.js +3 -1
- package/dist/quicktype-core/support/Chance.js +10 -0
- package/dist/quicktype-core/support/Converters.js +1 -0
- package/dist/quicktype-core/support/Strings.d.ts +4 -4
- package/dist/quicktype-core/support/Strings.js +17 -16
- package/dist/quicktype-core/support/Support.d.ts +1 -1
- package/dist/quicktype-core/support/Support.js +30 -6
- package/dist/quicktype-graphql-input/GraphQLSchema.d.ts +4 -4
- package/dist/quicktype-graphql-input/GraphQLSchema.js +1 -0
- package/dist/quicktype-graphql-input/index.d.ts +1 -1
- package/dist/quicktype-graphql-input/index.js +229 -212
- package/dist/quicktype-typescript-input/index.js +28 -4
- package/package.json +25 -19
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quicktype",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/cli/index.js",
|
|
6
6
|
"types": "dist/cli/index.d.ts",
|
|
7
7
|
"repository": "https://github.com/quicktype/quicktype",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=18.13.0"
|
|
10
|
+
},
|
|
8
11
|
"scripts": {
|
|
9
12
|
"pub": "script/publish.sh",
|
|
10
13
|
"prepare": "npm run build",
|
|
@@ -14,59 +17,62 @@
|
|
|
14
17
|
"pkg": "script/make-pkgs.sh",
|
|
15
18
|
"tslint": "tslint --project src/cli --exclude 'src/__tests__/**' --exclude 'src/quicktype-core/input/io/get-stream/**'",
|
|
16
19
|
"clean": "rm -rf dist node_modules *~",
|
|
17
|
-
"publish": "script/publish.sh"
|
|
20
|
+
"publish": "script/publish.sh",
|
|
21
|
+
"debug": "node --inspect-brk --max-old-space-size=4096 ./dist/cli/index.js"
|
|
18
22
|
},
|
|
19
23
|
"dependencies": {
|
|
24
|
+
"@glideapps/ts-necessities": "2.1.2",
|
|
25
|
+
"@mark.probst/typescript-json-schema": "0.55.0",
|
|
26
|
+
"browser-or-node": "^1.2.1",
|
|
20
27
|
"chalk": "^2.4.1",
|
|
21
28
|
"collection-utils": "^1.0.1",
|
|
22
29
|
"command-line-args": "^4.0.6",
|
|
23
30
|
"command-line-usage": "^5.0.5",
|
|
24
31
|
"graphql": "^0.11.7",
|
|
25
32
|
"is-url": "^1.2.4",
|
|
33
|
+
"isomorphic-fetch": "^3.0.0",
|
|
26
34
|
"js-base64": "^2.4.3",
|
|
27
35
|
"lodash": "^4.17.21",
|
|
28
36
|
"moment": "^2.22.1",
|
|
29
37
|
"node-fetch": "^2.6.1",
|
|
30
38
|
"pako": "^1.0.6",
|
|
31
39
|
"pluralize": "^7.0.0",
|
|
40
|
+
"readable-stream": "2.3.7",
|
|
32
41
|
"stream-json": "1.1.3",
|
|
33
42
|
"string-to-stream": "^1.1.0",
|
|
34
|
-
"typescript": "
|
|
35
|
-
"@mark.probst/typescript-json-schema": "~0.32.0",
|
|
43
|
+
"typescript": "4.9.4",
|
|
36
44
|
"unicode-properties": "^1.4.1",
|
|
37
45
|
"urijs": "^1.19.11",
|
|
38
46
|
"uuid": "^9.0.0",
|
|
39
47
|
"wordwrap": "^1.0.0",
|
|
40
|
-
"yaml": "^1.5.0"
|
|
41
|
-
"readable-stream": "2.3.0",
|
|
42
|
-
"isomorphic-fetch": "^3.0.0",
|
|
43
|
-
"browser-or-node": "^1.2.1"
|
|
48
|
+
"yaml": "^1.5.0"
|
|
44
49
|
},
|
|
45
50
|
"devDependencies": {
|
|
46
|
-
"@
|
|
51
|
+
"@tsconfig/node18": "^1.0.1",
|
|
52
|
+
"@types/browser-or-node": "^1.2.0",
|
|
53
|
+
"@types/graphql": "^0.11.7",
|
|
47
54
|
"@types/is-url": "^1.2.28",
|
|
55
|
+
"@types/js-base64": "^2.3.1",
|
|
48
56
|
"@types/lodash": "^4.14.108",
|
|
49
|
-
"@types/node": "
|
|
50
|
-
"@types/
|
|
57
|
+
"@types/node": "18.11.18",
|
|
58
|
+
"@types/pako": "^1.0.0",
|
|
59
|
+
"@types/pluralize": "0.0.28",
|
|
60
|
+
"@types/readable-stream": "2.3.15",
|
|
51
61
|
"@types/semver": "^5.5.0",
|
|
62
|
+
"@types/shelljs": "^0.7.8",
|
|
63
|
+
"@types/urijs": "^1.19.8",
|
|
52
64
|
"@types/yaml": "^1.0.2",
|
|
53
65
|
"ajv": "^5.5.2",
|
|
54
66
|
"deep-equal": "^1.0.1",
|
|
55
67
|
"exit": "^0.1.2",
|
|
68
|
+
"prettier": "^2.8.1",
|
|
56
69
|
"promise-timeout": "^1.3.0",
|
|
57
70
|
"semver": "^5.5.0",
|
|
58
71
|
"shelljs": "^0.8.5",
|
|
59
72
|
"ts-node": "^10.9.1",
|
|
60
73
|
"tslint": "^5.11.0",
|
|
61
74
|
"uglify-js": "^3.3.22",
|
|
62
|
-
"watch": "^1.0.2"
|
|
63
|
-
"@types/graphql": "^0.11.7",
|
|
64
|
-
"@types/js-base64": "^2.3.1",
|
|
65
|
-
"@types/pako": "^1.0.0",
|
|
66
|
-
"@types/pluralize": "0.0.28",
|
|
67
|
-
"@types/readable-stream": "2.3.9",
|
|
68
|
-
"@types/browser-or-node": "^1.2.0",
|
|
69
|
-
"prettier": "^2.8.1"
|
|
75
|
+
"watch": "^1.0.2"
|
|
70
76
|
},
|
|
71
77
|
"files": [
|
|
72
78
|
"dist/**"
|