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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.29.10";
4
+ const version = "0.29.11";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -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}(framework)`);
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}(framework)`);
373
+ before.push(item.params?.length ? ` await ${item.name}(option, ${item.params.join(",")})` : ` await ${item.name}(option)`);
374
374
  }
375
375
  }
376
376
  }
@@ -301,7 +301,11 @@ interface PrepareCore {
301
301
  name: string;
302
302
  params?: string[];
303
303
  where: 'before' | 'after';
304
- }[]) => void;
304
+ }[] | {
305
+ name: string;
306
+ params?: string[];
307
+ where: 'before' | 'after';
308
+ }) => void;
305
309
  }
306
310
 
307
311
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.29.10",
4
+ "version": "0.29.11",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {