@1auth/store-sql 0.0.0-alpha.45 → 0.0.0-alpha.46

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/index.js +2 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -66,6 +66,7 @@ export const insert = async (table, values = {}) => {
66
66
  if (options.log) {
67
67
  options.log('@1auth/store-sql insert(', table, values, ')')
68
68
  }
69
+ values = structuredClone(values)
69
70
  normalizeValues(values)
70
71
  const { insert, parameters } = makeSqlParts({}, values)
71
72
  const sql = `INSERT INTO ${table} ${insert} RETURNING id`
@@ -100,6 +101,7 @@ export const update = async (table, filters = {}, values = {}) => {
100
101
  if (options.log) {
101
102
  options.log('@1auth/store-sql update(', table, filters, values, ')')
102
103
  }
104
+ values = structuredClone(values)
103
105
  normalizeValues(values)
104
106
  const { update, where, parameters } = makeSqlParts(filters, values)
105
107
  const sql = `UPDATE ${table} SET ${update} ${where}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1auth/store-sql",
3
- "version": "0.0.0-alpha.45",
3
+ "version": "0.0.0-alpha.46",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "engines": {
@@ -55,6 +55,6 @@
55
55
  "uuid": "^11.0.0"
56
56
  },
57
57
  "devDependencies": {
58
- "better-sqlite3": "11.5.0"
58
+ "better-sqlite3": "^11.0.0"
59
59
  }
60
60
  }