-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
package.json
78 lines (78 loc) · 4.11 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
{
"name": "friendly-challenge",
"version": "0.9.18",
"description": "The client code used for FriendlyCaptcha (widget script, html, styling and webworker solvers)",
"keywords": [
"captcha",
"anti-bot",
"widget",
"friendlycaptcha",
"privacy",
"friendly"
],
"license": "MIT",
"repository": "https://github.com/FriendlyCaptcha/friendly-challenge",
"scripts": {
"prebuild": "rimraf dist",
"lint": "eslint src/**/*.ts",
"build:html": "cp src/html/*.html dist/",
"build:worker": "npm run build:worker:ts && npm run build:worker:compat && npm run build:worker:addpolyfill && npm run build:worker:minify",
"build:worker:ts": "rollup -c rollup.worker.config.ts",
"build:worker:compat": "babel dist/worker.js -o dist/worker.compat.js --config-file ./babel.fa.config.js && babel dist/worker.compat.js -o dist/worker.compat.js",
"build:worker:addpolyfill": "cat node_modules/promis/promise.js dist/worker.compat.js > dist/worker.compat.poly.js && mv dist/worker.compat.poly.js dist/worker.compat.js && sed -i.bak 's/window/self/g' dist/worker.compat.js && rm dist/worker.compat.js.bak",
"build:worker:minify": "terser dist/worker.js -o dist/worker.min.js --config-file terser.json --ecma 2017 --toplevel && terser dist/worker.compat.js -o dist/worker.compat.min.js --config-file terser.json --safari10 --toplevel --wrap frcWorker",
"build:widget": "npm run build:widget:ts && npm run build:widget:compat && npm run build:widget:minify && npm run build:widget:compat:polyfilled",
"build:widget:ts": "rollup -c rollup.widget.config.ts",
"build:widget:compat": "babel dist/widget-pre-babel.js -o dist/widget.js --config-file ./babel.fa.config.js && babel dist/widget.js -o dist/widget.js && rm dist/widget-pre-babel.js",
"build:widget:minify": "terser dist/widget.module.js -o dist/widget.module.min.js --config-file terser.json --ecma 2017 --module && terser dist/widget.js -o dist/widget.min.js --config-file terser.json --safari10 --toplevel --wrap friendlyChallenge",
"build:widget:compat:polyfilled": "cat src/polyfills.min.js dist/widget.min.js > dist/widget.polyfilled.min.js",
"build:library": "rollup -c rollup.library.config.ts && cp dist/friendly-challenge.d.ts dist/compat/index.d.ts",
"build:tests": "tsc",
"build": "npm run build:worker && npm run build:widget && npm run build:library && npm run build:html && cp package.json dist/package.json",
"start": "rollup -c rollup.widget.config.ts -w",
"dist": "npm i && npm run build && cd dist && npm publish --ignore-scripts",
"prepublishOnly": "echo \"Error: Don't run 'npm publish' in root. Use 'npm run dist' instead.\" && exit 1"
},
"types": "friendly-challenge.d.ts",
"type": "module",
"main": "index.js",
"author": "Friendly Captcha GmbH <[email protected]>",
"devDependencies": {
"@babel/cli": "^7.24.7",
"@babel/core": "^7.10.4",
"@babel/plugin-transform-block-scoped-functions": "^7.10.4",
"@babel/plugin-transform-class-properties": "^7.24.7",
"@babel/plugin-transform-runtime": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@rollup/plugin-commonjs": "^13.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"@rollup/plugin-replace": "^2.3.3",
"@types/node": "^14.0.9",
"@typescript-eslint/eslint-plugin": "^5.30.0",
"@typescript-eslint/parser": "^5.30.0",
"babel-plugin-class-properties": "^1.0.0",
"babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0",
"babel-plugin-transform-hoist-nested-functions": "^1.2.0",
"babel-plugin-transform-runtime": "^6.23.0",
"clean-css": "^4.2.3",
"eslint": "^8.18.0",
"fast-async": "^7.0.6",
"rimraf": "^3.0.2",
"rollup": "^2.16.1",
"rollup-plugin-dts": "^4.2.2",
"rollup-plugin-sourcemaps": "^0.6.2",
"rollup-plugin-string": "^3.0.0",
"rollup-plugin-typescript2": "^0.32.1",
"terser": "^5.13.1",
"typescript": "^4.4.4"
},
"dependencies": {
"@babel/runtime-corejs3": "^7.10.4",
"core-js": "^3.6.5",
"friendly-pow": "0.2.2",
"object-assign-polyfill": "^0.1.0",
"promis": "^1.1.4",
"url-polyfill": "^1.1.10",
"whatwg-fetch": "^3.4.1"
}
}