silgi 0.29.10 → 0.29.11
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/cli/index.mjs +1 -1
- package/dist/cli/silgi.mjs +3 -3
- package/dist/types/index.d.mts +5 -1
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/cli/silgi.mjs
CHANGED
|
@@ -365,12 +365,12 @@ async function prepareCoreFile(silgi) {
|
|
|
365
365
|
addImportItem,
|
|
366
366
|
addImportItemType,
|
|
367
367
|
addFunction: (data) => {
|
|
368
|
-
for (const item of data) {
|
|
368
|
+
for (const item of toArray(data)) {
|
|
369
369
|
if (item.where === "after") {
|
|
370
|
-
after.push(item.params?.length ? ` await ${item.name}(option, ${item.params.join(",")})` : ` await ${item.name}(
|
|
370
|
+
after.push(item.params?.length ? ` await ${item.name}(option, ${item.params.join(",")})` : ` await ${item.name}(option)`);
|
|
371
371
|
}
|
|
372
372
|
if (item.where === "before") {
|
|
373
|
-
before.push(item.params?.length ? ` await ${item.name}(option, ${item.params.join(",")})` : ` await ${item.name}(
|
|
373
|
+
before.push(item.params?.length ? ` await ${item.name}(option, ${item.params.join(",")})` : ` await ${item.name}(option)`);
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
}
|
package/dist/types/index.d.mts
CHANGED