create-mercato-app 0.6.6-develop.6339.1.193c6c7c71 → 0.6.6-develop.6344.1.c4b17c07c4
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/dist/index.js
CHANGED
|
@@ -269,7 +269,7 @@ function findTemplateFiles(dir, rootDir = dir) {
|
|
|
269
269
|
return [];
|
|
270
270
|
}
|
|
271
271
|
const findings = [];
|
|
272
|
-
const entries = readdirSync(dir).sort();
|
|
272
|
+
const entries = readdirSync(dir).sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
273
273
|
for (const entry of entries) {
|
|
274
274
|
const entryPath = join(dir, entry);
|
|
275
275
|
const entryStat = statSync(entryPath);
|
package/package.json
CHANGED
|
@@ -695,14 +695,14 @@ async function resolveWarmupTenantIdFromDatabase(email) {
|
|
|
695
695
|
|
|
696
696
|
async function fetchWithTimeout(url, init = {}, timeoutMs = 45000, externalSignal = null) {
|
|
697
697
|
if (externalSignal?.aborted) {
|
|
698
|
-
throw externalSignal
|
|
698
|
+
throw externalSignal?.reason ?? new Error('warmup request aborted')
|
|
699
699
|
}
|
|
700
700
|
|
|
701
701
|
const controller = new AbortController()
|
|
702
702
|
const timer = setTimeout(() => controller.abort(), timeoutMs)
|
|
703
703
|
timer.unref?.()
|
|
704
704
|
const abortFromExternalSignal = () => {
|
|
705
|
-
controller.abort(externalSignal
|
|
705
|
+
controller.abort(externalSignal?.reason ?? new Error('warmup request aborted'))
|
|
706
706
|
}
|
|
707
707
|
externalSignal?.addEventListener?.('abort', abortFromExternalSignal, { once: true })
|
|
708
708
|
|