forked from decentralized-identity/dwn-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
165 lines (165 loc) · 5.13 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"name": "@tbd54566975/dwn-sdk-js",
"version": "0.2.4",
"description": "A reference implementation of https://identity.foundation/decentralized-web-node/spec/",
"repository": {
"type": "git",
"url": "git+https://github.com/TBD54566975/dwn-sdk-js.git"
},
"license": "Apache-2.0",
"homepage": "https://github.com/TBD54566975/dwn-sdk-js#readme",
"bugs": {
"url": "https://github.com/TBD54566975/dwn-sdk-js/issues"
},
"contributors": [
{
"name": "Daniel Buchner",
"url": "https://github.com/csuwildcat"
},
{
"name": "Diane Huxley",
"url": "https://github.com/diehuxx"
},
{
"name": "Henry Tsai",
"url": "https://github.com/thehenrytsai"
},
{
"name": "Moe Jangda",
"url": "https://github.com/mistermoe"
},
{
"name": "Liran Cohen",
"url": "https://github.com/LiranCohen"
}
],
"type": "module",
"@comment files": [
"the files property informs npm about which files we want to include in our published package.",
"dist will include all transpiled js. There's no point in including .ts files"
],
"files": [
"dist",
"src"
],
"engines": {
"node": ">= 18"
},
"main": "./dist/cjs/index.js",
"module": "./dist/esm/src/index.js",
"types": "./dist/types/src/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/src/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/types/src/index.d.ts"
},
"./tests": {
"import": "./dist/esm/tests/test-suite.js",
"types": "./dist/types/tests/test-suite.d.ts"
}
},
"@comment react-native": [
"directive for metro (react native build tool)."
],
"react-native": "./dist/cjs/index.js",
"dependencies": {
"@ipld/dag-cbor": "9.0.3",
"@js-temporal/polyfill": "0.4.4",
"@noble/ed25519": "2.0.0",
"@noble/secp256k1": "2.0.0",
"abstract-level": "1.0.3",
"ajv": "8.12.0",
"blockstore-core": "4.2.0",
"cross-fetch": "4.0.0",
"eciesjs": "0.4.0",
"flat": "5.0.2",
"interface-blockstore": "5.2.3",
"interface-store": "5.1.2",
"ipfs-unixfs-exporter": "13.1.5",
"ipfs-unixfs-importer": "15.1.5",
"level": "8.0.0",
"lodash": "4.17.21",
"lru-cache": "9.1.2",
"ms": "2.1.3",
"multiformats": "11.0.2",
"randombytes": "2.1.0",
"readable-stream": "4.4.0",
"ulidx": "2.1.0",
"uuid": "8.3.2",
"varint": "6.0.0"
},
"devDependencies": {
"@types/chai": "4.3.0",
"@types/chai-as-promised": "7.1.5",
"@types/flat": "^5.0.2",
"@types/karma": "^6.3.3",
"@types/lodash": "4.14.179",
"@types/mocha": "9.1.0",
"@types/ms": "0.7.31",
"@types/node": "^18.13.0",
"@types/randombytes": "2.0.0",
"@types/readable-stream": "2.3.15",
"@types/secp256k1": "4.0.3",
"@types/sinon": "10.0.11",
"@types/uuid": "^9.0.1",
"@types/varint": "6.0.0",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"c8": "^8.0.0",
"chai": "4.3.6",
"chai-as-promised": "7.1.1",
"cross-env": "7.0.3",
"esbuild": "0.16.17",
"eslint": "^8.43.0",
"eslint-plugin-todo-plz": "1.3.0",
"events": "3.3.0",
"istanbul-badges-readme": "1.8.1",
"karma": "6.4.1",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "3.1.1",
"karma-esbuild": "2.2.5",
"karma-firefox-launcher": "2.1.2",
"karma-mocha": "2.0.1",
"karma-mocha-reporter": "2.2.5",
"karma-webkit-launcher": "2.1.0",
"license-report": "6.3.0",
"mkdirp": "1.0.4",
"mocha": "10.1.0",
"mockdate": "3.0.5",
"ms": "2.1.3",
"node-stdlib-browser": "1.2.0",
"playwright": "1.29.2",
"rimraf": "^3.0.2",
"search-index": "3.4.0",
"sinon": "13.0.1",
"ts-sinon": "^2.0.2",
"typescript": "^5.1.6",
"util": "0.12.4"
},
"overrides": {
"c8": {
"istanbul-lib-report": {
"make-dir": "^4.0.0"
}
}
},
"scripts": {
"build:esm": "tsc",
"build:cjs": "npm run build:esm && node build/create-cjs-bundle.cjs && echo '{\"type\": \"commonjs\"}' > ./dist/cjs/package.json",
"build": "npm run clean && npm run compile-validators && npm run build:esm && npm run build:cjs && npm run bundle",
"bundle": "node ./build/create-browser-bundle.cjs",
"clean": "rimraf dist && rimraf generated/*",
"compile-validators": "node ./build/compile-validators.js",
"lint": "eslint . --ext .ts --max-warnings 0",
"lint:fix": "eslint . --ext .ts --fix",
"make-coverage-badges": "istanbul-badges-readme",
"make-coverage-badges:ci": "npm run make-coverage-badges -- --ci",
"test:node": "npm run compile-validators && tsc && c8 mocha \"dist/esm/tests/**/*.spec.js\" && npm run make-coverage-badges",
"test:node:ci": "npm run compile-validators && tsc && c8 mocha \"dist/esm/tests/**/*.spec.js\"",
"test:browser": "npm run compile-validators && cross-env karma start karma.conf.cjs",
"test:browser-debug": "npm run compile-validators && cross-env karma start karma.conf.debug.cjs",
"license-check": "license-report --only=prod > license-report.json && node ./build/license-check.cjs",
"publish:unstable": "./build/publish-unstable.sh"
}
}