@ai-matrx/vault 0.1.0 → 0.1.1

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 CHANGED
@@ -3784,6 +3784,7 @@ function countLines(lines, selected) {
3784
3784
  }
3785
3785
 
3786
3786
  // src/io/import-source.ts
3787
+ import { BlobReader, ZipReader } from "@zip.js/zip.js";
3787
3788
  var STRUCTURED = ["bitwarden_json", "1password_1pux", "proton_pass", "keepass_xml"];
3788
3789
  var isStructuredSource = (s) => STRUCTURED.includes(s);
3789
3790
  var SOURCE_OPTIONS = [
@@ -3854,8 +3855,7 @@ function sniffZip(names) {
3854
3855
  return names.some((n) => !n.includes("/") && n.toLowerCase().endsWith(".csv")) ? "dashlane" : "proton_pass";
3855
3856
  }
3856
3857
  async function zipNames(file) {
3857
- const { BlobReader: BlobReader2, ZipReader: ZipReader2 } = await import("@zip.js/zip.js");
3858
- const reader = new ZipReader2(new BlobReader2(file));
3858
+ const reader = new ZipReader(new BlobReader(file));
3859
3859
  try {
3860
3860
  return (await reader.getEntries()).map((e) => e.filename);
3861
3861
  } finally {
@@ -3905,7 +3905,7 @@ function closesQuote(rest, quote) {
3905
3905
  }
3906
3906
 
3907
3907
  // src/io/bounded-zip.ts
3908
- import { BlobReader, ZipReader } from "@zip.js/zip.js";
3908
+ import { BlobReader as BlobReader2, ZipReader as ZipReader2 } from "@zip.js/zip.js";
3909
3909
  var safe = (value) => Number.isSafeInteger(value) && value >= 0;
3910
3910
  var unsafeName = (name) => /[\\\0-\x1F\x7F-\x9F]/.test(name);
3911
3911
  function stopIfCancelled(signal) {
@@ -3949,7 +3949,7 @@ async function directoryRange(entry, signal) {
3949
3949
  async function openBoundedZip(file, limits, signal) {
3950
3950
  if (file.size > limits.maxFileBytes)
3951
3951
  throw new Error("The archive exceeds the organization size limit.");
3952
- const reader = new ZipReader(new BlobReader(file), {
3952
+ const reader = new ZipReader2(new BlobReader2(file), {
3953
3953
  strictness: "strict",
3954
3954
  filenameValidation: "strict",
3955
3955
  checkAmbiguity: true