openmates 0.15.0-alpha.41 → 0.15.0-alpha.42
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.
|
@@ -15246,11 +15246,12 @@ function assertAccountExportTextSafe(content, relativePath) {
|
|
|
15246
15246
|
for (const pattern of ACCOUNT_EXPORT_FORBIDDEN_VALUE_PATTERNS) {
|
|
15247
15247
|
if (pattern.test(content)) throw new Error(`Account export file ${relativePath} contains forbidden secret-like content`);
|
|
15248
15248
|
}
|
|
15249
|
-
|
|
15250
|
-
|
|
15249
|
+
ACCOUNT_EXPORT_FORBIDDEN_FIELD_NAMES.forEach((field) => {
|
|
15250
|
+
const escapedField = field.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
15251
|
+
if (new RegExp(`(^|[^A-Za-z0-9_])['"]?${escapedField}['"]?\\s*:`, "i").test(content)) {
|
|
15251
15252
|
throw new Error(`Account export file ${relativePath} contains forbidden secret field '${field}'`);
|
|
15252
15253
|
}
|
|
15253
|
-
}
|
|
15254
|
+
});
|
|
15254
15255
|
}
|
|
15255
15256
|
function buildAccountExportReadme(bundle) {
|
|
15256
15257
|
const selectedDomains = Array.isArray(bundle.manifest.selected_domains) ? bundle.manifest.selected_domains.map(String) : [];
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED