@k3000/store 0.3.1 → 0.4.0

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/architect.mjs CHANGED
@@ -1296,7 +1296,7 @@ const s2b = (value, length) => {
1296
1296
 
1297
1297
  let len = 0
1298
1298
 
1299
- for (let i = value.length - 1; i >= 0; i--) {
1299
+ for (let i = 0; i < value.length; i++) {
1300
1300
 
1301
1301
  const byteLength = Buffer.byteLength(value[i])
1302
1302
 
@@ -1305,7 +1305,7 @@ const s2b = (value, length) => {
1305
1305
  len += byteLength
1306
1306
  }
1307
1307
 
1308
- buffer = buffer.subarray(buffer.length - len)
1308
+ buffer = buffer.subarray(0, len)
1309
1309
  }
1310
1310
 
1311
1311
  return Buffer.concat([Buffer.alloc(length - buffer.length), buffer])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k3000/store",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "storage",
5
5
  "main": "generator.mjs",
6
6
  "scripts": {
package/test/1/data CHANGED
Binary file
package/test/1/index CHANGED
Binary file
package/test/2/data CHANGED
Binary file
package/test/2/index CHANGED
Binary file
package/test/3/data CHANGED
Binary file
package/test/3/index CHANGED
Binary file
package/test/4/data CHANGED
Binary file
package/test/4/index CHANGED
Binary file
package/test/5/data CHANGED
Binary file
package/test/5/index CHANGED
Binary file
package/test/6/data CHANGED
Binary file
package/test/6/index CHANGED
Binary file
package/test/7/data CHANGED
Binary file
package/test/7/index CHANGED
Binary file