Socket
Socket
Sign inDemoInstall

interface-datastore

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

interface-datastore - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

dist/index.js

15

CHANGELOG.md

@@ -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)

16

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc