Compare commits

..

8 Commits

Author SHA1 Message Date
Aravinth Manivannan
c8e6b81d6e debug: first run firefox tests 2023-07-03 17:56:30 +05:30
Aravinth Manivannan
71ef95e4c4 Merge pull request #94 from mCaptcha/update-deps
Update deps
2023-07-03 00:08:53 +05:30
Aravinth Manivannan
b2f373dffd Merge pull request #93 from mCaptcha/pow-live-stats
Pow live stats
2023-07-02 23:22:05 +05:30
Aravinth Manivannan
c3ab7f8b0e chore: use node v18.0.0 2023-07-02 22:05:23 +05:30
Aravinth Manivannan
c4a286454b chore: update rust and js deps 2023-07-02 22:05:23 +05:30
Aravinth Manivannan
4a25f7f3a6 fix: truncate pow compute time before submitting 2023-07-02 22:05:23 +05:30
Aravinth Manivannan
746748f98c Merge pull request #84 from Timwi/patch-1
Typo in README.md
2023-06-07 10:12:23 +05:30
Timwi
003ed983cb Typo in README.md 2023-05-30 12:47:41 +02:00
12 changed files with 22818 additions and 3657 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

File diff suppressed because it is too large Load Diff

View File

@@ -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 \

View File

@@ -114,7 +114,7 @@ After the containers are up, visit [http://localhost:7000](http://localhost:7000
It takes a while to build the image so please be patient :) It takes a while to build the image so please be patient :)
See [DEPLOYMENT.md](./docs/DEPLOYMENT.md) detailed alternate deployment See [DEPLOYMENT.md](./docs/DEPLOYMENT.md) for detailed alternate deployment
methods. methods.
## Development: ## Development:

View File

@@ -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

File diff suppressed because it is too large Load Diff

View File

@@ -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"
} }
} }

View File

@@ -28,8 +28,8 @@ git clone https://github.com/mCaptcha/integration .
if is_ci if is_ci
then then
yarn install yarn install
xvfb-run --auto-servernum npm run test.chrome
xvfb-run --auto-servernum npm run test.firefox xvfb-run --auto-servernum npm run test.firefox
xvfb-run --auto-servernum npm run test.chrome
else else
yarn install yarn install
npx nightwatch ./test/mCaptcha.ts npx nightwatch ./test/mCaptcha.ts

View File

@@ -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) => {

5982
yarn.lock

File diff suppressed because it is too large Load Diff