@wix/essentials 0.1.22 → 0.1.23
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/build/auth.d.ts +1 -0
- package/build/auth.js +1 -0
- package/build/error-handler.d.ts +1 -1
- package/cjs/build/auth.d.ts +1 -0
- package/cjs/build/auth.js +3 -1
- package/cjs/build/error-handler.d.ts +1 -1
- package/internal/build/auth.d.ts +1 -0
- package/internal/build/auth.js +3 -1
- package/internal/build/error-handler.d.ts +1 -1
- package/internal/cjs/build/auth.d.ts +1 -0
- package/internal/cjs/build/auth.js +1 -0
- package/internal/cjs/build/error-handler.d.ts +1 -1
- package/package.json +4 -4
package/build/auth.d.ts
CHANGED
package/build/auth.js
CHANGED
package/build/error-handler.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedError, ErrorCodesMap, ErrorHandler } from '@wix/sdk-types';
|
|
2
|
-
export declare const withErrorHandler: <T>(fn: () => Promise<T>, errorCodesMap: ErrorCodesMap) => Promise<T>;
|
|
2
|
+
export declare const withErrorHandler: <T>(fn: () => Promise<T>, errorCodesMap: ErrorCodesMap, options?: import("@wix/error-handler-types/dist/types/v2/ErrorHandlerPublicAPI.js").WithErrorHandlerOptions) => Promise<T>;
|
|
3
3
|
export declare const getResolvedError: <T>(error: unknown) => ResolvedError & Partial<T>;
|
|
4
4
|
export declare const showError: (error: unknown, props?: Partial<import("@wix/error-handler-types/dist/types/v2/ShowError.js").ShowErrorOverrideProps> | null) => void;
|
|
5
5
|
export type { ErrorHandler, ResolvedError, ErrorCodesMap };
|
package/cjs/build/auth.d.ts
CHANGED
package/cjs/build/auth.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getTokenInfo = void 0;
|
|
3
|
+
exports.getTokenInfo = exports.getContextualAuth = void 0;
|
|
4
4
|
exports.elevate = elevate;
|
|
5
5
|
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
+
var context_1 = require("@wix/sdk-runtime/context");
|
|
7
|
+
Object.defineProperty(exports, "getContextualAuth", { enumerable: true, get: function () { return context_1.getContextualAuth; } });
|
|
6
8
|
function elevate(restModule) {
|
|
7
9
|
return (0, rest_modules_1.createRESTModule)(restModule, true);
|
|
8
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedError, ErrorCodesMap, ErrorHandler } from '@wix/sdk-types';
|
|
2
|
-
export declare const withErrorHandler: <T>(fn: () => Promise<T>, errorCodesMap: ErrorCodesMap) => Promise<T>;
|
|
2
|
+
export declare const withErrorHandler: <T>(fn: () => Promise<T>, errorCodesMap: ErrorCodesMap, options?: import("@wix/error-handler-types/dist/types/v2").WithErrorHandlerOptions) => Promise<T>;
|
|
3
3
|
export declare const getResolvedError: <T>(error: unknown) => ResolvedError & Partial<T>;
|
|
4
4
|
export declare const showError: (error: unknown, props?: Partial<import("@wix/error-handler-types/dist/types/v2").ShowErrorOverrideProps> | null) => void;
|
|
5
5
|
export type { ErrorHandler, ResolvedError, ErrorCodesMap };
|
package/internal/build/auth.d.ts
CHANGED
package/internal/build/auth.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getTokenInfo = void 0;
|
|
3
|
+
exports.getTokenInfo = exports.getContextualAuth = void 0;
|
|
4
4
|
exports.elevate = elevate;
|
|
5
5
|
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
+
var context_1 = require("@wix/sdk-runtime/context");
|
|
7
|
+
Object.defineProperty(exports, "getContextualAuth", { enumerable: true, get: function () { return context_1.getContextualAuth; } });
|
|
6
8
|
function elevate(restModule) {
|
|
7
9
|
return (0, rest_modules_1.createRESTModule)(restModule, true);
|
|
8
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedError, ErrorCodesMap, ErrorHandler } from '@wix/sdk-types';
|
|
2
|
-
export declare const withErrorHandler: <T>(fn: () => Promise<T>, errorCodesMap: ErrorCodesMap) => Promise<T>;
|
|
2
|
+
export declare const withErrorHandler: <T>(fn: () => Promise<T>, errorCodesMap: ErrorCodesMap, options?: import("@wix/error-handler-types/dist/types/v2").WithErrorHandlerOptions) => Promise<T>;
|
|
3
3
|
export declare const getResolvedError: <T>(error: unknown) => ResolvedError & Partial<T>;
|
|
4
4
|
export declare const showError: (error: unknown, props?: Partial<import("@wix/error-handler-types/dist/types/v2").ShowErrorOverrideProps> | null) => void;
|
|
5
5
|
/** @internal */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedError, ErrorCodesMap, ErrorHandler } from '@wix/sdk-types';
|
|
2
|
-
export declare const withErrorHandler: <T>(fn: () => Promise<T>, errorCodesMap: ErrorCodesMap) => Promise<T>;
|
|
2
|
+
export declare const withErrorHandler: <T>(fn: () => Promise<T>, errorCodesMap: ErrorCodesMap, options?: import("@wix/error-handler-types/dist/types/v2/ErrorHandlerPublicAPI.js").WithErrorHandlerOptions) => Promise<T>;
|
|
3
3
|
export declare const getResolvedError: <T>(error: unknown) => ResolvedError & Partial<T>;
|
|
4
4
|
export declare const showError: (error: unknown, props?: Partial<import("@wix/error-handler-types/dist/types/v2/ShowError.js").ShowErrorOverrideProps> | null) => void;
|
|
5
5
|
/** @internal */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/essentials",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "cjs/build/index.js",
|
|
6
6
|
"module": "build/index.mjs",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@wix/monitoring": "^0.21.0",
|
|
40
|
-
"@wix/sdk-runtime": "^0.3.
|
|
41
|
-
"@wix/sdk-types": "^1.13.
|
|
40
|
+
"@wix/sdk-runtime": "^0.3.54",
|
|
41
|
+
"@wix/sdk-types": "^1.13.30"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
44
|
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
]
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
|
-
"falconPackageHash": "
|
|
78
|
+
"falconPackageHash": "c79df9657bf71082b10cbfaeae9a67cafec69e4fc5718f45af311de1"
|
|
79
79
|
}
|