dtsgenerator 3.14.0 → 3.15.0
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/README.md +6 -1
- package/SupportedFeatures.md +2 -0
- package/dist/core/jsonSchema.js +1 -1
- package/package.json +5 -5
- package/src/core/jsonSchema.ts +1 -1
package/README.md
CHANGED
|
@@ -143,7 +143,12 @@ Output debug message by [debug](https://www.npmjs.com/package/debug) library.
|
|
|
143
143
|
|
|
144
144
|
## ChangeLog
|
|
145
145
|
|
|
146
|
-
### [v3.
|
|
146
|
+
### [v3.15.0](https://github.com/horiuchi/dtsgenerator/releases/tag/v3.15.0) (2022-02-06)
|
|
147
|
+
|
|
148
|
+
- features:
|
|
149
|
+
- Support mobile wallet media types(`application/jwt` and `application/vnd.apple.pkpass`) for #530. Thank you @eostrom :+1:
|
|
150
|
+
|
|
151
|
+
### [v3.14.0](https://github.com/horiuchi/dtsgenerator/releases/tag/v3.14.0) (2022-01-27)
|
|
147
152
|
|
|
148
153
|
- features:
|
|
149
154
|
- Support the nested `allOf` and `oneOf` schema for #513. Thank you for your report @Cry0nicS :+1:
|
package/SupportedFeatures.md
CHANGED
package/dist/core/jsonSchema.js
CHANGED
|
@@ -256,7 +256,7 @@ function searchAllSubSchema(schema, onFoundSchema, onFoundReference) {
|
|
|
256
256
|
return;
|
|
257
257
|
}
|
|
258
258
|
for (const mime of Object.keys(types)) {
|
|
259
|
-
if (/^text\/|^(?:application\/x-www-form-urlencoded$|^application\/([a-z0-9-_.]+\+)?json)$|^application\/octet-stream$|^multipart\/form-data$/.test(mime)) {
|
|
259
|
+
if (/^text\/|^(?:application\/x-www-form-urlencoded$|^application\/([a-z0-9-_.]+\+)?json)$|^application\/octet-stream$|^application\/jwt$|^application\/vnd.apple.pkpass$|^multipart\/form-data$/.test(mime)) {
|
|
260
260
|
const mt = types[mime];
|
|
261
261
|
setSubId(mt.schema, keys);
|
|
262
262
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtsgenerator",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
4
4
|
"description": "TypeScript d.ts file generator for JSON Schema file",
|
|
5
5
|
"bin": {
|
|
6
6
|
"dtsgen": "bin/dtsgen"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"node": ">= 10.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"commander": "^
|
|
47
|
+
"commander": "^9.0.0",
|
|
48
48
|
"cross-fetch": "^3.1.5",
|
|
49
49
|
"debug": "^4.3.3",
|
|
50
50
|
"glob": "^7.2.0",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"@types/js-yaml": "^4.0.5",
|
|
65
65
|
"@types/mkdirp": "^1.0.2",
|
|
66
66
|
"@types/mocha": "^9.1.0",
|
|
67
|
-
"@types/node": "^16.11.
|
|
67
|
+
"@types/node": "^16.11.22",
|
|
68
68
|
"cross-env": "^7.0.3",
|
|
69
|
-
"eslint": "^8.
|
|
69
|
+
"eslint": "^8.8.0",
|
|
70
70
|
"husky": "^7.0.4",
|
|
71
|
-
"lint-staged": "^12.3.
|
|
71
|
+
"lint-staged": "^12.3.3",
|
|
72
72
|
"mocha": "^9.2.0",
|
|
73
73
|
"nyc": "^15.1.0",
|
|
74
74
|
"prettier": "^2.5.1",
|
package/src/core/jsonSchema.ts
CHANGED
|
@@ -379,7 +379,7 @@ export function searchAllSubSchema(
|
|
|
379
379
|
}
|
|
380
380
|
for (const mime of Object.keys(types)) {
|
|
381
381
|
if (
|
|
382
|
-
/^text\/|^(?:application\/x-www-form-urlencoded$|^application\/([a-z0-9-_.]+\+)?json)$|^application\/octet-stream$|^multipart\/form-data$/.test(
|
|
382
|
+
/^text\/|^(?:application\/x-www-form-urlencoded$|^application\/([a-z0-9-_.]+\+)?json)$|^application\/octet-stream$|^application\/jwt$|^application\/vnd.apple.pkpass$|^multipart\/form-data$/.test(
|
|
383
383
|
mime
|
|
384
384
|
)
|
|
385
385
|
) {
|