@technicity/data-service-generator 0.23.0-next.1 → 0.23.0-next.2

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.
@@ -199,7 +199,9 @@ async function generate(input) {
199
199
  const tmpMySqlSchemaPath = path.join(tmpDirPath, tmpMySqlSchemaFilename);
200
200
  fs.writeFileSync(tmpMySqlSchemaPath, schemaMySql);
201
201
  let schemaSqlite = child_process
202
- .execFileSync(mysql2SqlitePath, [tmpMySqlSchemaFilename], { cwd: tmpDirPath })
202
+ .execFileSync(mysql2SqlitePath, [tmpMySqlSchemaFilename], {
203
+ cwd: tmpDirPath
204
+ })
203
205
  .toString();
204
206
  schemaSqlite = schemaSqlite.replace(new RegExp(enumMarker, "g"), "`enum`");
205
207
  const src = prettier.format(`module.exports = { schema: \`${schemaSqlite.replace(/`/g, "\\`")}\` }`, { parser: "babel" });
@@ -278,7 +280,7 @@ async function getSDKSource(input, specialCaseUuidColumn, supplementClientOpts,
278
280
  runtime: any;
279
281
  clientOpts: { [k: string]: any; },
280
282
  otherOpts?: { [k: string]: any; },
281
- passBeforeValueToAfterCallback: boolean,
283
+ passBeforeValueToAfterCallback?: boolean,
282
284
  }) {
283
285
  let otherOpts = opts.otherOpts ?? {};
284
286
  if (opts.clientOpts.filename === ":memory:") {
@@ -291,7 +293,7 @@ async function getSDKSource(input, specialCaseUuidColumn, supplementClientOpts,
291
293
  : "otherOpts"}, artifacts);
292
294
  this.onHandlerMap = new Map();
293
295
  this.eventTarget = new EventTarget();
294
- this.passBeforeValueToAfterCallback = opts.passBeforeValueToAfterCallback;
296
+ this.passBeforeValueToAfterCallback = opts.passBeforeValueToAfterCallback ?? false;
295
297
  }
296
298
 
297
299
  $use(middleware: TMiddleware) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@technicity/data-service-generator",
3
- "version": "0.23.0-next.1",
3
+ "version": "0.23.0-next.2",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist"