-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
147 lines (147 loc) · 8.3 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
{
"name": "@prosopo/captcha",
"version": "0.3.5",
"stableVersion": "0.0.0",
"author": "Prosopo",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/prosopo/captcha.git"
},
"scripts": {
"hostid": "npm run cmd -- \"dig +short %s.prosopo.io | tail -n1 | tee /dev/tty | nslookup | cut -d = -f 2 | head -n1 | cut -d ' ' -f 2 | sed 's/\\.*$//g'\"",
"about:cmd": "perform string substitution on the command and then execute it. Make sure to use --, e.g. npm run cmd -- my args here",
"cmd": "f() { cmd=$1; shift; cmd=$(printf \"$cmd\" $@); echo exec: $cmd; echo; eval $cmd; }; f",
"build": "npm run cmd -- \"npm run -w @prosopo/%s build\"",
"build:contracts": "cd protocol/dev && npm run build && npm run cli -- build --docker && cd ../..",
"build:typechain": "npm run build:contracts && cd dev/scripts && npm run build && npm run cli -- import_all_contracts && cd ../.. && npm run lint:fix:contracts",
"build:all": "npm run --workspaces --if-present build",
"build:all:cjs": "npm run --workspaces --if-present build:cjs",
"build:provider-gui": "npm run -w @prosopo/provider-gui build",
"build:bundle": "npm run -w @prosopo/procaptcha-bundle bundle:dev",
"rebuild": "f() { npm run cmd -- \"npm run clean %s\" $@ ; npm run cmd -- \"npm run build %s\" $@ ;}; f",
"rebuild:npm": "npm run clean:npm && npm i",
"clean": "npm run cmd -- \"npm run -w @prosopo/%s clean\"",
"clean:npm": "find . -name \"node_modules\" -type d -prune -exec rm -rf '{}' + && find . -name \"package-lock.json\" -type f -delete ",
"clean:all": "npm run clean:npm && npm run clean:ts",
"clean:reset": "npm run clean:all && npm run clean:npm",
"deploy_protocol": "npm run -w @prosopo/scripts cli deploy_protocol -- --logLevel=debug --update_env",
"deploy_dapp": "npm run -w @prosopo/scripts cli deploy_dapp -- --logLevel=debug --update_env",
"clean:ts": "find . -name \"*.tsbuildinfo\" -type f -delete && find . -name \"dist\" -type d -prune -exec rm -rf '{}' + ",
"version": "f() { npm run -w @prosopo/scripts cli -- version -v $@; npm i; }; f",
"publish:dry-run": "npm --workspaces publish --dry-run",
"publish": "npm --workspaces publish --access=public",
"ls:ws": "npm run --workspaces env | grep npm_package_name | cut -d '=' -f 2",
"cli": "npm -w @prosopo/cli run cli",
"setup": "npm -w @prosopo/scripts run setup",
"setup:all": "npm run deploy_protocol && npm run setup",
"start:provider": "npm -w @prosopo/cli run start",
"start:server": "npm -w @prosopo/client-example-server run start",
"start:demo": "npm -w @prosopo/client-example run start",
"start:demo:pow": "npm -w @prosopo/client-pow-example run start",
"start:demo:frictionless": "npm -w @prosopo/client-frictionless-example run start",
"start:bundle": "npm -w @prosopo/client-bundle-example run start",
"start:all": "npx concurrently \"npm run start:server\" \"npm run start:provider\" \"npm run start:demo\" \"npm run start:bundle\" --kill-others",
"start:all:pow": "npx concurrently \"npm run start:server\" \"npm run start:provider\" \"npm run start:demo:pow\" \"npm run start:bundle\" --kill-others",
"populate-data": "npm -w @prosopo/provider run populate-data",
"test": "npm -w @prosopo/scripts run test",
"test:all": "npm run --workspaces --if-present test",
"eslint": "npm --workspaces run eslint && npm run eslint:workspace",
"eslint:workspace": "npx eslint '.*.*' '*.*' .vscode .github --ignore-pattern README.md --ignore-pattern diagram.svg --ignore-path .eslintignore",
"eslint:contracts": "npm -w @prosopo/captcha-contract -w @prosopo/common-contract -w @prosopo/proxy-contract run eslint",
"eslint:fix": "npm --workspaces run eslint:fix && npm run eslint:fix:workspace",
"eslint:fix:workspace": "npm run eslint:workspace -- --fix",
"eslint:fix:contracts": "npm -w @prosopo/captcha-contract -w @prosopo/common-contract -w @prosopo/proxy-contract run eslint:fix",
"prettier": "npm --workspaces run prettier && npm run prettier:workspace",
"prettier:workspace": "npx prettier '.*.*' '*.*' .vscode .github --no-error-on-unmatched-pattern --check --ignore-path .eslintignore",
"prettier:contracts": "npm -w @prosopo/captcha-contract -w @prosopo/common-contract -w @prosopo/proxy-contract run prettier",
"prettier:fix": "npm --workspaces run prettier:fix && npm run prettier:fix:workspace",
"prettier:fix:workspace": "npm run prettier:workspace -- --write",
"prettier:fix:contracts": "npm -w @prosopo/captcha-contract -w @prosopo/common-contract -w @prosopo/proxy-contract run prettier:fix",
"lint": "npm run -w @prosopo/scripts license && npm --workspaces run lint && npm run lint:workspace",
"lint:workspace": "npm run eslint:workspace && npm run prettier:workspace",
"lint:contracts": "npm -w @prosopo/captcha-contract -w @prosopo/common-contract -w @prosopo/proxy-contract run lint",
"lint:fix": "npm run -w @prosopo/scripts license:fix && npm --workspaces run lint:fix && npm run lint:fix:workspace",
"lint:fix:contracts": "npm -w @prosopo/captcha-contract -w @prosopo/common-contract -w @prosopo/proxy-contract run lint:fix",
"lint:fix:workspace": "npm run eslint:fix:workspace && npm run prettier:fix:workspace",
"removePolkadotJSWarnings": "sed -i 's/console.warn\\(.*\\);//g' ./node_modules/@polkadot/util/versionDetect.js && sed -i 's/console.warn\\(.*\\);//g' ./node_modules/@polkadot/util/cjs/versionDetect.js || true",
"postinstall": "npm run removePolkadotJSWarnings",
"docs": "typedoc --plugin typedoc-plugin-missing-exports --plugin typedoc-plugin-mdn-links --plugin typedoc-plugin-zod 2>&1 | grep -v \"Serialized project contained a reflection\" && echo 'docs.prosopo.io' >> docs/CNAME"
},
"private": true,
"engines": {
"node": ">=18",
"npm": ">=9"
},
"workspaces": [
"protocol/dev",
"contracts/*",
"dev/*",
"packages/*",
"demos/*",
"provider-gui"
],
"dependencies": {
"@prosopo/flux": "0.2.41"
},
"devDependencies": {
"@eslint/eslintrc": "^2.0.3",
"@html-eslint/eslint-plugin": "^0.22.0",
"@html-eslint/parser": "^0.22.0",
"@types/node": "^20.2.5",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitest/coverage-v8": "^1.3.1",
"babel-plugin-import": "^1.13.6",
"depcheck": "^1.4.7",
"eslint": "^8.55.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-absolute-imports-only": "^1.0.1",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-regexp": "^1.15.0",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"eslint-plugin-toml": "^0.5.0",
"eslint-plugin-unused-imports": "^3.0.0",
"eslint-plugin-workspaces": "^0.9.0",
"eslint-plugin-yaml": "^0.5.0",
"node-loader": "^2.0.0",
"nodemon": "^3.0.1",
"npm-check-updates": "^15.3.4",
"prettier": "3.0.3",
"tsc-alias": "^1.8.6",
"tsconfig-paths-webpack-plugin": "^4.0.1",
"tslib": "2.6.2",
"typedoc": "^0.25.8",
"typedoc-plugin-mdn-links": "^3.1.16",
"typedoc-plugin-missing-exports": "^2.2.0",
"typedoc-plugin-zod": "^1.1.2",
"typescript": "5.1.6"
},
"description": "Prosopo Captcha is a privacy-focused, secure alternative to reCAPTCHA. This repository integrates prosopo packages for development purposes.",
"bugs": {
"url": "https://github.com/prosopo/captcha/issues"
},
"homepage": "https://github.com/prosopo/captcha#readme",
"keywords": [
"captcha",
"prosopo",
"privacy",
"security",
"reCAPTCHA",
"anti-bot",
"authentication",
"verification",
"user-verification",
"privacy-focused",
"bot-detection",
"human-verification",
"form-security",
"web-security",
"anti-spam",
"frontend-security",
"open-source",
"free",
"captcha-alternative"
],
"license": "Apache-2.0"
}