ipfs-block
Advanced tools
Comparing version 0.6.1 to 0.7.1
@@ -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) |
{ | ||
"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
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
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
423819
13
4519
2
+ Addedclass-is@^1.1.0
Updatedcids@^0.5.3