@tstdl/base 0.82.54 → 0.82.55
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/package.json
CHANGED
|
@@ -8,9 +8,7 @@ function isPropertyName(value) {
|
|
|
8
8
|
return (0, type_guards_js_1.isDefined)(value?.[exports.propertyName]);
|
|
9
9
|
}
|
|
10
10
|
exports.isPropertyName = isPropertyName;
|
|
11
|
-
|
|
12
|
-
throw new Error();
|
|
13
|
-
}
|
|
11
|
+
const propertyNameProxy = Symbol('PropertyNameProxy');
|
|
14
12
|
/**
|
|
15
13
|
* get the path to a property
|
|
16
14
|
*
|
|
@@ -27,7 +25,7 @@ function propertyNameProxy() {
|
|
|
27
25
|
*/
|
|
28
26
|
function getPropertyNameProxy(options = {}) {
|
|
29
27
|
const { deep = true, flat = false, prefix } = options;
|
|
30
|
-
const proxy = new Proxy(propertyNameProxy, {
|
|
28
|
+
const proxy = new Proxy({ [propertyNameProxy]: prefix }, {
|
|
31
29
|
get: (_target, property) => {
|
|
32
30
|
if (property == exports.propertyName) {
|
|
33
31
|
return prefix;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property-name.js","sourceRoot":"","sources":["../../../source/utils/object/property-name.ts"],"names":[],"mappings":";;;AACA,sDAA2F;AAE9E,QAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AACtC,QAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAQnC,SAAgB,cAAc,CAAC,KAAU;IACvC,OAAO,IAAA,0BAAS,EAAE,KAAkC,EAAE,CAAC,oBAAY,CAAC,CAAC,CAAC;AACxE,CAAC;AAFD,wCAEC;AAED,
|
|
1
|
+
{"version":3,"file":"property-name.js","sourceRoot":"","sources":["../../../source/utils/object/property-name.ts"],"names":[],"mappings":";;;AACA,sDAA2F;AAE9E,QAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AACtC,QAAA,IAAI,G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