@getalby/lightning-tools 4.0.2 → 4.2.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getalby/lightning-tools",
3
- "version": "4.0.2",
3
+ "version": "4.2.0",
4
4
  "description": "Collection of helpful building blocks and tools to develop Bitcoin Lightning web apps",
5
5
  "type": "module",
6
6
  "source": "src/index.ts",
@@ -30,25 +30,41 @@
30
30
  "scripts": {
31
31
  "prebuild": "yarn run clean",
32
32
  "prepack": "yarn run build",
33
+ "lint": "yarn lint:js && yarn tsc:compile && yarn format:fix",
34
+ "lint:js": "eslint src --ext .js,.ts --max-warnings 0",
35
+ "lint:js:fix": "eslint src --ext .js,.ts --fix",
36
+ "tsc:compile": "tsc --noEmit",
37
+ "format": "prettier --check '**/*.(md|json)' 'src/**/*.(js|ts)' 'examples/**/*.js'",
38
+ "format:fix": "prettier --loglevel silent --write '**/*.(md|json)' 'src/**/*.(js|ts)' 'examples/**/*.js'",
33
39
  "build:browser": "cp src/window.js dist && browserify dist/window.js > dist/index.browser.js",
34
40
  "test": "jest",
35
41
  "clean": "rm -rf dist",
36
42
  "build": "microbundle && yarn build:browser",
37
- "dev": "microbundle watch"
43
+ "dev": "microbundle watch",
44
+ "prepare": "husky install"
38
45
  },
39
46
  "dependencies": {
40
47
  "crypto-js": "^4.1.1",
41
48
  "light-bolt11-decoder": "^3.0.0"
42
49
  },
43
50
  "devDependencies": {
51
+ "@commitlint/cli": "^17.7.1",
52
+ "@commitlint/config-conventional": "^17.7.0",
44
53
  "@types/crypto-js": "^4.1.1",
45
54
  "@types/jest": "^29.4.0",
46
- "@types/node": "^18.11.0",
47
- "@webbtc/webln-types": "^1.0.11",
55
+ "@types/node": "^20.8.2",
56
+ "@typescript-eslint/eslint-plugin": "^6.4.0",
57
+ "@typescript-eslint/parser": "^6.4.0",
58
+ "@webbtc/webln-types": "^2.1.0",
48
59
  "browserify": "^17.0.0",
60
+ "eslint": "^8.47.0",
61
+ "eslint-config-prettier": "^9.0.0",
62
+ "husky": "^8.0.3",
49
63
  "jest": "^29.5.0",
64
+ "lint-staged": "^14.0.0",
50
65
  "microbundle": "^0.15.1",
51
- "nostr-tools": "^1.13.1",
66
+ "nostr-tools": "^1.17.0",
67
+ "prettier": "^3.0.2",
52
68
  "ts-jest": "^29.0.5",
53
69
  "ts-node": "^10.9.1",
54
70
  "typescript": "^5.1.6"