decap-cms-widget-file 3.0.2 → 3.0.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "decap-cms-widget-file",
3
3
  "description": "Widget for uploading files in Decap CMS.",
4
- "version": "3.0.2",
4
+ "version": "3.0.3",
5
5
  "homepage": "https://www.decapcms.org/docs/widgets/#file",
6
6
  "repository": "https://github.com/decaporg/decap-cms/tree/master/packages/decap-cms-widget-file",
7
7
  "bugs": "https://github.com/decaporg/decap-cms/issues",
@@ -36,7 +36,7 @@
36
36
  "prop-types": "^15.7.2",
37
37
  "react": "^16.8.4 || ^17.0.0",
38
38
  "react-immutable-proptypes": "^2.1.0",
39
- "uuid": "^3.3.2"
39
+ "uuid": "^8.3.2"
40
40
  },
41
- "gitHead": "b1eae3bbb1661dfa5e3fc0407f03a2e0d564c14e"
41
+ "gitHead": "34f0b63b4602efa261ef11aafae85460ca8f77cd"
42
42
  }
@@ -5,7 +5,7 @@ import styled from '@emotion/styled';
5
5
  import { css } from '@emotion/core';
6
6
  import { Map, List } from 'immutable';
7
7
  import { once } from 'lodash';
8
- import uuid from 'uuid/v4';
8
+ import { v4 as uuid } from 'uuid';
9
9
  import { oneLine } from 'common-tags';
10
10
  import {
11
11
  lengths,
@@ -202,7 +202,7 @@ function sizeOfValue(value) {
202
202
  }
203
203
 
204
204
  function valueListToArray(value) {
205
- return List.isList(value) ? value.toArray() : value ?? [];
205
+ return List.isList(value) ? value.toArray() : value ?? '';
206
206
  }
207
207
 
208
208
  function valueListToSortableArray(value) {