quicktype-core 23.0.171 → 23.0.173
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/Run.d.ts +4 -4
- package/dist/Type.d.ts +1 -1
- package/dist/input/io/NodeIO.js +3 -5
- package/dist/language/Ruby/utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/Run.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare const inferenceFlagsObject: {
|
|
|
35
35
|
description: string;
|
|
36
36
|
negationDescription: string;
|
|
37
37
|
explanation: string;
|
|
38
|
-
stringType: "
|
|
38
|
+
stringType: "date" | "time" | "date-time" | "uuid" | "uri" | "integer-string" | "bool-string";
|
|
39
39
|
order: number;
|
|
40
40
|
};
|
|
41
41
|
/** Whether to assume that JSON strings that look like dates are dates */
|
|
@@ -43,7 +43,7 @@ export declare const inferenceFlagsObject: {
|
|
|
43
43
|
description: string;
|
|
44
44
|
negationDescription: string;
|
|
45
45
|
explanation: string;
|
|
46
|
-
stringType: "
|
|
46
|
+
stringType: "date" | "time" | "date-time" | "uuid" | "uri" | "integer-string" | "bool-string";
|
|
47
47
|
order: number;
|
|
48
48
|
};
|
|
49
49
|
/** Whether to convert stringified integers to integers */
|
|
@@ -51,7 +51,7 @@ export declare const inferenceFlagsObject: {
|
|
|
51
51
|
description: string;
|
|
52
52
|
negationDescription: string;
|
|
53
53
|
explanation: string;
|
|
54
|
-
stringType: "
|
|
54
|
+
stringType: "date" | "time" | "date-time" | "uuid" | "uri" | "integer-string" | "bool-string";
|
|
55
55
|
order: number;
|
|
56
56
|
};
|
|
57
57
|
/** Whether to convert stringified booleans to boolean values */
|
|
@@ -59,7 +59,7 @@ export declare const inferenceFlagsObject: {
|
|
|
59
59
|
description: string;
|
|
60
60
|
negationDescription: string;
|
|
61
61
|
explanation: string;
|
|
62
|
-
stringType: "
|
|
62
|
+
stringType: "date" | "time" | "date-time" | "uuid" | "uri" | "integer-string" | "bool-string";
|
|
63
63
|
order: number;
|
|
64
64
|
};
|
|
65
65
|
/** Combine similar classes. This doesn't apply to classes from a schema, only from inference. */
|
package/dist/Type.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export type PrimitiveTypeKind = PrimitiveNonStringTypeKind | PrimitiveStringType
|
|
|
55
55
|
export type NamedTypeKind = "class" | "enum" | "union";
|
|
56
56
|
export type TypeKind = PrimitiveTypeKind | NamedTypeKind | "array" | "object" | "map" | "intersection";
|
|
57
57
|
export type ObjectTypeKind = "object" | "map" | "class";
|
|
58
|
-
export declare const transformedStringTypeKinds: ReadonlySet<"
|
|
58
|
+
export declare const transformedStringTypeKinds: ReadonlySet<"date" | "time" | "date-time" | "uuid" | "uri" | "integer-string" | "bool-string">;
|
|
59
59
|
export declare function isPrimitiveStringTypeKind(kind: string): kind is PrimitiveStringTypeKind;
|
|
60
60
|
export declare function targetTypeKindForTransformedStringTypeKind(kind: PrimitiveStringTypeKind): PrimitiveNonStringTypeKind | undefined;
|
|
61
61
|
export declare function isNumberTypeKind(kind: TypeKind): kind is "integer" | "double";
|
package/dist/input/io/NodeIO.js
CHANGED
|
@@ -40,15 +40,13 @@ exports.readFromFileOrURL = exports.readableFromFileOrURL = void 0;
|
|
|
40
40
|
const fs = __importStar(require("fs"));
|
|
41
41
|
const ts_necessities_1 = require("@glideapps/ts-necessities");
|
|
42
42
|
const browser_or_node_1 = require("browser-or-node");
|
|
43
|
-
const cross_fetch_1 = __importDefault(require("cross-fetch"));
|
|
44
43
|
const is_url_1 = __importDefault(require("is-url"));
|
|
45
44
|
const Messages_1 = require("../../Messages");
|
|
46
45
|
const Support_1 = require("../../support/Support");
|
|
47
46
|
const get_stream_1 = require("./get-stream");
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
|
|
51
|
-
const fetch = process.env.CI ? cross_fetch_1.default : (_a = global.fetch) !== null && _a !== void 0 ? _a : cross_fetch_1.default;
|
|
47
|
+
// We need to use cross-fetch in CI or if fetch is not available in the global scope
|
|
48
|
+
// We use a dynamic import to avoid punycode deprecated dependency warning on node > 20
|
|
49
|
+
const fetch = process.env.CI ? require("cross-fetch").default : (_a = global.fetch) !== null && _a !== void 0 ? _a : require("cross-fetch").default;
|
|
52
50
|
function parseHeaders(httpHeaders) {
|
|
53
51
|
if (!Array.isArray(httpHeaders)) {
|
|
54
52
|
return {};
|
|
@@ -3,7 +3,7 @@ export declare enum Strictness {
|
|
|
3
3
|
Coercible = "Coercible::",
|
|
4
4
|
None = "Types::"
|
|
5
5
|
}
|
|
6
|
-
export declare const forbiddenForObjectProperties: ("
|
|
6
|
+
export declare const forbiddenForObjectProperties: ("default" | "false" | "next" | "alias" | "type" | "clone" | "then" | "class" | "enum" | "true" | "end" | "and" | "break" | "case" | "do" | "else" | "for" | "if" | "module" | "not" | "or" | "return" | "try" | "while" | "optional" | "begin" | "def" | "elsif" | "ensure" | "extend" | "in" | "nil" | "rescue" | "self" | "super" | "unless" | "until" | "when" | "with" | "yield" | "method" | "options" | "hash" | "__ENCODING__" | "__FILE__" | "__LINE__" | "BEGIN" | "defined?" | "END" | "redo" | "retry" | "undef" | "__id__" | "__send__" | "define_singleton_method" | "display" | "dup" | "enum_for" | "freeze" | "inspect" | "instance_eval" | "instance_exec" | "instance_variable_defined?" | "instance_variable_get" | "instance_variable_set" | "instance_variables" | "itself" | "methods" | "object_id" | "private_methods" | "protected_methods" | "public_method" | "public_methods" | "public_send" | "remove_instance_variable" | "send" | "singleton_class" | "singleton_method" | "singleton_methods" | "taint" | "tap" | "to_enum" | "to_s" | "trust" | "untaint" | "untrust" | "call" | "constrained_type" | "constrained?" | "constrained" | "constructor" | "gem" | "meta" | "pristine" | "rule" | "safe" | "to_ast" | "to_json")[];
|
|
7
7
|
export declare const stringEscape: (s: string) => string;
|
|
8
8
|
export declare function simpleNameStyle(original: string, uppercase: boolean): string;
|
|
9
9
|
export declare function memberNameStyle(original: string): string;
|