nuralem-bult-sdk 1.3.0 → 1.3.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/NuralemBult.js +3 -1
- package/package.json +1 -1
package/dist/NuralemBult.js
CHANGED
|
@@ -482,6 +482,8 @@ export class NuralemBult {
|
|
|
482
482
|
encryptedBytes.set(ciphertextBytes, 12);
|
|
483
483
|
// 4. Steganography арқылы суретке жазу (dynamicSalt біріктіріледі)
|
|
484
484
|
const stegoPngBlob = await this.injectBytesToPngNative(encryptedBytes, dynamicSalt);
|
|
485
|
+
// CORS preflight бұғаттаулары мен Failed to fetch желілік қателерді болдырмау үшін ArrayBuffer-ге айналдыру
|
|
486
|
+
const stegoPngBuffer = await stegoPngBlob.arrayBuffer();
|
|
485
487
|
const response = await fetch(`${this.routerUrl}/api/upload`, {
|
|
486
488
|
method: "POST",
|
|
487
489
|
headers: {
|
|
@@ -489,7 +491,7 @@ export class NuralemBult {
|
|
|
489
491
|
"Content-Type": "application/octet-stream",
|
|
490
492
|
"X-Document-Key": key
|
|
491
493
|
},
|
|
492
|
-
body:
|
|
494
|
+
body: stegoPngBuffer
|
|
493
495
|
});
|
|
494
496
|
if (!response.ok) {
|
|
495
497
|
const errDetail = await response.text();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuralem-bult-sdk",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Serverless Decentralized Document-based polymorphic NoSQL database with client-side caching and storage abstraction adapter. Developed under Nuralem Bult Ecosystem.",
|
|
5
5
|
"main": "dist/NuralemBult.js",
|
|
6
6
|
"types": "dist/NuralemBult.d.ts",
|