data-api-client 1.2.0 → 1.2.1
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/README.md +1 -1
- package/index.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -383,7 +383,7 @@ No worries! The Data API Client gives you the ability to parameterize identifier
|
|
|
383
383
|
This one is a bit frustrating. If you execute a standard `executeStatement`, then it will return a `numberOfRecordsUpdated` field for `UPDATE` and `DELETE` queries. This is handy for knowing if your query succeeded. Unfortunately, a `batchExecuteStatement` does not return this field for you.
|
|
384
384
|
|
|
385
385
|
## Enabling Data API
|
|
386
|
-
In order to use the Data API, you must enable it on your Aurora Serverless Cluster and create a Secret. You also
|
|
386
|
+
In order to use the Data API, you must enable it on your Aurora Serverless Cluster and create a Secret. You also must grant your execution environment a number of permission as outlined in the following sections.
|
|
387
387
|
|
|
388
388
|
### Enable Data API on your Aurora Serverless Cluster
|
|
389
389
|
|
package/index.js
CHANGED
|
@@ -107,8 +107,8 @@ const flatten = arr => arr.reduce((acc,x) => acc.concat(x),[])
|
|
|
107
107
|
const normalizeParams = params => params.reduce((acc, p) =>
|
|
108
108
|
Array.isArray(p) ? acc.concat([normalizeParams(p)])
|
|
109
109
|
: (
|
|
110
|
-
(Object.keys(p).length === 2 && p.name && p.value !== 'undefined') ||
|
|
111
|
-
(Object.keys(p).length === 3 && p.name && p.value !== 'undefined' && p.cast)
|
|
110
|
+
(Object.keys(p).length === 2 && p.name && typeof p.value !== 'undefined') ||
|
|
111
|
+
(Object.keys(p).length === 3 && p.name && typeof p.value !== 'undefined' && p.cast)
|
|
112
112
|
) ? acc.concat(p)
|
|
113
113
|
: acc.concat(splitParams(p))
|
|
114
114
|
, []) // end reduce
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "data-api-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "A lightweight wrapper that simplifies working with the Amazon Aurora Serverless Data API",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"aws-sdk": "^2.811.0",
|
|
29
29
|
"eslint": "^6.8.0",
|
|
30
|
-
"jest": "^
|
|
31
|
-
"rewire": "^
|
|
30
|
+
"jest": "^27.5.1",
|
|
31
|
+
"rewire": "^6.0.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"sqlstring": "^2.3.2"
|