forked from identity-com/credential-commons
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
157 lines (157 loc) · 5.43 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
{
"name": "@civic/credential-commons",
"version": "3.1.0-beta.0",
"author": "Civic Community",
"license": "MIT",
"description": "Verifiable Credential and Attestation Library",
"keywords": [
"credentials",
"anchor",
"attestation"
],
"repository": {
"type": "git",
"url": "git+https://github.com/civicteam/credential-commons-js.git"
},
"main": "dist/cjs/index.js",
"module": "dist/es/index.js",
"browser": "dist/browser/index.js",
"scripts": {
"lint": "eslint . --ext .ts --max-warnings=0",
"lint:fix": "npm run lint -- --fix",
"test": "npm run build:ts && cross-env NODE_ENV=test jest",
"test:watch": "jest --watch",
"check": "npm run lint && npm run test",
"generate-civic-config": "cross-env NODE_ENV=test node scripts/configuration.js",
"build:ts": "tsc --build",
"build:cjs": "BABEL_ENV=cjs babel dist/ts-generated -d dist/cjs",
"build:es": "babel dist/ts-generated -d dist/es --no-babelrc",
"build:browser:before": "BABEL_ENV=browser babel dist/ts-generated -d dist/prebrowser",
"build:browser:after": "minify dist/prebrowser -d dist/browser",
"build:browser:clean": "rimraf dist/prebrowser",
"build:browser": "npm run build:browser:before && npm run build:browser:after && npm run build:browser:clean",
"build": "npm run build:clean && npm run build:ts && npm run build:browser && npm run build:cjs && npm run build:es",
"build:clean": "rimraf dist",
"pretag": "git fetch --tags",
"tag": "git tag v$npm_package_version && git push --tags origin master",
"precommit": "npm run lint",
"release:create": "hub release create -m v$npm_package_version v$npm_package_version",
"audit-ci": "audit-ci --config audit-ci.json"
},
"devDependencies": {
"@babel/cli": "^7.25.6",
"@babel/core": "^7.25.2",
"@babel/plugin-transform-runtime": "^7.25.4",
"@babel/preset-env": "^7.25.4",
"@changesets/cli": "^2.27.8",
"@solana/web3.js": "^1.95.3",
"@transmute/did-key.js": "^0.3.0-unstable.10",
"@types/flat": "^5.0.5",
"@types/lodash": "^4.17.7",
"@types/request-promise-native": "^1.0.21",
"@types/sjcl": "^1.0.34",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"audit-ci": "^7.1.0",
"babel-jest": "^29.7.0",
"babel-minify": "^0.5.2",
"changesets": "^1.0.2",
"clear": "^0.1.0",
"cross-env": "^7.0.3",
"eslint": "^9.9.1",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-react": "^7.35.2",
"figlet": "^1.7.0",
"husky": "^9.1.5",
"inquirer": "^10.2.0",
"jest": "^29.7.0",
"jest-html-reporter": "^3.10.2",
"npm": "^10.8.3",
"request-debug": "^0.2.0",
"rimraf": "^6.0.1",
"shelljs": "^0.8.5",
"typescript": "^5.5.4"
},
"dependencies": {
"@civic/uca": "^1.1.4",
"@identity.com/sol-did-client": "^3.3.0",
"@transmute/credentials-context": "^0.7.0-unstable.82",
"@transmute/did-context": "^0.7.0-unstable.82",
"@transmute/lds-ecdsa-secp256k1-recovery2020": "^0.0.7",
"@transmute/security-context": "^0.7.0-unstable.82",
"@transmute/vc.js": "^0.7.0-unstable.82",
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"bitcoinjs-lib": "https://github.com/dabura667/bitcoinjs-lib.git#bcash330",
"bottlejs": "^2.0.1",
"bs58": "^6.0.0",
"did-resolver": "^4.1.0",
"dotenv": "^16.4.5",
"flat": "^6.0.1",
"json-schema-traverse": "^1.0.0",
"lodash": "^4.17.21",
"merkle-tools": "^1.4.1",
"moment-mini": "^2.29.4",
"request": "^2.88.2",
"request-promise-native": "^1.0.9",
"sift": "^17.1.3",
"sjcl": "github:civicteam/sjcl#v1.0.8-ecc",
"tweetnacl": "^1.0.3",
"unix-timestamp": "^1.1.0",
"uuid": "^10.0.0",
"valid-url": "^1.0.9"
},
"jest": {
"modulePathIgnorePatterns": [
"dist/ts-generated/services/DummyAnchorServiceImpl.js",
"dist/ts-generated/services/anchorService.js",
"dist/ts-generated/services/DefaultAnchorService.js",
"dist/ts-generated/test-utils/",
"node_modules/",
"build/",
"vendor/"
],
"collectCoverageFrom": [
"dist/ts-generated/**/*.js"
],
"coverageThreshold": {
"global": {
"branches": 0,
"functions": 0,
"lines": 0,
"statements": 0
}
},
"testEnvironment": "node",
"coverageDirectory": "reports/coverage",
"collectCoverage": true,
"testResultsProcessor": "./node_modules/jest-html-reporter",
"verbose": true,
"transformIgnorePatterns": [
"/node_modules/(?!(@digitalbazaar/did-io|@digitalbazaar/lru-memoize|@digitalbazaar/ed25519-verification-key-2018|@digitalbazaar/did-io|base58-universal))"
],
"modulePaths": [
"<rootDir>/dist/ts-generated"
],
"moduleNameMapper": {
"@digitalbazaar/did-io": "@digitalbazaar/did-io/lib/main.js",
"@digitalbazaar/lru-memoize": "@digitalbazaar/lru-memoize/lib/main.js",
"@digitalbazaar/ed25519-verification-key-2018": "@digitalbazaar/ed25519-verification-key-2018/src/main.js",
"base58-universal": "base58-universal/main.js"
}
},
"jest-html-reporter": {
"pageTitle": "Verifiable Credential and Attestation Library Test Suite",
"outputPath": "reports/test-report.html",
"includeFailureMsg": true
},
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
}
}