Skip to content

Commit

Permalink
#238 - removed importing Readable from node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thehenrytsai authored Mar 1, 2023
1 parent 9ed4302 commit af1f929
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Decentralized Web Node (DWN) SDK

Code Coverage
![Statements](https://img.shields.io/badge/statements-94.58%25-brightgreen.svg?style=flat) ![Branches](https://img.shields.io/badge/branches-95.7%25-brightgreen.svg?style=flat) ![Functions](https://img.shields.io/badge/functions-92.34%25-brightgreen.svg?style=flat) ![Lines](https://img.shields.io/badge/lines-94.58%25-brightgreen.svg?style=flat)
![Statements](https://img.shields.io/badge/statements-94.59%25-brightgreen.svg?style=flat) ![Branches](https://img.shields.io/badge/branches-95.71%25-brightgreen.svg?style=flat) ![Functions](https://img.shields.io/badge/functions-92.34%25-brightgreen.svg?style=flat) ![Lines](https://img.shields.io/badge/lines-94.59%25-brightgreen.svg?style=flat)

## Introduction

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tbd54566975/dwn-sdk-js",
"version": "0.0.23",
"version": "0.0.24",
"description": "A reference implementation of https://identity.foundation/decentralized-web-node/spec/",
"type": "module",
"types": "./dist/esm/src/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/utils/cid.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import * as cbor from '@ipld/dag-cbor';

import type { Readable } from 'readable-stream';


import { CID } from 'multiformats/cid';
import { importer } from 'ipfs-unixfs-importer';
import { Readable } from 'stream';
import { sha256 } from 'multiformats/hashes/sha2';

// a map of all supported CID hashing algorithms. This map is used to select the appropriate hasher
Expand Down

0 comments on commit af1f929

Please sign in to comment.