@ai-matrx/vault 0.1.13 → 0.1.14

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.d.cts CHANGED
@@ -1278,7 +1278,7 @@ interface SharingPortOptions {
1278
1278
  /**
1279
1279
  * THE vault client for every host: a VaultPort over the generated `@ai-matrx/api`. The web app, the
1280
1280
  * extension and the desktop app hand it their own `Api` (their own sign-in and organization) and get
1281
- * identical behaviour; none of them keeps a hand-written vault client.
1281
+ * identical behavior; none of them keeps a hand-written vault client.
1282
1282
  */
1283
1283
 
1284
1284
  interface ApiVaultPortOptions {
@@ -1304,7 +1304,7 @@ declare function IdentityGate({ identity, children }: {
1304
1304
  identity: VaultIdentity | undefined;
1305
1305
  children: ReactNode;
1306
1306
  }): react.JSX.Element;
1307
- /** True for the rejection a cancelled confirmation produces (callers stay quiet about it). */
1307
+ /** True for the rejection a canceled confirmation produces (callers stay quiet about it). */
1308
1308
  declare const wasCancelled: (e: unknown) => boolean;
1309
1309
 
1310
1310
  /** Reads the organization's ceilings. Raw knob values are fine: they are validated here. */
package/dist/index.d.ts CHANGED
@@ -1278,7 +1278,7 @@ interface SharingPortOptions {
1278
1278
  /**
1279
1279
  * THE vault client for every host: a VaultPort over the generated `@ai-matrx/api`. The web app, the
1280
1280
  * extension and the desktop app hand it their own `Api` (their own sign-in and organization) and get
1281
- * identical behaviour; none of them keeps a hand-written vault client.
1281
+ * identical behavior; none of them keeps a hand-written vault client.
1282
1282
  */
1283
1283
 
1284
1284
  interface ApiVaultPortOptions {
@@ -1304,7 +1304,7 @@ declare function IdentityGate({ identity, children }: {
1304
1304
  identity: VaultIdentity | undefined;
1305
1305
  children: ReactNode;
1306
1306
  }): react.JSX.Element;
1307
- /** True for the rejection a cancelled confirmation produces (callers stay quiet about it). */
1307
+ /** True for the rejection a canceled confirmation produces (callers stay quiet about it). */
1308
1308
  declare const wasCancelled: (e: unknown) => boolean;
1309
1309
 
1310
1310
  /** Reads the organization's ceilings. Raw knob values are fine: they are validated here. */
package/dist/index.js CHANGED
@@ -4088,7 +4088,7 @@ import { BlobReader as BlobReader2, ZipReader as ZipReader2 } from "@zip.js/zip.
4088
4088
  var safe = (value) => Number.isSafeInteger(value) && value >= 0;
4089
4089
  var unsafeName = (name) => /[\\\0-\x1F\x7F-\x9F]/.test(name);
4090
4090
  function stopIfCancelled(signal) {
4091
- if (signal?.aborted) throw new Error("The archive import was cancelled.");
4091
+ if (signal?.aborted) throw new Error("The archive import was canceled.");
4092
4092
  }
4093
4093
  function hasWarnings(reader, entry) {
4094
4094
  return Boolean(reader.warnings?.length || entry.warnings?.length);
@@ -4189,7 +4189,7 @@ async function openBoundedZip(file, limits, signal) {
4189
4189
  };
4190
4190
  } catch (error) {
4191
4191
  await reader.close();
4192
- if (signal?.aborted) throw new Error("The archive import was cancelled.");
4192
+ if (signal?.aborted) throw new Error("The archive import was canceled.");
4193
4193
  throw error;
4194
4194
  }
4195
4195
  }
@@ -4228,7 +4228,7 @@ async function readDashlaneCsvArchive(file, limits, signal) {
4228
4228
  return { credentialsText, omittedCsvCount };
4229
4229
  } catch (error) {
4230
4230
  credentialsText = void 0;
4231
- if (signal?.aborted) throw new Error("The Dashlane import was cancelled.");
4231
+ if (signal?.aborted) throw new Error("The Dashlane import was canceled.");
4232
4232
  throw error;
4233
4233
  } finally {
4234
4234
  credentialsText = void 0;
@@ -4363,7 +4363,7 @@ function hasValidStructuredImportFileNotices(value, maxCount) {
4363
4363
  }
4364
4364
 
4365
4365
  // src/io/parse-source.ts
4366
- var cancelled = () => new Error("The import was cancelled.");
4366
+ var cancelled = () => new Error("The import was canceled.");
4367
4367
  function parseStructured(source, file, limits, signal) {
4368
4368
  const descriptor = structuredImportSource(source);
4369
4369
  if (!descriptor) return Promise.reject(new Error("This kind of file cannot be imported."));
@@ -6989,7 +6989,7 @@ var plural2 = (n, one) => `${n} ${one}${n === 1 ? "" : "s"}`;
6989
6989
  function terminalMessage(s) {
6990
6990
  if (s.phase === "completed") return `Imported ${plural2(s.committed, "passkey")}.`;
6991
6991
  if (s.phase === "partial") return `${s.committed} imported; ${s.unsupported + s.failed + s.uncertain + s.not_attempted} need attention.`;
6992
- if (s.phase === "cancelled") return "Import cancelled. Nothing else will be imported.";
6992
+ if (s.phase === "cancelled") return "Import canceled. Nothing else will be imported.";
6993
6993
  if (s.phase === "unavailable") return "Passkey import is unavailable here.";
6994
6994
  if (s.phase === "failed") return "The import did not finish. Recover it before using a new file.";
6995
6995
  return s.message;
@@ -7174,7 +7174,7 @@ function useNativeImport(bridge, stillAllowed, onImported) {
7174
7174
  present(g, { kind: "status", status: result, message: terminalMessage(result) });
7175
7175
  if (!done && ACTIVE_PHASES.has(result.phase)) schedulePoll(active.id);
7176
7176
  } catch (e) {
7177
- keepOperation(g, fail(e, "The import could not be cancelled."));
7177
+ keepOperation(g, fail(e, "The import could not be canceled."));
7178
7178
  } finally {
7179
7179
  if (current(g)) setBusy(false);
7180
7180
  }