Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fforbeck committed Jan 16, 2025
1 parent a17e1de commit 14e4f37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/w3up-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ const client = await create({ principal })
Once initialized, you can access the client's `Agent` with the [`agent` getter][docs-Client#agent].

##### Pre-built bundle
You can also import a pre-built bundle, which adds the exports from the client to a _global_ variable `w3up`:
You can also import a pre-built bundle, which adds the exports from the client to a _global_ variable `StorachaClient`:
```html
<!doctype html>
<script src="https://cdn.jsdelivr.net/npm/@web3-storage/w3up-client/browser.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@storacha/client/browser.min.js"></script>
<script>
async function main () {
const client = await w3up.create()
const client = await StorachaClient.create()
console.log(client.did())
}
main()
Expand Down
2 changes: 1 addition & 1 deletion packages/w3up-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"lint:fix": "tsc --build && eslint '**/*.{js,ts}' --fix && prettier --write '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore",
"build": "npm run build:tsc && npm run build:bundle:browser",
"build:tsc": "tsc --build",
"build:bundle:browser": "esbuild src/index.js --bundle --minify --target=chrome130 --format=iife --global-name=w3up --outfile=browser.min.js",
"build:bundle:browser": "esbuild src/index.js --bundle --minify --target=chrome130 --format=iife --global-name=StorachaClient --outfile=browser.min.js",
"dev": "tsc --build --watch",
"check": "tsc --build",
"prepare": "npm run build",
Expand Down

0 comments on commit 14e4f37

Please sign in to comment.