cocod 0.0.1 → 0.0.3
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
|
-
|
|
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:
|
|
25
|
+
run: bun pm version patch --no-git-tag-version
|
|
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=$(
|
|
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
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}@
|
|
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}@
|
|
136
|
+
return Response.json({ output: `${npub}@npubx.cash` });
|
|
137
137
|
}),
|
|
138
138
|
},
|
|
139
139
|
|
package/src/utils/wallet.ts
CHANGED
|
@@ -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://
|
|
34
|
+
const npcPlugin = new NPCPlugin("https://npubx.cash", signer, {
|
|
35
35
|
useWebsocket: true,
|
|
36
36
|
logger,
|
|
37
37
|
});
|