pairit 0.1.0 → 0.1.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.
- package/dist/index.js +6 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9935,7 +9935,7 @@ var CREDENTIALS_BACKEND = process.env.PAIRIT_CREDENTIALS_BACKEND || "keychain";
|
|
|
9935
9935
|
var KEYCHAIN_SERVICE = "pairit-cli";
|
|
9936
9936
|
var KEYCHAIN_ACCOUNT = "default";
|
|
9937
9937
|
var KEYTAR_MODULE_SPECIFIER = "keytar";
|
|
9938
|
-
var BASE_URL = process.env.PAIRIT_API_URL || "
|
|
9938
|
+
var BASE_URL = process.env.PAIRIT_API_URL || "https://manager-432501290611.us-central1.run.app";
|
|
9939
9939
|
async function exchangeCodeForToken(code) {
|
|
9940
9940
|
const response = await fetch(`${BASE_URL}/api/cli/exchange`, {
|
|
9941
9941
|
method: "POST",
|
|
@@ -10336,6 +10336,7 @@ async function compileConfig(configPath) {
|
|
|
10336
10336
|
async function buildUploadPayload(configPath, options) {
|
|
10337
10337
|
const sourceConfig = await loadConfig(configPath);
|
|
10338
10338
|
const allowRetake = sourceConfig.allowRetake === true;
|
|
10339
|
+
const requireAuth = sourceConfig.requireAuth;
|
|
10339
10340
|
const compiledPath = await compileConfig(configPath);
|
|
10340
10341
|
const compiledContent = await readFile2(compiledPath, "utf8");
|
|
10341
10342
|
const hashBuffer = createHash("sha256").update(compiledContent).digest();
|
|
@@ -10352,7 +10353,8 @@ async function buildUploadPayload(configPath, options) {
|
|
|
10352
10353
|
checksum,
|
|
10353
10354
|
metadata: metadata ?? null,
|
|
10354
10355
|
config: parsed,
|
|
10355
|
-
allowRetake
|
|
10356
|
+
allowRetake,
|
|
10357
|
+
...requireAuth !== undefined && { requireAuth }
|
|
10356
10358
|
},
|
|
10357
10359
|
checksum
|
|
10358
10360
|
};
|
|
@@ -10470,13 +10472,13 @@ function getFunctionsBaseUrl() {
|
|
|
10470
10472
|
if (process9.env.PAIRIT_API_URL) {
|
|
10471
10473
|
return process9.env.PAIRIT_API_URL;
|
|
10472
10474
|
}
|
|
10473
|
-
return "
|
|
10475
|
+
return "https://manager-432501290611.us-central1.run.app";
|
|
10474
10476
|
}
|
|
10475
10477
|
function getLabUrl() {
|
|
10476
10478
|
if (process9.env.PAIRIT_LAB_URL) {
|
|
10477
10479
|
return process9.env.PAIRIT_LAB_URL;
|
|
10478
10480
|
}
|
|
10479
|
-
return "
|
|
10481
|
+
return "https://lab-432501290611.us-central1.run.app";
|
|
10480
10482
|
}
|
|
10481
10483
|
function getInlineMediaLimit() {
|
|
10482
10484
|
const fromEnv = Number(process9.env.PAIRIT_MAX_INLINE_MEDIA_BYTES);
|