corestore 7.0.1 → 7.0.2

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 +6 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -278,8 +278,9 @@ class Corestore extends ReadyResource {
278
278
  ongc: null,
279
279
  core: null,
280
280
  active: opts.active !== false,
281
- encryptionKey: opts.encryptionKey || null,
282
- isBlockKey: !!opts.isBlockKey,
281
+ encryption: opts.encryption || null,
282
+ encryptionKey: opts.encryptionKey || null, // back compat, should remove
283
+ isBlockKey: !!opts.isBlockKey, // back compat, should remove
283
284
  valueEncoding: opts.valueEncoding || null,
284
285
  exclusive: !!opts.exclusive,
285
286
  manifest: opts.manifest || null,
@@ -326,8 +327,9 @@ class Corestore extends ReadyResource {
326
327
  core,
327
328
  sessions: this.sessions.get(core.id),
328
329
  ongc: this._ongcBound,
329
- encryptionKey: opts.encryptionKey || null,
330
- isBlockKey: !!opts.isBlockKey
330
+ encryption: opts.encryption || null,
331
+ encryptionKey: opts.encryptionKey || null, // back compat, should remove
332
+ isBlockKey: !!opts.isBlockKey // back compat, should remove
331
333
  }
332
334
  }
333
335
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corestore",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "A Hypercore factory that simplifies managing collections of cores.",
5
5
  "main": "index.js",
6
6
  "files": [