@sentio/cli 4.4.0-rc.3 → 4.4.1-rc.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 +2 -2
- package/package.json +2 -2
- package/src/network.ts +1 -1
- package/src/uploader.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -169861,7 +169861,7 @@ async function isOperatorOnChain(config, addresses, owner, operator) {
|
|
|
169861
169861
|
}
|
|
169862
169862
|
async function uploadToIPFS(fileBuffer, ipfsUrl) {
|
|
169863
169863
|
const formData = new FormData();
|
|
169864
|
-
const blob = new Blob([fileBuffer], { type: "application/octet-stream" });
|
|
169864
|
+
const blob = new Blob([Uint8Array.from(fileBuffer)], { type: "application/octet-stream" });
|
|
169865
169865
|
formData.append("file", blob, "lib.js");
|
|
169866
169866
|
const response = await fetch$1(ipfsUrl, {
|
|
169867
169867
|
method: "POST",
|
|
@@ -170126,7 +170126,7 @@ var IPFSBatchUploader = class extends BatchUploader {
|
|
|
170126
170126
|
const fileContent = files[fileKey];
|
|
170127
170127
|
if (!fileContent) throw new Error(`File content not found for key: ${fileKey}`);
|
|
170128
170128
|
const formData = new FormData();
|
|
170129
|
-
const blob = new Blob([fileContent], { type: "application/octet-stream" });
|
|
170129
|
+
const blob = new Blob([Uint8Array.from(fileContent)], { type: "application/octet-stream" });
|
|
170130
170130
|
formData.append("file", blob, fileKey);
|
|
170131
170131
|
const uploadResponse = await fetch$1(putUrl, {
|
|
170132
170132
|
method: "POST",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentio/cli",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.1-rc.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/fs-extra": "^11.0.4"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">=
|
|
39
|
+
"node": ">=26"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "pnpm tsc --noEmit && pnpm bundle",
|
package/src/network.ts
CHANGED
|
@@ -272,7 +272,7 @@ export async function isOperatorOnChain(
|
|
|
272
272
|
|
|
273
273
|
export async function uploadToIPFS(fileBuffer: Buffer, ipfsUrl: string): Promise<string> {
|
|
274
274
|
const formData = new FormData()
|
|
275
|
-
const blob = new Blob([fileBuffer], { type: 'application/octet-stream' })
|
|
275
|
+
const blob = new Blob([Uint8Array.from(fileBuffer)], { type: 'application/octet-stream' })
|
|
276
276
|
formData.append('file', blob, 'lib.js')
|
|
277
277
|
|
|
278
278
|
const response = await fetch(ipfsUrl, {
|
package/src/uploader.ts
CHANGED
|
@@ -270,7 +270,7 @@ export class IPFSBatchUploader extends BatchUploader {
|
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
const formData = new FormData()
|
|
273
|
-
const blob = new Blob([fileContent], { type: 'application/octet-stream' })
|
|
273
|
+
const blob = new Blob([Uint8Array.from(fileContent)], { type: 'application/octet-stream' })
|
|
274
274
|
formData.append('file', blob, fileKey) // 'file' is a common field name for single file uploads
|
|
275
275
|
|
|
276
276
|
const uploadResponse = await fetch(putUrl, {
|