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.
- package/index.js +6 -4
- 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
|
-
|
|
282
|
-
|
|
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
|
-
|
|
330
|
-
|
|
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
|
|