session-sync-auth-site 3.0.2 → 3.0.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "session-sync-auth-site",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "main": "src/index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -81,10 +81,8 @@ const authenticate = ({
81
81
 
82
82
  `,
83
83
  {
84
- replacements: {
85
- ...extraUserTableSelectValues,
86
- accessToken,
87
- },
84
+ ...extraUserTableSelectValues,
85
+ accessToken,
88
86
  },
89
87
  ))[0]
90
88
 
@@ -18,6 +18,7 @@ const setUpConnection = async ({
18
18
  password: connectionObj.password,
19
19
  database: connectionObj.database || connectionObj.path[0],
20
20
  port: connectionObj.port,
21
+ namedPlaceholders: true,
21
22
  })
22
23
 
23
24
  }
@@ -231,9 +231,7 @@ const setUpSessionSyncAuthRoutes = ({
231
231
 
232
232
  await global.sessionSyncAuthSiteConnection.query(
233
233
  queries.join(';'),
234
- {
235
- replacements: variables,
236
- },
234
+ variables,
237
235
  )
238
236
 
239
237
  }
@@ -253,9 +251,7 @@ const setUpSessionSyncAuthRoutes = ({
253
251
  WHERE \`${(userTableColNameMap.id || `id`).replace(/`/g, '')}\` = :userId
254
252
  `,
255
253
  {
256
- replacements: {
257
- userId: id,
258
- },
254
+ userId: id,
259
255
  },
260
256
  )
261
257
 
@@ -283,9 +279,7 @@ const setUpSessionSyncAuthRoutes = ({
283
279
  WHERE \`${(userTableColNameMap.id || `id`).replace(/`/g, '')}\` = :userId
284
280
  `,
285
281
  {
286
- replacements: {
287
- userId: id,
288
- },
282
+ userId: id,
289
283
  },
290
284
  )
291
285
  }