forked from decentralized-identity/dwn-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
128 lines (128 loc) · 4.31 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
{
"name": "fork-of-dwn-sdk-js",
"version": "0.1.5",
"description": "A reference implementation of https://identity.foundation/decentralized-web-node/spec/",
"type": "module",
"types": "./dist/esm/src/index.d.ts",
"engines": {
"node": ">= 16"
},
"main": "./dist/cjs/src/index.js",
"module": "./dist/esm/src/index.js",
"exports": {
"import": "./dist/esm/src/index.js",
"require": "./dist/cjs/src/index.js"
},
"browser": {
"./dist/esm/src/index.js": "./dist/bundles/browser.js",
"./dist/cjs/src/index.js": "./dist/bundles/browser.js"
},
"@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"
],
"@comment react-native": [
"directive for metro (react native build tool)."
],
"react-native": "./dist/esm/src/index.js",
"scripts": {
"build:esm": "tsc",
"build:cjs": "tsc --project tsconfig.cjs.json && echo {\"type\": \"commonjs\"} > ./dist/cjs/package.json",
"build": "npm-run-all -l clean compile-validators -p build:esm build:cjs 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"
},
"dependencies": {
"@ipld/dag-cbor": "9.0.0",
"@js-temporal/polyfill": "0.4.3",
"@noble/ed25519": "1.6.0",
"@noble/secp256k1": "1.5.5",
"@swc/helpers": "0.3.8",
"@types/ms": "0.7.31",
"ajv": "8.11.0",
"cross-fetch": "3.1.5",
"date-fns": "2.28.0",
"interface-blockstore": "4.0.1",
"ipfs-unixfs": "6.0.9",
"ipfs-unixfs-exporter": "7.0.11",
"ipfs-unixfs-importer": "9.0.10",
"level": "8.0.0",
"lodash": "4.17.21",
"lru-cache": "7.12.0",
"ms": "2.1.3",
"multiformats": "11.0.2",
"randombytes": "2.1.0",
"search-index": "3.1.3",
"uuid": "8.3.2",
"varint": "6.0.0"
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "0.1.1",
"@types/chai": "4.3.0",
"@types/chai-as-promised": "7.1.5",
"@types/lodash": "4.14.179",
"@types/mocha": "9.1.0",
"@types/randombytes": "2.0.0",
"@types/search-index": "^3.2.0",
"@types/sinon": "10.0.11",
"@types/varint": "6.0.0",
"@typescript-eslint/eslint-plugin": "5.37.0",
"@typescript-eslint/parser": "5.37.0",
"c8": "7.12.0",
"chai": "4.3.6",
"chai-as-promised": "7.1.1",
"cross-env": "7.0.3",
"esbuild": "0.14.39",
"eslint": "8.23.1",
"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.4",
"karma-mocha": "2.0.1",
"karma-mocha-reporter": "2.2.5",
"license-report": "6.3.0",
"mkdirp": "1.0.4",
"mocha": "10.1.0",
"mockdate": "3.0.5",
"ms": "2.1.3",
"npm-run-all": "4.1.5",
"rimraf": "3.0.2",
"sinon": "13.0.1",
"typescript": "4.8.2",
"util": "0.12.4"
},
"repository": {
"type": "git",
"url": "git+https://github.com/TBD54566975/dwn-sdk-js.git"
},
"author": "Moe Jangda <[email protected]> (https://twitter.com/moe_jangda)",
"contributors": [
{
"name": "Daniel Buchner",
"email": "[email protected]",
"url": "https://twitter.com/csuwildcat"
}
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/TBD54566975/dwn-sdk-js/issues"
},
"homepage": "https://github.com/TBD54566975/dwn-sdk-js#readme"
}