keycloakify 11.8.37-rc.1 → 11.8.37

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/712.index.js CHANGED
@@ -13,18 +13,21 @@ exports.modules = {
13
13
  /* harmony import */ var _tools_crawl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73036);
14
14
  /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71017);
15
15
  /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_2__);
16
- /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(76030);
16
+ /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(76030);
17
17
  /* harmony import */ var recast__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48128);
18
18
  /* harmony import */ var _babel_parser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85026);
19
19
  /* harmony import */ var _babel_generator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92332);
20
20
  /* harmony import */ var _babel_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7912);
21
21
  /* harmony import */ var _babel_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_types__WEBPACK_IMPORTED_MODULE_6__);
22
- /* harmony import */ var _tools_escapeStringForPropertiesFile__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(27190);
22
+ /* harmony import */ var _tools_escapeStringForPropertiesFile__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(27190);
23
23
  /* harmony import */ var _tools_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58822);
24
24
  /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(57147);
25
25
  /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_8__);
26
26
  /* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(29041);
27
27
  /* harmony import */ var _tools_getAbsoluteAndInOsFormatPath__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(84794);
28
+ /* harmony import */ var json5__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(86904);
29
+ /* harmony import */ var json5__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(json5__WEBPACK_IMPORTED_MODULE_11__);
30
+
28
31
 
29
32
 
30
33
 
@@ -65,7 +68,7 @@ function generateMessageProperties(params) {
65
68
  }
66
69
  messagesJson += line;
67
70
  }
68
- const messages = JSON.parse(messagesJson);
71
+ const messages = json5__WEBPACK_IMPORTED_MODULE_11___default().parse(messagesJson);
69
72
  return [languageTag, messages];
70
73
  }));
71
74
  const { i18nTsFilePath } = (() => {
@@ -208,7 +211,7 @@ function generateMessageProperties(params) {
208
211
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_9__/* .assert */ .h)(declarationCode !== undefined, `${filePath} does not contain a 'messages' variable declaration`);
209
212
  let messages = {};
210
213
  try {
211
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_11__/* .symToStr */ .r)({ messages })} = ${declarationCode};`);
214
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_12__/* .symToStr */ .r)({ messages })} = ${declarationCode};`);
212
215
  }
213
216
  catch (_a) {
214
217
  throw new Error(`The declaration of 'message' in ${filePath} cannot be statically evaluated: ${declarationCode}`);
@@ -241,7 +244,7 @@ function generateMessageProperties(params) {
241
244
  }
242
245
  let messages_themeDefined_by_languageTag = {};
243
246
  try {
244
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_11__/* .symToStr */ .r)({ messages_themeDefined_by_languageTag })} = ${firstArgumentCode}`);
247
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_12__/* .symToStr */ .r)({ messages_themeDefined_by_languageTag })} = ${firstArgumentCode}`);
245
248
  }
246
249
  catch (_a) {
247
250
  console.warn([
@@ -289,7 +292,7 @@ function generateMessageProperties(params) {
289
292
  }
290
293
  const propertiesFileSource = [
291
294
  "",
292
- ...Object.entries(messages).map(([key, value]) => `${key}=${(0,_tools_escapeStringForPropertiesFile__WEBPACK_IMPORTED_MODULE_12__/* .escapeStringForPropertiesFile */ .y)(value)}`),
295
+ ...Object.entries(messages).map(([key, value]) => `${key}=${(0,_tools_escapeStringForPropertiesFile__WEBPACK_IMPORTED_MODULE_13__/* .escapeStringForPropertiesFile */ .y)(value)}`),
293
296
  ""
294
297
  ].join("\n");
295
298
  fs__WEBPACK_IMPORTED_MODULE_8__.mkdirSync(messageDirPath, { recursive: true });
@@ -846,7 +849,6 @@ var isInside = __webpack_require__(90665);
846
849
 
847
850
 
848
851
 
849
-
850
852
 
851
853
  (0,assert/* assert */.h)();
852
854
  async function generateResources(params) {
@@ -908,16 +910,12 @@ async function generateResources(params) {
908
910
  });
909
911
  break apply_replacers_and_move_to_theme_resources;
910
912
  }
911
- for (const directoryBasename of [
912
- constants/* KEYCLOAK_THEME */.PC,
913
- // NOTE: This is legacy and should eventually be removed
914
- constants/* WELL_KNOWN_DIRECTORY_BASE_NAME.KEYCLOAKIFY_DEV_RESOURCES */.Ju.KEYCLOAKIFY_DEV_RESOURCES
915
- ]) {
916
- const dirPath = (0,external_path_.join)(buildContext.projectBuildDirPath, directoryBasename);
913
+ {
914
+ const dirPath = (0,external_path_.join)(buildContext.projectBuildDirPath, constants/* WELL_KNOWN_DIRECTORY_BASE_NAME.KEYCLOAKIFY_DEV_RESOURCES */.Ju.KEYCLOAKIFY_DEV_RESOURCES);
917
915
  if (external_fs_default().existsSync(dirPath)) {
918
916
  (0,assert/* assert */.h)(buildContext.bundler === "webpack");
919
917
  throw new Error([
920
- `Keycloakify build error: The ${directoryBasename} directory shouldn't exist in your build directory.`,
918
+ `Keycloakify build error: The ${constants/* WELL_KNOWN_DIRECTORY_BASE_NAME.KEYCLOAKIFY_DEV_RESOURCES */.Ju.KEYCLOAKIFY_DEV_RESOURCES} directory shouldn't exist in your build directory.`,
921
919
  `(${(0,external_path_.relative)(process.cwd(), dirPath)}).\n`,
922
920
  `Theses assets are only required for local development with Storybook.",
923
921
  "Please remove this directory as an additional step of your command.\n`,
@@ -1178,7 +1176,6 @@ async function generateResources(params) {
1178
1176
  });
1179
1177
  };
1180
1178
  }
1181
- // NOTE: Legacy
1182
1179
  keycloak_static_resources: {
1183
1180
  if (isNative) {
1184
1181
  break keycloak_static_resources;
@@ -1186,28 +1183,11 @@ async function generateResources(params) {
1186
1183
  if (isSpa) {
1187
1184
  break keycloak_static_resources;
1188
1185
  }
1189
- // TODO: Implement a check to skip that.
1190
1186
  (0,transformCodebase/* transformCodebase */.N)({
1191
1187
  srcDirPath: (0,external_path_.join)((0,getThisCodebaseRootDirPath/* getThisCodebaseRootDirPath */.e)(), "res", "public", constants/* WELL_KNOWN_DIRECTORY_BASE_NAME.KEYCLOAKIFY_DEV_RESOURCES */.Ju.KEYCLOAKIFY_DEV_RESOURCES, themeType),
1192
1188
  destDirPath: (0,external_path_.join)(themeTypeDirPath, "resources")
1193
1189
  });
1194
1190
  }
1195
- extensions_static_resources: {
1196
- if (isNative) {
1197
- break extensions_static_resources;
1198
- }
1199
- if (isSpa) {
1200
- break extensions_static_resources;
1201
- }
1202
- const dirPath = (0,external_path_.join)(buildContext.publicDirPath, constants/* KEYCLOAK_THEME */.PC, themeType);
1203
- if (!external_fs_default().existsSync(dirPath)) {
1204
- break extensions_static_resources;
1205
- }
1206
- (0,transformCodebase/* transformCodebase */.N)({
1207
- srcDirPath: dirPath,
1208
- destDirPath: (0,external_path_.join)(themeTypeDirPath, "resources", constants/* WELL_KNOWN_DIRECTORY_BASE_NAME.DIST */.Ju.DIST, constants/* KEYCLOAK_THEME */.PC, themeType)
1209
- });
1210
- }
1211
1191
  bring_in_account_v1: {
1212
1192
  if (isNative) {
1213
1193
  break bring_in_account_v1;