keycloakify 11.3.29 → 11.3.31
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/20.index.js +0 -85
- package/bin/40.index.js +1 -86
- package/bin/573.index.js +0 -85
- package/bin/653.index.js +0 -85
- package/bin/658.index.js +197 -0
- package/bin/735.index.js +0 -85
- package/bin/786.index.js +7 -0
- package/bin/921.index.js +7 -0
- package/bin/main.js +123 -2
- package/package.json +2 -1
- package/src/bin/main.ts +47 -3
- package/src/bin/update-kc-gen.ts +10 -0
- package/vite-plugin/index.js +7 -0
package/bin/20.index.js
CHANGED
@@ -328,91 +328,6 @@ async function promptKeycloakVersion(params) {
|
|
328
328
|
|
329
329
|
/***/ }),
|
330
330
|
|
331
|
-
/***/ 12171:
|
332
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
333
|
-
|
334
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
335
|
-
/* harmony export */ "h": () => (/* binding */ SemVer)
|
336
|
-
/* harmony export */ });
|
337
|
-
var SemVer;
|
338
|
-
(function (SemVer) {
|
339
|
-
const bumpTypes = ["major", "minor", "patch", "rc", "no bump"];
|
340
|
-
function parse(versionStr) {
|
341
|
-
const match = versionStr.match(/^v?([0-9]+)\.([0-9]+)(?:\.([0-9]+))?(?:-rc.([0-9]+))?$/);
|
342
|
-
if (!match) {
|
343
|
-
throw new Error(`${versionStr} is not a valid semantic version`);
|
344
|
-
}
|
345
|
-
const semVer = Object.assign({ major: parseInt(match[1]), minor: parseInt(match[2]), patch: (() => {
|
346
|
-
const str = match[3];
|
347
|
-
return str === undefined ? 0 : parseInt(str);
|
348
|
-
})() }, (() => {
|
349
|
-
const str = match[4];
|
350
|
-
return str === undefined ? {} : { rc: parseInt(str) };
|
351
|
-
})());
|
352
|
-
const initialStr = stringify(semVer);
|
353
|
-
Object.defineProperty(semVer, "parsedFrom", {
|
354
|
-
enumerable: true,
|
355
|
-
get: function () {
|
356
|
-
const currentStr = stringify(this);
|
357
|
-
if (currentStr !== initialStr) {
|
358
|
-
throw new Error(`SemVer.parsedFrom can't be read anymore, the version have been modified from ${initialStr} to ${currentStr}`);
|
359
|
-
}
|
360
|
-
return versionStr;
|
361
|
-
}
|
362
|
-
});
|
363
|
-
return semVer;
|
364
|
-
}
|
365
|
-
SemVer.parse = parse;
|
366
|
-
function stringify(v) {
|
367
|
-
return `${v.major}.${v.minor}.${v.patch}${v.rc === undefined ? "" : `-rc.${v.rc}`}`;
|
368
|
-
}
|
369
|
-
SemVer.stringify = stringify;
|
370
|
-
/**
|
371
|
-
*
|
372
|
-
* v1 < v2 => -1
|
373
|
-
* v1 === v2 => 0
|
374
|
-
* v1 > v2 => 1
|
375
|
-
*
|
376
|
-
*/
|
377
|
-
function compare(v1, v2) {
|
378
|
-
const sign = (diff) => (diff === 0 ? 0 : diff < 0 ? -1 : 1);
|
379
|
-
const noUndefined = (n) => n !== null && n !== void 0 ? n : Infinity;
|
380
|
-
for (const level of ["major", "minor", "patch", "rc"]) {
|
381
|
-
if (noUndefined(v1[level]) !== noUndefined(v2[level])) {
|
382
|
-
return sign(noUndefined(v1[level]) - noUndefined(v2[level]));
|
383
|
-
}
|
384
|
-
}
|
385
|
-
return 0;
|
386
|
-
}
|
387
|
-
SemVer.compare = compare;
|
388
|
-
/*
|
389
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0")) === -1 )
|
390
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0-rc.4")) === -1 )
|
391
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("4.0.0")) === -1 )
|
392
|
-
*/
|
393
|
-
function bumpType(params) {
|
394
|
-
const versionAhead = typeof params.versionAhead === "string"
|
395
|
-
? parse(params.versionAhead)
|
396
|
-
: params.versionAhead;
|
397
|
-
const versionBehind = typeof params.versionBehind === "string"
|
398
|
-
? parse(params.versionBehind)
|
399
|
-
: params.versionBehind;
|
400
|
-
if (compare(versionBehind, versionAhead) === 1) {
|
401
|
-
throw new Error(`Version regression ${stringify(versionBehind)} -> ${stringify(versionAhead)}`);
|
402
|
-
}
|
403
|
-
for (const level of ["major", "minor", "patch", "rc"]) {
|
404
|
-
if (versionBehind[level] !== versionAhead[level]) {
|
405
|
-
return level;
|
406
|
-
}
|
407
|
-
}
|
408
|
-
return "no bump";
|
409
|
-
}
|
410
|
-
SemVer.bumpType = bumpType;
|
411
|
-
})(SemVer || (SemVer = {}));
|
412
|
-
//# sourceMappingURL=SemVer.js.map
|
413
|
-
|
414
|
-
/***/ }),
|
415
|
-
|
416
331
|
/***/ 38367:
|
417
332
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
418
333
|
|
package/bin/40.index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
exports.id = 40;
|
3
|
-
exports.ids = [40];
|
3
|
+
exports.ids = [40,658];
|
4
4
|
exports.modules = {
|
5
5
|
|
6
6
|
/***/ 18040:
|
@@ -155,91 +155,6 @@ function maybeDelegateCommandToCustomHandler(params) {
|
|
155
155
|
|
156
156
|
/***/ }),
|
157
157
|
|
158
|
-
/***/ 12171:
|
159
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
160
|
-
|
161
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
162
|
-
/* harmony export */ "h": () => (/* binding */ SemVer)
|
163
|
-
/* harmony export */ });
|
164
|
-
var SemVer;
|
165
|
-
(function (SemVer) {
|
166
|
-
const bumpTypes = ["major", "minor", "patch", "rc", "no bump"];
|
167
|
-
function parse(versionStr) {
|
168
|
-
const match = versionStr.match(/^v?([0-9]+)\.([0-9]+)(?:\.([0-9]+))?(?:-rc.([0-9]+))?$/);
|
169
|
-
if (!match) {
|
170
|
-
throw new Error(`${versionStr} is not a valid semantic version`);
|
171
|
-
}
|
172
|
-
const semVer = Object.assign({ major: parseInt(match[1]), minor: parseInt(match[2]), patch: (() => {
|
173
|
-
const str = match[3];
|
174
|
-
return str === undefined ? 0 : parseInt(str);
|
175
|
-
})() }, (() => {
|
176
|
-
const str = match[4];
|
177
|
-
return str === undefined ? {} : { rc: parseInt(str) };
|
178
|
-
})());
|
179
|
-
const initialStr = stringify(semVer);
|
180
|
-
Object.defineProperty(semVer, "parsedFrom", {
|
181
|
-
enumerable: true,
|
182
|
-
get: function () {
|
183
|
-
const currentStr = stringify(this);
|
184
|
-
if (currentStr !== initialStr) {
|
185
|
-
throw new Error(`SemVer.parsedFrom can't be read anymore, the version have been modified from ${initialStr} to ${currentStr}`);
|
186
|
-
}
|
187
|
-
return versionStr;
|
188
|
-
}
|
189
|
-
});
|
190
|
-
return semVer;
|
191
|
-
}
|
192
|
-
SemVer.parse = parse;
|
193
|
-
function stringify(v) {
|
194
|
-
return `${v.major}.${v.minor}.${v.patch}${v.rc === undefined ? "" : `-rc.${v.rc}`}`;
|
195
|
-
}
|
196
|
-
SemVer.stringify = stringify;
|
197
|
-
/**
|
198
|
-
*
|
199
|
-
* v1 < v2 => -1
|
200
|
-
* v1 === v2 => 0
|
201
|
-
* v1 > v2 => 1
|
202
|
-
*
|
203
|
-
*/
|
204
|
-
function compare(v1, v2) {
|
205
|
-
const sign = (diff) => (diff === 0 ? 0 : diff < 0 ? -1 : 1);
|
206
|
-
const noUndefined = (n) => n !== null && n !== void 0 ? n : Infinity;
|
207
|
-
for (const level of ["major", "minor", "patch", "rc"]) {
|
208
|
-
if (noUndefined(v1[level]) !== noUndefined(v2[level])) {
|
209
|
-
return sign(noUndefined(v1[level]) - noUndefined(v2[level]));
|
210
|
-
}
|
211
|
-
}
|
212
|
-
return 0;
|
213
|
-
}
|
214
|
-
SemVer.compare = compare;
|
215
|
-
/*
|
216
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0")) === -1 )
|
217
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0-rc.4")) === -1 )
|
218
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("4.0.0")) === -1 )
|
219
|
-
*/
|
220
|
-
function bumpType(params) {
|
221
|
-
const versionAhead = typeof params.versionAhead === "string"
|
222
|
-
? parse(params.versionAhead)
|
223
|
-
: params.versionAhead;
|
224
|
-
const versionBehind = typeof params.versionBehind === "string"
|
225
|
-
? parse(params.versionBehind)
|
226
|
-
: params.versionBehind;
|
227
|
-
if (compare(versionBehind, versionAhead) === 1) {
|
228
|
-
throw new Error(`Version regression ${stringify(versionBehind)} -> ${stringify(versionAhead)}`);
|
229
|
-
}
|
230
|
-
for (const level of ["major", "minor", "patch", "rc"]) {
|
231
|
-
if (versionBehind[level] !== versionAhead[level]) {
|
232
|
-
return level;
|
233
|
-
}
|
234
|
-
}
|
235
|
-
return "no bump";
|
236
|
-
}
|
237
|
-
SemVer.bumpType = bumpType;
|
238
|
-
})(SemVer || (SemVer = {}));
|
239
|
-
//# sourceMappingURL=SemVer.js.map
|
240
|
-
|
241
|
-
/***/ }),
|
242
|
-
|
243
158
|
/***/ 89693:
|
244
159
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
245
160
|
|
package/bin/573.index.js
CHANGED
@@ -1529,91 +1529,6 @@ async function command(params) {
|
|
1529
1529
|
|
1530
1530
|
/***/ }),
|
1531
1531
|
|
1532
|
-
/***/ 12171:
|
1533
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
1534
|
-
|
1535
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1536
|
-
/* harmony export */ "h": () => (/* binding */ SemVer)
|
1537
|
-
/* harmony export */ });
|
1538
|
-
var SemVer;
|
1539
|
-
(function (SemVer) {
|
1540
|
-
const bumpTypes = ["major", "minor", "patch", "rc", "no bump"];
|
1541
|
-
function parse(versionStr) {
|
1542
|
-
const match = versionStr.match(/^v?([0-9]+)\.([0-9]+)(?:\.([0-9]+))?(?:-rc.([0-9]+))?$/);
|
1543
|
-
if (!match) {
|
1544
|
-
throw new Error(`${versionStr} is not a valid semantic version`);
|
1545
|
-
}
|
1546
|
-
const semVer = Object.assign({ major: parseInt(match[1]), minor: parseInt(match[2]), patch: (() => {
|
1547
|
-
const str = match[3];
|
1548
|
-
return str === undefined ? 0 : parseInt(str);
|
1549
|
-
})() }, (() => {
|
1550
|
-
const str = match[4];
|
1551
|
-
return str === undefined ? {} : { rc: parseInt(str) };
|
1552
|
-
})());
|
1553
|
-
const initialStr = stringify(semVer);
|
1554
|
-
Object.defineProperty(semVer, "parsedFrom", {
|
1555
|
-
enumerable: true,
|
1556
|
-
get: function () {
|
1557
|
-
const currentStr = stringify(this);
|
1558
|
-
if (currentStr !== initialStr) {
|
1559
|
-
throw new Error(`SemVer.parsedFrom can't be read anymore, the version have been modified from ${initialStr} to ${currentStr}`);
|
1560
|
-
}
|
1561
|
-
return versionStr;
|
1562
|
-
}
|
1563
|
-
});
|
1564
|
-
return semVer;
|
1565
|
-
}
|
1566
|
-
SemVer.parse = parse;
|
1567
|
-
function stringify(v) {
|
1568
|
-
return `${v.major}.${v.minor}.${v.patch}${v.rc === undefined ? "" : `-rc.${v.rc}`}`;
|
1569
|
-
}
|
1570
|
-
SemVer.stringify = stringify;
|
1571
|
-
/**
|
1572
|
-
*
|
1573
|
-
* v1 < v2 => -1
|
1574
|
-
* v1 === v2 => 0
|
1575
|
-
* v1 > v2 => 1
|
1576
|
-
*
|
1577
|
-
*/
|
1578
|
-
function compare(v1, v2) {
|
1579
|
-
const sign = (diff) => (diff === 0 ? 0 : diff < 0 ? -1 : 1);
|
1580
|
-
const noUndefined = (n) => n !== null && n !== void 0 ? n : Infinity;
|
1581
|
-
for (const level of ["major", "minor", "patch", "rc"]) {
|
1582
|
-
if (noUndefined(v1[level]) !== noUndefined(v2[level])) {
|
1583
|
-
return sign(noUndefined(v1[level]) - noUndefined(v2[level]));
|
1584
|
-
}
|
1585
|
-
}
|
1586
|
-
return 0;
|
1587
|
-
}
|
1588
|
-
SemVer.compare = compare;
|
1589
|
-
/*
|
1590
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0")) === -1 )
|
1591
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0-rc.4")) === -1 )
|
1592
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("4.0.0")) === -1 )
|
1593
|
-
*/
|
1594
|
-
function bumpType(params) {
|
1595
|
-
const versionAhead = typeof params.versionAhead === "string"
|
1596
|
-
? parse(params.versionAhead)
|
1597
|
-
: params.versionAhead;
|
1598
|
-
const versionBehind = typeof params.versionBehind === "string"
|
1599
|
-
? parse(params.versionBehind)
|
1600
|
-
: params.versionBehind;
|
1601
|
-
if (compare(versionBehind, versionAhead) === 1) {
|
1602
|
-
throw new Error(`Version regression ${stringify(versionBehind)} -> ${stringify(versionAhead)}`);
|
1603
|
-
}
|
1604
|
-
for (const level of ["major", "minor", "patch", "rc"]) {
|
1605
|
-
if (versionBehind[level] !== versionAhead[level]) {
|
1606
|
-
return level;
|
1607
|
-
}
|
1608
|
-
}
|
1609
|
-
return "no bump";
|
1610
|
-
}
|
1611
|
-
SemVer.bumpType = bumpType;
|
1612
|
-
})(SemVer || (SemVer = {}));
|
1613
|
-
//# sourceMappingURL=SemVer.js.map
|
1614
|
-
|
1615
|
-
/***/ }),
|
1616
|
-
|
1617
1532
|
/***/ 27190:
|
1618
1533
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
1619
1534
|
|
package/bin/653.index.js
CHANGED
@@ -250,91 +250,6 @@ async function command(params) {
|
|
250
250
|
|
251
251
|
/***/ }),
|
252
252
|
|
253
|
-
/***/ 12171:
|
254
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
255
|
-
|
256
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
257
|
-
/* harmony export */ "h": () => (/* binding */ SemVer)
|
258
|
-
/* harmony export */ });
|
259
|
-
var SemVer;
|
260
|
-
(function (SemVer) {
|
261
|
-
const bumpTypes = ["major", "minor", "patch", "rc", "no bump"];
|
262
|
-
function parse(versionStr) {
|
263
|
-
const match = versionStr.match(/^v?([0-9]+)\.([0-9]+)(?:\.([0-9]+))?(?:-rc.([0-9]+))?$/);
|
264
|
-
if (!match) {
|
265
|
-
throw new Error(`${versionStr} is not a valid semantic version`);
|
266
|
-
}
|
267
|
-
const semVer = Object.assign({ major: parseInt(match[1]), minor: parseInt(match[2]), patch: (() => {
|
268
|
-
const str = match[3];
|
269
|
-
return str === undefined ? 0 : parseInt(str);
|
270
|
-
})() }, (() => {
|
271
|
-
const str = match[4];
|
272
|
-
return str === undefined ? {} : { rc: parseInt(str) };
|
273
|
-
})());
|
274
|
-
const initialStr = stringify(semVer);
|
275
|
-
Object.defineProperty(semVer, "parsedFrom", {
|
276
|
-
enumerable: true,
|
277
|
-
get: function () {
|
278
|
-
const currentStr = stringify(this);
|
279
|
-
if (currentStr !== initialStr) {
|
280
|
-
throw new Error(`SemVer.parsedFrom can't be read anymore, the version have been modified from ${initialStr} to ${currentStr}`);
|
281
|
-
}
|
282
|
-
return versionStr;
|
283
|
-
}
|
284
|
-
});
|
285
|
-
return semVer;
|
286
|
-
}
|
287
|
-
SemVer.parse = parse;
|
288
|
-
function stringify(v) {
|
289
|
-
return `${v.major}.${v.minor}.${v.patch}${v.rc === undefined ? "" : `-rc.${v.rc}`}`;
|
290
|
-
}
|
291
|
-
SemVer.stringify = stringify;
|
292
|
-
/**
|
293
|
-
*
|
294
|
-
* v1 < v2 => -1
|
295
|
-
* v1 === v2 => 0
|
296
|
-
* v1 > v2 => 1
|
297
|
-
*
|
298
|
-
*/
|
299
|
-
function compare(v1, v2) {
|
300
|
-
const sign = (diff) => (diff === 0 ? 0 : diff < 0 ? -1 : 1);
|
301
|
-
const noUndefined = (n) => n !== null && n !== void 0 ? n : Infinity;
|
302
|
-
for (const level of ["major", "minor", "patch", "rc"]) {
|
303
|
-
if (noUndefined(v1[level]) !== noUndefined(v2[level])) {
|
304
|
-
return sign(noUndefined(v1[level]) - noUndefined(v2[level]));
|
305
|
-
}
|
306
|
-
}
|
307
|
-
return 0;
|
308
|
-
}
|
309
|
-
SemVer.compare = compare;
|
310
|
-
/*
|
311
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0")) === -1 )
|
312
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0-rc.4")) === -1 )
|
313
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("4.0.0")) === -1 )
|
314
|
-
*/
|
315
|
-
function bumpType(params) {
|
316
|
-
const versionAhead = typeof params.versionAhead === "string"
|
317
|
-
? parse(params.versionAhead)
|
318
|
-
: params.versionAhead;
|
319
|
-
const versionBehind = typeof params.versionBehind === "string"
|
320
|
-
? parse(params.versionBehind)
|
321
|
-
: params.versionBehind;
|
322
|
-
if (compare(versionBehind, versionAhead) === 1) {
|
323
|
-
throw new Error(`Version regression ${stringify(versionBehind)} -> ${stringify(versionAhead)}`);
|
324
|
-
}
|
325
|
-
for (const level of ["major", "minor", "patch", "rc"]) {
|
326
|
-
if (versionBehind[level] !== versionAhead[level]) {
|
327
|
-
return level;
|
328
|
-
}
|
329
|
-
}
|
330
|
-
return "no bump";
|
331
|
-
}
|
332
|
-
SemVer.bumpType = bumpType;
|
333
|
-
})(SemVer || (SemVer = {}));
|
334
|
-
//# sourceMappingURL=SemVer.js.map
|
335
|
-
|
336
|
-
/***/ }),
|
337
|
-
|
338
253
|
/***/ 89693:
|
339
254
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
340
255
|
|
package/bin/658.index.js
ADDED
@@ -0,0 +1,197 @@
|
|
1
|
+
"use strict";
|
2
|
+
exports.id = 658;
|
3
|
+
exports.ids = [658];
|
4
|
+
exports.modules = {
|
5
|
+
|
6
|
+
/***/ 18040:
|
7
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
8
|
+
|
9
|
+
__webpack_require__.r(__webpack_exports__);
|
10
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
11
|
+
/* harmony export */ "command": () => (/* binding */ command)
|
12
|
+
/* harmony export */ });
|
13
|
+
/* harmony import */ var _shared_customHandler_delegate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(72138);
|
14
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71017);
|
15
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
|
16
|
+
/* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(173);
|
17
|
+
/* harmony import */ var _tools_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(64795);
|
18
|
+
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(57147);
|
19
|
+
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_4__);
|
20
|
+
/* harmony import */ var _tools_fs_rmSync__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(89693);
|
21
|
+
/* harmony import */ var _tools_transformCodebase__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(60332);
|
22
|
+
/* harmony import */ var _tools_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58822);
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
async function command(params) {
|
32
|
+
const { buildContext } = params;
|
33
|
+
const { hasBeenHandled } = (0,_shared_customHandler_delegate__WEBPACK_IMPORTED_MODULE_0__/* .maybeDelegateCommandToCustomHandler */ .q)({
|
34
|
+
commandName: "copy-keycloak-resources-to-public",
|
35
|
+
buildContext
|
36
|
+
});
|
37
|
+
if (hasBeenHandled) {
|
38
|
+
return;
|
39
|
+
}
|
40
|
+
const destDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(buildContext.publicDirPath, _shared_constants__WEBPACK_IMPORTED_MODULE_2__/* .WELL_KNOWN_DIRECTORY_BASE_NAME.KEYCLOAKIFY_DEV_RESOURCES */ .Ju.KEYCLOAKIFY_DEV_RESOURCES);
|
41
|
+
const keycloakifyBuildinfoFilePath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(destDirPath, "keycloakify.buildinfo");
|
42
|
+
const keycloakifyBuildinfoRaw = JSON.stringify({
|
43
|
+
keycloakifyVersion: (0,_tools_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_3__/* .readThisNpmPackageVersion */ .K)()
|
44
|
+
}, null, 2);
|
45
|
+
skip_if_already_done: {
|
46
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_4__.existsSync(keycloakifyBuildinfoFilePath)) {
|
47
|
+
break skip_if_already_done;
|
48
|
+
}
|
49
|
+
const keycloakifyBuildinfoRaw_previousRun = fs__WEBPACK_IMPORTED_MODULE_4__.readFileSync(keycloakifyBuildinfoFilePath)
|
50
|
+
.toString("utf8");
|
51
|
+
if (keycloakifyBuildinfoRaw_previousRun !== keycloakifyBuildinfoRaw) {
|
52
|
+
break skip_if_already_done;
|
53
|
+
}
|
54
|
+
return;
|
55
|
+
}
|
56
|
+
(0,_tools_fs_rmSync__WEBPACK_IMPORTED_MODULE_5__/* .rmSync */ .a)(destDirPath, { force: true, recursive: true });
|
57
|
+
// NOTE: To remove in a while, remove the legacy keycloak-resources directory
|
58
|
+
(0,_tools_fs_rmSync__WEBPACK_IMPORTED_MODULE_5__/* .rmSync */ .a)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,path__WEBPACK_IMPORTED_MODULE_1__.dirname)(destDirPath), "keycloak-resources"), {
|
59
|
+
force: true,
|
60
|
+
recursive: true
|
61
|
+
});
|
62
|
+
(0,_tools_fs_rmSync__WEBPACK_IMPORTED_MODULE_5__/* .rmSync */ .a)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,path__WEBPACK_IMPORTED_MODULE_1__.dirname)(destDirPath), ".keycloakify"), {
|
63
|
+
force: true,
|
64
|
+
recursive: true
|
65
|
+
});
|
66
|
+
fs__WEBPACK_IMPORTED_MODULE_4__.mkdirSync(destDirPath, { recursive: true });
|
67
|
+
fs__WEBPACK_IMPORTED_MODULE_4__.writeFileSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(destDirPath, ".gitignore"), Buffer.from("*", "utf8"));
|
68
|
+
(0,_tools_transformCodebase__WEBPACK_IMPORTED_MODULE_6__/* .transformCodebase */ .N)({
|
69
|
+
srcDirPath: (0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_tools_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_7__/* .getThisCodebaseRootDirPath */ .e)(), "res", "public", _shared_constants__WEBPACK_IMPORTED_MODULE_2__/* .WELL_KNOWN_DIRECTORY_BASE_NAME.KEYCLOAKIFY_DEV_RESOURCES */ .Ju.KEYCLOAKIFY_DEV_RESOURCES),
|
70
|
+
destDirPath
|
71
|
+
});
|
72
|
+
fs__WEBPACK_IMPORTED_MODULE_4__.writeFileSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(destDirPath, "README.txt"), Buffer.from(
|
73
|
+
// prettier-ignore
|
74
|
+
[
|
75
|
+
"This directory is only used in dev mode by Keycloakify",
|
76
|
+
"It won't be included in your final build.",
|
77
|
+
"Do not modify anything in this directory.",
|
78
|
+
].join("\n")));
|
79
|
+
fs__WEBPACK_IMPORTED_MODULE_4__.writeFileSync(keycloakifyBuildinfoFilePath, Buffer.from(keycloakifyBuildinfoRaw, "utf8"));
|
80
|
+
}
|
81
|
+
//# sourceMappingURL=copy-keycloak-resources-to-public.js.map
|
82
|
+
|
83
|
+
/***/ }),
|
84
|
+
|
85
|
+
/***/ 89693:
|
86
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
87
|
+
|
88
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
89
|
+
/* harmony export */ "a": () => (/* binding */ rmSync)
|
90
|
+
/* harmony export */ });
|
91
|
+
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57147);
|
92
|
+
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
|
93
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71017);
|
94
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
|
95
|
+
/* harmony import */ var _SemVer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12171);
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
/**
|
100
|
+
* Polyfill of fs.rmSync(dirPath, { "recursive": true })
|
101
|
+
* For older version of Node
|
102
|
+
*/
|
103
|
+
function rmSync(dirPath, options) {
|
104
|
+
if (_SemVer__WEBPACK_IMPORTED_MODULE_2__/* .SemVer.compare */ .h.compare(_SemVer__WEBPACK_IMPORTED_MODULE_2__/* .SemVer.parse */ .h.parse(process.version), _SemVer__WEBPACK_IMPORTED_MODULE_2__/* .SemVer.parse */ .h.parse("14.14.0")) > 0) {
|
105
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.rmSync(dirPath, options);
|
106
|
+
return;
|
107
|
+
}
|
108
|
+
const { force = true } = options;
|
109
|
+
if (force && !fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(dirPath)) {
|
110
|
+
return;
|
111
|
+
}
|
112
|
+
const removeDir_rec = (dirPath) => fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(dirPath).forEach(basename => {
|
113
|
+
const fileOrDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(dirPath, basename);
|
114
|
+
if (fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(fileOrDirPath).isDirectory()) {
|
115
|
+
removeDir_rec(fileOrDirPath);
|
116
|
+
return;
|
117
|
+
}
|
118
|
+
else {
|
119
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.unlinkSync(fileOrDirPath);
|
120
|
+
}
|
121
|
+
});
|
122
|
+
removeDir_rec(dirPath);
|
123
|
+
}
|
124
|
+
//# sourceMappingURL=fs.rmSync.js.map
|
125
|
+
|
126
|
+
/***/ }),
|
127
|
+
|
128
|
+
/***/ 60332:
|
129
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
130
|
+
|
131
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
132
|
+
/* harmony export */ "N": () => (/* binding */ transformCodebase)
|
133
|
+
/* harmony export */ });
|
134
|
+
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57147);
|
135
|
+
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
|
136
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71017);
|
137
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
|
138
|
+
/* harmony import */ var _crawl__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73036);
|
139
|
+
/* harmony import */ var _tools_fs_rmSync__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89693);
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
/**
|
145
|
+
* Apply a transformation function to every file of directory
|
146
|
+
* If source and destination are the same this function can be used to apply the transformation in place
|
147
|
+
* like filtering out some files or modifying them.
|
148
|
+
* */
|
149
|
+
function transformCodebase(params) {
|
150
|
+
const { srcDirPath, transformSourceCode } = params;
|
151
|
+
const isTargetSameAsSource = path__WEBPACK_IMPORTED_MODULE_1__.relative(srcDirPath, params.destDirPath) === "";
|
152
|
+
const destDirPath = isTargetSameAsSource
|
153
|
+
? path__WEBPACK_IMPORTED_MODULE_1__.join(srcDirPath, "..", "tmp_xOsPdkPsTdzPs34sOkHs")
|
154
|
+
: params.destDirPath;
|
155
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(destDirPath, {
|
156
|
+
recursive: true
|
157
|
+
});
|
158
|
+
for (const fileRelativePath of (0,_crawl__WEBPACK_IMPORTED_MODULE_2__/* .crawl */ .J)({
|
159
|
+
dirPath: srcDirPath,
|
160
|
+
returnedPathsType: "relative to dirPath"
|
161
|
+
})) {
|
162
|
+
const filePath = path__WEBPACK_IMPORTED_MODULE_1__.join(srcDirPath, fileRelativePath);
|
163
|
+
const destFilePath = path__WEBPACK_IMPORTED_MODULE_1__.join(destDirPath, fileRelativePath);
|
164
|
+
// NOTE: Optimization, if we don't need to transform the file, just copy
|
165
|
+
// it using the lower level implementation.
|
166
|
+
if (transformSourceCode === undefined) {
|
167
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(path__WEBPACK_IMPORTED_MODULE_1__.dirname(destFilePath), {
|
168
|
+
recursive: true
|
169
|
+
});
|
170
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.copyFileSync(filePath, destFilePath);
|
171
|
+
continue;
|
172
|
+
}
|
173
|
+
const transformSourceCodeResult = transformSourceCode({
|
174
|
+
sourceCode: fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(filePath),
|
175
|
+
filePath,
|
176
|
+
fileRelativePath
|
177
|
+
});
|
178
|
+
if (transformSourceCodeResult === undefined) {
|
179
|
+
continue;
|
180
|
+
}
|
181
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(path__WEBPACK_IMPORTED_MODULE_1__.dirname(destFilePath), {
|
182
|
+
recursive: true
|
183
|
+
});
|
184
|
+
const { newFileName, modifiedSourceCode } = transformSourceCodeResult;
|
185
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.writeFileSync(path__WEBPACK_IMPORTED_MODULE_1__.join(path__WEBPACK_IMPORTED_MODULE_1__.dirname(destFilePath), newFileName !== null && newFileName !== void 0 ? newFileName : path__WEBPACK_IMPORTED_MODULE_1__.basename(destFilePath)), modifiedSourceCode);
|
186
|
+
}
|
187
|
+
if (isTargetSameAsSource) {
|
188
|
+
(0,_tools_fs_rmSync__WEBPACK_IMPORTED_MODULE_3__/* .rmSync */ .a)(srcDirPath, { recursive: true });
|
189
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.renameSync(destDirPath, srcDirPath);
|
190
|
+
}
|
191
|
+
}
|
192
|
+
//# sourceMappingURL=transformCodebase.js.map
|
193
|
+
|
194
|
+
/***/ })
|
195
|
+
|
196
|
+
};
|
197
|
+
;
|
package/bin/735.index.js
CHANGED
@@ -402,91 +402,6 @@ async function getLatestsSemVersionedTag(_a) {
|
|
402
402
|
|
403
403
|
/***/ }),
|
404
404
|
|
405
|
-
/***/ 12171:
|
406
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
407
|
-
|
408
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
409
|
-
/* harmony export */ "h": () => (/* binding */ SemVer)
|
410
|
-
/* harmony export */ });
|
411
|
-
var SemVer;
|
412
|
-
(function (SemVer) {
|
413
|
-
const bumpTypes = ["major", "minor", "patch", "rc", "no bump"];
|
414
|
-
function parse(versionStr) {
|
415
|
-
const match = versionStr.match(/^v?([0-9]+)\.([0-9]+)(?:\.([0-9]+))?(?:-rc.([0-9]+))?$/);
|
416
|
-
if (!match) {
|
417
|
-
throw new Error(`${versionStr} is not a valid semantic version`);
|
418
|
-
}
|
419
|
-
const semVer = Object.assign({ major: parseInt(match[1]), minor: parseInt(match[2]), patch: (() => {
|
420
|
-
const str = match[3];
|
421
|
-
return str === undefined ? 0 : parseInt(str);
|
422
|
-
})() }, (() => {
|
423
|
-
const str = match[4];
|
424
|
-
return str === undefined ? {} : { rc: parseInt(str) };
|
425
|
-
})());
|
426
|
-
const initialStr = stringify(semVer);
|
427
|
-
Object.defineProperty(semVer, "parsedFrom", {
|
428
|
-
enumerable: true,
|
429
|
-
get: function () {
|
430
|
-
const currentStr = stringify(this);
|
431
|
-
if (currentStr !== initialStr) {
|
432
|
-
throw new Error(`SemVer.parsedFrom can't be read anymore, the version have been modified from ${initialStr} to ${currentStr}`);
|
433
|
-
}
|
434
|
-
return versionStr;
|
435
|
-
}
|
436
|
-
});
|
437
|
-
return semVer;
|
438
|
-
}
|
439
|
-
SemVer.parse = parse;
|
440
|
-
function stringify(v) {
|
441
|
-
return `${v.major}.${v.minor}.${v.patch}${v.rc === undefined ? "" : `-rc.${v.rc}`}`;
|
442
|
-
}
|
443
|
-
SemVer.stringify = stringify;
|
444
|
-
/**
|
445
|
-
*
|
446
|
-
* v1 < v2 => -1
|
447
|
-
* v1 === v2 => 0
|
448
|
-
* v1 > v2 => 1
|
449
|
-
*
|
450
|
-
*/
|
451
|
-
function compare(v1, v2) {
|
452
|
-
const sign = (diff) => (diff === 0 ? 0 : diff < 0 ? -1 : 1);
|
453
|
-
const noUndefined = (n) => n !== null && n !== void 0 ? n : Infinity;
|
454
|
-
for (const level of ["major", "minor", "patch", "rc"]) {
|
455
|
-
if (noUndefined(v1[level]) !== noUndefined(v2[level])) {
|
456
|
-
return sign(noUndefined(v1[level]) - noUndefined(v2[level]));
|
457
|
-
}
|
458
|
-
}
|
459
|
-
return 0;
|
460
|
-
}
|
461
|
-
SemVer.compare = compare;
|
462
|
-
/*
|
463
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0")) === -1 )
|
464
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0-rc.4")) === -1 )
|
465
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("4.0.0")) === -1 )
|
466
|
-
*/
|
467
|
-
function bumpType(params) {
|
468
|
-
const versionAhead = typeof params.versionAhead === "string"
|
469
|
-
? parse(params.versionAhead)
|
470
|
-
: params.versionAhead;
|
471
|
-
const versionBehind = typeof params.versionBehind === "string"
|
472
|
-
? parse(params.versionBehind)
|
473
|
-
: params.versionBehind;
|
474
|
-
if (compare(versionBehind, versionAhead) === 1) {
|
475
|
-
throw new Error(`Version regression ${stringify(versionBehind)} -> ${stringify(versionAhead)}`);
|
476
|
-
}
|
477
|
-
for (const level of ["major", "minor", "patch", "rc"]) {
|
478
|
-
if (versionBehind[level] !== versionAhead[level]) {
|
479
|
-
return level;
|
480
|
-
}
|
481
|
-
}
|
482
|
-
return "no bump";
|
483
|
-
}
|
484
|
-
SemVer.bumpType = bumpType;
|
485
|
-
})(SemVer || (SemVer = {}));
|
486
|
-
//# sourceMappingURL=SemVer.js.map
|
487
|
-
|
488
|
-
/***/ }),
|
489
|
-
|
490
405
|
/***/ 89693:
|
491
406
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
492
407
|
|
package/bin/786.index.js
CHANGED
@@ -263,6 +263,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
263
263
|
|
264
264
|
async function command(params) {
|
265
265
|
const { buildContext } = params;
|
266
|
+
run_copy_assets_to_public: {
|
267
|
+
if (buildContext.bundler !== "webpack") {
|
268
|
+
break run_copy_assets_to_public;
|
269
|
+
}
|
270
|
+
const { command } = await __webpack_require__.e(/* import() */ 658).then(__webpack_require__.bind(__webpack_require__, 18040));
|
271
|
+
await command({ buildContext });
|
272
|
+
}
|
266
273
|
const { hasBeenHandled } = (0,_shared_customHandler_delegate__WEBPACK_IMPORTED_MODULE_3__/* .maybeDelegateCommandToCustomHandler */ .q)({
|
267
274
|
commandName: "update-kc-gen",
|
268
275
|
buildContext
|
package/bin/921.index.js
CHANGED
@@ -443,6 +443,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
443
443
|
|
444
444
|
async function command(params) {
|
445
445
|
const { buildContext } = params;
|
446
|
+
run_copy_assets_to_public: {
|
447
|
+
if (buildContext.bundler !== "webpack") {
|
448
|
+
break run_copy_assets_to_public;
|
449
|
+
}
|
450
|
+
const { command } = await __webpack_require__.e(/* import() */ 658).then(__webpack_require__.bind(__webpack_require__, 18040));
|
451
|
+
await command({ buildContext });
|
452
|
+
}
|
446
453
|
const { hasBeenHandled } = (0,_shared_customHandler_delegate__WEBPACK_IMPORTED_MODULE_3__/* .maybeDelegateCommandToCustomHandler */ .q)({
|
447
454
|
commandName: "update-kc-gen",
|
448
455
|
buildContext
|
package/bin/main.js
CHANGED
@@ -87,6 +87,92 @@ const KEYCLOAK_THEME = "keycloak-theme";
|
|
87
87
|
|
88
88
|
/***/ }),
|
89
89
|
|
90
|
+
/***/ 12171:
|
91
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
|
92
|
+
|
93
|
+
"use strict";
|
94
|
+
/* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
|
95
|
+
/* harmony export */ "h": () => (/* binding */ SemVer)
|
96
|
+
/* harmony export */ });
|
97
|
+
var SemVer;
|
98
|
+
(function (SemVer) {
|
99
|
+
const bumpTypes = ["major", "minor", "patch", "rc", "no bump"];
|
100
|
+
function parse(versionStr) {
|
101
|
+
const match = versionStr.match(/^v?([0-9]+)\.([0-9]+)(?:\.([0-9]+))?(?:-rc.([0-9]+))?$/);
|
102
|
+
if (!match) {
|
103
|
+
throw new Error(`${versionStr} is not a valid semantic version`);
|
104
|
+
}
|
105
|
+
const semVer = Object.assign({ major: parseInt(match[1]), minor: parseInt(match[2]), patch: (() => {
|
106
|
+
const str = match[3];
|
107
|
+
return str === undefined ? 0 : parseInt(str);
|
108
|
+
})() }, (() => {
|
109
|
+
const str = match[4];
|
110
|
+
return str === undefined ? {} : { rc: parseInt(str) };
|
111
|
+
})());
|
112
|
+
const initialStr = stringify(semVer);
|
113
|
+
Object.defineProperty(semVer, "parsedFrom", {
|
114
|
+
enumerable: true,
|
115
|
+
get: function () {
|
116
|
+
const currentStr = stringify(this);
|
117
|
+
if (currentStr !== initialStr) {
|
118
|
+
throw new Error(`SemVer.parsedFrom can't be read anymore, the version have been modified from ${initialStr} to ${currentStr}`);
|
119
|
+
}
|
120
|
+
return versionStr;
|
121
|
+
}
|
122
|
+
});
|
123
|
+
return semVer;
|
124
|
+
}
|
125
|
+
SemVer.parse = parse;
|
126
|
+
function stringify(v) {
|
127
|
+
return `${v.major}.${v.minor}.${v.patch}${v.rc === undefined ? "" : `-rc.${v.rc}`}`;
|
128
|
+
}
|
129
|
+
SemVer.stringify = stringify;
|
130
|
+
/**
|
131
|
+
*
|
132
|
+
* v1 < v2 => -1
|
133
|
+
* v1 === v2 => 0
|
134
|
+
* v1 > v2 => 1
|
135
|
+
*
|
136
|
+
*/
|
137
|
+
function compare(v1, v2) {
|
138
|
+
const sign = (diff) => (diff === 0 ? 0 : diff < 0 ? -1 : 1);
|
139
|
+
const noUndefined = (n) => n !== null && n !== void 0 ? n : Infinity;
|
140
|
+
for (const level of ["major", "minor", "patch", "rc"]) {
|
141
|
+
if (noUndefined(v1[level]) !== noUndefined(v2[level])) {
|
142
|
+
return sign(noUndefined(v1[level]) - noUndefined(v2[level]));
|
143
|
+
}
|
144
|
+
}
|
145
|
+
return 0;
|
146
|
+
}
|
147
|
+
SemVer.compare = compare;
|
148
|
+
/*
|
149
|
+
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0")) === -1 )
|
150
|
+
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0-rc.4")) === -1 )
|
151
|
+
console.log(compare(parse("3.0.0-rc.3"), parse("4.0.0")) === -1 )
|
152
|
+
*/
|
153
|
+
function bumpType(params) {
|
154
|
+
const versionAhead = typeof params.versionAhead === "string"
|
155
|
+
? parse(params.versionAhead)
|
156
|
+
: params.versionAhead;
|
157
|
+
const versionBehind = typeof params.versionBehind === "string"
|
158
|
+
? parse(params.versionBehind)
|
159
|
+
: params.versionBehind;
|
160
|
+
if (compare(versionBehind, versionAhead) === 1) {
|
161
|
+
throw new Error(`Version regression ${stringify(versionBehind)} -> ${stringify(versionAhead)}`);
|
162
|
+
}
|
163
|
+
for (const level of ["major", "minor", "patch", "rc"]) {
|
164
|
+
if (versionBehind[level] !== versionAhead[level]) {
|
165
|
+
return level;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
return "no bump";
|
169
|
+
}
|
170
|
+
SemVer.bumpType = bumpType;
|
171
|
+
})(SemVer || (SemVer = {}));
|
172
|
+
//# sourceMappingURL=SemVer.js.map
|
173
|
+
|
174
|
+
/***/ }),
|
175
|
+
|
90
176
|
/***/ 73036:
|
91
177
|
/***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
|
92
178
|
|
@@ -16095,12 +16181,17 @@ function getBuildContext(params) {
|
|
16095
16181
|
};
|
16096
16182
|
}
|
16097
16183
|
//# sourceMappingURL=buildContext.js.map
|
16184
|
+
// EXTERNAL MODULE: ./dist/bin/tools/SemVer.js
|
16185
|
+
var SemVer = __nccwpck_require__(12171);
|
16098
16186
|
;// CONCATENATED MODULE: ./dist/bin/main.js
|
16099
16187
|
|
16100
16188
|
|
16101
16189
|
|
16102
16190
|
|
16103
16191
|
|
16192
|
+
|
16193
|
+
|
16194
|
+
|
16104
16195
|
assertNoPnpmDlx();
|
16105
16196
|
const program = Z({
|
16106
16197
|
name: "keycloakify",
|
@@ -16193,9 +16284,39 @@ program
|
|
16193
16284
|
skip,
|
16194
16285
|
handler: async ({ projectDirPath, keycloakVersion, port, realmJsonFilePath }) => {
|
16195
16286
|
const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(805), __nccwpck_require__.e(450), __nccwpck_require__.e(33), __nccwpck_require__.e(36), __nccwpck_require__.e(20), __nccwpck_require__.e(526)]).then(__nccwpck_require__.bind(__nccwpck_require__, 80526));
|
16287
|
+
validate_keycloak_version: {
|
16288
|
+
if (keycloakVersion === undefined) {
|
16289
|
+
break validate_keycloak_version;
|
16290
|
+
}
|
16291
|
+
const isValidVersion = (() => {
|
16292
|
+
if (typeof keycloakVersion === "number") {
|
16293
|
+
return false;
|
16294
|
+
}
|
16295
|
+
try {
|
16296
|
+
SemVer/* SemVer.parse */.h.parse(keycloakVersion);
|
16297
|
+
}
|
16298
|
+
catch (_a) {
|
16299
|
+
return false;
|
16300
|
+
}
|
16301
|
+
return;
|
16302
|
+
})();
|
16303
|
+
if (isValidVersion) {
|
16304
|
+
break validate_keycloak_version;
|
16305
|
+
}
|
16306
|
+
console.log(source_default().red([
|
16307
|
+
`Invalid Keycloak version: ${keycloakVersion}`,
|
16308
|
+
"It should be a valid semver version example: 26.0.4"
|
16309
|
+
].join(" ")));
|
16310
|
+
process.exit(1);
|
16311
|
+
}
|
16312
|
+
(0,assert/* assert */.h)((0,assert.is)(keycloakVersion));
|
16196
16313
|
await command({
|
16197
16314
|
buildContext: getBuildContext({ projectDirPath }),
|
16198
|
-
cliCommandOptions: {
|
16315
|
+
cliCommandOptions: {
|
16316
|
+
keycloakVersion,
|
16317
|
+
port,
|
16318
|
+
realmJsonFilePath
|
16319
|
+
}
|
16199
16320
|
});
|
16200
16321
|
}
|
16201
16322
|
});
|
@@ -16250,7 +16371,7 @@ program
|
|
16250
16371
|
program
|
16251
16372
|
.command({
|
16252
16373
|
name: "copy-keycloak-resources-to-public",
|
16253
|
-
description: "(
|
16374
|
+
description: "(Internal) Copy Keycloak default theme resources to the public directory."
|
16254
16375
|
})
|
16255
16376
|
.task({
|
16256
16377
|
skip,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "keycloakify",
|
3
|
-
"version": "11.3.
|
3
|
+
"version": "11.3.31",
|
4
4
|
"description": "Framework to create custom Keycloak UIs",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -1109,6 +1109,7 @@
|
|
1109
1109
|
"bin/526.index.js",
|
1110
1110
|
"bin/573.index.js",
|
1111
1111
|
"bin/653.index.js",
|
1112
|
+
"bin/658.index.js",
|
1112
1113
|
"bin/720.index.js",
|
1113
1114
|
"bin/735.index.js",
|
1114
1115
|
"bin/743.index.js",
|
package/src/bin/main.ts
CHANGED
@@ -5,6 +5,9 @@ import { readThisNpmPackageVersion } from "./tools/readThisNpmPackageVersion";
|
|
5
5
|
import * as child_process from "child_process";
|
6
6
|
import { assertNoPnpmDlx } from "./tools/assertNoPnpmDlx";
|
7
7
|
import { getBuildContext } from "./shared/buildContext";
|
8
|
+
import { SemVer } from "./tools/SemVer";
|
9
|
+
import { assert, is } from "tsafe/assert";
|
10
|
+
import chalk from "chalk";
|
8
11
|
|
9
12
|
type CliCommandOptions = {
|
10
13
|
projectDirPath: string | undefined;
|
@@ -80,7 +83,7 @@ program
|
|
80
83
|
program
|
81
84
|
.command<{
|
82
85
|
port: number | undefined;
|
83
|
-
keycloakVersion: string | undefined;
|
86
|
+
keycloakVersion: string | number | undefined;
|
84
87
|
realmJsonFilePath: string | undefined;
|
85
88
|
}>({
|
86
89
|
name: "start-keycloak",
|
@@ -134,9 +137,50 @@ program
|
|
134
137
|
handler: async ({ projectDirPath, keycloakVersion, port, realmJsonFilePath }) => {
|
135
138
|
const { command } = await import("./start-keycloak");
|
136
139
|
|
140
|
+
validate_keycloak_version: {
|
141
|
+
if (keycloakVersion === undefined) {
|
142
|
+
break validate_keycloak_version;
|
143
|
+
}
|
144
|
+
|
145
|
+
const isValidVersion = (() => {
|
146
|
+
if (typeof keycloakVersion === "number") {
|
147
|
+
return false;
|
148
|
+
}
|
149
|
+
|
150
|
+
try {
|
151
|
+
SemVer.parse(keycloakVersion);
|
152
|
+
} catch {
|
153
|
+
return false;
|
154
|
+
}
|
155
|
+
|
156
|
+
return;
|
157
|
+
})();
|
158
|
+
|
159
|
+
if (isValidVersion) {
|
160
|
+
break validate_keycloak_version;
|
161
|
+
}
|
162
|
+
|
163
|
+
console.log(
|
164
|
+
chalk.red(
|
165
|
+
[
|
166
|
+
`Invalid Keycloak version: ${keycloakVersion}`,
|
167
|
+
"It should be a valid semver version example: 26.0.4"
|
168
|
+
].join(" ")
|
169
|
+
)
|
170
|
+
);
|
171
|
+
|
172
|
+
process.exit(1);
|
173
|
+
}
|
174
|
+
|
175
|
+
assert(is<string | undefined>(keycloakVersion));
|
176
|
+
|
137
177
|
await command({
|
138
178
|
buildContext: getBuildContext({ projectDirPath }),
|
139
|
-
cliCommandOptions: {
|
179
|
+
cliCommandOptions: {
|
180
|
+
keycloakVersion,
|
181
|
+
port,
|
182
|
+
realmJsonFilePath
|
183
|
+
}
|
140
184
|
});
|
141
185
|
}
|
142
186
|
});
|
@@ -201,7 +245,7 @@ program
|
|
201
245
|
.command({
|
202
246
|
name: "copy-keycloak-resources-to-public",
|
203
247
|
description:
|
204
|
-
"(
|
248
|
+
"(Internal) Copy Keycloak default theme resources to the public directory."
|
205
249
|
})
|
206
250
|
.task({
|
207
251
|
skip,
|
package/src/bin/update-kc-gen.ts
CHANGED
@@ -9,6 +9,16 @@ import { getIsPrettierAvailable, runPrettier } from "./tools/runPrettier";
|
|
9
9
|
export async function command(params: { buildContext: BuildContext }) {
|
10
10
|
const { buildContext } = params;
|
11
11
|
|
12
|
+
run_copy_assets_to_public: {
|
13
|
+
if (buildContext.bundler !== "webpack") {
|
14
|
+
break run_copy_assets_to_public;
|
15
|
+
}
|
16
|
+
|
17
|
+
const { command } = await import("./copy-keycloak-resources-to-public");
|
18
|
+
|
19
|
+
await command({ buildContext });
|
20
|
+
}
|
21
|
+
|
12
22
|
const { hasBeenHandled } = maybeDelegateCommandToCustomHandler({
|
13
23
|
commandName: "update-kc-gen",
|
14
24
|
buildContext
|
package/vite-plugin/index.js
CHANGED
@@ -5554,6 +5554,13 @@ var runPrettier = __nccwpck_require__(433);
|
|
5554
5554
|
|
5555
5555
|
async function command(params) {
|
5556
5556
|
const { buildContext } = params;
|
5557
|
+
run_copy_assets_to_public: {
|
5558
|
+
if (buildContext.bundler !== "webpack") {
|
5559
|
+
break run_copy_assets_to_public;
|
5560
|
+
}
|
5561
|
+
const { command } = await Promise.resolve(/* import() */).then(__nccwpck_require__.bind(__nccwpck_require__, 713));
|
5562
|
+
await command({ buildContext });
|
5563
|
+
}
|
5557
5564
|
const { hasBeenHandled } = (0,customHandler_delegate/* maybeDelegateCommandToCustomHandler */.q)({
|
5558
5565
|
commandName: "update-kc-gen",
|
5559
5566
|
buildContext
|