interface-datastore
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -0,1 +1,16 @@ | ||
<a name="0.6.0"></a> | ||
# [0.6.0](https://github.com/ipfs/interface-datastore/compare/v0.5.0...v0.6.0) (2018-10-24) | ||
### Bug Fixes | ||
* add _key to the API functions using the instance ([5a377ed](https://github.com/ipfs/interface-datastore/commit/5a377ed)) | ||
### Features | ||
* add class-is module ([362eff8](https://github.com/ipfs/interface-datastore/commit/362eff8)) | ||
<a name="0.5.0"></a> | ||
@@ -2,0 +17,0 @@ # [0.5.0](https://github.com/ipfs/interface-datastore/compare/v0.4.2...v0.5.0) (2018-09-17) |
{ | ||
"name": "interface-datastore", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "datastore interface", | ||
"leadMaintainer": "Pedro Teixeira <i@pgte.me>", | ||
"main": "src/index.js", | ||
@@ -30,3 +31,2 @@ "scripts": { | ||
], | ||
"author": "Juan Benet <juan@benet.ai> (http://juan.benet.ai/)", | ||
"license": "MIT", | ||
@@ -41,14 +41,15 @@ "bugs": { | ||
"dirty-chai": "^2.0.1", | ||
"flow-bin": "~0.60.1" | ||
"flow-bin": "~0.83.0" | ||
}, | ||
"dependencies": { | ||
"async": "^2.6.1", | ||
"class-is": "^1.1.0", | ||
"err-code": "^1.1.2", | ||
"pull-defer": "~0.2.3", | ||
"pull-stream": "^3.6.9", | ||
"uuid": "^3.3.2" | ||
"uuid": "^3.2.2" | ||
}, | ||
"engines": { | ||
"node": ">=6.0.0", | ||
"npm": ">=3.0.0" | ||
"node": ">=8.0.0", | ||
"npm": ">=6.0.0" | ||
}, | ||
@@ -61,3 +62,6 @@ "contributors": [ | ||
"Juan Batiz-Benet <juan@benet.ai>", | ||
"Pedro Teixeira <i@pgte.me>", | ||
"Pedro Teixeira <pedro@protocol.ai>", | ||
"Richard Schneider <makaretu@gmail.com>", | ||
"Vasco Santos <vasco.santos@moxy.studio>", | ||
"dignifiedquire <dignifiedquire@gmail.com>", | ||
@@ -64,0 +68,0 @@ "tcme <hi@this-connect.me>", |
@@ -16,2 +16,6 @@ # interface-datastore | ||
## Lead Maintainer | ||
[Pedro Teixeira](https://github.com/pgte) | ||
## Table of Contents | ||
@@ -18,0 +22,0 @@ |
@@ -5,2 +5,3 @@ /* @flow */ | ||
const uuid = require('uuid/v4') | ||
const withIs = require('class-is') | ||
@@ -87,3 +88,3 @@ const pathSepS = '/' | ||
static withNamespaces (list /* : Array<string> */) /* : Key */ { | ||
return new Key(list.join(pathSepS)) | ||
return new _Key(list.join(pathSepS)) | ||
} | ||
@@ -102,3 +103,3 @@ | ||
static random () /* : Key */ { | ||
return new Key(uuid().replace(/-/g, '')) | ||
return new _Key(uuid().replace(/-/g, '')) | ||
} | ||
@@ -242,3 +243,3 @@ | ||
instance (s /* : string */) /* : Key */ { | ||
return new Key(this.toString() + ':' + s) | ||
return new _Key(this.toString() + ':' + s) | ||
} | ||
@@ -262,3 +263,3 @@ | ||
p += this.type() | ||
return new Key(p) | ||
return new _Key(p) | ||
} | ||
@@ -279,6 +280,6 @@ | ||
if (list.length === 1) { | ||
return new Key(pathSepS) | ||
return new _Key(pathSepS) | ||
} | ||
return new Key(list.slice(0, -1).join(pathSepS)) | ||
return new _Key(list.slice(0, -1).join(pathSepS)) | ||
} | ||
@@ -304,3 +305,3 @@ | ||
return new Key(this.toString() + key.toString(), false) | ||
return new _Key(this.toString() + key.toString(), false) | ||
} | ||
@@ -382,2 +383,4 @@ | ||
module.exports = Key | ||
const _Key = withIs(Key, { className: 'Key', symbolName: '@ipfs/interface-datastore/key' }) | ||
module.exports = _Key |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
451425
19
5330
277
6
2
+ Addedclass-is@^1.1.0
+ Addedclass-is@1.1.0(transitive)
Updateduuid@^3.2.2