ic-mops 0.1.6 → 0.1.7

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.
@@ -201,7 +201,8 @@ export async function publish() {
201
201
  }
202
202
  let fileId = res.ok;
203
203
 
204
- for (let i = 1, start = i * chunkSize; start < content.length; i++) {
204
+ for (let i = 1; i < chunkCount; i++) {
205
+ let start = i * chunkSize;
205
206
  let chunk = Array.from(content.slice(start, start + chunkSize));
206
207
  let res = await actor.uploadFileChunk(puiblishingId, fileId, i, chunk);
207
208
  if (res.err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "cli.js"