corebasic 1.0.240 → 1.0.241
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/libs/features.js +2 -2
- package/libs/features.ts +2 -2
- package/package.json +1 -1
package/dist/libs/features.js
CHANGED
|
@@ -243,9 +243,9 @@ async function registerHandler(features) {
|
|
|
243
243
|
if (featurePath === 'src/transactions/query')
|
|
244
244
|
continue;
|
|
245
245
|
if (featureName.startsWith("flows.") && !featureName.startsWith("flows.query.") && !featureName.startsWith("flows.command.") && !featureName.startsWith("flows.designs."))
|
|
246
|
-
feature.handler = (await import(__rewriteRelativeImportExtension(`${new URL(`src/flows/query.
|
|
246
|
+
feature.handler = (await import(__rewriteRelativeImportExtension(`${new URL(`src/flows/query.ts`, PROJECT_ROOT_URL).toString().replace('file://', '')}`))).FEATURE_HANDLERS[handler];
|
|
247
247
|
else
|
|
248
|
-
feature.handler = (await import(__rewriteRelativeImportExtension(`${new URL(`${featurePath}.
|
|
248
|
+
feature.handler = (await import(__rewriteRelativeImportExtension(`${new URL(`${featurePath}.ts`, PROJECT_ROOT_URL).toString().replace('file://', '')}`)))[handler];
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
function registerApi() {
|
package/libs/features.ts
CHANGED
|
@@ -365,9 +365,9 @@ async function registerHandler(features: Record<string, FeatureEntry>) {
|
|
|
365
365
|
continue
|
|
366
366
|
|
|
367
367
|
if (featureName.startsWith("flows.") && !featureName.startsWith("flows.query.") && !featureName.startsWith("flows.command.") && !featureName.startsWith("flows.designs."))
|
|
368
|
-
feature.handler = (await import(`${new URL(`src/flows/query.
|
|
368
|
+
feature.handler = (await import(`${new URL(`src/flows/query.ts`, PROJECT_ROOT_URL).toString().replace('file://', '')}`)).FEATURE_HANDLERS[handler]
|
|
369
369
|
else
|
|
370
|
-
feature.handler = (await import(`${new URL(`${featurePath}.
|
|
370
|
+
feature.handler = (await import(`${new URL(`${featurePath}.ts`, PROJECT_ROOT_URL).toString().replace('file://', '')}`))[handler]
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
function registerApi() {
|