dn-react-router-toolkit 0.9.2 → 0.9.3

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/dist/api/index.js CHANGED
@@ -376,7 +376,7 @@ function putResourceHandler({
376
376
  }) {
377
377
  return async (auth, request) => {
378
378
  const serilaizedParams = await request.json();
379
- const params = deserialize(serilaizedParams);
379
+ const params = deserialize(serilaizedParams) || {};
380
380
  const itemId = params.id || (0, import_uuid.v4)();
381
381
  if (params.id) {
382
382
  const existing = await repository.find(itemId);
@@ -372,7 +372,7 @@ function putResourceHandler({
372
372
  }) {
373
373
  return async (auth, request) => {
374
374
  const serilaizedParams = await request.json();
375
- const params = deserialize(serilaizedParams);
375
+ const params = deserialize(serilaizedParams) || {};
376
376
  const itemId = params.id || v4();
377
377
  if (params.id) {
378
378
  const existing = await repository.find(itemId);
@@ -150,7 +150,7 @@ function putResourceHandler({
150
150
  }) {
151
151
  return async (auth, request) => {
152
152
  const serilaizedParams = await request.json();
153
- const params = deserialize(serilaizedParams);
153
+ const params = deserialize(serilaizedParams) || {};
154
154
  const itemId = params.id || (0, import_uuid.v4)();
155
155
  if (params.id) {
156
156
  const existing = await repository.find(itemId);
@@ -131,7 +131,7 @@ function putResourceHandler({
131
131
  }) {
132
132
  return async (auth, request) => {
133
133
  const serilaizedParams = await request.json();
134
- const params = deserialize(serilaizedParams);
134
+ const params = deserialize(serilaizedParams) || {};
135
135
  const itemId = params.id || v4();
136
136
  if (params.id) {
137
137
  const existing = await repository.find(itemId);
@@ -154,7 +154,7 @@ function putResourceHandler({
154
154
  }) {
155
155
  return async (auth, request) => {
156
156
  const serilaizedParams = await request.json();
157
- const params = deserialize(serilaizedParams);
157
+ const params = deserialize(serilaizedParams) || {};
158
158
  const itemId = params.id || (0, import_uuid.v4)();
159
159
  if (params.id) {
160
160
  const existing = await repository.find(itemId);
@@ -140,7 +140,7 @@ function putResourceHandler({
140
140
  }) {
141
141
  return async (auth, request) => {
142
142
  const serilaizedParams = await request.json();
143
- const params = deserialize(serilaizedParams);
143
+ const params = deserialize(serilaizedParams) || {};
144
144
  const itemId = params.id || v4();
145
145
  if (params.id) {
146
146
  const existing = await repository.find(itemId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dn-react-router-toolkit",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.js",