@auditauth/core 0.2.0-beta.6 → 0.2.0-beta.8
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/settings.cjs +1 -22
- package/dist/settings.d.cts +0 -3
- package/dist/settings.d.ts +0 -3
- package/dist/settings.js +1 -22
- package/package.json +1 -1
package/dist/settings.cjs
CHANGED
|
@@ -25,31 +25,10 @@ const PROD_DOMAINS = {
|
|
|
25
25
|
api: "https://api.auditauth.com/v1",
|
|
26
26
|
client: "https://auditauth.com"
|
|
27
27
|
};
|
|
28
|
-
const LOCAL_DOMAINS = {
|
|
29
|
-
api: "http://localhost:4000/v1",
|
|
30
|
-
client: "https://localhost:3000"
|
|
31
|
-
};
|
|
32
|
-
const resolveImportMeta = () => {
|
|
33
|
-
try {
|
|
34
|
-
return Function(
|
|
35
|
-
'return typeof import.meta !== "undefined" ? import.meta : undefined;'
|
|
36
|
-
)();
|
|
37
|
-
} catch {
|
|
38
|
-
return void 0;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
const resolveSdkEnv = () => {
|
|
42
|
-
const importMeta = resolveImportMeta();
|
|
43
|
-
const importMetaEnv = importMeta?.env?.AUDITAUTH_SDK_ENV ?? importMeta?.env?.VITE_AUDITAUTH_SDK_ENV;
|
|
44
|
-
const globalEnv = typeof globalThis !== "undefined" ? globalThis.__AUDITAUTH_SDK_ENV__ : void 0;
|
|
45
|
-
const processEnv = typeof process !== "undefined" ? process.env?.AUDITAUTH_SDK_ENV ?? process.env?.NEXT_PUBLIC_AUDITAUTH_SDK_ENV ?? process.env?.NODE_ENV : void 0;
|
|
46
|
-
return (importMetaEnv ?? globalEnv ?? processEnv ?? "production").toLowerCase();
|
|
47
|
-
};
|
|
48
|
-
const isDevelopmentEnv = ["development", "dev", "local"].includes(resolveSdkEnv());
|
|
49
28
|
const CORE_SETTINGS = {
|
|
50
29
|
jwt_public_key: "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs2EYs4Q9OyjNuAEPqb4j\nIzc52JdfVcNvEbG43Xp8B2kI9QxwRyX7rtFSwKowj3W1BlCLaTIMK3TafWOf9QwH\nfemuL9Ni37PFcGptzpyuoCYYA650EuD82PENcO49lsObvty2cuXxQszbPPvAecm4\nJ/XG70td/W1UwbjAJcdmp8ktZGYR0JXM37hYA9Xq/aKwu7d0FTL6WdKTvt3L5VxL\nF6WNyLs65ZSbu+j8UEkwmoJ9h9Y0mLQmFtmkoh/HWOFyFDnBNiJX0vRb++RhJw6w\ncrSbqpbTu7z4vIep5lgSOut39P273SVTQZ3cGQIS+605Ur5wjkkSzzaJV1QLBBR9\nAQIDAQAB\n-----END PUBLIC KEY-----\n",
|
|
51
30
|
jwt_issuer: "https://api.auditauth.com",
|
|
52
|
-
domains:
|
|
31
|
+
domains: PROD_DOMAINS,
|
|
53
32
|
storage_keys: {
|
|
54
33
|
access: "auditauth_access",
|
|
55
34
|
session: "auditauth_session",
|
package/dist/settings.d.cts
CHANGED
|
@@ -4,9 +4,6 @@ declare const CORE_SETTINGS: {
|
|
|
4
4
|
readonly domains: {
|
|
5
5
|
readonly api: "https://api.auditauth.com/v1";
|
|
6
6
|
readonly client: "https://auditauth.com";
|
|
7
|
-
} | {
|
|
8
|
-
readonly api: "http://localhost:4000/v1";
|
|
9
|
-
readonly client: "https://localhost:3000";
|
|
10
7
|
};
|
|
11
8
|
readonly storage_keys: {
|
|
12
9
|
readonly access: "auditauth_access";
|
package/dist/settings.d.ts
CHANGED
|
@@ -4,9 +4,6 @@ declare const CORE_SETTINGS: {
|
|
|
4
4
|
readonly domains: {
|
|
5
5
|
readonly api: "https://api.auditauth.com/v1";
|
|
6
6
|
readonly client: "https://auditauth.com";
|
|
7
|
-
} | {
|
|
8
|
-
readonly api: "http://localhost:4000/v1";
|
|
9
|
-
readonly client: "https://localhost:3000";
|
|
10
7
|
};
|
|
11
8
|
readonly storage_keys: {
|
|
12
9
|
readonly access: "auditauth_access";
|
package/dist/settings.js
CHANGED
|
@@ -2,31 +2,10 @@ const PROD_DOMAINS = {
|
|
|
2
2
|
api: "https://api.auditauth.com/v1",
|
|
3
3
|
client: "https://auditauth.com"
|
|
4
4
|
};
|
|
5
|
-
const LOCAL_DOMAINS = {
|
|
6
|
-
api: "http://localhost:4000/v1",
|
|
7
|
-
client: "https://localhost:3000"
|
|
8
|
-
};
|
|
9
|
-
const resolveImportMeta = () => {
|
|
10
|
-
try {
|
|
11
|
-
return Function(
|
|
12
|
-
'return typeof import.meta !== "undefined" ? import.meta : undefined;'
|
|
13
|
-
)();
|
|
14
|
-
} catch {
|
|
15
|
-
return void 0;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
const resolveSdkEnv = () => {
|
|
19
|
-
const importMeta = resolveImportMeta();
|
|
20
|
-
const importMetaEnv = importMeta?.env?.AUDITAUTH_SDK_ENV ?? importMeta?.env?.VITE_AUDITAUTH_SDK_ENV;
|
|
21
|
-
const globalEnv = typeof globalThis !== "undefined" ? globalThis.__AUDITAUTH_SDK_ENV__ : void 0;
|
|
22
|
-
const processEnv = typeof process !== "undefined" ? process.env?.AUDITAUTH_SDK_ENV ?? process.env?.NEXT_PUBLIC_AUDITAUTH_SDK_ENV ?? process.env?.NODE_ENV : void 0;
|
|
23
|
-
return (importMetaEnv ?? globalEnv ?? processEnv ?? "production").toLowerCase();
|
|
24
|
-
};
|
|
25
|
-
const isDevelopmentEnv = ["development", "dev", "local"].includes(resolveSdkEnv());
|
|
26
5
|
const CORE_SETTINGS = {
|
|
27
6
|
jwt_public_key: "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs2EYs4Q9OyjNuAEPqb4j\nIzc52JdfVcNvEbG43Xp8B2kI9QxwRyX7rtFSwKowj3W1BlCLaTIMK3TafWOf9QwH\nfemuL9Ni37PFcGptzpyuoCYYA650EuD82PENcO49lsObvty2cuXxQszbPPvAecm4\nJ/XG70td/W1UwbjAJcdmp8ktZGYR0JXM37hYA9Xq/aKwu7d0FTL6WdKTvt3L5VxL\nF6WNyLs65ZSbu+j8UEkwmoJ9h9Y0mLQmFtmkoh/HWOFyFDnBNiJX0vRb++RhJw6w\ncrSbqpbTu7z4vIep5lgSOut39P273SVTQZ3cGQIS+605Ur5wjkkSzzaJV1QLBBR9\nAQIDAQAB\n-----END PUBLIC KEY-----\n",
|
|
28
7
|
jwt_issuer: "https://api.auditauth.com",
|
|
29
|
-
domains:
|
|
8
|
+
domains: PROD_DOMAINS,
|
|
30
9
|
storage_keys: {
|
|
31
10
|
access: "auditauth_access",
|
|
32
11
|
session: "auditauth_session",
|