@webiny/api-prerendering-service-so-ddb 5.23.1 → 5.24.0-beta.0

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 +4 -4
  2. package/package.json +9 -9
package/index.js CHANGED
@@ -43,7 +43,7 @@ const isReserved = name => {
43
43
 
44
44
  const createPrerenderingServiceStorageOperations = params => {
45
45
  const {
46
- attributes = {},
46
+ attributes,
47
47
  table,
48
48
  documentClient
49
49
  } = params;
@@ -62,17 +62,17 @@ const createPrerenderingServiceStorageOperations = params => {
62
62
  render: (0, _render.createRenderEntity)({
63
63
  entityName: _types.ENTITIES.RENDER,
64
64
  table: tableInstance,
65
- attributes: attributes[_types.ENTITIES.RENDER]
65
+ attributes: attributes ? attributes[_types.ENTITIES.RENDER] : {}
66
66
  }),
67
67
  queueJob: (0, _queueJob.createQueueJobEntity)({
68
68
  entityName: _types.ENTITIES.QUEUE_JOB,
69
69
  table: tableInstance,
70
- attributes: attributes[_types.ENTITIES.QUEUE_JOB]
70
+ attributes: attributes ? attributes[_types.ENTITIES.QUEUE_JOB] : {}
71
71
  }),
72
72
  tagUrlLink: (0, _tagUrlLink.createTagUrlLinkEntity)({
73
73
  entityName: _types.ENTITIES.TAG_URL_LINK,
74
74
  table: tableInstance,
75
- attributes: attributes[_types.ENTITIES.TAG_URL_LINK]
75
+ attributes: attributes ? attributes[_types.ENTITIES.TAG_URL_LINK] : {}
76
76
  })
77
77
  };
78
78
  return _objectSpread(_objectSpread({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-prerendering-service-so-ddb",
3
- "version": "5.23.1",
3
+ "version": "5.24.0-beta.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,8 +18,8 @@
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
20
  "@babel/runtime": "7.16.7",
21
- "@webiny/api-prerendering-service": "5.23.1",
22
- "@webiny/error": "5.23.1",
21
+ "@webiny/api-prerendering-service": "5.24.0-beta.0",
22
+ "@webiny/error": "5.24.0-beta.0",
23
23
  "dynamodb-toolbox": "0.3.5"
24
24
  },
25
25
  "devDependencies": {
@@ -28,11 +28,11 @@
28
28
  "@babel/plugin-proposal-export-default-from": "^7.16.0",
29
29
  "@babel/preset-env": "^7.16.4",
30
30
  "@babel/preset-typescript": "^7.16.0",
31
- "@webiny/cli": "^5.23.1",
32
- "@webiny/db": "^5.23.1",
33
- "@webiny/db-dynamodb": "^5.23.1",
34
- "@webiny/handler-aws": "^5.23.1",
35
- "@webiny/project-utils": "^5.23.1",
31
+ "@webiny/cli": "^5.24.0-beta.0",
32
+ "@webiny/db": "^5.24.0-beta.0",
33
+ "@webiny/db-dynamodb": "^5.24.0-beta.0",
34
+ "@webiny/handler-aws": "^5.24.0-beta.0",
35
+ "@webiny/project-utils": "^5.24.0-beta.0",
36
36
  "jest-dynalite": "^3.3.1",
37
37
  "jest-environment-node": "^27.3.0",
38
38
  "prettier": "^2.3.2",
@@ -55,5 +55,5 @@
55
55
  ]
56
56
  }
57
57
  },
58
- "gitHead": "a726d09d2647d13e5a4f376cef23463564ef7ca0"
58
+ "gitHead": "05b90b92bbaf2ef3adf275d008c4641580cf5f42"
59
59
  }