Add/update filtered-sum-bms benchmark
This commit is contained in:
24
spot-launcher/node_modules/@smithy/smithy-client/dist-es/lazy-json.js
generated
vendored
Normal file
24
spot-launcher/node_modules/@smithy/smithy-client/dist-es/lazy-json.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
export const LazyJsonString = function LazyJsonString(val) {
|
||||
const str = Object.assign(new String(val), {
|
||||
deserializeJSON() {
|
||||
return JSON.parse(String(val));
|
||||
},
|
||||
toString() {
|
||||
return String(val);
|
||||
},
|
||||
toJSON() {
|
||||
return String(val);
|
||||
},
|
||||
});
|
||||
return str;
|
||||
};
|
||||
LazyJsonString.from = (object) => {
|
||||
if (object && typeof object === "object" && (object instanceof LazyJsonString || "deserializeJSON" in object)) {
|
||||
return object;
|
||||
}
|
||||
else if (typeof object === "string" || Object.getPrototypeOf(object) === String.prototype) {
|
||||
return LazyJsonString(String(object));
|
||||
}
|
||||
return LazyJsonString(JSON.stringify(object));
|
||||
};
|
||||
LazyJsonString.fromObject = LazyJsonString.from;
|
||||
Reference in New Issue
Block a user