@smithy/smithy-client
Advanced tools
Comparing version 3.5.0 to 3.5.1
@@ -980,3 +980,3 @@ var __defProp = Object.defineProperty; | ||
// src/lazy-json.ts | ||
function LazyJsonString(val) { | ||
var LazyJsonString = /* @__PURE__ */ __name(function LazyJsonString2(val) { | ||
const str = Object.assign(new String(val), { | ||
@@ -994,4 +994,3 @@ deserializeJSON() { | ||
return str; | ||
} | ||
__name(LazyJsonString, "LazyJsonString"); | ||
}, "LazyJsonString"); | ||
LazyJsonString.from = (object) => { | ||
@@ -998,0 +997,0 @@ if (object && typeof object === "object" && (object instanceof LazyJsonString || "deserializeJSON" in object)) { |
@@ -1,2 +0,2 @@ | ||
export function LazyJsonString(val) { | ||
export const LazyJsonString = function LazyJsonString(val) { | ||
const str = Object.assign(new String(val), { | ||
@@ -14,3 +14,3 @@ deserializeJSON() { | ||
return str; | ||
} | ||
}; | ||
LazyJsonString.from = (object) => { | ||
@@ -17,0 +17,0 @@ if (object && typeof object === "object" && (object instanceof LazyJsonString || "deserializeJSON" in object)) { |
@@ -19,3 +19,2 @@ /** | ||
export interface LazyJsonString extends String { | ||
new (s: string): typeof LazyJsonString; | ||
/** | ||
@@ -40,6 +39,10 @@ * @returns the JSON parsing of the string value. | ||
*/ | ||
export declare function LazyJsonString(val: string): void; | ||
export declare namespace LazyJsonString { | ||
var from: (object: any) => LazyJsonString; | ||
var fromObject: (object: any) => LazyJsonString; | ||
} | ||
export declare const LazyJsonString: { | ||
(s: string): LazyJsonString; | ||
new (s: string): LazyJsonString; | ||
from(s: any): LazyJsonString; | ||
/** | ||
* @deprecated use #from. | ||
*/ | ||
fromObject(s: any): LazyJsonString; | ||
}; |
@@ -19,3 +19,2 @@ /** | ||
export interface LazyJsonString extends String { | ||
new (s: string): typeof LazyJsonString; | ||
/** | ||
@@ -40,6 +39,10 @@ * @returns the JSON parsing of the string value. | ||
*/ | ||
export declare function LazyJsonString(val: string): void; | ||
export declare namespace LazyJsonString { | ||
var from: (object: any) => LazyJsonString; | ||
var fromObject: (object: any) => LazyJsonString; | ||
} | ||
export declare const LazyJsonString: { | ||
(s: string): LazyJsonString; | ||
new (s: string): LazyJsonString; | ||
from(s: any): LazyJsonString; | ||
/** | ||
* @deprecated use #from. | ||
*/ | ||
fromObject(s: any): LazyJsonString; | ||
}; |
{ | ||
"name": "@smithy/smithy-client", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"scripts": { | ||
@@ -28,3 +28,3 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", | ||
"@smithy/core": "^2.5.5", | ||
"@smithy/middleware-endpoint": "^3.2.5", | ||
"@smithy/middleware-endpoint": "^3.2.6", | ||
"@smithy/middleware-stack": "^3.0.11", | ||
@@ -31,0 +31,0 @@ "@smithy/protocol-http": "^4.1.8", |
172941
4318
8
49