cocod 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,25 +13,25 @@ jobs:
13
13
  contents: write
14
14
  steps:
15
15
  - uses: actions/checkout@v4
16
- with:
17
- fetch-depth: 0
16
+ - uses: oven-sh/setup-bun@v2
18
17
  - uses: actions/setup-node@v4
19
18
  with:
20
- node-version: 20
21
19
  registry-url: "https://registry.npmjs.org"
22
20
  - name: Configure git user
23
21
  run: |
24
22
  git config user.name "github-actions[bot]"
25
23
  git config user.email "github-actions[bot]@users.noreply.github.com"
26
24
  - name: Bump version
27
- run: npm version patch --no-git-tag-version
25
+ run: bun pm version patch
26
+ - name: Pack tarball
27
+ run: bun pm pack
28
28
  - name: Publish to npm
29
29
  env:
30
30
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31
- run: npm publish --access public
31
+ run: npm publish --access public *.tgz
32
32
  - name: Commit version bump
33
33
  run: |
34
- VERSION=$(node -p "require('./package.json').version")
35
- git add package.json
34
+ VERSION=$(bun -e 'console.log(require("./package.json").version)')
35
+ git add package.json bun.lock
36
36
  git commit -m "chore(release): v$VERSION [skip ci]"
37
37
  git push
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cocod",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "module": "src/index.ts",
5
5
  "type": "module",
6
6
  "private": false,
package/src/routes.ts CHANGED
@@ -130,10 +130,10 @@ export function createRouteHandlers(
130
130
  GET: stateManager.requireUnlocked(async (_req, state: UnlockedState) => {
131
131
  const info = await state.manager.ext.npc.getInfo();
132
132
  if (info.name) {
133
- return Response.json({ output: `${info.name}@npuby.cash` });
133
+ return Response.json({ output: `${info.name}@npubx.cash` });
134
134
  }
135
135
  const npub = nip19.npubEncode(info.pubkey);
136
- return Response.json({ output: `${npub}@npuby.cash` });
136
+ return Response.json({ output: `${npub}@npubx.cash` });
137
137
  }),
138
138
  },
139
139
 
@@ -31,7 +31,7 @@ export async function initializeWallet(
31
31
  const logger = new ConsoleLogger("Coco", { level: "info" });
32
32
  const sk = privateKeyFromSeedWords(mnemonic);
33
33
  const signer = async (t: EventTemplate) => finalizeEvent(t, sk);
34
- const npcPlugin = new NPCPlugin("https://npuby.cash", signer, {
34
+ const npcPlugin = new NPCPlugin("https://npubx.cash", signer, {
35
35
  useWebsocket: true,
36
36
  logger,
37
37
  });