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

Commit

Permalink
code: apply use strict in js codes
Browse files Browse the repository at this point in the history
Signed-off-by: Yonle <[email protected]>
  • Loading branch information
Yonle committed Feb 22, 2024
1 parent 7ca2569 commit d589c03
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
img
img/*
Dockerfile
compose.yaml
hexconverter.js
.dockerignore
.github
.github/*
node_modules
package-lock.json
1 change: 1 addition & 0 deletions auth.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict";
const { validateEvent, verifyEvent } = require("nostr-tools");
const { authorized_keys, private_keys } = require(process.env.BOSTR_CONFIG_PATH || "./config");

Expand Down
1 change: 1 addition & 0 deletions bostr_cli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
"use strict";
const { version } = require("./package.json");
const { nip19 } = require("nostr-tools")
const fs = require("fs");
Expand Down
3 changes: 2 additions & 1 deletion hexconverter.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"use strict";
const { nip19 } = require("nostr-tools");
const argv = process.argv.slice(2);

if (!argv.length) return console.log("Usage: node hexconverter.js <npub....|nsec....> ....");

for (i of argv) {
for (const i of argv) {
console.log(nip19.decode(i).data);
}
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict";
const config = require(process.env.BOSTR_CONFIG_PATH || "./config");
const cluster = require("cluster");
const fs = require("fs");
Expand Down
1 change: 1 addition & 0 deletions nip42.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict";
const { finalizeEvent, nip19 } = require("nostr-tools");

module.exports = (relay, pubkey, privkey, challenge) => {
Expand Down

0 comments on commit d589c03

Please sign in to comment.