@getpara/user-management-client 2.0.0-dev.0 → 2.0.0-dev.2

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.
@@ -0,0 +1,36 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var consts_exports = {};
19
+ __export(consts_exports, {
20
+ API_KEY_HEADER_NAME: () => API_KEY_HEADER_NAME,
21
+ PARTNER_ID_HEADER_NAME: () => PARTNER_ID_HEADER_NAME,
22
+ SESSION_COOKIE_HEADER_NAME: () => SESSION_COOKIE_HEADER_NAME,
23
+ VERSION_HEADER_NAME: () => VERSION_HEADER_NAME
24
+ });
25
+ module.exports = __toCommonJS(consts_exports);
26
+ const SESSION_COOKIE_HEADER_NAME = "x-capsule-sid";
27
+ const VERSION_HEADER_NAME = "x-para-version";
28
+ const PARTNER_ID_HEADER_NAME = "x-partner-id";
29
+ const API_KEY_HEADER_NAME = "X-External-API-Key";
30
+ // Annotate the CommonJS export names for ESM import in node:
31
+ 0 && (module.exports = {
32
+ API_KEY_HEADER_NAME,
33
+ PARTNER_ID_HEADER_NAME,
34
+ SESSION_COOKIE_HEADER_NAME,
35
+ VERSION_HEADER_NAME
36
+ });
@@ -0,0 +1,41 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var error_exports = {};
19
+ __export(error_exports, {
20
+ ParaApiError: () => ParaApiError
21
+ });
22
+ module.exports = __toCommonJS(error_exports);
23
+ function ParaApiError(message, code, status, responseURL) {
24
+ Error.call(this);
25
+ if (Error.captureStackTrace) {
26
+ Error.captureStackTrace(this, this.constructor);
27
+ } else {
28
+ this.stack = new Error().stack;
29
+ }
30
+ this.message = message;
31
+ this.name = "ParaApiError";
32
+ code && (this.code = code);
33
+ status && (this.status = status);
34
+ responseURL && (this.responseURL = responseURL);
35
+ }
36
+ const prototype = ParaApiError.prototype;
37
+ Object.defineProperty(prototype, "isParaApiError", { value: true });
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ ParaApiError
41
+ });