@powerlines/deepkit 0.5.45 → 0.5.46
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.
|
@@ -2073,7 +2073,7 @@ function stringifyStringValue(value) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
chunkUSNT2KNT_cjs.__name(stringifyStringValue, "stringifyStringValue");
|
|
2075
2075
|
function stringifyValue(type$1, value) {
|
|
2076
|
-
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(c.stringify(value)) : type$1.kind === type.ReflectionKind.object || type$1.kind === type.ReflectionKind.objectLiteral ? c.stringify(value) : type$1.kind === type.ReflectionKind.property || type$1.kind === type.ReflectionKind.parameter ? stringifyValue(type$1.type, value) : String(value);
|
|
2076
|
+
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(c.stringify(value)) : type$1.kind === type.ReflectionKind.object || type$1.kind === type.ReflectionKind.objectLiteral ? c.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);
|
|
2077
2077
|
}
|
|
2078
2078
|
chunkUSNT2KNT_cjs.__name(stringifyValue, "stringifyValue");
|
|
2079
2079
|
function getEnumReflectionType(type$1) {
|
|
@@ -2071,7 +2071,7 @@ function stringifyStringValue(value) {
|
|
|
2071
2071
|
}
|
|
2072
2072
|
__name(stringifyStringValue, "stringifyStringValue");
|
|
2073
2073
|
function stringifyValue(type, value) {
|
|
2074
|
-
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(c.stringify(value)) : type.kind === ReflectionKind.object || type.kind === ReflectionKind.objectLiteral ? c.stringify(value) : type.kind === ReflectionKind.property || type.kind === ReflectionKind.parameter ? stringifyValue(type.type, value) : String(value);
|
|
2074
|
+
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(c.stringify(value)) : type.kind === ReflectionKind.object || type.kind === ReflectionKind.objectLiteral ? c.stringify(value) : type.kind === ReflectionKind.property || type.kind === ReflectionKind.parameter ? stringifyValue(type.type, value) : String(value)?.includes('"') || String(value)?.includes("'") ? stringifyStringValue(value) : String(value);
|
|
2075
2075
|
}
|
|
2076
2076
|
__name(stringifyValue, "stringifyValue");
|
|
2077
2077
|
function getEnumReflectionType(type) {
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk25EAB3JC_cjs = require('./chunk-25EAB3JC.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 chunk25EAB3JC_cjs.getEnumReflectionType; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getUnionTypes", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk25EAB3JC_cjs.getUnionTypes; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "isStringUnion", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk25EAB3JC_cjs.isStringUnion; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "kindToName", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk25EAB3JC_cjs.kindToName; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "stringifyDefaultValue", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk25EAB3JC_cjs.stringifyDefaultValue; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "stringifyStringValue", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk25EAB3JC_cjs.stringifyStringValue; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "stringifyValue", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk25EAB3JC_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-CP62SE6X.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 chunk25EAB3JC_cjs = require('./chunk-25EAB3JC.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 chunk25EAB3JC_cjs.getEnumReflectionType; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "getUnionTypes", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk25EAB3JC_cjs.getUnionTypes; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "isStringUnion", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk25EAB3JC_cjs.isStringUnion; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "kindToName", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk25EAB3JC_cjs.kindToName; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "stringifyDefaultValue", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk25EAB3JC_cjs.stringifyDefaultValue; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "stringifyStringValue", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk25EAB3JC_cjs.stringifyStringValue; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "stringifyValue", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk25EAB3JC_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-CP62SE6X.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.46",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"defu": "^6.1.4",
|
|
126
126
|
"esbuild": "^0.25.12",
|
|
127
127
|
"jiti": "^2.6.1",
|
|
128
|
-
"powerlines": "^0.37.
|
|
128
|
+
"powerlines": "^0.37.5",
|
|
129
129
|
"typescript": "^5.9.3"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
@@ -138,5 +138,5 @@
|
|
|
138
138
|
"tsup": "8.4.0"
|
|
139
139
|
},
|
|
140
140
|
"publishConfig": { "access": "public" },
|
|
141
|
-
"gitHead": "
|
|
141
|
+
"gitHead": "cde0a30e0b06424661720ed40b29ae6f67a9ebcc"
|
|
142
142
|
}
|