nightcode 1.0.4 → 1.0.5
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/index.js +6 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1213,8 +1213,13 @@ function clearAuth() {
|
|
|
1213
1213
|
} catch {}
|
|
1214
1214
|
}
|
|
1215
1215
|
|
|
1216
|
+
// src/config.ts
|
|
1217
|
+
var API_URL = "https://nightcodeserver-production-865b.up.railway.app";
|
|
1218
|
+
var CLERK_FRONTEND_API = "https://known-civet-17.clerk.accounts.dev";
|
|
1219
|
+
var CLERK_OAUTH_CLIENT_ID = "XTe1bnAkoTK61DCg";
|
|
1220
|
+
|
|
1216
1221
|
// src/lib/api-client.ts
|
|
1217
|
-
var apiClient = hc(
|
|
1222
|
+
var apiClient = hc(API_URL, {
|
|
1218
1223
|
fetch: async (input, init) => {
|
|
1219
1224
|
const headers = new Headers(init?.headers);
|
|
1220
1225
|
const auth = getAuth();
|
|
@@ -1378,13 +1383,6 @@ var ModelsDialogContent = ({
|
|
|
1378
1383
|
};
|
|
1379
1384
|
// src/lib/oauth.ts
|
|
1380
1385
|
import open from "open";
|
|
1381
|
-
|
|
1382
|
-
// src/config.ts
|
|
1383
|
-
var API_URL = "https://nightcodeserver-production-865b.up.railway.app";
|
|
1384
|
-
var CLERK_FRONTEND_API = "https://known-civet-17.clerk.accounts.dev";
|
|
1385
|
-
var CLERK_OAUTH_CLIENT_ID = "XTe1bnAkoTK61DCg";
|
|
1386
|
-
|
|
1387
|
-
// src/lib/oauth.ts
|
|
1388
1386
|
var LOGIN_TIMEOUT_MS = 5 * 60 * 1000;
|
|
1389
1387
|
function toBase64Url(input) {
|
|
1390
1388
|
return Buffer.from(input).toString("base64url");
|