quicktype 23.0.160 → 23.0.162

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.
@@ -42,10 +42,11 @@ const wordwrap_1 = __importDefault(require("wordwrap"));
42
42
  const quicktype_core_1 = require("quicktype-core");
43
43
  const quicktype_graphql_input_1 = require("quicktype-graphql-input");
44
44
  const quicktype_typescript_input_1 = require("quicktype-typescript-input");
45
- const package_json_1 = __importDefault(require("../package.json"));
46
45
  const CompressedJSONFromStream_1 = require("./CompressedJSONFromStream");
47
46
  const GraphQLIntrospection_1 = require("./GraphQLIntrospection");
48
47
  const URLGrammar_1 = require("./URLGrammar");
48
+ // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
49
+ const packageJSON = require("../package.json");
49
50
  const wordWrap = (0, wordwrap_1.default)(90);
50
51
  const defaultDefaultTargetLanguageName = "go";
51
52
  async function sourceFromFileOrUrlArray(name, filesOrUrls, httpHeaders) {
@@ -619,7 +620,7 @@ async function makeQuicktypeOptions(options, targetLanguages) {
619
620
  return undefined;
620
621
  }
621
622
  if (options.version) {
622
- console.log(`quicktype version ${package_json_1.default.version}`);
623
+ console.log(`quicktype version ${packageJSON.version}`);
623
624
  console.log("Visit quicktype.io for more info.");
624
625
  return undefined;
625
626
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "quicktype",
3
- "version": "23.0.160",
3
+ "version": "23.0.162",
4
4
  "license": "Apache-2.0",
5
- "main": "dist/src/index.js",
5
+ "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "repository": "https://github.com/quicktype/quicktype",
8
8
  "engines": {
@@ -10,11 +10,11 @@
10
10
  },
11
11
  "scripts": {
12
12
  "pub": "script/publish.sh",
13
- "build": "npm run build --workspaces --if-present && tsc",
13
+ "build": "npm run clean && npm run build --workspaces --if-present && tsc",
14
14
  "test": "script/test",
15
15
  "start": "script/watch",
16
- "clean": "rm -rf dist node_modules *~ packages/*/{dist,node_modules,out}",
17
- "debug": "node --inspect-brk --max-old-space-size=4096 ./dist/src/index.js",
16
+ "clean": "rm -rf dist *~ packages/*/{dist,out}",
17
+ "debug": "node --inspect-brk --max-old-space-size=4096 ./dist/index.js",
18
18
  "lint": "eslint src/** packages/*/src/**",
19
19
  "lint:fix": "eslint --fix src/** packages/*/src/**"
20
20
  },
@@ -34,9 +34,9 @@
34
34
  "graphql": "^0.11.7",
35
35
  "lodash": "^4.17.21",
36
36
  "moment": "^2.30.1",
37
- "quicktype-core": "23.0.160",
38
- "quicktype-graphql-input": "23.0.160",
39
- "quicktype-typescript-input": "23.0.160",
37
+ "quicktype-core": "23.0.162",
38
+ "quicktype-graphql-input": "23.0.162",
39
+ "quicktype-typescript-input": "23.0.162",
40
40
  "readable-stream": "^4.5.2",
41
41
  "stream-json": "1.8.0",
42
42
  "string-to-stream": "^3.0.1",
@@ -77,5 +77,5 @@
77
77
  "files": [
78
78
  "dist"
79
79
  ],
80
- "bin": "dist/src/index.js"
80
+ "bin": "dist/index.js"
81
81
  }
package/dist/package.json DELETED
@@ -1,81 +0,0 @@
1
- {
2
- "name": "quicktype",
3
- "version": "23.0.0",
4
- "license": "Apache-2.0",
5
- "main": "dist/src/index.js",
6
- "types": "dist/index.d.ts",
7
- "repository": "https://github.com/quicktype/quicktype",
8
- "engines": {
9
- "node": ">=18.12.0"
10
- },
11
- "scripts": {
12
- "pub": "script/publish.sh",
13
- "build": "npm run build --workspaces --if-present && tsc",
14
- "test": "script/test",
15
- "start": "script/watch",
16
- "clean": "rm -rf dist node_modules *~ packages/*/{dist,node_modules,out}",
17
- "debug": "node --inspect-brk --max-old-space-size=4096 ./dist/src/index.js",
18
- "lint": "eslint src/** packages/*/src/**",
19
- "lint:fix": "eslint --fix src/** packages/*/src/**"
20
- },
21
- "workspaces": [
22
- "./packages/quicktype-core",
23
- "./packages/quicktype-graphql-input",
24
- "./packages/quicktype-typescript-input",
25
- "./packages/quicktype-vscode"
26
- ],
27
- "dependencies": {
28
- "@glideapps/ts-necessities": "^2.2.3",
29
- "chalk": "^4.1.2",
30
- "collection-utils": "^1.0.1",
31
- "command-line-args": "^5.2.1",
32
- "command-line-usage": "^7.0.1",
33
- "cross-fetch": "^4.0.0",
34
- "graphql": "^0.11.7",
35
- "lodash": "^4.17.21",
36
- "moment": "^2.30.1",
37
- "quicktype-core": "20.0.12",
38
- "quicktype-graphql-input": "20.0.2",
39
- "quicktype-typescript-input": "20.0.2",
40
- "readable-stream": "^4.5.2",
41
- "stream-json": "1.8.0",
42
- "string-to-stream": "^3.0.1",
43
- "typescript": "4.9.5"
44
- },
45
- "devDependencies": {
46
- "@tsconfig/node18": "^1.0.1",
47
- "@types/command-line-args": "^5.2.0",
48
- "@types/command-line-usage": "^5.0.4",
49
- "@types/graphql": "^0.11.7",
50
- "@types/lodash": "^4.17.0",
51
- "@types/semver": "^7.5.0",
52
- "@types/shelljs": "^0.8.15",
53
- "@types/stream-json": "^1.7.3",
54
- "@types/urijs": "^1.19.25",
55
- "@types/wordwrap": "^1.0.3",
56
- "@typescript-eslint/eslint-plugin": "^6.3.0",
57
- "@typescript-eslint/parser": "^6.3.0",
58
- "ajv": "^5.5.2",
59
- "deep-equal": "^2.2.3",
60
- "esbuild": "^0.20.2",
61
- "eslint": "^8.57.0",
62
- "eslint-config-canonical": "^41.1.7",
63
- "eslint-config-prettier": "^6.10.0",
64
- "eslint-import-resolver-typescript": "^3.6.1",
65
- "eslint-plugin-canonical": "^3.4.0",
66
- "eslint-plugin-import": "^2.26.0",
67
- "eslint-plugin-json": "^3.1.0",
68
- "eslint-plugin-prettier": "^4.2.1",
69
- "exit": "^0.1.2",
70
- "prettier": "^3.2.5",
71
- "promise-timeout": "^1.3.0",
72
- "semver": "^7.5.4",
73
- "shelljs": "^0.8.5",
74
- "ts-node": "^10.9.2",
75
- "watch": "^1.0.2"
76
- },
77
- "files": [
78
- "dist"
79
- ],
80
- "bin": "dist/src/index.js"
81
- }
File without changes
File without changes
File without changes
File without changes
File without changes