@flink-app/flink 2.0.0-alpha.67 → 2.0.0-alpha.68

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,7 @@
1
1
  # @flink-app/flink
2
2
 
3
+ ## 2.0.0-alpha.68
4
+
3
5
  ## 2.0.0-alpha.67
4
6
 
5
7
  ### Patch Changes
@@ -205,6 +205,11 @@ var TypeScriptSourceParser = /** @class */ (function () {
205
205
  if (primitives.includes(typeName.toLowerCase())) {
206
206
  return false;
207
207
  }
208
+ // Skip binary/non-serializable built-in types that can never have JSON schemas
209
+ var nonSerializableTypes = ['Buffer', 'ArrayBuffer', 'SharedArrayBuffer', 'Blob', 'ReadableStream', 'WritableStream', 'DataView', 'Uint8Array'];
210
+ if (nonSerializableTypes.includes(typeName)) {
211
+ return false;
212
+ }
208
213
  // Must be a named type (starts with uppercase letter)
209
214
  return /^[A-Z]/.test(typeName);
210
215
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/flink",
3
- "version": "2.0.0-alpha.67",
3
+ "version": "2.0.0-alpha.68",
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",
@@ -221,6 +221,12 @@ export class TypeScriptSourceParser {
221
221
  return false;
222
222
  }
223
223
 
224
+ // Skip binary/non-serializable built-in types that can never have JSON schemas
225
+ const nonSerializableTypes = ['Buffer', 'ArrayBuffer', 'SharedArrayBuffer', 'Blob', 'ReadableStream', 'WritableStream', 'DataView', 'Uint8Array'];
226
+ if (nonSerializableTypes.includes(typeName)) {
227
+ return false;
228
+ }
229
+
224
230
  // Must be a named type (starts with uppercase letter)
225
231
  return /^[A-Z]/.test(typeName);
226
232
  }