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