mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
add mcaptcha-browser as dep
This commit is contained in:
4
Makefile
4
Makefile
@@ -3,6 +3,7 @@ default: frontend
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
cargo clean
|
cargo clean
|
||||||
|
rm -rf browser/pkg || true
|
||||||
rm ./src/cache_buster_data.json || true
|
rm ./src/cache_buster_data.json || true
|
||||||
rm -rf ./static/cache/bundle || true
|
rm -rf ./static/cache/bundle || true
|
||||||
rm -rf ./assets || true
|
rm -rf ./assets || true
|
||||||
@@ -48,7 +49,8 @@ run: frontend
|
|||||||
cargo run
|
cargo run
|
||||||
|
|
||||||
test: frontend-test frontend
|
test: frontend-test frontend
|
||||||
tree assets || true
|
echo 'static/' && tree static || true
|
||||||
|
echo 'tree/' && tree assets || true
|
||||||
cargo test --all-features --no-fail-fast
|
cargo test --all-features --no-fail-fast
|
||||||
|
|
||||||
xml-test-coverage: migrate
|
xml-test-coverage: migrate
|
||||||
|
|||||||
2
build.rs
2
build.rs
@@ -51,7 +51,7 @@ fn cache_bust() {
|
|||||||
let no_hash = vec![NoHashCategory::FileExtentions(vec!["wasm"])];
|
let no_hash = vec![NoHashCategory::FileExtentions(vec!["wasm"])];
|
||||||
|
|
||||||
let config = BusterBuilder::default()
|
let config = BusterBuilder::default()
|
||||||
.source("./static/cache")
|
.source("./static/cache/")
|
||||||
.result("./assets")
|
.result("./assets")
|
||||||
.copy(true)
|
.copy(true)
|
||||||
.no_hash(no_hash)
|
.no_hash(no_hash)
|
||||||
|
|||||||
@@ -29,5 +29,8 @@
|
|||||||
"webpack": "^5.0.0",
|
"webpack": "^5.0.0",
|
||||||
"webpack-cli": "^4.6.0",
|
"webpack-cli": "^4.6.0",
|
||||||
"webpack-dev-server": "^3.1.14"
|
"webpack-dev-server": "^3.1.14"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"mcaptcha-browser": "./browser/pkg/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
* MIT or <http://www.apache.org/licenses/LICENSE-2.0> for Apache.
|
* MIT or <http://www.apache.org/licenses/LICENSE-2.0> for Apache.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {gen_pow} from '../../../browser/pkg/mcaptcha_browser';
|
import {gen_pow} from 'mcaptcha-browser';
|
||||||
import {PoWConfig} from './fetchPoWConfig';
|
import {PoWConfig} from './fetchPoWConfig';
|
||||||
import * as CONST from './const';
|
import * as CONST from './const';
|
||||||
|
|
||||||
|
|||||||
@@ -3944,6 +3944,9 @@ map-visit@^1.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
object-visit "^1.0.0"
|
object-visit "^1.0.0"
|
||||||
|
|
||||||
|
mcaptcha-browser@./browser/pkg/:
|
||||||
|
version "0.1.0"
|
||||||
|
|
||||||
mdn-data@2.0.14:
|
mdn-data@2.0.14:
|
||||||
version "2.0.14"
|
version "2.0.14"
|
||||||
resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50"
|
resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50"
|
||||||
|
|||||||
Reference in New Issue
Block a user