Skip to content

Commit

Permalink
Merge pull request #6 from filecoin-saturn/build-targets
Browse files Browse the repository at this point in the history
Fix web bundle
  • Loading branch information
guanzo authored Sep 14, 2023
2 parents 66faa4c + f069d9d commit a920fcf
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import Saturn from 'strn'

const client = new Saturn()

const res = await client.fetchCID('...')
const contentIterator = await client.fetchContent('Qm...')

const contentBuffer = await client.fetchContentBuffer('bafy...')
```

## License
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": "strn",
"version": "0.0.4",
"version": "0.0.5",
"description": "Filecoin Saturn Client",
"main": "src/index.js",
"type": "module",
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ class Saturn {
return await asyncIteratorToBuffer(this.fetchContent(cidPath, opts))
}

async * extractVerifiedContent (cidPath, carStream) {
yield * extractVerifiedContent(cidPath, carStream)
}

/**
*
* @param {string} cidPath
Expand Down
2 changes: 1 addition & 1 deletion strn.min.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@ module.exports = {
output: {
filename: 'strn.min.js',
path: path.resolve(__dirname),
library: {
name: 'Saturn',
type: 'var',
export: 'default',
}
}
};
};

0 comments on commit a920fcf

Please sign in to comment.