@webiny/api-dynamodb-to-elasticsearch 5.22.0 → 5.23.0-beta.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.
Files changed (2) hide show
  1. package/handler/index.js +4 -2
  2. package/package.json +8 -8
package/handler/index.js CHANGED
@@ -37,7 +37,7 @@ const getError = item => {
37
37
 
38
38
  const checkErrors = result => {
39
39
  if (!result || !result.body || !result.body.items) {
40
- return;
40
+ return null;
41
41
  }
42
42
 
43
43
  for (const item of result.body.items) {
@@ -56,6 +56,8 @@ const checkErrors = result => {
56
56
  console.log(item.error);
57
57
  throw new _error.default(err, "DYNAMODB_TO_ELASTICSEARCH_ERROR", item);
58
58
  }
59
+
60
+ return null;
59
61
  };
60
62
 
61
63
  var _default = () => ({
@@ -130,7 +132,7 @@ var _default = () => ({
130
132
  }
131
133
 
132
134
  if (!operations.length) {
133
- return;
135
+ return false;
134
136
  }
135
137
 
136
138
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-dynamodb-to-elasticsearch",
3
- "version": "5.22.0",
3
+ "version": "5.23.0-beta.1",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,10 +12,10 @@
12
12
  "author": "Webiny Ltd.",
13
13
  "dependencies": {
14
14
  "@babel/runtime": "7.16.7",
15
- "@webiny/api-elasticsearch": "5.22.0",
16
- "@webiny/error": "5.22.0",
17
- "@webiny/handler": "5.22.0",
18
- "aws-sdk": "2.1061.0"
15
+ "@webiny/api-elasticsearch": "5.23.0-beta.1",
16
+ "@webiny/error": "5.23.0-beta.1",
17
+ "@webiny/handler": "5.23.0-beta.1",
18
+ "aws-sdk": "2.1066.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@babel/cli": "^7.16.0",
@@ -24,8 +24,8 @@
24
24
  "@babel/plugin-transform-runtime": "^7.16.4",
25
25
  "@babel/preset-env": "^7.16.4",
26
26
  "@babel/preset-typescript": "^7.16.0",
27
- "@webiny/cli": "^5.22.0",
28
- "@webiny/project-utils": "^5.22.0",
27
+ "@webiny/cli": "^5.23.0-beta.1",
28
+ "@webiny/project-utils": "^5.23.0-beta.1",
29
29
  "typescript": "^4.1.3"
30
30
  },
31
31
  "publishConfig": {
@@ -46,5 +46,5 @@
46
46
  ]
47
47
  }
48
48
  },
49
- "gitHead": "ab2ca1af058fdec3aa1bed3f30afd51f4592dbb6"
49
+ "gitHead": "04f2d5e43684b9086251e2a6370b3c085e6d51cb"
50
50
  }