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
with:
node-version: "14.x"
node-version: "18.0.0"
- name: Build frontend
run: make frontend

View File

@@ -90,7 +90,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: "16.x"
node-version: "18.0.0"
- name: Install ${{ matrix.version }}
uses: actions-rs/toolchain@v1

View File

@@ -95,7 +95,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: "16.x"
node-version: "18.0.0"
- name: Install ${{ matrix.version }}
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; \
apt-get update; \
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 :)
See [DEPLOYMENT.md](./docs/DEPLOYMENT.md) detailed alternate deployment
See [DEPLOYMENT.md](./docs/DEPLOYMENT.md) for detailed alternate deployment
methods.
## Development:

View File

@@ -136,7 +136,9 @@ export default {
testEnvironment: "jest-environment-jsdom",
// Options that will be passed to the testEnvironment
// testEnvironmentOptions: {},
testEnvironmentOptions: {
"url": "http://localhost:7000/widget/?sitekey=imbatman"
},
// Adds a location field to test results
// 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"
},
"devDependencies": {
"@types/jest": "^27.0.2",
"@types/jsdom": "^16.2.10",
"@types/node": "^16.10.4",
"@types/sinon": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"@wasm-tool/wasm-pack-plugin": "^1.4.0",
"css-loader": "^6.4.0",
"css-minimizer-webpack-plugin": "^3.1.1",
"sass": "^1.25.0",
"eslint": "^8.0.0",
"jest": "^27.2.5",
"@types/jest": "^29.5.2",
"@types/jsdom": "^21.1.1",
"@types/node": "^20.3.3",
"@types/sinon": "^10.0.15",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@wasm-tool/wasm-pack-plugin": "^1.7.0",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^5.0.1",
"eslint": "^8.44.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-fetch-mock": "^3.0.3",
"jsdom": "^18.0.0",
"mini-css-extract-plugin": "^2.4.2",
"sass-loader": "^12.2.0",
"sinon": "^11.1.2",
"ts-jest": "^27.0.5",
"ts-loader": "^9.2.6",
"ts-node": "^10.3.0",
"typescript": "^4.1.0",
"webpack": "^5.0.0",
"webpack-cli": "^4.6.0",
"webpack-dev-server": "^4.3.1"
"jsdom": "^22.1.0",
"mini-css-extract-plugin": "^2.7.6",
"sass": "^1.63.6",
"sass-loader": "^13.3.2",
"sinon": "^15.2.0",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"webpack": "^5.88.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
},
"dependencies": {
"@mcaptcha/pow-wasm": "^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
then
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.chrome
else
yarn install
npx nightwatch ./test/mCaptcha.ts

View File

@@ -12,7 +12,7 @@
import log from "../logger";
import prove from "./prove";
import {PoWConfig, ServiceWorkerWork} from "./types";
import { PoWConfig, ServiceWorkerWork } from "./types";
log.log("worker registered");
onmessage = async (e) => {

5982
yarn.lock

File diff suppressed because it is too large Load Diff