@interncom/diplomatic 0.0.39 → 0.0.41
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.mjs +0 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11578,7 +11578,6 @@ var DiplomaticClient = class {
|
|
|
11578
11578
|
}
|
|
11579
11579
|
const { encKey } = this;
|
|
11580
11580
|
const zip = await import_jszip.default.loadAsync(file);
|
|
11581
|
-
const fileMap = /* @__PURE__ */ new Map();
|
|
11582
11581
|
for (const opFileName of Object.keys(zip.files)) {
|
|
11583
11582
|
const hex = opFileName.split(".")[0];
|
|
11584
11583
|
const zipSha256 = htob(hex);
|
|
@@ -11593,12 +11592,6 @@ var DiplomaticClient = class {
|
|
|
11593
11592
|
await this.store.storeOp(sha256, cipher);
|
|
11594
11593
|
this.emitUpdate();
|
|
11595
11594
|
}
|
|
11596
|
-
await Promise.all(
|
|
11597
|
-
Object.keys(zip.files).map(async (filename) => {
|
|
11598
|
-
const content = await zip.files[filename].async("string");
|
|
11599
|
-
fileMap.set(filename, content);
|
|
11600
|
-
})
|
|
11601
|
-
);
|
|
11602
11595
|
};
|
|
11603
11596
|
async upsert(type, body, eid, version = 0) {
|
|
11604
11597
|
const id = eid ?? await crypto_default.gen128BitRandomID();
|