keycloakify 11.16.1 → 11.16.2
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/355.index.js +9 -1
- package/bin/40.index.js +9 -1
- package/bin/762.index.js +9 -1
- package/bin/780.index.js +9 -1
- package/bin/786.index.js +9 -1
- package/bin/932.index.js +9 -1
- package/bin/949.index.js +9 -1
- package/package.json +1 -1
- package/src/bin/shared/customHandler_delegate.ts +12 -1
- package/vite-plugin/index.js +9 -1
package/bin/355.index.js
CHANGED
|
@@ -77,6 +77,8 @@ var external_child_process_ = __webpack_require__(32081);
|
|
|
77
77
|
var tools_nodeModulesBinDirPath = __webpack_require__(73776);
|
|
78
78
|
// EXTERNAL MODULE: external "fs"
|
|
79
79
|
var external_fs_ = __webpack_require__(57147);
|
|
80
|
+
// EXTERNAL MODULE: external "path"
|
|
81
|
+
var external_path_ = __webpack_require__(71017);
|
|
80
82
|
;// CONCATENATED MODULE: ./dist/bin/shared/customHandler_delegate.js
|
|
81
83
|
|
|
82
84
|
|
|
@@ -84,6 +86,7 @@ var external_fs_ = __webpack_require__(57147);
|
|
|
84
86
|
|
|
85
87
|
|
|
86
88
|
|
|
89
|
+
|
|
87
90
|
(0,esm_assert/* assert */.h)();
|
|
88
91
|
async function maybeDelegateCommandToCustomHandler(params) {
|
|
89
92
|
const { commandName, buildContext } = params;
|
|
@@ -93,8 +96,13 @@ async function maybeDelegateCommandToCustomHandler(params) {
|
|
|
93
96
|
if (!external_fs_.readdirSync(nodeModulesBinDirPath).includes(BIN_NAME)) {
|
|
94
97
|
return { hasBeenHandled: false };
|
|
95
98
|
}
|
|
99
|
+
// NOTE: Run the binary we just checked rather than resolving it through npx,
|
|
100
|
+
// npx resolves from process.cwd() which, in a monorepo, can be a different
|
|
101
|
+
// directory (and pick up a global binary with the same name, or none at all).
|
|
102
|
+
const binFilePath = (0,external_path_.join)(nodeModulesBinDirPath, process.platform === "win32" ? `${BIN_NAME}.cmd` : BIN_NAME);
|
|
103
|
+
const command = external_fs_.existsSync(binFilePath) ? `"${binFilePath}"` : `npx ${BIN_NAME}`;
|
|
96
104
|
try {
|
|
97
|
-
external_child_process_.execSync(
|
|
105
|
+
external_child_process_.execSync(command, {
|
|
98
106
|
stdio: "inherit",
|
|
99
107
|
env: Object.assign(Object.assign({}, process.env), { [constants/* CUSTOM_HANDLER_ENV_NAMES.COMMAND_NAME */._S.COMMAND_NAME]: commandName, [constants/* CUSTOM_HANDLER_ENV_NAMES.BUILD_CONTEXT */._S.BUILD_CONTEXT]: JSON.stringify(buildContext) })
|
|
100
108
|
});
|
package/bin/40.index.js
CHANGED
|
@@ -122,6 +122,8 @@ var external_child_process_ = __webpack_require__(32081);
|
|
|
122
122
|
var tools_nodeModulesBinDirPath = __webpack_require__(73776);
|
|
123
123
|
// EXTERNAL MODULE: external "fs"
|
|
124
124
|
var external_fs_ = __webpack_require__(57147);
|
|
125
|
+
// EXTERNAL MODULE: external "path"
|
|
126
|
+
var external_path_ = __webpack_require__(71017);
|
|
125
127
|
;// CONCATENATED MODULE: ./dist/bin/shared/customHandler_delegate.js
|
|
126
128
|
|
|
127
129
|
|
|
@@ -129,6 +131,7 @@ var external_fs_ = __webpack_require__(57147);
|
|
|
129
131
|
|
|
130
132
|
|
|
131
133
|
|
|
134
|
+
|
|
132
135
|
(0,esm_assert/* assert */.h)();
|
|
133
136
|
async function maybeDelegateCommandToCustomHandler(params) {
|
|
134
137
|
const { commandName, buildContext } = params;
|
|
@@ -138,8 +141,13 @@ async function maybeDelegateCommandToCustomHandler(params) {
|
|
|
138
141
|
if (!external_fs_.readdirSync(nodeModulesBinDirPath).includes(BIN_NAME)) {
|
|
139
142
|
return { hasBeenHandled: false };
|
|
140
143
|
}
|
|
144
|
+
// NOTE: Run the binary we just checked rather than resolving it through npx,
|
|
145
|
+
// npx resolves from process.cwd() which, in a monorepo, can be a different
|
|
146
|
+
// directory (and pick up a global binary with the same name, or none at all).
|
|
147
|
+
const binFilePath = (0,external_path_.join)(nodeModulesBinDirPath, process.platform === "win32" ? `${BIN_NAME}.cmd` : BIN_NAME);
|
|
148
|
+
const command = external_fs_.existsSync(binFilePath) ? `"${binFilePath}"` : `npx ${BIN_NAME}`;
|
|
141
149
|
try {
|
|
142
|
-
external_child_process_.execSync(
|
|
150
|
+
external_child_process_.execSync(command, {
|
|
143
151
|
stdio: "inherit",
|
|
144
152
|
env: Object.assign(Object.assign({}, process.env), { [constants/* CUSTOM_HANDLER_ENV_NAMES.COMMAND_NAME */._S.COMMAND_NAME]: commandName, [constants/* CUSTOM_HANDLER_ENV_NAMES.BUILD_CONTEXT */._S.BUILD_CONTEXT]: JSON.stringify(buildContext) })
|
|
145
153
|
});
|
package/bin/762.index.js
CHANGED
|
@@ -527,6 +527,8 @@ var external_child_process_ = __webpack_require__(32081);
|
|
|
527
527
|
var tools_nodeModulesBinDirPath = __webpack_require__(73776);
|
|
528
528
|
// EXTERNAL MODULE: external "fs"
|
|
529
529
|
var external_fs_ = __webpack_require__(57147);
|
|
530
|
+
// EXTERNAL MODULE: external "path"
|
|
531
|
+
var external_path_ = __webpack_require__(71017);
|
|
530
532
|
;// CONCATENATED MODULE: ./dist/bin/shared/customHandler_delegate.js
|
|
531
533
|
|
|
532
534
|
|
|
@@ -534,6 +536,7 @@ var external_fs_ = __webpack_require__(57147);
|
|
|
534
536
|
|
|
535
537
|
|
|
536
538
|
|
|
539
|
+
|
|
537
540
|
(0,esm_assert/* assert */.h)();
|
|
538
541
|
async function maybeDelegateCommandToCustomHandler(params) {
|
|
539
542
|
const { commandName, buildContext } = params;
|
|
@@ -543,8 +546,13 @@ async function maybeDelegateCommandToCustomHandler(params) {
|
|
|
543
546
|
if (!external_fs_.readdirSync(nodeModulesBinDirPath).includes(BIN_NAME)) {
|
|
544
547
|
return { hasBeenHandled: false };
|
|
545
548
|
}
|
|
549
|
+
// NOTE: Run the binary we just checked rather than resolving it through npx,
|
|
550
|
+
// npx resolves from process.cwd() which, in a monorepo, can be a different
|
|
551
|
+
// directory (and pick up a global binary with the same name, or none at all).
|
|
552
|
+
const binFilePath = (0,external_path_.join)(nodeModulesBinDirPath, process.platform === "win32" ? `${BIN_NAME}.cmd` : BIN_NAME);
|
|
553
|
+
const command = external_fs_.existsSync(binFilePath) ? `"${binFilePath}"` : `npx ${BIN_NAME}`;
|
|
546
554
|
try {
|
|
547
|
-
external_child_process_.execSync(
|
|
555
|
+
external_child_process_.execSync(command, {
|
|
548
556
|
stdio: "inherit",
|
|
549
557
|
env: Object.assign(Object.assign({}, process.env), { [constants/* CUSTOM_HANDLER_ENV_NAMES.COMMAND_NAME */._S.COMMAND_NAME]: commandName, [constants/* CUSTOM_HANDLER_ENV_NAMES.BUILD_CONTEXT */._S.BUILD_CONTEXT]: JSON.stringify(buildContext) })
|
|
550
558
|
});
|
package/bin/780.index.js
CHANGED
|
@@ -193,6 +193,8 @@ var external_child_process_ = __webpack_require__(32081);
|
|
|
193
193
|
var tools_nodeModulesBinDirPath = __webpack_require__(73776);
|
|
194
194
|
// EXTERNAL MODULE: external "fs"
|
|
195
195
|
var external_fs_ = __webpack_require__(57147);
|
|
196
|
+
// EXTERNAL MODULE: external "path"
|
|
197
|
+
var external_path_ = __webpack_require__(71017);
|
|
196
198
|
;// CONCATENATED MODULE: ./dist/bin/shared/customHandler_delegate.js
|
|
197
199
|
|
|
198
200
|
|
|
@@ -200,6 +202,7 @@ var external_fs_ = __webpack_require__(57147);
|
|
|
200
202
|
|
|
201
203
|
|
|
202
204
|
|
|
205
|
+
|
|
203
206
|
(0,esm_assert/* assert */.h)();
|
|
204
207
|
async function maybeDelegateCommandToCustomHandler(params) {
|
|
205
208
|
const { commandName, buildContext } = params;
|
|
@@ -209,8 +212,13 @@ async function maybeDelegateCommandToCustomHandler(params) {
|
|
|
209
212
|
if (!external_fs_.readdirSync(nodeModulesBinDirPath).includes(BIN_NAME)) {
|
|
210
213
|
return { hasBeenHandled: false };
|
|
211
214
|
}
|
|
215
|
+
// NOTE: Run the binary we just checked rather than resolving it through npx,
|
|
216
|
+
// npx resolves from process.cwd() which, in a monorepo, can be a different
|
|
217
|
+
// directory (and pick up a global binary with the same name, or none at all).
|
|
218
|
+
const binFilePath = (0,external_path_.join)(nodeModulesBinDirPath, process.platform === "win32" ? `${BIN_NAME}.cmd` : BIN_NAME);
|
|
219
|
+
const command = external_fs_.existsSync(binFilePath) ? `"${binFilePath}"` : `npx ${BIN_NAME}`;
|
|
212
220
|
try {
|
|
213
|
-
external_child_process_.execSync(
|
|
221
|
+
external_child_process_.execSync(command, {
|
|
214
222
|
stdio: "inherit",
|
|
215
223
|
env: Object.assign(Object.assign({}, process.env), { [constants/* CUSTOM_HANDLER_ENV_NAMES.COMMAND_NAME */._S.COMMAND_NAME]: commandName, [constants/* CUSTOM_HANDLER_ENV_NAMES.BUILD_CONTEXT */._S.BUILD_CONTEXT]: JSON.stringify(buildContext) })
|
|
216
224
|
});
|
package/bin/786.index.js
CHANGED
|
@@ -43,6 +43,8 @@ var external_child_process_ = __webpack_require__(32081);
|
|
|
43
43
|
var tools_nodeModulesBinDirPath = __webpack_require__(73776);
|
|
44
44
|
// EXTERNAL MODULE: external "fs"
|
|
45
45
|
var external_fs_ = __webpack_require__(57147);
|
|
46
|
+
// EXTERNAL MODULE: external "path"
|
|
47
|
+
var external_path_ = __webpack_require__(71017);
|
|
46
48
|
;// CONCATENATED MODULE: ./dist/bin/shared/customHandler_delegate.js
|
|
47
49
|
|
|
48
50
|
|
|
@@ -50,6 +52,7 @@ var external_fs_ = __webpack_require__(57147);
|
|
|
50
52
|
|
|
51
53
|
|
|
52
54
|
|
|
55
|
+
|
|
53
56
|
(0,esm_assert/* assert */.h)();
|
|
54
57
|
async function maybeDelegateCommandToCustomHandler(params) {
|
|
55
58
|
const { commandName, buildContext } = params;
|
|
@@ -59,8 +62,13 @@ async function maybeDelegateCommandToCustomHandler(params) {
|
|
|
59
62
|
if (!external_fs_.readdirSync(nodeModulesBinDirPath).includes(BIN_NAME)) {
|
|
60
63
|
return { hasBeenHandled: false };
|
|
61
64
|
}
|
|
65
|
+
// NOTE: Run the binary we just checked rather than resolving it through npx,
|
|
66
|
+
// npx resolves from process.cwd() which, in a monorepo, can be a different
|
|
67
|
+
// directory (and pick up a global binary with the same name, or none at all).
|
|
68
|
+
const binFilePath = (0,external_path_.join)(nodeModulesBinDirPath, process.platform === "win32" ? `${BIN_NAME}.cmd` : BIN_NAME);
|
|
69
|
+
const command = external_fs_.existsSync(binFilePath) ? `"${binFilePath}"` : `npx ${BIN_NAME}`;
|
|
62
70
|
try {
|
|
63
|
-
external_child_process_.execSync(
|
|
71
|
+
external_child_process_.execSync(command, {
|
|
64
72
|
stdio: "inherit",
|
|
65
73
|
env: Object.assign(Object.assign({}, process.env), { [constants/* CUSTOM_HANDLER_ENV_NAMES.COMMAND_NAME */._S.COMMAND_NAME]: commandName, [constants/* CUSTOM_HANDLER_ENV_NAMES.BUILD_CONTEXT */._S.BUILD_CONTEXT]: JSON.stringify(buildContext) })
|
|
66
74
|
});
|
package/bin/932.index.js
CHANGED
|
@@ -172,6 +172,8 @@ var external_child_process_ = __webpack_require__(32081);
|
|
|
172
172
|
var tools_nodeModulesBinDirPath = __webpack_require__(73776);
|
|
173
173
|
// EXTERNAL MODULE: external "fs"
|
|
174
174
|
var external_fs_ = __webpack_require__(57147);
|
|
175
|
+
// EXTERNAL MODULE: external "path"
|
|
176
|
+
var external_path_ = __webpack_require__(71017);
|
|
175
177
|
;// CONCATENATED MODULE: ./dist/bin/shared/customHandler_delegate.js
|
|
176
178
|
|
|
177
179
|
|
|
@@ -179,6 +181,7 @@ var external_fs_ = __webpack_require__(57147);
|
|
|
179
181
|
|
|
180
182
|
|
|
181
183
|
|
|
184
|
+
|
|
182
185
|
(0,esm_assert/* assert */.h)();
|
|
183
186
|
async function maybeDelegateCommandToCustomHandler(params) {
|
|
184
187
|
const { commandName, buildContext } = params;
|
|
@@ -188,8 +191,13 @@ async function maybeDelegateCommandToCustomHandler(params) {
|
|
|
188
191
|
if (!external_fs_.readdirSync(nodeModulesBinDirPath).includes(BIN_NAME)) {
|
|
189
192
|
return { hasBeenHandled: false };
|
|
190
193
|
}
|
|
194
|
+
// NOTE: Run the binary we just checked rather than resolving it through npx,
|
|
195
|
+
// npx resolves from process.cwd() which, in a monorepo, can be a different
|
|
196
|
+
// directory (and pick up a global binary with the same name, or none at all).
|
|
197
|
+
const binFilePath = (0,external_path_.join)(nodeModulesBinDirPath, process.platform === "win32" ? `${BIN_NAME}.cmd` : BIN_NAME);
|
|
198
|
+
const command = external_fs_.existsSync(binFilePath) ? `"${binFilePath}"` : `npx ${BIN_NAME}`;
|
|
191
199
|
try {
|
|
192
|
-
external_child_process_.execSync(
|
|
200
|
+
external_child_process_.execSync(command, {
|
|
193
201
|
stdio: "inherit",
|
|
194
202
|
env: Object.assign(Object.assign({}, process.env), { [constants/* CUSTOM_HANDLER_ENV_NAMES.COMMAND_NAME */._S.COMMAND_NAME]: commandName, [constants/* CUSTOM_HANDLER_ENV_NAMES.BUILD_CONTEXT */._S.BUILD_CONTEXT]: JSON.stringify(buildContext) })
|
|
195
203
|
});
|
package/bin/949.index.js
CHANGED
|
@@ -43,6 +43,8 @@ var external_child_process_ = __webpack_require__(32081);
|
|
|
43
43
|
var tools_nodeModulesBinDirPath = __webpack_require__(73776);
|
|
44
44
|
// EXTERNAL MODULE: external "fs"
|
|
45
45
|
var external_fs_ = __webpack_require__(57147);
|
|
46
|
+
// EXTERNAL MODULE: external "path"
|
|
47
|
+
var external_path_ = __webpack_require__(71017);
|
|
46
48
|
;// CONCATENATED MODULE: ./dist/bin/shared/customHandler_delegate.js
|
|
47
49
|
|
|
48
50
|
|
|
@@ -50,6 +52,7 @@ var external_fs_ = __webpack_require__(57147);
|
|
|
50
52
|
|
|
51
53
|
|
|
52
54
|
|
|
55
|
+
|
|
53
56
|
(0,esm_assert/* assert */.h)();
|
|
54
57
|
async function maybeDelegateCommandToCustomHandler(params) {
|
|
55
58
|
const { commandName, buildContext } = params;
|
|
@@ -59,8 +62,13 @@ async function maybeDelegateCommandToCustomHandler(params) {
|
|
|
59
62
|
if (!external_fs_.readdirSync(nodeModulesBinDirPath).includes(BIN_NAME)) {
|
|
60
63
|
return { hasBeenHandled: false };
|
|
61
64
|
}
|
|
65
|
+
// NOTE: Run the binary we just checked rather than resolving it through npx,
|
|
66
|
+
// npx resolves from process.cwd() which, in a monorepo, can be a different
|
|
67
|
+
// directory (and pick up a global binary with the same name, or none at all).
|
|
68
|
+
const binFilePath = (0,external_path_.join)(nodeModulesBinDirPath, process.platform === "win32" ? `${BIN_NAME}.cmd` : BIN_NAME);
|
|
69
|
+
const command = external_fs_.existsSync(binFilePath) ? `"${binFilePath}"` : `npx ${BIN_NAME}`;
|
|
62
70
|
try {
|
|
63
|
-
external_child_process_.execSync(
|
|
71
|
+
external_child_process_.execSync(command, {
|
|
64
72
|
stdio: "inherit",
|
|
65
73
|
env: Object.assign(Object.assign({}, process.env), { [constants/* CUSTOM_HANDLER_ENV_NAMES.COMMAND_NAME */._S.COMMAND_NAME]: commandName, [constants/* CUSTOM_HANDLER_ENV_NAMES.BUILD_CONTEXT */._S.BUILD_CONTEXT]: JSON.stringify(buildContext) })
|
|
66
74
|
});
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
import * as child_process from "child_process";
|
|
11
11
|
import { getNodeModulesBinDirPath } from "../tools/nodeModulesBinDirPath";
|
|
12
12
|
import * as fs from "fs";
|
|
13
|
+
import { join as pathJoin } from "path";
|
|
13
14
|
|
|
14
15
|
assert<Equals<ApiVersion, "v1">>();
|
|
15
16
|
|
|
@@ -27,8 +28,18 @@ export async function maybeDelegateCommandToCustomHandler(params: {
|
|
|
27
28
|
return { hasBeenHandled: false };
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
// NOTE: Run the binary we just checked rather than resolving it through npx,
|
|
32
|
+
// npx resolves from process.cwd() which, in a monorepo, can be a different
|
|
33
|
+
// directory (and pick up a global binary with the same name, or none at all).
|
|
34
|
+
const binFilePath = pathJoin(
|
|
35
|
+
nodeModulesBinDirPath,
|
|
36
|
+
process.platform === "win32" ? `${BIN_NAME}.cmd` : BIN_NAME
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
const command = fs.existsSync(binFilePath) ? `"${binFilePath}"` : `npx ${BIN_NAME}`;
|
|
40
|
+
|
|
30
41
|
try {
|
|
31
|
-
child_process.execSync(
|
|
42
|
+
child_process.execSync(command, {
|
|
32
43
|
stdio: "inherit",
|
|
33
44
|
env: {
|
|
34
45
|
...process.env,
|
package/vite-plugin/index.js
CHANGED
|
@@ -1156,6 +1156,8 @@ var external_child_process_ = __nccwpck_require__(81);
|
|
|
1156
1156
|
var tools_nodeModulesBinDirPath = __nccwpck_require__(776);
|
|
1157
1157
|
// EXTERNAL MODULE: external "fs"
|
|
1158
1158
|
var external_fs_ = __nccwpck_require__(147);
|
|
1159
|
+
// EXTERNAL MODULE: external "path"
|
|
1160
|
+
var external_path_ = __nccwpck_require__(17);
|
|
1159
1161
|
;// CONCATENATED MODULE: ./dist/bin/shared/customHandler_delegate.js
|
|
1160
1162
|
|
|
1161
1163
|
|
|
@@ -1163,6 +1165,7 @@ var external_fs_ = __nccwpck_require__(147);
|
|
|
1163
1165
|
|
|
1164
1166
|
|
|
1165
1167
|
|
|
1168
|
+
|
|
1166
1169
|
(0,esm_assert/* assert */.h)();
|
|
1167
1170
|
async function maybeDelegateCommandToCustomHandler(params) {
|
|
1168
1171
|
const { commandName, buildContext } = params;
|
|
@@ -1172,8 +1175,13 @@ async function maybeDelegateCommandToCustomHandler(params) {
|
|
|
1172
1175
|
if (!external_fs_.readdirSync(nodeModulesBinDirPath).includes(BIN_NAME)) {
|
|
1173
1176
|
return { hasBeenHandled: false };
|
|
1174
1177
|
}
|
|
1178
|
+
// NOTE: Run the binary we just checked rather than resolving it through npx,
|
|
1179
|
+
// npx resolves from process.cwd() which, in a monorepo, can be a different
|
|
1180
|
+
// directory (and pick up a global binary with the same name, or none at all).
|
|
1181
|
+
const binFilePath = (0,external_path_.join)(nodeModulesBinDirPath, process.platform === "win32" ? `${BIN_NAME}.cmd` : BIN_NAME);
|
|
1182
|
+
const command = external_fs_.existsSync(binFilePath) ? `"${binFilePath}"` : `npx ${BIN_NAME}`;
|
|
1175
1183
|
try {
|
|
1176
|
-
external_child_process_.execSync(
|
|
1184
|
+
external_child_process_.execSync(command, {
|
|
1177
1185
|
stdio: "inherit",
|
|
1178
1186
|
env: Object.assign(Object.assign({}, process.env), { [constants.CUSTOM_HANDLER_ENV_NAMES.COMMAND_NAME]: commandName, [constants.CUSTOM_HANDLER_ENV_NAMES.BUILD_CONTEXT]: JSON.stringify(buildContext) })
|
|
1179
1187
|
});
|