@1auth/store-sql 0.0.0-alpha.25 → 0.0.0-alpha.26

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 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -67,14 +67,14 @@ export const makeSqlParts = (filters = {}, values = {}, fields = []) => {
67
67
  const updateParts = []
68
68
  for (const key of keys) {
69
69
  insertParts.push('$' + idx)
70
- updateParts.push(key + ' = $' + idx)
70
+ updateParts.push('"' + key + '" = $' + idx)
71
71
  idx++
72
72
  }
73
73
 
74
74
  const insert =
75
75
  '("' + keys.join('", "') + '") VALUES (' + insertParts.join(', ') + ')'
76
76
 
77
- const update = '"' + updateParts.join('", "') + '"'
77
+ const update = updateParts.join(', ')
78
78
 
79
79
  parameters = parameters.concat(Object.values(values))
80
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1auth/store-sql",
3
- "version": "0.0.0-alpha.25",
3
+ "version": "0.0.0-alpha.26",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "engines": {
@@ -48,7 +48,7 @@
48
48
  "url": "https://github.com/willfarrell/1auth/issues"
49
49
  },
50
50
  "homepage": "https://github.com/willfarrell/1auth",
51
- "gitHead": "c41c3d7565270a42f4919a759400bafc8ed77aca",
51
+ "gitHead": "9501bd2647d9dfdbe831068ccfcd7fa3ccc20700",
52
52
  "peerDependencies": {
53
53
  "@aws-sdk/client-dynamodb": "^3.0.0",
54
54
  "@aws-sdk/util-dynamodb": "^3.0.0",