baja-lite 1.5.2 → 1.5.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sql.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baja-lite",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "some util for self",
5
5
  "homepage": "https://github.com/void-soul/baja-lite",
6
6
  "repository": {
package/sql.js CHANGED
@@ -2907,12 +2907,12 @@ export class SqlService {
2907
2907
  }
2908
2908
  transaction(option) {
2909
2909
  if (option.sync === SyncMode.Sync) {
2910
- return option.dao.transaction(SyncMode.Sync, option.fn);
2910
+ return option.dao.transaction(SyncMode.Sync, option.fn, option.conn);
2911
2911
  }
2912
2912
  else {
2913
2913
  return new Promise(async (resolve, reject) => {
2914
2914
  try {
2915
- const rt = await option.dao.transaction(SyncMode.Async, option.fn);
2915
+ const rt = await option.dao.transaction(SyncMode.Async, option.fn, option.conn);
2916
2916
  resolve(rt);
2917
2917
  }
2918
2918
  catch (error) {