keycloakify 11.8.33 → 11.8.34
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/bin/97.index.js
CHANGED
@@ -303,6 +303,18 @@ function computeHash(data) {
|
|
303
303
|
async function getExtensionModuleFileSourceCodeReadyToBeCopied(params) {
|
304
304
|
const { buildContext, extensionModuleDirPath, fileRelativePath, isOwnershipAction, extensionModuleName, extensionModuleVersion } = params;
|
305
305
|
let sourceCode = (await fs_promises__WEBPACK_IMPORTED_MODULE_1__.readFile((0,path__WEBPACK_IMPORTED_MODULE_2__.join)(extensionModuleDirPath, _shared_constants__WEBPACK_IMPORTED_MODULE_4__/* .KEYCLOAK_THEME */ .PC, fileRelativePath))).toString("utf8");
|
306
|
+
add_eslint_disable: {
|
307
|
+
if (isOwnershipAction) {
|
308
|
+
break add_eslint_disable;
|
309
|
+
}
|
310
|
+
if (!fileRelativePath.endsWith(".ts") && !fileRelativePath.endsWith(".tsx")) {
|
311
|
+
break add_eslint_disable;
|
312
|
+
}
|
313
|
+
if (sourceCode.includes("/* eslint-disable */")) {
|
314
|
+
break add_eslint_disable;
|
315
|
+
}
|
316
|
+
sourceCode = ["/* eslint-disable */", "", sourceCode].join("\n");
|
317
|
+
}
|
306
318
|
sourceCode = addCommentToSourceCode({
|
307
319
|
sourceCode,
|
308
320
|
fileRelativePath,
|
package/package.json
CHANGED
@@ -34,6 +34,22 @@ export async function getExtensionModuleFileSourceCodeReadyToBeCopied(params: {
|
|
34
34
|
)
|
35
35
|
).toString("utf8");
|
36
36
|
|
37
|
+
add_eslint_disable: {
|
38
|
+
if (isOwnershipAction) {
|
39
|
+
break add_eslint_disable;
|
40
|
+
}
|
41
|
+
|
42
|
+
if (!fileRelativePath.endsWith(".ts") && !fileRelativePath.endsWith(".tsx")) {
|
43
|
+
break add_eslint_disable;
|
44
|
+
}
|
45
|
+
|
46
|
+
if (sourceCode.includes("/* eslint-disable */")) {
|
47
|
+
break add_eslint_disable;
|
48
|
+
}
|
49
|
+
|
50
|
+
sourceCode = ["/* eslint-disable */", "", sourceCode].join("\n");
|
51
|
+
}
|
52
|
+
|
37
53
|
sourceCode = addCommentToSourceCode({
|
38
54
|
sourceCode,
|
39
55
|
fileRelativePath,
|