v0.2.6-pre.006-fix.001
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ksp-app-wallet-desk",
|
||||
"private": true,
|
||||
"version": "0.2.6-pre.6",
|
||||
"version": "0.2.6-pre.6.fix.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "KSP Wallet Desk",
|
||||
"version": "0.2.6-pre.6",
|
||||
"version": "0.2.6-pre.6.fix.1",
|
||||
"identifier": "com.sasedev.ksp-app-wallet-desk",
|
||||
"build": {
|
||||
"beforeDevCommand": "npm run dev",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-wallet-desk/tests/desktop_security.rs
|
||||
// version: 5
|
||||
// version: 6
|
||||
|
||||
//! Static desktop security contracts for the Wallet Desk pre.002 shell.
|
||||
|
||||
@@ -54,8 +54,9 @@ fn create_passwords_are_request_only_and_protected_projection_is_purged() {
|
||||
let main = read_text(root.join("frontend/ts/main.ts").as_path());
|
||||
let authorized = session.split("pub(crate) struct WalletAuthorizedDto").nth(1);
|
||||
assert!(authorized.is_some());
|
||||
let authorized = authorized.unwrap_or_default().split("}\n\n/// Create request").next().unwrap_or_default();
|
||||
assert!(!authorized.contains("password"));
|
||||
let authorized = authorized.unwrap_or_default().split("}\n").next().unwrap_or_default();
|
||||
let authorized_fields = authorized.lines().filter(|line| return line.trim_start().starts_with("pub(crate) ")).collect::<std::vec::Vec<_>>().join("\n");
|
||||
assert!(!authorized_fields.contains("password"));
|
||||
let request_start = session.find("pub(crate) struct WalletCreateRequestDto");
|
||||
assert!(request_start.is_some());
|
||||
let request_start = request_start.unwrap_or_default();
|
||||
@@ -75,8 +76,9 @@ fn unlock_passwords_and_config_secret_names_never_cross_rust_to_frontend() {
|
||||
let html = read_text(root.join("frontend/main.html").as_path());
|
||||
let authorized = session.split("pub(crate) struct WalletAuthorizedDto").nth(1);
|
||||
assert!(authorized.is_some());
|
||||
let authorized = authorized.unwrap_or_default().split("}\n\n/// Create request").next().unwrap_or_default();
|
||||
assert!(!authorized.contains("password"));
|
||||
let authorized = authorized.unwrap_or_default().split("}\n").next().unwrap_or_default();
|
||||
let authorized_fields = authorized.lines().filter(|line| return line.trim_start().starts_with("pub(crate) ")).collect::<std::vec::Vec<_>>().join("\n");
|
||||
assert!(!authorized_fields.contains("password"));
|
||||
let unlock_request = session.find("pub(crate) struct WalletUnlockRequestDto");
|
||||
assert!(unlock_request.is_some());
|
||||
assert!(session[unlock_request.unwrap_or_default()..].contains("password: String"));
|
||||
|
||||
Reference in New Issue
Block a user