@sylphx/sdk 0.7.0 → 0.8.0-rc.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/README.md +25 -0
- package/dist/health/index.js +521 -0
- package/dist/health/index.js.map +1 -0
- package/dist/health/index.mjs +485 -0
- package/dist/health/index.mjs.map +1 -0
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/nextjs/index.js.map +1 -1
- package/dist/nextjs/index.mjs.map +1 -1
- package/dist/react/index.js +7 -7
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +7 -7
- package/dist/react/index.mjs.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/index.mjs.map +1 -1
- package/package.json +12 -2
package/dist/index.mjs
CHANGED
|
@@ -6248,7 +6248,8 @@ var platformAuth = {
|
|
|
6248
6248
|
async refresh(opts) {
|
|
6249
6249
|
const headers = { "Content-Type": "application/json" };
|
|
6250
6250
|
if (opts.userAgent) headers["User-Agent"] = opts.userAgent;
|
|
6251
|
-
const
|
|
6251
|
+
const prefix = opts.urlPrefix ?? "/api/v1";
|
|
6252
|
+
const res = await fetch(`${opts.baseUrl.replace(/\/$/, "")}${prefix}/auth/refresh`, {
|
|
6252
6253
|
method: "POST",
|
|
6253
6254
|
headers,
|
|
6254
6255
|
body: JSON.stringify({ refresh_token: opts.refreshToken })
|
|
@@ -6272,7 +6273,8 @@ var platformAuth = {
|
|
|
6272
6273
|
async logout(opts) {
|
|
6273
6274
|
const headers = { "Content-Type": "application/json" };
|
|
6274
6275
|
if (opts.userAgent) headers["User-Agent"] = opts.userAgent;
|
|
6275
|
-
const
|
|
6276
|
+
const prefix = opts.urlPrefix ?? "/api/v1";
|
|
6277
|
+
const res = await fetch(`${opts.baseUrl.replace(/\/$/, "")}${prefix}/auth/logout`, {
|
|
6276
6278
|
method: "POST",
|
|
6277
6279
|
headers,
|
|
6278
6280
|
body: JSON.stringify({ refresh_token: opts.refreshToken })
|