pairit 0.1.1 → 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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pairit",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "CLI for the Pairit behavioral science experiment platform",
5
5
  "type": "module",
6
6
  "bin": {