@auditauth/core 0.2.0-beta.3 → 0.2.0-beta.4
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/auth/authorizeCode.cjs +1 -1
- package/dist/auth/buildAuthUrl.cjs +1 -1
- package/dist/auth/index.cjs +4 -4
- package/dist/auth/refreshTokens.cjs +1 -1
- package/dist/auth/revokeSession.cjs +1 -1
- package/dist/index.cjs +8 -8
- package/dist/metrics/index.cjs +1 -1
- package/dist/metrics/sendMetrics.cjs +1 -1
- package/dist/portal/buildPortalUrl.cjs +1 -1
- package/dist/portal/index.cjs +1 -1
- package/dist/settings.d.cts +3 -3
- package/dist/settings.d.ts +3 -3
- package/package.json +2 -2
|
@@ -21,7 +21,7 @@ __export(authorizeCode_exports, {
|
|
|
21
21
|
default: () => authorizeCode_default
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(authorizeCode_exports);
|
|
24
|
-
var import_settings = require("../settings.
|
|
24
|
+
var import_settings = require("../settings.cjs");
|
|
25
25
|
const authorizeCode = async ({ code, client_type }) => {
|
|
26
26
|
if (!code) throw new Error("Invalid code");
|
|
27
27
|
const response = await fetch(`${import_settings.CORE_SETTINGS.domains.api}/auth/authorize`, {
|
|
@@ -21,7 +21,7 @@ __export(buildAuthUrl_exports, {
|
|
|
21
21
|
default: () => buildAuthUrl_default
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(buildAuthUrl_exports);
|
|
24
|
-
var import_settings = require("../settings.
|
|
24
|
+
var import_settings = require("../settings.cjs");
|
|
25
25
|
const buildAuthUrl = async ({ apiKey, redirectUrl }) => {
|
|
26
26
|
const response = await fetch(`${import_settings.CORE_SETTINGS.domains.api}/applications/login`, {
|
|
27
27
|
method: "POST",
|
package/dist/auth/index.cjs
CHANGED
|
@@ -34,10 +34,10 @@ __export(auth_exports, {
|
|
|
34
34
|
revokeSession: () => import_revokeSession.default
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(auth_exports);
|
|
37
|
-
var import_buildAuthUrl = __toESM(require("./buildAuthUrl.
|
|
38
|
-
var import_authorizeCode = __toESM(require("./authorizeCode.
|
|
39
|
-
var import_revokeSession = __toESM(require("./revokeSession.
|
|
40
|
-
var import_refreshTokens = __toESM(require("./refreshTokens.
|
|
37
|
+
var import_buildAuthUrl = __toESM(require("./buildAuthUrl.cjs"), 1);
|
|
38
|
+
var import_authorizeCode = __toESM(require("./authorizeCode.cjs"), 1);
|
|
39
|
+
var import_revokeSession = __toESM(require("./revokeSession.cjs"), 1);
|
|
40
|
+
var import_refreshTokens = __toESM(require("./refreshTokens.cjs"), 1);
|
|
41
41
|
// Annotate the CommonJS export names for ESM import in node:
|
|
42
42
|
0 && (module.exports = {
|
|
43
43
|
authorizeCode,
|
|
@@ -21,7 +21,7 @@ __export(refreshTokens_exports, {
|
|
|
21
21
|
default: () => refreshTokens_default
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(refreshTokens_exports);
|
|
24
|
-
var import_settings = require("../settings.
|
|
24
|
+
var import_settings = require("../settings.cjs");
|
|
25
25
|
const refreshTokens = async ({ client_type, refresh_token }) => {
|
|
26
26
|
const response = await fetch(`${import_settings.CORE_SETTINGS.domains.api}/auth/refresh`, {
|
|
27
27
|
method: "POST",
|
|
@@ -21,7 +21,7 @@ __export(revokeSession_exports, {
|
|
|
21
21
|
default: () => revokeSession_default
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(revokeSession_exports);
|
|
24
|
-
var import_settings = require("../settings.
|
|
24
|
+
var import_settings = require("../settings.cjs");
|
|
25
25
|
const revokeSession = async ({ access_token }) => {
|
|
26
26
|
const response = await fetch(`${import_settings.CORE_SETTINGS.domains.api}/auth/revoke`, {
|
|
27
27
|
method: "PATCH",
|
package/dist/index.cjs
CHANGED
|
@@ -15,14 +15,14 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
15
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
16
|
var index_exports = {};
|
|
17
17
|
module.exports = __toCommonJS(index_exports);
|
|
18
|
-
__reExport(index_exports, require("./settings.
|
|
19
|
-
__reExport(index_exports, require("./auth/index.
|
|
20
|
-
__reExport(index_exports, require("./portal/index.
|
|
21
|
-
__reExport(index_exports, require("./metrics/index.
|
|
18
|
+
__reExport(index_exports, require("./settings.cjs"), module.exports);
|
|
19
|
+
__reExport(index_exports, require("./auth/index.cjs"), module.exports);
|
|
20
|
+
__reExport(index_exports, require("./portal/index.cjs"), module.exports);
|
|
21
|
+
__reExport(index_exports, require("./metrics/index.cjs"), module.exports);
|
|
22
22
|
// Annotate the CommonJS export names for ESM import in node:
|
|
23
23
|
0 && (module.exports = {
|
|
24
|
-
...require("./settings.
|
|
25
|
-
...require("./auth/index.
|
|
26
|
-
...require("./portal/index.
|
|
27
|
-
...require("./metrics/index.
|
|
24
|
+
...require("./settings.cjs"),
|
|
25
|
+
...require("./auth/index.cjs"),
|
|
26
|
+
...require("./portal/index.cjs"),
|
|
27
|
+
...require("./metrics/index.cjs")
|
|
28
28
|
});
|
package/dist/metrics/index.cjs
CHANGED
|
@@ -31,7 +31,7 @@ __export(metrics_exports, {
|
|
|
31
31
|
sendMetrics: () => import_sendMetrics.default
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(metrics_exports);
|
|
34
|
-
var import_sendMetrics = __toESM(require("./sendMetrics.
|
|
34
|
+
var import_sendMetrics = __toESM(require("./sendMetrics.cjs"), 1);
|
|
35
35
|
// Annotate the CommonJS export names for ESM import in node:
|
|
36
36
|
0 && (module.exports = {
|
|
37
37
|
sendMetrics
|
|
@@ -21,7 +21,7 @@ __export(sendMetrics_exports, {
|
|
|
21
21
|
default: () => sendMetrics_default
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(sendMetrics_exports);
|
|
24
|
-
var import_settings = require("../settings.
|
|
24
|
+
var import_settings = require("../settings.cjs");
|
|
25
25
|
const sendMetrics = async ({ apiKey, appId, payload }) => {
|
|
26
26
|
await fetch(`${import_settings.CORE_SETTINGS.domains.api}/metrics`, {
|
|
27
27
|
method: "POST",
|
|
@@ -21,7 +21,7 @@ __export(buildPortalUrl_exports, {
|
|
|
21
21
|
default: () => buildPortalUrl_default
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(buildPortalUrl_exports);
|
|
24
|
-
var import_settings = require("../settings.
|
|
24
|
+
var import_settings = require("../settings.cjs");
|
|
25
25
|
const buildPortalUrl = async ({ access_token, redirectUrl }) => {
|
|
26
26
|
const response = await fetch(`${import_settings.CORE_SETTINGS.domains.api}/portal/exchange`, {
|
|
27
27
|
method: "GET",
|
package/dist/portal/index.cjs
CHANGED
|
@@ -31,7 +31,7 @@ __export(portal_exports, {
|
|
|
31
31
|
buildPortalUrl: () => import_buildPortalUrl.default
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(portal_exports);
|
|
34
|
-
var import_buildPortalUrl = __toESM(require("./buildPortalUrl.
|
|
34
|
+
var import_buildPortalUrl = __toESM(require("./buildPortalUrl.cjs"), 1);
|
|
35
35
|
// Annotate the CommonJS export names for ESM import in node:
|
|
36
36
|
0 && (module.exports = {
|
|
37
37
|
buildPortalUrl
|
package/dist/settings.d.cts
CHANGED
|
@@ -2,11 +2,11 @@ declare const CORE_SETTINGS: {
|
|
|
2
2
|
readonly 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";
|
|
3
3
|
readonly jwt_issuer: "https://api.auditauth.com";
|
|
4
4
|
readonly domains: {
|
|
5
|
-
readonly api: "https://api.auditauth.com/v1";
|
|
6
|
-
readonly client: "https://auditauth.com";
|
|
7
|
-
} | {
|
|
8
5
|
readonly api: "http://localhost:4000/v1";
|
|
9
6
|
readonly client: "http://localhost:3000";
|
|
7
|
+
} | {
|
|
8
|
+
readonly api: "https://api.auditauth.com/v1";
|
|
9
|
+
readonly client: "https://auditauth.com";
|
|
10
10
|
};
|
|
11
11
|
readonly storage_keys: {
|
|
12
12
|
readonly access: "auditauth_access";
|
package/dist/settings.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ declare const CORE_SETTINGS: {
|
|
|
2
2
|
readonly 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";
|
|
3
3
|
readonly jwt_issuer: "https://api.auditauth.com";
|
|
4
4
|
readonly domains: {
|
|
5
|
-
readonly api: "https://api.auditauth.com/v1";
|
|
6
|
-
readonly client: "https://auditauth.com";
|
|
7
|
-
} | {
|
|
8
5
|
readonly api: "http://localhost:4000/v1";
|
|
9
6
|
readonly client: "http://localhost:3000";
|
|
7
|
+
} | {
|
|
8
|
+
readonly api: "https://api.auditauth.com/v1";
|
|
9
|
+
readonly client: "https://auditauth.com";
|
|
10
10
|
};
|
|
11
11
|
readonly storage_keys: {
|
|
12
12
|
readonly access: "auditauth_access";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auditauth/core",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Nimibyte",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"./package.json": "./package.json"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
|
-
"build": "tsup",
|
|
44
|
+
"build": "tsup && node ../../scripts/fix-cjs-relative-imports.mjs dist",
|
|
45
45
|
"dev": "tsup --watch",
|
|
46
46
|
"clean": "rm -rf dist",
|
|
47
47
|
"prepack": "npm run build"
|