@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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.14
4
+
5
+ UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
+ Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/vault/src`.
7
+
3
8
  ## 0.1.13
4
9
 
5
10
  - **Turn on also turns the item on.** A restore leaves the whole item disabled (`status: "disabled"`), not only its fields, so a turned-on field still answered "not found". `VaultItem.turnedOff` reads it; every **Turn on** turns the item on first (`fields.updateItem(item, { active: true })` → `status: "active"`), and turning the one-time password on also re-enables its codes. An off item says "This item is turned off" and its rows read Turned off. Guard: `src/restored-item.test.tsx`, `src/fields/fields.test.ts`. Consumer action: none.
package/dist/index.cjs CHANGED
@@ -4150,7 +4150,7 @@ var import_zip2 = require("@zip.js/zip.js");
4150
4150
  var safe = (value) => Number.isSafeInteger(value) && value >= 0;
4151
4151
  var unsafeName = (name) => /[\\\0-\x1F\x7F-\x9F]/.test(name);
4152
4152
  function stopIfCancelled(signal) {
4153
- if (signal?.aborted) throw new Error("The archive import was cancelled.");
4153
+ if (signal?.aborted) throw new Error("The archive import was canceled.");
4154
4154
  }
4155
4155
  function hasWarnings(reader, entry) {
4156
4156
  return Boolean(reader.warnings?.length || entry.warnings?.length);
@@ -4251,7 +4251,7 @@ async function openBoundedZip(file, limits, signal) {
4251
4251
  };
4252
4252
  } catch (error) {
4253
4253
  await reader.close();
4254
- if (signal?.aborted) throw new Error("The archive import was cancelled.");
4254
+ if (signal?.aborted) throw new Error("The archive import was canceled.");
4255
4255
  throw error;
4256
4256
  }
4257
4257
  }
@@ -4290,7 +4290,7 @@ async function readDashlaneCsvArchive(file, limits, signal) {
4290
4290
  return { credentialsText, omittedCsvCount };
4291
4291
  } catch (error) {
4292
4292
  credentialsText = void 0;
4293
- if (signal?.aborted) throw new Error("The Dashlane import was cancelled.");
4293
+ if (signal?.aborted) throw new Error("The Dashlane import was canceled.");
4294
4294
  throw error;
4295
4295
  } finally {
4296
4296
  credentialsText = void 0;
@@ -4425,7 +4425,7 @@ function hasValidStructuredImportFileNotices(value, maxCount) {
4425
4425
  }
4426
4426
 
4427
4427
  // src/io/parse-source.ts
4428
- var cancelled = () => new Error("The import was cancelled.");
4428
+ var cancelled = () => new Error("The import was canceled.");
4429
4429
  function parseStructured(source, file, limits, signal) {
4430
4430
  const descriptor = structuredImportSource(source);
4431
4431
  if (!descriptor) return Promise.reject(new Error("This kind of file cannot be imported."));
@@ -7051,7 +7051,7 @@ var plural2 = (n, one) => `${n} ${one}${n === 1 ? "" : "s"}`;
7051
7051
  function terminalMessage(s) {
7052
7052
  if (s.phase === "completed") return `Imported ${plural2(s.committed, "passkey")}.`;
7053
7053
  if (s.phase === "partial") return `${s.committed} imported; ${s.unsupported + s.failed + s.uncertain + s.not_attempted} need attention.`;
7054
- if (s.phase === "cancelled") return "Import cancelled. Nothing else will be imported.";
7054
+ if (s.phase === "cancelled") return "Import canceled. Nothing else will be imported.";
7055
7055
  if (s.phase === "unavailable") return "Passkey import is unavailable here.";
7056
7056
  if (s.phase === "failed") return "The import did not finish. Recover it before using a new file.";
7057
7057
  return s.message;
@@ -7236,7 +7236,7 @@ function useNativeImport(bridge, stillAllowed, onImported) {
7236
7236
  present(g, { kind: "status", status: result, message: terminalMessage(result) });
7237
7237
  if (!done && ACTIVE_PHASES.has(result.phase)) schedulePoll(active.id);
7238
7238
  } catch (e) {
7239
- keepOperation(g, fail(e, "The import could not be cancelled."));
7239
+ keepOperation(g, fail(e, "The import could not be canceled."));
7240
7240
  } finally {
7241
7241
  if (current(g)) setBusy(false);
7242
7242
  }