Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ipfs-block

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipfs-block - npm Package Compare versions

Comparing version 0.6.1 to 0.7.1

ci/Jenkinsfile

15

CHANGELOG.md

@@ -0,1 +1,16 @@

<a name="0.7.1"></a>
## [0.7.1](https://github.com/ipfs/js-ipfs-block/compare/v0.7.0...v0.7.1) (2018-04-09)
<a name="0.7.0"></a>
# [0.7.0](https://github.com/ipfs/js-ipfs-block/compare/v0.6.1...v0.7.0) (2018-04-09)
### Features
* use class-is module for type checks ([958cd09](https://github.com/ipfs/js-ipfs-block/commit/958cd09))
<a name="0.6.1"></a>

@@ -2,0 +17,0 @@ ## [0.6.1](https://github.com/ipfs/js-ipfs-block/compare/v0.6.0...v0.6.1) (2017-11-06)

14

package.json
{
"name": "ipfs-block",
"version": "0.6.1",
"version": "0.7.1",
"description": "JavaScript Implementation of IPFS Block",

@@ -40,7 +40,8 @@ "main": "src/index.js",

"devDependencies": {
"aegir": "^12.1.3",
"aegir": "^13.0.6",
"chai": "^4.1.2"
},
"dependencies": {
"cids": "^0.5.2"
"cids": "^0.5.3",
"class-is": "^1.1.0"
},

@@ -53,3 +54,5 @@ "engines": {

"Charlie <the_charlie_daly@hotmail.co.uk>",
"David Dias <imp@imp.local>",
"David Dias <daviddias.p@gmail.com>",
"Diogo Silva <fsdiogo@gmail.com>",
"Friedel Ziegelmayer <dignifiedquire@gmail.com>",

@@ -59,6 +62,7 @@ "Greenkeeper <support@greenkeeper.io>",

"Richard Schneider <makaretu@gmail.com>",
"Victor Bjelkholm <victorbjelkholm@gmail.com>",
"greenkeeper[bot] <greenkeeper[bot]@users.noreply.github.com>",
"npmcdn-to-unpkg-bot <npmcdn-to-unpkg-bot@users.noreply.github.com>",
"ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ <victorbjelkholm@gmail.com>"
"jonahweissman <19804455+jonahweissman@users.noreply.github.com>",
"npmcdn-to-unpkg-bot <npmcdn-to-unpkg-bot@users.noreply.github.com>"
]
}

@@ -30,5 +30,5 @@ # IPFS Block JavaScript Implementation

- [Block](#block)
- [`new Block(data, cid)`](#new-blockdata)
- [`new Block(data, cid)`](#new-blockdata-cid)
- [`block.data`](#blockdata)
- [`block.cid`]
- [`block.cid`](#blockcid)
- [Contribute](#contribute)

@@ -35,0 +35,0 @@ - [License](#license)

'use strict'
const CID = require('cids')
const withIs = require('class-is')

@@ -54,14 +55,4 @@ /**

}
/**
* Check if the given value is a Block.
*
* @param {any} other
* @returns {bool}
*/
static isBlock (other) {
return other && other.constructor.name === 'Block'
}
}
module.exports = Block
module.exports = withIs(Block, { className: 'Block', symbolName: '@ipfs/js-ipfs-block/block' })

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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