@proxy-checkout/server-js 0.0.6-prx-94.50.1 → 0.0.6-prx-94.52.1
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/cjs/errors.js +5 -0
- package/dist/cjs/version.d.cts +2 -2
- package/dist/cjs/version.d.ts +2 -2
- package/dist/cjs/version.js +1 -1
- package/dist/esm/errors.js +5 -0
- package/dist/esm/version.d.ts +2 -2
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
package/dist/cjs/errors.js
CHANGED
|
@@ -38,6 +38,11 @@ class ProxyCheckoutApiError extends Error {
|
|
|
38
38
|
exports.ProxyCheckoutApiError = ProxyCheckoutApiError;
|
|
39
39
|
exports.PROXY_SESSION_NOT_FOUND_ERROR_CODE = "proxy_session_not_found";
|
|
40
40
|
function isProxySessionNotFoundError(error) {
|
|
41
|
+
if (error instanceof ProxyCheckoutApiError) {
|
|
42
|
+
return error.statusCode === 404 && error.code === exports.PROXY_SESSION_NOT_FOUND_ERROR_CODE;
|
|
43
|
+
}
|
|
44
|
+
// Preserve classification across ESM/CJS or bundled SDK boundaries where
|
|
45
|
+
// instanceof can fail even though the error still came from Proxy.
|
|
41
46
|
return (typeof error === "object" &&
|
|
42
47
|
error !== null &&
|
|
43
48
|
"name" in error &&
|
package/dist/cjs/version.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const proxyCheckoutServerSdkName = "@proxy-checkout/server-js";
|
|
2
|
-
export declare const proxyCheckoutServerSdkVersion = "0.0.6-prx-94.
|
|
3
|
-
export declare const proxyCheckoutServerSdkUserAgent = "@proxy-checkout/server-js/0.0.6-prx-94.
|
|
2
|
+
export declare const proxyCheckoutServerSdkVersion = "0.0.6-prx-94.52.1";
|
|
3
|
+
export declare const proxyCheckoutServerSdkUserAgent = "@proxy-checkout/server-js/0.0.6-prx-94.52.1";
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const proxyCheckoutServerSdkName = "@proxy-checkout/server-js";
|
|
2
|
-
export declare const proxyCheckoutServerSdkVersion = "0.0.6-prx-94.
|
|
3
|
-
export declare const proxyCheckoutServerSdkUserAgent = "@proxy-checkout/server-js/0.0.6-prx-94.
|
|
2
|
+
export declare const proxyCheckoutServerSdkVersion = "0.0.6-prx-94.52.1";
|
|
3
|
+
export declare const proxyCheckoutServerSdkUserAgent = "@proxy-checkout/server-js/0.0.6-prx-94.52.1";
|
package/dist/cjs/version.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.proxyCheckoutServerSdkUserAgent = exports.proxyCheckoutServerSdkVersion = exports.proxyCheckoutServerSdkName = void 0;
|
|
4
4
|
exports.proxyCheckoutServerSdkName = "@proxy-checkout/server-js";
|
|
5
|
-
exports.proxyCheckoutServerSdkVersion = "0.0.6-prx-94.
|
|
5
|
+
exports.proxyCheckoutServerSdkVersion = "0.0.6-prx-94.52.1";
|
|
6
6
|
exports.proxyCheckoutServerSdkUserAgent = `${exports.proxyCheckoutServerSdkName}/${exports.proxyCheckoutServerSdkVersion}`;
|
package/dist/esm/errors.js
CHANGED
|
@@ -31,6 +31,11 @@ export class ProxyCheckoutApiError extends Error {
|
|
|
31
31
|
}
|
|
32
32
|
export const PROXY_SESSION_NOT_FOUND_ERROR_CODE = "proxy_session_not_found";
|
|
33
33
|
export function isProxySessionNotFoundError(error) {
|
|
34
|
+
if (error instanceof ProxyCheckoutApiError) {
|
|
35
|
+
return error.statusCode === 404 && error.code === PROXY_SESSION_NOT_FOUND_ERROR_CODE;
|
|
36
|
+
}
|
|
37
|
+
// Preserve classification across ESM/CJS or bundled SDK boundaries where
|
|
38
|
+
// instanceof can fail even though the error still came from Proxy.
|
|
34
39
|
return (typeof error === "object" &&
|
|
35
40
|
error !== null &&
|
|
36
41
|
"name" in error &&
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const proxyCheckoutServerSdkName = "@proxy-checkout/server-js";
|
|
2
|
-
export declare const proxyCheckoutServerSdkVersion = "0.0.6-prx-94.
|
|
3
|
-
export declare const proxyCheckoutServerSdkUserAgent = "@proxy-checkout/server-js/0.0.6-prx-94.
|
|
2
|
+
export declare const proxyCheckoutServerSdkVersion = "0.0.6-prx-94.52.1";
|
|
3
|
+
export declare const proxyCheckoutServerSdkUserAgent = "@proxy-checkout/server-js/0.0.6-prx-94.52.1";
|
package/dist/esm/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const proxyCheckoutServerSdkName = "@proxy-checkout/server-js";
|
|
2
|
-
export const proxyCheckoutServerSdkVersion = "0.0.6-prx-94.
|
|
2
|
+
export const proxyCheckoutServerSdkVersion = "0.0.6-prx-94.52.1";
|
|
3
3
|
export const proxyCheckoutServerSdkUserAgent = `${proxyCheckoutServerSdkName}/${proxyCheckoutServerSdkVersion}`;
|
package/package.json
CHANGED