@ai-matrx/vault 0.1.7 → 0.1.9
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 +21 -0
- package/dist/index.cjs +12 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +15 -13
- package/dist/index.js.map +1 -1
- package/dist/io/bitwarden-json.worker.js +2 -2
- package/dist/io/bitwarden-json.worker.js.map +1 -1
- package/dist/io/onepux.worker.js +3 -3
- package/dist/io/onepux.worker.js.map +1 -1
- package/dist/io/proton-pass.worker.js +2 -2
- package/dist/io/proton-pass.worker.js.map +1 -1
- package/package.json +2 -2
|
@@ -5054,7 +5054,7 @@ function assertNoDuplicateKeys(text) {
|
|
|
5054
5054
|
i++;
|
|
5055
5055
|
}
|
|
5056
5056
|
}
|
|
5057
|
-
var
|
|
5057
|
+
var parseStrictJson = (text, ...rest) => {
|
|
5058
5058
|
assertNoDuplicateKeys(text);
|
|
5059
5059
|
return parse(text, ...rest);
|
|
5060
5060
|
};
|
|
@@ -5534,7 +5534,7 @@ function parseProtonPassExport(text, limits, binaryNames) {
|
|
|
5534
5534
|
);
|
|
5535
5535
|
let root;
|
|
5536
5536
|
try {
|
|
5537
|
-
root = object2(
|
|
5537
|
+
root = object2(parseStrictJson(text)) ?? {};
|
|
5538
5538
|
} catch {
|
|
5539
5539
|
throw new Error("The Proton Pass export is invalid.");
|
|
5540
5540
|
}
|