datagrok-tools 4.14.26 → 4.14.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.14.26",
3
+ "version": "4.14.28",
4
4
  "description": "Utility to upload and publish packages to Datagrok",
5
5
  "homepage": "https://github.com/datagrok-ai/public/tree/master/tools#readme",
6
6
  "dependencies": {
@@ -253,7 +253,7 @@ class FuncGeneratorPlugin {
253
253
  let params =
254
254
  baseParam.typeAnnotation.typeAnnotation.typeArguments?.params;
255
255
  if (type !== "any" && params && params.length > 0)
256
- type += `<${params.map((e) => e.typeName.name).join(",")}>`;
256
+ type += `<${params.map((e) => e.typeName?.name ?? 'any').join(",")}>`;
257
257
 
258
258
  return { name: name, type: type, options: options };
259
259
  }
@@ -460,7 +460,7 @@ class FuncGeneratorPlugin {
460
460
  } else
461
461
  fs.writeFileSync(
462
462
  this.options.outputPath,
463
- `${baseImport}\n${importArray.join("")}`,
463
+ `${annotationForGeneratedFile}${baseImport}\n${importArray.join("")}`,
464
464
  "utf-8"
465
465
  );
466
466
  }