@powerlines/deepkit 0.5.116 → 0.5.117
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.
|
@@ -2280,7 +2280,7 @@ function stringifyStringValue(value) {
|
|
|
2280
2280
|
}
|
|
2281
2281
|
__name(stringifyStringValue, "stringifyStringValue");
|
|
2282
2282
|
function stringifyValue(type, value) {
|
|
2283
|
-
return isUndefined$1(value) ? "undefined" : isNull$1(value) ? "null" : type.kind === ReflectionKind.boolean ? String(value).trim().toLowerCase() === "true" ? "true" : "false" : type.kind === ReflectionKind.string || type.kind === ReflectionKind.literal && isString$1(type.literal) ? stringifyStringValue(value) : type.kind === ReflectionKind.enum ? getEnumReflectionType(type).kind === ReflectionKind.string ? stringifyStringValue(value) : `${String(value)}` : type.kind === ReflectionKind.union ? isStringUnion(type) ? stringifyStringValue(value) : `${String(value)}` : type.kind === ReflectionKind.array ? stringifyStringValue(StormJSON.stringify(value)) : type.kind === ReflectionKind.object || type.kind === ReflectionKind.objectLiteral ? StormJSON.stringify(value) : type.kind === ReflectionKind.property || type.kind === ReflectionKind.parameter ? stringifyValue(type.type, value) : String(value)?.includes('"') || String(value)?.includes("'") ? stringifyStringValue(value) : String(value);
|
|
2283
|
+
return isUndefined$1(value) ? "undefined" : isNull$1(value) ? "null" : type.kind === ReflectionKind.boolean ? String(value).trim().toLowerCase() === "true" ? "true" : "false" : type.kind === ReflectionKind.string || type.kind === ReflectionKind.literal && isString$1(type.literal) ? stringifyStringValue(value) : type.kind === ReflectionKind.enum ? getEnumReflectionType(type).kind === ReflectionKind.string ? stringifyStringValue(value) : `${String(value)}` : type.kind === ReflectionKind.union ? isStringUnion(type) ? stringifyStringValue(value) : `${String(value)}` : type.kind === ReflectionKind.array ? stringifyStringValue(StormJSON.stringify(value)) : type.kind === ReflectionKind.object || type.kind === ReflectionKind.objectLiteral ? StormJSON.stringify(value) : (type.kind === ReflectionKind.property || type.kind === ReflectionKind.parameter) && type.type?.kind ? stringifyValue(type.type, value) : String(value)?.includes('"') || String(value)?.includes("'") ? stringifyStringValue(value) : String(value);
|
|
2284
2284
|
}
|
|
2285
2285
|
__name(stringifyValue, "stringifyValue");
|
|
2286
2286
|
function getEnumReflectionType(type) {
|
|
@@ -2282,7 +2282,7 @@ function stringifyStringValue(value) {
|
|
|
2282
2282
|
}
|
|
2283
2283
|
chunkUSNT2KNT_cjs.__name(stringifyStringValue, "stringifyStringValue");
|
|
2284
2284
|
function stringifyValue(type$1, value) {
|
|
2285
|
-
return isUndefined$1.isUndefined(value) ? "undefined" : isNull$1.isNull(value) ? "null" : type$1.kind === type.ReflectionKind.boolean ? String(value).trim().toLowerCase() === "true" ? "true" : "false" : type$1.kind === type.ReflectionKind.string || type$1.kind === type.ReflectionKind.literal && isString$1.isString(type$1.literal) ? stringifyStringValue(value) : type$1.kind === type.ReflectionKind.enum ? getEnumReflectionType(type$1).kind === type.ReflectionKind.string ? stringifyStringValue(value) : `${String(value)}` : type$1.kind === type.ReflectionKind.union ? isStringUnion(type$1) ? stringifyStringValue(value) : `${String(value)}` : type$1.kind === type.ReflectionKind.array ? stringifyStringValue(StormJSON.stringify(value)) : type$1.kind === type.ReflectionKind.object || type$1.kind === type.ReflectionKind.objectLiteral ? StormJSON.stringify(value) : type$1.kind === type.ReflectionKind.property || type$1.kind === type.ReflectionKind.parameter ? stringifyValue(type$1.type, value) : String(value)?.includes('"') || String(value)?.includes("'") ? stringifyStringValue(value) : String(value);
|
|
2285
|
+
return isUndefined$1.isUndefined(value) ? "undefined" : isNull$1.isNull(value) ? "null" : type$1.kind === type.ReflectionKind.boolean ? String(value).trim().toLowerCase() === "true" ? "true" : "false" : type$1.kind === type.ReflectionKind.string || type$1.kind === type.ReflectionKind.literal && isString$1.isString(type$1.literal) ? stringifyStringValue(value) : type$1.kind === type.ReflectionKind.enum ? getEnumReflectionType(type$1).kind === type.ReflectionKind.string ? stringifyStringValue(value) : `${String(value)}` : type$1.kind === type.ReflectionKind.union ? isStringUnion(type$1) ? stringifyStringValue(value) : `${String(value)}` : type$1.kind === type.ReflectionKind.array ? stringifyStringValue(StormJSON.stringify(value)) : type$1.kind === type.ReflectionKind.object || type$1.kind === type.ReflectionKind.objectLiteral ? StormJSON.stringify(value) : (type$1.kind === type.ReflectionKind.property || type$1.kind === type.ReflectionKind.parameter) && type$1.type?.kind ? stringifyValue(type$1.type, value) : String(value)?.includes('"') || String(value)?.includes("'") ? stringifyStringValue(value) : String(value);
|
|
2286
2286
|
}
|
|
2287
2287
|
chunkUSNT2KNT_cjs.__name(stringifyValue, "stringifyValue");
|
|
2288
2288
|
function getEnumReflectionType(type$1) {
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkR462A2GR_cjs = require('./chunk-R462A2GR.cjs');
|
|
4
4
|
var chunk7FXYDYVQ_cjs = require('./chunk-7FXYDYVQ.cjs');
|
|
5
5
|
var chunkKGCRCOJQ_cjs = require('./chunk-KGCRCOJQ.cjs');
|
|
6
6
|
var chunkCJMS4ES3_cjs = require('./chunk-CJMS4ES3.cjs');
|
|
@@ -14,31 +14,31 @@ require('./chunk-ORA4UQMU.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "getEnumReflectionType", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkR462A2GR_cjs.getEnumReflectionType; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getUnionTypes", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkR462A2GR_cjs.getUnionTypes; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "isStringUnion", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkR462A2GR_cjs.isStringUnion; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "kindToName", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkR462A2GR_cjs.kindToName; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "stringifyDefaultValue", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkR462A2GR_cjs.stringifyDefaultValue; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "stringifyStringValue", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkR462A2GR_cjs.stringifyStringValue; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "stringifyValue", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkR462A2GR_cjs.stringifyValue; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "convertFromCapnp", {
|
|
44
44
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue } from './chunk-
|
|
1
|
+
export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue } from './chunk-EL4VZPWJ.js';
|
|
2
2
|
export { convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion } from './chunk-TDYIUJGY.js';
|
|
3
3
|
export { reflectType } from './chunk-XHSSGKUT.js';
|
|
4
4
|
export { esbuildPlugin } from './chunk-JE36RI7U.js';
|
package/dist/utilities.cjs
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkR462A2GR_cjs = require('./chunk-R462A2GR.cjs');
|
|
4
4
|
require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "getEnumReflectionType", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkR462A2GR_cjs.getEnumReflectionType; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "getUnionTypes", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkR462A2GR_cjs.getUnionTypes; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "isStringUnion", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkR462A2GR_cjs.isStringUnion; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "kindToName", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkR462A2GR_cjs.kindToName; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "stringifyDefaultValue", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkR462A2GR_cjs.stringifyDefaultValue; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "stringifyStringValue", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkR462A2GR_cjs.stringifyStringValue; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "stringifyValue", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkR462A2GR_cjs.stringifyValue; }
|
|
35
35
|
});
|
package/dist/utilities.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue } from './chunk-
|
|
1
|
+
export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue } from './chunk-EL4VZPWJ.js';
|
|
2
2
|
import './chunk-SHUYVCID.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/deepkit",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.117",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -138,5 +138,5 @@
|
|
|
138
138
|
"tsup": "8.4.0"
|
|
139
139
|
},
|
|
140
140
|
"publishConfig": { "access": "public" },
|
|
141
|
-
"gitHead": "
|
|
141
|
+
"gitHead": "07df17214a141836c6cc1740071e30acf8e6029c"
|
|
142
142
|
}
|