keycloakify 7.11.8 → 7.11.10
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/README.md +2 -1
- package/bin/keycloakify/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl +11 -0
- package/bin/tools/trimIndent.js +1 -1
- package/bin/tools/trimIndent.js.map +1 -1
- package/package.json +1 -1
- package/src/bin/keycloakify/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl +11 -0
- package/src/bin/tools/trimIndent.ts +1 -1
package/README.md
CHANGED
@@ -47,7 +47,7 @@
|
|
47
47
|
|
48
48
|
## Sponsor 👼
|
49
49
|
|
50
|
-
We are exclusively sponsored by [Cloud IAM](https://
|
50
|
+
We are exclusively sponsored by [Cloud IAM](https://cloud-iam.com/?mtm_campaign=keycloakify-deal&mtm_source=keycloakify-github), a French company offering Keycloak as a service.
|
51
51
|
Their dedicated support helps us continue the development and maintenance of this project.
|
52
52
|
|
53
53
|
[Cloud IAM](https://cloud-iam.com/?mtm_campaign=keycloakify-deal&mtm_source=keycloakify-github) provides the following services:
|
@@ -105,6 +105,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
105
105
|
<tr>
|
106
106
|
<td align="center" valign="top" width="14.28%"><a href="https://www.gravitysoftware.be"><img src="https://avatars.githubusercontent.com/u/1140574?v=4?s=100" width="100px;" alt="Thomas Silvestre"/><br /><sub><b>Thomas Silvestre</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=thosil" title="Code">💻</a></td>
|
107
107
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/satanshiro"><img src="https://avatars.githubusercontent.com/u/38865738?v=4?s=100" width="100px;" alt="satanshiro"/><br /><sub><b>satanshiro</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=satanshiro" title="Code">💻</a></td>
|
108
|
+
<td align="center" valign="top" width="14.28%"><a href="https://poelhekke.dev"><img src="https://avatars.githubusercontent.com/u/1632377?v=4?s=100" width="100px;" alt="Koen Poelhekke"/><br /><sub><b>Koen Poelhekke</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=kpoelhekke" title="Code">💻</a></td>
|
108
109
|
</tr>
|
109
110
|
</tbody>
|
110
111
|
</table>
|
@@ -337,6 +337,17 @@
|
|
337
337
|
|
338
338
|
</#if>
|
339
339
|
|
340
|
+
<#local isDate = "">
|
341
|
+
<#attempt>
|
342
|
+
<#local isDate = object?is_date_like>
|
343
|
+
<#recover>
|
344
|
+
<#return "ABORT: Can't test if it's a date">
|
345
|
+
</#attempt>
|
346
|
+
|
347
|
+
<#if isDate>
|
348
|
+
<#return '"' + object?datetime?iso_utc + '"'>
|
349
|
+
</#if>
|
350
|
+
|
340
351
|
<#attempt>
|
341
352
|
<#return '"' + object?js_string + '"'>;
|
342
353
|
<#recover>
|
package/bin/tools/trimIndent.js
CHANGED
@@ -41,7 +41,7 @@ function populateTemplate(strings) {
|
|
41
41
|
if (strings[i]) {
|
42
42
|
chunks.push(strings[i]);
|
43
43
|
// remember last indent of the string portion
|
44
|
-
lastStringLineLength = (_b = (_a = strings[i].split("\n").
|
44
|
+
lastStringLineLength = (_b = (_a = strings[i].split("\n").slice(-1)[0]) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
45
45
|
}
|
46
46
|
if (args[i]) {
|
47
47
|
// if the interpolation value has newlines, indent the interpolation values
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"trimIndent.js","sourceRoot":"","sources":["../../src/bin/tools/trimIndent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,SAAS,gBAAgB,CAAC,OAA6B;;IAAE,cAAkB;SAAlB,UAAkB,EAAlB,qBAAkB,EAAlB,IAAkB;QAAlB,6BAAkB;;IACvE,IAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,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
337
|
|
338
338
|
</#if>
|
339
339
|
|
340
|
+
<#local isDate = "">
|
341
|
+
<#attempt>
|
342
|
+
<#local isDate = object?is_date_like>
|
343
|
+
<#recover>
|
344
|
+
<#return "ABORT: Can't test if it's a date">
|
345
|
+
</#attempt>
|
346
|
+
|
347
|
+
<#if isDate>
|
348
|
+
<#return '"' + object?datetime?iso_utc + '"'>
|
349
|
+
</#if>
|
350
|
+
|
340
351
|
<#attempt>
|
341
352
|
<#return '"' + object?js_string + '"'>;
|
342
353
|
<#recover>
|
@@ -9,7 +9,7 @@ function populateTemplate(strings: TemplateStringsArray, ...args: unknown[]) {
|
|
9
9
|
if (strings[i]) {
|
10
10
|
chunks.push(strings[i]);
|
11
11
|
// remember last indent of the string portion
|
12
|
-
lastStringLineLength = strings[i].split("\n").
|
12
|
+
lastStringLineLength = strings[i].split("\n").slice(-1)[0]?.length ?? 0;
|
13
13
|
}
|
14
14
|
if (args[i]) {
|
15
15
|
// if the interpolation value has newlines, indent the interpolation values
|