-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
142 lines (142 loc) · 7.35 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
{
"name": "iam-client-lib",
"version": "3.2.0-alpha.3",
"description": "Library for Decentralized Identity and Access Management",
"main": "dist/iam-client-lib.js",
"module": "dist/iam-client-lib.esm.js",
"types": "dist/src/iam-client-lib.d.ts",
"files": [
"dist"
],
"scripts": {
"postinstall": "patch-package",
"lint": "npx eslint ./src/**/*.ts ./test/**/*.ts",
"prebuild": "rimraf dist ethers",
"build": "npm run build:contracts && npm run build:ts && copyfiles \"ethers/**/*.d.ts\" dist && copyfiles \"patches/*.patch\" dist",
"build:node": "npm run build:nats_node && bili --format cjs",
"build:front_end": "npm run build:nats_front_end && bili --format esm",
"build:nats_front_end": "grep -rl '\"nats.ws\"' ./src | xargs perl -i -pe's/nats\\.ws/nats\\.ws\\/lib\\/src\\/mod\\.js/g'",
"build:nats_node": "grep -rl '\"nats.ws/lib' ./src | xargs perl -i -pe's/nats\\.ws\\/lib\\/src\\/mod\\.js/nats\\.ws/g'",
"build:ts": "npm run build:front_end && npm run build:node",
"build:api_docs": "rm -rf docs/api && typedoc --plugin typedoc-plugin-markdown --hideBreadcrumbs true",
"build:contracts": "npm run build:typechain:ens && npm run build:typechain:did && npm run build:typechain:roles && npm run build:typechain:staking",
"build:typechain:ens": "typechain --target ethers-v5 --out-dir ethers \"./node_modules/@ensdomains/ens/build/contracts/ENSRegistry.json\"",
"build:typechain:did": "npm run build:typechain:offerableIdentity && npm run build:typechain:identityManager",
"build:typechain:roles": " npm run build:typechain:claimManager && npm run build:typechain:roledefinitionresolver && npm run build:typechain:domainnotifier && npm run build:typechain:publicresolver",
"build:typechain:staking": "npm run build:typechain:rewardpool && npm run build:typechain:stakingpool",
"build:typechain:offerableIdentity": "typechain --target ethers-v5 --out-dir ethers \"./node_modules/@ew-did-registry/proxyidentity/build/contracts/OfferableIdentity.json\"",
"build:typechain:identityManager": "typechain --target ethers-v5 --out-dir ethers \"./node_modules/@ew-did-registry/proxyidentity/build/contracts/IdentityManager.json\"",
"build:typechain:claimManager": "typechain --target ethers-v5 --out-dir ethers \"./node_modules/@energyweb/iam-contracts/dist/contracts/ClaimManager.json\"",
"build:typechain:roledefinitionresolver": "typechain --target ethers-v5 --out-dir ethers \"./node_modules/@energyweb/iam-contracts/dist/contracts/RoleDefinitionResolver.json\"",
"build:typechain:domainnotifier": "typechain --target ethers-v5 --out-dir ethers \"./node_modules/@energyweb/iam-contracts/dist/contracts/DomainNotifier.json\"",
"build:typechain:publicresolver": "typechain --target ethers-v5 --out-dir ethers \"./node_modules/@ensdomains/ens-contracts/build/contracts/PublicResolver.json\"",
"build:typechain:rewardpool": "typechain --target ethers-v5 --out-dir ethers \"./node_modules/@energyweb/iam-contracts/dist/contracts/RewardPool.json\"",
"build:typechain:stakingpool": "typechain --target ethers-v5 --out-dir ethers \"./node_modules/@energyweb/iam-contracts/dist/contracts/Staking*.json\"",
"prepare": "npm run build",
"start-rpc": "run-with-testrpc -m \"candy maple cake sugar pudding cream honey rich smooth crumble sweet treat\" --port 8544 --chainId 1337 --accounts 20 --gasLimit=10000000",
"ganache": "ganache-cli -m \"candy maple cake sugar pudding cream honey rich smooth crumble sweet treat\" --port 8544 --chainId 1337 --accounts 20 --gasLimit=10000000",
"test:watch": "npm run start-rpc -- \"jest --coverage --env=./test/env.js --watchAll\"",
"test:prod": "npm run start-rpc -- \"jest --no-cache --env=./test/env.js\"",
"test:watch:windows": "concurrently \"npm run start-rpc\" \"jest --coverage --env=./test/env.js --watchAll\""
},
"keywords": [
"decentralized",
"identity",
"access",
"library",
"energy web",
"iam",
"switchboard"
],
"author": "Kim Honoridez <kim.energyweb@gmail.com> (https://github.com/kim-energyweb)",
"repository": {
"type": "git",
"url": "git+https://github.com/energywebfoundation/iam-client-lib.git"
},
"homepage": "https://github.com/energywebfoundation/iam-client-lib.git#readme",
"license": "GPL-3.0-or-later",
"private": false,
"engines": {
"node": ">= 10.0.0",
"npm": ">= 6.0.0"
},
"dependencies": {
"@babel/plugin-transform-runtime": "^7.15.8",
"@babel/runtime": "^7.12.5",
"@energyweb/iam-contracts": "^3.1.0",
"@ensdomains/ens": "^0.4.5",
"@ew-did-registry/claims": "0.6.1",
"@ew-did-registry/did": "0.6.0",
"@ew-did-registry/did-document": "0.6.1",
"@ew-did-registry/did-ethr-resolver": "0.6.1",
"@ew-did-registry/did-resolver-interface": "0.6.0",
"@ew-did-registry/jwt": "0.6.0",
"@ew-did-registry/keys": "0.6.0",
"@ew-did-registry/proxyidentity": "0.6.1",
"@gnosis.pm/safe-apps-sdk": "1.0.3",
"@metamask/detect-provider": "^1.2.0",
"@walletconnect/ethereum-provider": "^1.6.6",
"axios": "^0.21.1",
"base64url": "^3.0.1",
"concurrently": "^6.1.0",
"eth-ens-namehash": "^2.0.8",
"ethers": "^5.4.4",
"js-sha3": "^0.8.0",
"lodash.difference": "^4.5.0",
"nats.ws": "^1.3.0",
"patch-package": "^6.4.7",
"qs": "^6.9.4",
"tslib": "^2.0.3",
"uuid": "^7.0.3"
},
"devDependencies": {
"@babel/core": "7.12.10",
"@babel/plugin-transform-regenerator": "7.12.1",
"@babel/preset-env": "7.12.11",
"@energyweb/km-crypto": "file:energyweb-km-crypto-v1.0.0.tgz",
"@energyweb/km-utils": "file:energyweb-km-utils-v1.0.0.tgz",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.1",
"@typechain/ethers-v5": "^7.0.1",
"@types/jest": "^26.0.13",
"@types/lodash.difference": "^4.5.6",
"@types/qs": "^6.9.5",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"babel-jest": "26.6.3",
"bili": "^5.0.5",
"copyfiles": "^2.4.0",
"coveralls": "^3.1.0",
"eslint": "^7.8.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"ganache-cli": "^6.12.2",
"husky": "^4.3.8",
"jest": "^26.4.2",
"jest-config": "^26.4.2",
"jest-environment-node": "^27.1.0",
"jwt-decode": "^3.1.2",
"lint-staged": "^11.1.1",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"rollup-plugin-typescript2": "^0.27.2",
"run-with-testrpc": "0.3.1",
"semantic-release": "17.3.0",
"ts-jest": "26.3.0",
"typechain": "^5.0.0",
"typedoc": "^0.21.5",
"typedoc-plugin-markdown": "~3.10.4",
"typescript": "^4.0.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && rm -rf docs/api && typedoc --plugin typedoc-plugin-markdown --hideBreadcrumbs true && git add -A docs/api/"
}
},
"lint-staged": {
"*.{js,ts,tsx}": [
"eslint --fix"
]
}
}