mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-12 18:45:41 +00:00
2
.github/workflows/clippy-fmt.yml
vendored
2
.github/workflows/clippy-fmt.yml
vendored
@@ -63,7 +63,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "14.x"
|
node-version: "18.0.0"
|
||||||
|
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: make frontend
|
run: make frontend
|
||||||
|
|||||||
2
.github/workflows/coverage.yml
vendored
2
.github/workflows/coverage.yml
vendored
@@ -90,7 +90,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "16.x"
|
node-version: "18.0.0"
|
||||||
|
|
||||||
- name: Install ${{ matrix.version }}
|
- name: Install ${{ matrix.version }}
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
|
|||||||
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@@ -95,7 +95,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "16.x"
|
node-version: "18.0.0"
|
||||||
|
|
||||||
- name: Install ${{ matrix.version }}
|
- name: Install ${{ matrix.version }}
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
|
|||||||
1200
Cargo.lock
generated
1200
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
FROM node:16.0.0 as frontend
|
FROM node:18.0.0 as frontend
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
|
|||||||
@@ -136,7 +136,9 @@ export default {
|
|||||||
testEnvironment: "jest-environment-jsdom",
|
testEnvironment: "jest-environment-jsdom",
|
||||||
|
|
||||||
// Options that will be passed to the testEnvironment
|
// Options that will be passed to the testEnvironment
|
||||||
// testEnvironmentOptions: {},
|
testEnvironmentOptions: {
|
||||||
|
"url": "http://localhost:7000/widget/?sitekey=imbatman"
|
||||||
|
},
|
||||||
|
|
||||||
// Adds a location field to test results
|
// Adds a location field to test results
|
||||||
// testLocationInResults: false,
|
// testLocationInResults: false,
|
||||||
|
|||||||
19224
package-lock.json
generated
Normal file
19224
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
51
package.json
51
package.json
@@ -10,34 +10,35 @@
|
|||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^27.0.2",
|
"@types/jest": "^29.5.2",
|
||||||
"@types/jsdom": "^16.2.10",
|
"@types/jsdom": "^21.1.1",
|
||||||
"@types/node": "^16.10.4",
|
"@types/node": "^20.3.3",
|
||||||
"@types/sinon": "^10.0.0",
|
"@types/sinon": "^10.0.15",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
"@typescript-eslint/eslint-plugin": "^5.60.1",
|
||||||
"@typescript-eslint/parser": "^5.0.0",
|
"@typescript-eslint/parser": "^5.60.1",
|
||||||
"@wasm-tool/wasm-pack-plugin": "^1.4.0",
|
"@wasm-tool/wasm-pack-plugin": "^1.7.0",
|
||||||
"css-loader": "^6.4.0",
|
"css-loader": "^6.8.1",
|
||||||
"css-minimizer-webpack-plugin": "^3.1.1",
|
"css-minimizer-webpack-plugin": "^5.0.1",
|
||||||
"sass": "^1.25.0",
|
"eslint": "^8.44.0",
|
||||||
"eslint": "^8.0.0",
|
"jest": "^29.5.0",
|
||||||
"jest": "^27.2.5",
|
"jest-environment-jsdom": "^29.5.0",
|
||||||
"jest-fetch-mock": "^3.0.3",
|
"jest-fetch-mock": "^3.0.3",
|
||||||
"jsdom": "^18.0.0",
|
"jsdom": "^22.1.0",
|
||||||
"mini-css-extract-plugin": "^2.4.2",
|
"mini-css-extract-plugin": "^2.7.6",
|
||||||
"sass-loader": "^12.2.0",
|
"sass": "^1.63.6",
|
||||||
"sinon": "^11.1.2",
|
"sass-loader": "^13.3.2",
|
||||||
"ts-jest": "^27.0.5",
|
"sinon": "^15.2.0",
|
||||||
"ts-loader": "^9.2.6",
|
"ts-jest": "^29.1.1",
|
||||||
"ts-node": "^10.3.0",
|
"ts-loader": "^9.4.4",
|
||||||
"typescript": "^4.1.0",
|
"ts-node": "^10.9.1",
|
||||||
"webpack": "^5.0.0",
|
"typescript": "^5.1.6",
|
||||||
"webpack-cli": "^4.6.0",
|
"webpack": "^5.88.1",
|
||||||
"webpack-dev-server": "^4.3.1"
|
"webpack-cli": "^5.1.4",
|
||||||
|
"webpack-dev-server": "^4.15.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mcaptcha/pow-wasm": "^0.1.0-alpha-1",
|
|
||||||
"@mcaptcha/pow_sha256-polyfill": "^0.1.0-alpha-1",
|
"@mcaptcha/pow_sha256-polyfill": "^0.1.0-alpha-1",
|
||||||
"@mcaptcha/vanilla-glue": "^0.1.0-alpha-1"
|
"@mcaptcha/pow-wasm": "^0.1.0-alpha-1",
|
||||||
|
"@mcaptcha/vanilla-glue": "^0.1.0-alpha-3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
import log from "../logger";
|
import log from "../logger";
|
||||||
|
|
||||||
import prove from "./prove";
|
import prove from "./prove";
|
||||||
import {PoWConfig, ServiceWorkerWork} from "./types";
|
import { PoWConfig, ServiceWorkerWork } from "./types";
|
||||||
|
|
||||||
log.log("worker registered");
|
log.log("worker registered");
|
||||||
onmessage = async (e) => {
|
onmessage = async (e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user