@1auth/store-sql 0.0.0-alpha.50 → 0.0.0-alpha.52

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 +5 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const options = {
2
- log: undefined,
2
+ log: false,
3
3
  query: undefined, // async (sql, parameters) => {}
4
4
  // number of seconds after expire before removal
5
5
  // 10d chosen based on EFF DNT Policy
@@ -82,14 +82,14 @@ export const insert = async (table, values = {}) => {
82
82
  return res.id
83
83
  }
84
84
 
85
- export const insertList = async (table, list = []) => {
85
+ export const insertList = async (table, rows = []) => {
86
86
  if (options.log) {
87
- options.log('@1auth/store-sql insertList(', table, list, ')')
87
+ options.log('@1auth/store-sql insertList(', table, rows, ')')
88
88
  }
89
89
  const insertValues = []
90
90
  let insertParameters = []
91
- for (let i = 0, l = list.length; i < l; i++) {
92
- const values = list[i]
91
+ for (let i = 0, l = rows.length; i < l; i++) {
92
+ const values = rows[i]
93
93
  const { insert, parameters } = makeSqlParts({}, values)
94
94
  if (i) {
95
95
  insertValues.push(insert.split('VALUES')[1]) // (?)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1auth/store-sql",
3
- "version": "0.0.0-alpha.50",
3
+ "version": "0.0.0-alpha.52",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "engines": {