mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-14 13:08:27 +03:00
add mcaptcha-browser as dep
This commit is contained in:
parent
5daa46e76e
commit
704f8bf2b4
5 changed files with 11 additions and 3 deletions
4
Makefile
4
Makefile
|
@ -3,6 +3,7 @@ default: frontend
|
|||
|
||||
clean:
|
||||
cargo clean
|
||||
rm -rf browser/pkg || true
|
||||
rm ./src/cache_buster_data.json || true
|
||||
rm -rf ./static/cache/bundle || true
|
||||
rm -rf ./assets || true
|
||||
|
@ -48,7 +49,8 @@ run: frontend
|
|||
cargo run
|
||||
|
||||
test: frontend-test frontend
|
||||
tree assets || true
|
||||
echo 'static/' && tree static || true
|
||||
echo 'tree/' && tree assets || true
|
||||
cargo test --all-features --no-fail-fast
|
||||
|
||||
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 config = BusterBuilder::default()
|
||||
.source("./static/cache")
|
||||
.source("./static/cache/")
|
||||
.result("./assets")
|
||||
.copy(true)
|
||||
.no_hash(no_hash)
|
||||
|
|
|
@ -29,5 +29,8 @@
|
|||
"webpack": "^5.0.0",
|
||||
"webpack-cli": "^4.6.0",
|
||||
"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.
|
||||
*/
|
||||
|
||||
import {gen_pow} from '../../../browser/pkg/mcaptcha_browser';
|
||||
import {gen_pow} from 'mcaptcha-browser';
|
||||
import {PoWConfig} from './fetchPoWConfig';
|
||||
import * as CONST from './const';
|
||||
|
||||
|
|
|
@ -3944,6 +3944,9 @@ map-visit@^1.0.0:
|
|||
dependencies:
|
||||
object-visit "^1.0.0"
|
||||
|
||||
mcaptcha-browser@./browser/pkg/:
|
||||
version "0.1.0"
|
||||
|
||||
mdn-data@2.0.14:
|
||||
version "2.0.14"
|
||||
resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50"
|
||||
|
|
Loading…
Add table
Reference in a new issue