openmates 0.15.0-alpha.41 → 0.15.0-alpha.43
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.
|
@@ -15127,6 +15127,7 @@ import JSZip from "jszip";
|
|
|
15127
15127
|
var ACCOUNT_EXPORT_FORBIDDEN_FIELD_NAMES = /* @__PURE__ */ new Set([
|
|
15128
15128
|
"access_token",
|
|
15129
15129
|
"api_key",
|
|
15130
|
+
"anonymous_encrypted_chat_key",
|
|
15130
15131
|
"backup_code_hash",
|
|
15131
15132
|
"chat_key",
|
|
15132
15133
|
"chat_key_wrappers",
|
|
@@ -15151,6 +15152,7 @@ var ACCOUNT_EXPORT_FORBIDDEN_FIELD_NAMES = /* @__PURE__ */ new Set([
|
|
|
15151
15152
|
"raw_key",
|
|
15152
15153
|
"refresh_token",
|
|
15153
15154
|
"share_key",
|
|
15155
|
+
"shared_encrypted_chat_key",
|
|
15154
15156
|
"signing_secret",
|
|
15155
15157
|
"task_key",
|
|
15156
15158
|
"token_hash",
|
|
@@ -15246,11 +15248,12 @@ function assertAccountExportTextSafe(content, relativePath) {
|
|
|
15246
15248
|
for (const pattern of ACCOUNT_EXPORT_FORBIDDEN_VALUE_PATTERNS) {
|
|
15247
15249
|
if (pattern.test(content)) throw new Error(`Account export file ${relativePath} contains forbidden secret-like content`);
|
|
15248
15250
|
}
|
|
15249
|
-
|
|
15250
|
-
|
|
15251
|
+
ACCOUNT_EXPORT_FORBIDDEN_FIELD_NAMES.forEach((field) => {
|
|
15252
|
+
const escapedField = field.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
15253
|
+
if (new RegExp(`(^|[^A-Za-z0-9_])['"]?${escapedField}['"]?\\s*:`, "i").test(content)) {
|
|
15251
15254
|
throw new Error(`Account export file ${relativePath} contains forbidden secret field '${field}'`);
|
|
15252
15255
|
}
|
|
15253
|
-
}
|
|
15256
|
+
});
|
|
15254
15257
|
}
|
|
15255
15258
|
function buildAccountExportReadme(bundle) {
|
|
15256
15259
|
const selectedDomains = Array.isArray(bundle.manifest.selected_domains) ? bundle.manifest.selected_domains.map(String) : [];
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED