@sitecore/sc-contenthub-webclient-sdk 1.2.26 → 1.2.28
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/base-types.js +12 -0
- package/package.json +1 -1
package/dist/base-types.js
CHANGED
|
@@ -26,6 +26,18 @@ class CaseInsensitiveStringMap {
|
|
|
26
26
|
return Reflect.get(obj, prop);
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
+
has: (obj, prop) => {
|
|
30
|
+
if (typeof prop === "string") {
|
|
31
|
+
return Reflect.has(obj, prop.toLowerCase());
|
|
32
|
+
}
|
|
33
|
+
return Reflect.has(obj, prop);
|
|
34
|
+
},
|
|
35
|
+
ownKeys(obj) {
|
|
36
|
+
if (map) {
|
|
37
|
+
return Object.keys(map);
|
|
38
|
+
}
|
|
39
|
+
return Object.keys(Object.assign({}, obj));
|
|
40
|
+
}
|
|
29
41
|
});
|
|
30
42
|
}
|
|
31
43
|
}
|