@flink-app/flink 0.13.2 → 0.13.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @flink-app/flink
2
2
 
3
+ ## 0.13.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Use projects tsconfig.json for schema generation
8
+
3
9
  ## 0.13.2
4
10
 
5
11
  ### Patch Changes
@@ -550,15 +550,14 @@ var TypeScriptCompiler = /** @class */ (function () {
550
550
  var isOptional = false;
551
551
  if (valueDeclaration) {
552
552
  // Property has a source declaration (normal case)
553
- isOptional = valueDeclaration.getType().isNullable() ||
554
- valueDeclaration.compilerNode.questionToken !== undefined;
553
+ isOptional = valueDeclaration.getType().isNullable() || valueDeclaration.compilerNode.questionToken !== undefined;
555
554
  }
556
555
  else {
557
556
  // Property is synthetic (from utility types like Omit, Pick, etc.)
558
557
  // Check if the property itself is optional by examining the symbol flags
559
558
  isOptional = !!(prop.getFlags() & ts_morph_1.ts.SymbolFlags.Optional);
560
559
  }
561
- return "".concat(propName).concat(isOptional ? '?' : '', ": ").concat(propTypeText);
560
+ return "".concat(propName).concat(isOptional ? "?" : "", ": ").concat(propTypeText);
562
561
  });
563
562
  // Extract type references for imports from resolved types
564
563
  for (_d = 0, _e = schema.getProperties(); _d < _e.length; _d++) {
@@ -613,7 +612,7 @@ var TypeScriptCompiler = /** @class */ (function () {
613
612
  extraTags: [],
614
613
  functions: "fail",
615
614
  discriminatorType: "json-schema",
616
- // tsconfig: tsconfigPath,
615
+ tsconfig: tsconfigPath,
617
616
  };
618
617
  console.log("Creating TypeScript program for schema generation:");
619
618
  console.log(" Schema file:", schemaFilePath);
@@ -634,9 +633,7 @@ var TypeScriptCompiler = /** @class */ (function () {
634
633
  if (info.file) {
635
634
  var _b = info.file.getLineAndCharacterOfPosition(info.start), line = _b.line, character = _b.character;
636
635
  var fileName = info.file.fileName.replace(this.cwd, ".");
637
- var message = typeof info.messageText === "string"
638
- ? info.messageText
639
- : info.messageText.messageText;
636
+ var message = typeof info.messageText === "string" ? info.messageText : info.messageText.messageText;
640
637
  console.error(" ".concat(fileName, ":").concat(line + 1, ":").concat(character + 1));
641
638
  console.error(" ".concat(message, "\n"));
642
639
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/flink",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "Typescript only framework for creating REST-like APIs on top of Express and mongodb",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "main": "dist/src/index.js",
@@ -494,15 +494,14 @@ export default {}; // Export an empty object to make it a module
494
494
 
495
495
  if (valueDeclaration) {
496
496
  // Property has a source declaration (normal case)
497
- isOptional = valueDeclaration.getType().isNullable() ||
498
- (valueDeclaration.compilerNode as any).questionToken !== undefined;
497
+ isOptional = valueDeclaration.getType().isNullable() || (valueDeclaration.compilerNode as any).questionToken !== undefined;
499
498
  } else {
500
499
  // Property is synthetic (from utility types like Omit, Pick, etc.)
501
500
  // Check if the property itself is optional by examining the symbol flags
502
501
  isOptional = !!(prop.getFlags() & ts.SymbolFlags.Optional);
503
502
  }
504
503
 
505
- return `${propName}${isOptional ? '?' : ''}: ${propTypeText}`;
504
+ return `${propName}${isOptional ? "?" : ""}: ${propTypeText}`;
506
505
  });
507
506
 
508
507
  // Extract type references for imports from resolved types
@@ -561,7 +560,7 @@ export default {}; // Export an empty object to make it a module
561
560
  extraTags: [],
562
561
  functions: "fail",
563
562
  discriminatorType: "json-schema",
564
- // tsconfig: tsconfigPath,
563
+ tsconfig: tsconfigPath,
565
564
  };
566
565
 
567
566
  console.log("Creating TypeScript program for schema generation:");
@@ -583,9 +582,7 @@ export default {}; // Export an empty object to make it a module
583
582
  if (info.file) {
584
583
  const { line, character } = info.file.getLineAndCharacterOfPosition(info.start);
585
584
  const fileName = info.file.fileName.replace(this.cwd, ".");
586
- const message = typeof info.messageText === "string"
587
- ? info.messageText
588
- : info.messageText.messageText;
585
+ const message = typeof info.messageText === "string" ? info.messageText : info.messageText.messageText;
589
586
 
590
587
  console.error(` ${fileName}:${line + 1}:${character + 1}`);
591
588
  console.error(` ${message}\n`);