@fileverse/api 0.0.16 → 0.0.18
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/cli/index.js +10 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cloudflare.js +101 -49
- package/dist/cloudflare.js.map +1 -1
- package/dist/commands/index.js +16 -1
- package/dist/commands/index.js.map +1 -1
- package/dist/index.js +75 -49
- package/dist/index.js.map +1 -1
- package/dist/worker.js +69 -48
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
package/dist/commands/index.js
CHANGED
|
@@ -968,9 +968,18 @@ var init_file_utils = __esm({
|
|
|
968
968
|
}
|
|
969
969
|
});
|
|
970
970
|
|
|
971
|
+
// src/sdk/dom-globals.ts
|
|
972
|
+
var init_dom_globals = __esm({
|
|
973
|
+
"src/sdk/dom-globals.ts"() {
|
|
974
|
+
"use strict";
|
|
975
|
+
init_esm_shims();
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
|
|
971
979
|
// src/sdk/file-manager.ts
|
|
972
980
|
import { fromUint8Array as fromUint8Array2, toUint8Array as toUint8Array3 } from "js-base64";
|
|
973
981
|
import { generateAESKey, exportAESKey } from "@fileverse/crypto/webcrypto";
|
|
982
|
+
import { markdownToYjs } from "@fileverse/content-processor";
|
|
974
983
|
var init_file_manager = __esm({
|
|
975
984
|
"src/sdk/file-manager.ts"() {
|
|
976
985
|
"use strict";
|
|
@@ -978,6 +987,7 @@ var init_file_manager = __esm({
|
|
|
978
987
|
init_file_utils();
|
|
979
988
|
init_constants();
|
|
980
989
|
init_constants3();
|
|
990
|
+
init_dom_globals();
|
|
981
991
|
init_infra();
|
|
982
992
|
}
|
|
983
993
|
});
|
|
@@ -1561,7 +1571,12 @@ import hkdf from "futoin-hkdf";
|
|
|
1561
1571
|
import tweetnacl2 from "tweetnacl";
|
|
1562
1572
|
import { fromUint8Array as fromUint8Array4, toUint8Array as toUint8Array5 } from "js-base64";
|
|
1563
1573
|
var deriveKeyFromAg2Hash = async (pass, salt) => {
|
|
1564
|
-
const key = await getArgon2idHash(pass, salt
|
|
1574
|
+
const key = await getArgon2idHash(pass, salt, void 0, {
|
|
1575
|
+
t: 2,
|
|
1576
|
+
m: 4096,
|
|
1577
|
+
p: 8,
|
|
1578
|
+
dkLen: 32
|
|
1579
|
+
});
|
|
1565
1580
|
return hkdf(Buffer.from(key), tweetnacl2.secretbox.keyLength, {
|
|
1566
1581
|
info: Buffer.from("encryptionKey")
|
|
1567
1582
|
});
|