Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nichoth committed Jan 11, 2024
1 parent d2d7a7c commit fd6ed8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ We create an object with two fields, `metadata` and `content`. This way we can k

## install
```
npm i -S @ssc-hermes/post
npm i -S @ssc-half-light/post
```

## example
Expand All @@ -33,7 +33,7 @@ You need to supply a Fission `Crypto` object, the hash of the previous message,
### create

```ts
import { create } from '@ssc-hermes/post'
import { create } from '@ssc-half-light/post'
const wn = self.oddjs // `@oddjs/odd` is attached to `window` here

const file:File = document.querySelector('.file-input').files[0]
Expand Down Expand Up @@ -69,7 +69,7 @@ const post = await create(oddCrypto, file, {
Get a URL-safe hash of this post.

```js
import { getId } from '@ssc-hermes/post'
import { getId } from '@ssc-half-light/post'
const id = getId(post)
// 5olZOzr5xalmGXTxATl4Ldt4V0Z2Z8OrD3KxLTj-ngU
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && tsc --project tsconfig.build.json",
"preinstall": "export $(cat .env | xargs)",
"preversion": "npm run lint",
"postversion": "git push && git push --tags && export $(cat .env | grep -v \"#\" | xargs) && npm publish",
"postversion": "git push --follow-tags && export $(cat .env | grep -v \"#\" | xargs) && npm publish",
"prepublishOnly": "npm run build"
},
"dependencies": {
Expand Down

0 comments on commit fd6ed8d

Please sign in to comment.