dcr-ts 0.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 ADDED
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "dcr-ts",
3
+ "version": "0.2.0",
4
+ "description": "Decred (DCR) primitives for TypeScript: BLAKE-256, addresses, BIP32 HD keys, WIF, the transaction wire format, the Decred signature hash, and low-S ECDSA signing. Byte-exact with dcrd.",
5
+ "type": "module",
6
+ "license": "ISC",
7
+ "author": "Jonathan Zeppettini <jz@jz.bz>",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/jzbz/dcr-ts"
11
+ },
12
+ "keywords": [
13
+ "decred",
14
+ "dcr",
15
+ "cryptocurrency",
16
+ "blake256",
17
+ "bip32",
18
+ "secp256k1",
19
+ "wallet"
20
+ ],
21
+ "sideEffects": false,
22
+ "main": "./dist/index.cjs",
23
+ "module": "./dist/index.js",
24
+ "types": "./dist/index.d.ts",
25
+ "exports": {
26
+ ".": {
27
+ "import": {
28
+ "types": "./dist/index.d.ts",
29
+ "default": "./dist/index.js"
30
+ },
31
+ "require": {
32
+ "types": "./dist/index.d.cts",
33
+ "default": "./dist/index.cjs"
34
+ }
35
+ }
36
+ },
37
+ "files": [
38
+ "dist",
39
+ "README.md",
40
+ "SECURITY.md",
41
+ "CHANGELOG.md",
42
+ "LICENSE"
43
+ ],
44
+ "engines": {
45
+ "node": ">=18"
46
+ },
47
+ "scripts": {
48
+ "build": "tsup",
49
+ "typecheck": "tsc --noEmit",
50
+ "test": "vitest run",
51
+ "test:watch": "vitest",
52
+ "coverage": "vitest run --coverage",
53
+ "vectors": "cd vectorgen && go run . > ../test/fixtures/dcrd-vectors.json",
54
+ "prepublishOnly": "npm run build"
55
+ },
56
+ "dependencies": {
57
+ "@noble/curves": "^1.9.2",
58
+ "@noble/hashes": "^1.8.0",
59
+ "@scure/bip39": "^1.6.0"
60
+ },
61
+ "devDependencies": {
62
+ "@types/node": "^22.0.0",
63
+ "@vitest/coverage-v8": "^3.2.7",
64
+ "tsup": "^8.3.5",
65
+ "typescript": "^5.7.2",
66
+ "vitest": "^3.2.7"
67
+ },
68
+ "bugs": {
69
+ "url": "https://github.com/jzbz/dcr-ts/issues"
70
+ },
71
+ "homepage": "https://github.com/jzbz/dcr-ts#readme",
72
+ "_overridesComment": "vitest 3.x accepts vite ^5||^6||^7, but vite 7 requires Node >=20.19 and would silently drop the Node 18 that engines promises. 6.x is the newest line supporting ^18.",
73
+ "overrides": {
74
+ "vite": "^6.3.6"
75
+ }
76
+ }