dsh-vault 1.7.0 → 1.7.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.js CHANGED
@@ -17,89 +17,89 @@ window.__ModuleLoader__.load({
17
17
  document.head.appendChild(tag);
18
18
  }
19
19
  var VaultSection_module_css_default = {
20
- "row": "t_j5va_row",
21
- "rowExpired": "t_j5va_rowExpired",
22
- "list": "t_j5va_list",
20
+ "genHist": "t_j5va_genHist",
21
+ "identity": "t_j5va_identity",
22
+ "genOpts": "t_j5va_genOpts",
23
+ "addButton": "t_j5va_addButton",
24
+ "editorBody": "t_j5va_editorBody",
25
+ "modeAsk": "t_j5va_modeAsk",
26
+ "tab": "t_j5va_tab",
27
+ "toolbar": "t_j5va_toolbar",
28
+ "revealButton": "t_j5va_revealButton",
29
+ "emptyHint": "t_j5va_emptyHint",
30
+ "modeReadonly": "t_j5va_modeReadonly",
31
+ "searchBox": "t_j5va_searchBox",
32
+ "copied": "t_j5va_copied",
23
33
  "lockedTag": "t_j5va_lockedTag",
24
- "dangerButton": "t_j5va_dangerButton",
34
+ "lockedBanner": "t_j5va_lockedBanner",
25
35
  "detailBox": "t_j5va_detailBox",
26
- "intro": "t_j5va_intro",
36
+ "pwWeak": "t_j5va_pwWeak",
37
+ "rowMain": "t_j5va_rowMain",
38
+ "kindIcon": "t_j5va_kindIcon",
39
+ "emptyBox": "t_j5va_emptyBox",
40
+ "clearButton": "t_j5va_clearButton",
41
+ "backupButton": "t_j5va_backupButton",
27
42
  "healthBar": "t_j5va_healthBar",
43
+ "badgeOk": "t_j5va_badgeOk",
28
44
  "auditIssues": "t_j5va_auditIssues",
29
- "error": "t_j5va_error",
30
- "identity": "t_j5va_identity",
31
- "footer": "t_j5va_footer",
32
- "emptyHint": "t_j5va_emptyHint",
33
- "badge": "t_j5va_badge",
34
- "scoreRing": "t_j5va_scoreRing",
35
- "saveButton": "t_j5va_saveButton",
36
- "emptyBox": "t_j5va_emptyBox",
37
- "editorBody": "t_j5va_editorBody",
38
- "retryButton": "t_j5va_retryButton",
39
- "kindFilter": "t_j5va_kindFilter",
40
45
  "resultCount": "t_j5va_resultCount",
41
- "searchBox": "t_j5va_searchBox",
42
- "badgeWarn": "t_j5va_badgeWarn",
43
- "dupNames": "t_j5va_dupNames",
44
- "reportSub": "t_j5va_reportSub",
46
+ "reportTitle": "t_j5va_reportTitle",
47
+ "rowExpired": "t_j5va_rowExpired",
48
+ "policyBar": "t_j5va_policyBar",
49
+ "srOnly": "t_j5va_srOnly",
50
+ "tabPane": "t_j5va_tabPane",
51
+ "badgeDanger": "t_j5va_badgeDanger",
52
+ "rowDue": "t_j5va_rowDue",
45
53
  "policyField": "t_j5va_policyField",
54
+ "section": "t_j5va_section",
55
+ "row": "t_j5va_row",
56
+ "sortButton": "t_j5va_sortButton",
57
+ "kindFilter": "t_j5va_kindFilter",
58
+ "trashButton": "t_j5va_trashButton",
59
+ "dueBadge": "t_j5va_dueBadge",
60
+ "auditRow": "t_j5va_auditRow",
46
61
  "totp": "t_j5va_totp",
47
- "tabs": "t_j5va_tabs",
62
+ "rowActions": "t_j5va_rowActions",
63
+ "kindChip": "t_j5va_kindChip",
64
+ "pinStar": "t_j5va_pinStar",
65
+ "dangerButton": "t_j5va_dangerButton",
66
+ "secretField": "t_j5va_secretField",
67
+ "genOptRow": "t_j5va_genOptRow",
68
+ "pwLabel": "t_j5va_pwLabel",
69
+ "reportSub": "t_j5va_reportSub",
70
+ "deleteButton": "t_j5va_deleteButton",
71
+ "badgeWarn": "t_j5va_badgeWarn",
72
+ "saveButton": "t_j5va_saveButton",
48
73
  "reportLine": "t_j5va_reportLine",
49
- "auditRow": "t_j5va_auditRow",
50
- "pwBar": "t_j5va_pwBar",
51
- "editor": "t_j5va_editor",
52
- "clearButton": "t_j5va_clearButton",
53
- "dupMerge": "t_j5va_dupMerge",
54
- "backupButton": "t_j5va_backupButton",
55
- "reportBox": "t_j5va_reportBox",
56
- "srOnly": "t_j5va_srOnly",
57
- "detailItem": "t_j5va_detailItem",
58
- "trashButton": "t_j5va_trashButton",
59
- "badgeDanger": "t_j5va_badgeDanger",
60
- "empty": "t_j5va_empty",
61
- "badgeOk": "t_j5va_badgeOk",
62
- "pwWeak": "t_j5va_pwWeak",
74
+ "error": "t_j5va_error",
63
75
  "pwStrong": "t_j5va_pwStrong",
64
- "genOpts": "t_j5va_genOpts",
76
+ "intro": "t_j5va_intro",
77
+ "empty": "t_j5va_empty",
78
+ "title": "t_j5va_title",
79
+ "checkField": "t_j5va_checkField",
65
80
  "uriCode": "t_j5va_uriCode",
66
- "deleteButton": "t_j5va_deleteButton",
67
- "modeReadonly": "t_j5va_modeReadonly",
68
- "rowActions": "t_j5va_rowActions",
69
- "toolbar": "t_j5va_toolbar",
70
- "modeAsk": "t_j5va_modeAsk",
71
- "highBadge": "t_j5va_highBadge",
72
- "tab": "t_j5va_tab",
73
- "dueBadge": "t_j5va_dueBadge",
74
- "genHist": "t_j5va_genHist",
75
- "rowMain": "t_j5va_rowMain",
76
- "status": "t_j5va_status",
77
- "lockedBanner": "t_j5va_lockedBanner",
78
81
  "modeAuto": "t_j5va_modeAuto",
79
- "reportTitle": "t_j5va_reportTitle",
80
- "title": "t_j5va_title",
81
- "tabPane": "t_j5va_tabPane",
82
- "pwLabel": "t_j5va_pwLabel",
83
- "totpRing": "t_j5va_totpRing",
84
- "pinStar": "t_j5va_pinStar",
85
- "sortButton": "t_j5va_sortButton",
86
- "copied": "t_j5va_copied",
87
- "addButton": "t_j5va_addButton",
88
- "dupGroup": "t_j5va_dupGroup",
89
- "genOptRow": "t_j5va_genOptRow",
90
- "kindChip": "t_j5va_kindChip",
91
- "revealButton": "t_j5va_revealButton",
92
- "pwMeter": "t_j5va_pwMeter",
82
+ "field": "t_j5va_field",
83
+ "detailItem": "t_j5va_detailItem",
84
+ "status": "t_j5va_status",
85
+ "reportBox": "t_j5va_reportBox",
86
+ "badge": "t_j5va_badge",
87
+ "footer": "t_j5va_footer",
88
+ "dupMerge": "t_j5va_dupMerge",
89
+ "pwBar": "t_j5va_pwBar",
93
90
  "pwFair": "t_j5va_pwFair",
94
- "rowDue": "t_j5va_rowDue",
95
- "section": "t_j5va_section",
96
- "policyBar": "t_j5va_policyBar",
91
+ "totpRing": "t_j5va_totpRing",
92
+ "tabs": "t_j5va_tabs",
93
+ "dupNames": "t_j5va_dupNames",
94
+ "editor": "t_j5va_editor",
97
95
  "editorActions": "t_j5va_editorActions",
98
- "field": "t_j5va_field",
96
+ "dupGroup": "t_j5va_dupGroup",
97
+ "list": "t_j5va_list",
99
98
  "tabActive": "t_j5va_tabActive",
100
- "checkField": "t_j5va_checkField",
101
- "kindIcon": "t_j5va_kindIcon",
102
- "secretField": "t_j5va_secretField"
99
+ "retryButton": "t_j5va_retryButton",
100
+ "scoreRing": "t_j5va_scoreRing",
101
+ "pwMeter": "t_j5va_pwMeter",
102
+ "highBadge": "t_j5va_highBadge"
103
103
  };
104
104
  //#endregion
105
105
  //#region src/client/VaultSection.tsx
@@ -1316,7 +1316,9 @@ window.__ModuleLoader__.load({
1316
1316
  setMessage(t("error"));
1317
1317
  return;
1318
1318
  }
1319
- if (editor.status === "editing" && form.password !== void 0 && form.password !== editor.entry?.password) {
1319
+ const entryPw = editor.status === "editing" ? editor.entry?.password ?? "" : "";
1320
+ const typedPw = (form.password ?? "").trim();
1321
+ if (editor.status === "editing" && typedPw.length > 0 && typedPw !== entryPw) {
1320
1322
  if (!window.confirm(t("pwChangeConfirm"))) return;
1321
1323
  }
1322
1324
  setBusy(true);