ipfs-unixfs-importer
Advanced tools
Comparing version 9.0.5 to 9.0.6
@@ -11,3 +11,2 @@ 'use strict'; | ||
mergeOptions__default['default'].bind({ ignoreUndefined: true }); | ||
async function hamtHashFn(buf) { | ||
@@ -46,5 +45,6 @@ return (await murmur3.murmur3128.encode(buf)).slice(0, 8).reverse(); | ||
var defaultOptions$1 = (options = {}) => { | ||
return mergeOptions__default['default'](defaultOptions, options); | ||
const defaults = mergeOptions__default['default'].bind({ ignoreUndefined: true }); | ||
return defaults(defaultOptions, options); | ||
}; | ||
module.exports = defaultOptions$1; |
import mergeOptions from 'merge-options'; | ||
import { sha256 } from 'multiformats/hashes/sha2'; | ||
import { murmur3128 } from '@multiformats/murmur3'; | ||
mergeOptions.bind({ ignoreUndefined: true }); | ||
async function hamtHashFn(buf) { | ||
@@ -38,3 +37,4 @@ return (await murmur3128.encode(buf)).slice(0, 8).reverse(); | ||
export default (options = {}) => { | ||
return mergeOptions(defaultOptions, options); | ||
const defaults = mergeOptions.bind({ ignoreUndefined: true }); | ||
return defaults(defaultOptions, options); | ||
}; |
{ | ||
"name": "ipfs-unixfs-importer", | ||
"version": "9.0.5", | ||
"version": "9.0.6", | ||
"description": "JavaScript implementation of the UnixFs importer used by IPFS", | ||
@@ -60,3 +60,3 @@ "leadMaintainer": "Alex Potsides <alex.potsides@protocol.ai>", | ||
"interface-blockstore": "^1.0.0", | ||
"ipfs-unixfs": "^6.0.5", | ||
"ipfs-unixfs": "^6.0.6", | ||
"it-all": "^1.0.5", | ||
@@ -78,3 +78,3 @@ "it-batch": "^1.0.8", | ||
}, | ||
"gitHead": "0f9092e49deb6cbad08b38651be17da93486c00a", | ||
"gitHead": "5203595ad8e700be94cfc57d289d7d6f95fa6e3e", | ||
"exports": { | ||
@@ -81,0 +81,0 @@ ".": { |
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 not supported yet
200227
Updatedipfs-unixfs@^6.0.6