@dnax/core 0.74.8 → 0.74.9

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.
@@ -340,10 +340,14 @@ async function randomCode(
340
340
  excludeSymbols: f?.random?.excludeSymbols || [],
341
341
  });
342
342
 
343
- if (f?.random?.startWith) {
343
+ if (f?.random?.startWith && typeof f?.random?.startWith == "string") {
344
344
  code = f?.random?.startWith + code;
345
345
  }
346
346
 
347
+ if (f?.random?.startWith && typeof f?.random?.startWith == "function") {
348
+ code = f?.random?.startWith(code);
349
+ }
350
+
347
351
  if (f?.random?.endWith) {
348
352
  code = code + f?.random?.endWith;
349
353
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.74.8",
3
+ "version": "0.74.9",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},