@kithinji/pod 1.0.34 → 1.0.35

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.
@@ -835,7 +835,7 @@ async function expandMacros(source, filePath, projectRoot = process.cwd()) {
835
835
  resolveIdentifier: resolver.resolveIdentifierToNode
836
836
  };
837
837
  try {
838
- const result2 = macro.call(macroContext, ...node.arguments);
838
+ const result2 = macro(...node.arguments, macroContext);
839
839
  if (!result2 || typeof result2 !== "object" || !("kind" in result2)) {
840
840
  throw new Error(`Macro '${name}' must return a TypeScript AST node`);
841
841
  }
@@ -901,7 +901,7 @@ async function expandMacros(source, filePath, projectRoot = process.cwd()) {
901
901
  resolveIdentifier: resolver.resolveIdentifierToNode
902
902
  };
903
903
  try {
904
- const result2 = macro.call(macroContext, ...node.arguments);
904
+ const result2 = macro(...node.arguments, macroContext);
905
905
  if (!result2 || typeof result2 !== "object" || !("kind" in result2)) {
906
906
  throw new Error(
907
907
  `Macro '${name}' must return a TypeScript AST node`
@@ -6545,7 +6545,7 @@ async function compileFiles(entryPoints) {
6545
6545
 
6546
6546
  // src/index.ts
6547
6547
  var program = new Command();
6548
- program.name("pod").description("Pod cli tool").version("1.0.34");
6548
+ program.name("pod").description("Pod cli tool").version("1.0.35");
6549
6549
  program.command("new <name> [type]").description("Start a new Orca Project").action(async (name, type) => {
6550
6550
  const orca = async () => {
6551
6551
  await addNew(name);