mobiletto 1.0.11 → 1.0.12

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -215,7 +215,8 @@ async function mobiletto (driverPath, key, secret, opts, encryption = null) {
215
215
  const cipher = crypt.startEncryptStream(enc)
216
216
  const realPath = encryptPath(path)
217
217
  await client.write(realPath, cryptGenerator(readFunc))
218
- await client.write(metaPath(path), stringGenerator(JSON.stringify({ size: bytesRead }), enc)())
218
+ const meta = { name: path, size: bytesRead }
219
+ await client.write(metaPath(path), stringGenerator(JSON.stringify(meta), enc)())
219
220
  return bytesRead
220
221
  },
221
222
  remove: async (path, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobiletto",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "A storage abstraction layer",
5
5
  "main": "index.js",
6
6
  "author": "Jonathan Cobb",