add mcaptcha-browser as dep

This commit is contained in:
realaravinth 2021-07-09 13:57:55 +05:30
parent 5daa46e76e
commit 704f8bf2b4
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
5 changed files with 11 additions and 3 deletions

View file

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

View file

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

View file

@ -29,5 +29,8 @@
"webpack": "^5.0.0",
"webpack-cli": "^4.6.0",
"webpack-dev-server": "^3.1.14"
},
"dependencies": {
"mcaptcha-browser": "./browser/pkg/"
}
}

View file

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

View file

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