diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 4471ee0..c7b4897 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -2,10 +2,8 @@ Object.defineProperty(exports, '__esModule', { value: true }); -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - require('proxy-polyfill'); -var uuid = _interopDefault(require('uuid/v4')); +var uuid = require('uuid'); var reselect = require('reselect'); const MINIMUM_PUBLISH_BID = 0.00000001; @@ -1857,7 +1855,7 @@ function doToast(params) { return { type: CREATE_TOAST, data: { - id: uuid(), + id: uuid.v4(), params } }; diff --git a/dist/flow-typed/npm/uuid.js b/dist/flow-typed/npm/uuid.js new file mode 100644 index 0000000..5760b38 --- /dev/null +++ b/dist/flow-typed/npm/uuid.js @@ -0,0 +1,5 @@ +// @flow + +declare module 'uuid' { + declare module.exports: any; +} diff --git a/dist/flow-typed/npm/uuid_v3.x.x.js b/dist/flow-typed/npm/uuid_v3.x.x.js deleted file mode 100644 index bf8d507..0000000 --- a/dist/flow-typed/npm/uuid_v3.x.x.js +++ /dev/null @@ -1,102 +0,0 @@ -// flow-typed signature: 3cf668e64747095cab0bb360cf2fb34f -// flow-typed version: d659bd0cb8/uuid_v3.x.x/flow_>=v0.32.x - -declare module "uuid" { - declare class uuid { - static ( - options?: {| - random?: number[], - rng?: () => number[] | Buffer - |}, - buffer?: number[] | Buffer, - offset?: number - ): string, - - static v1( - options?: {| - node?: number[], - clockseq?: number, - msecs?: number | Date, - nsecs?: number - |}, - buffer?: number[] | Buffer, - offset?: number - ): string, - - static v4( - options?: {| - random?: number[], - rng?: () => number[] | Buffer - |}, - buffer?: number[] | Buffer, - offset?: number - ): string - } - declare module.exports: Class; -} - -declare module "uuid/v1" { - declare class v1 { - static ( - options?: {| - node?: number[], - clockseq?: number, - msecs?: number | Date, - nsecs?: number - |}, - buffer?: number[] | Buffer, - offset?: number - ): string - } - - declare module.exports: Class; -} - -declare module "uuid/v3" { - declare class v3 { - static ( - name?: string | number[], - namespace?: string | number[], - buffer?: number[] | Buffer, - offset?: number - ): string, - - static name: string, - static DNS: string, - static URL: string - } - - declare module.exports: Class; -} - -declare module "uuid/v4" { - declare class v4 { - static ( - options?: {| - random?: number[], - rng?: () => number[] | Buffer - |}, - buffer?: number[] | Buffer, - offset?: number - ): string - } - - declare module.exports: Class; -} - -declare module "uuid/v5" { - declare class v5 { - static ( - name?: string | number[], - namespace?: string | number[], - buffer?: number[] | Buffer, - offset?: number - ): string, - - static name: string, - static DNS: string, - static URL: string - } - - declare module.exports: Class; -} diff --git a/flow-typed/npm/uuid.js b/flow-typed/npm/uuid.js new file mode 100644 index 0000000..5760b38 --- /dev/null +++ b/flow-typed/npm/uuid.js @@ -0,0 +1,5 @@ +// @flow + +declare module 'uuid' { + declare module.exports: any; +} diff --git a/flow-typed/npm/uuid_v3.x.x.js b/flow-typed/npm/uuid_v3.x.x.js deleted file mode 100644 index bf8d507..0000000 --- a/flow-typed/npm/uuid_v3.x.x.js +++ /dev/null @@ -1,102 +0,0 @@ -// flow-typed signature: 3cf668e64747095cab0bb360cf2fb34f -// flow-typed version: d659bd0cb8/uuid_v3.x.x/flow_>=v0.32.x - -declare module "uuid" { - declare class uuid { - static ( - options?: {| - random?: number[], - rng?: () => number[] | Buffer - |}, - buffer?: number[] | Buffer, - offset?: number - ): string, - - static v1( - options?: {| - node?: number[], - clockseq?: number, - msecs?: number | Date, - nsecs?: number - |}, - buffer?: number[] | Buffer, - offset?: number - ): string, - - static v4( - options?: {| - random?: number[], - rng?: () => number[] | Buffer - |}, - buffer?: number[] | Buffer, - offset?: number - ): string - } - declare module.exports: Class; -} - -declare module "uuid/v1" { - declare class v1 { - static ( - options?: {| - node?: number[], - clockseq?: number, - msecs?: number | Date, - nsecs?: number - |}, - buffer?: number[] | Buffer, - offset?: number - ): string - } - - declare module.exports: Class; -} - -declare module "uuid/v3" { - declare class v3 { - static ( - name?: string | number[], - namespace?: string | number[], - buffer?: number[] | Buffer, - offset?: number - ): string, - - static name: string, - static DNS: string, - static URL: string - } - - declare module.exports: Class; -} - -declare module "uuid/v4" { - declare class v4 { - static ( - options?: {| - random?: number[], - rng?: () => number[] | Buffer - |}, - buffer?: number[] | Buffer, - offset?: number - ): string - } - - declare module.exports: Class; -} - -declare module "uuid/v5" { - declare class v5 { - static ( - name?: string | number[], - namespace?: string | number[], - buffer?: number[] | Buffer, - offset?: number - ): string, - - static name: string, - static DNS: string, - static URL: string - } - - declare module.exports: Class; -} diff --git a/package.json b/package.json index 547c810..39ce2cb 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "dependencies": { "proxy-polyfill": "0.1.6", "reselect": "^3.0.0", - "uuid": "^3.3.2" + "uuid": "^8.3.0" }, "devDependencies": { "@babel/plugin-proposal-class-properties": "^7.10.4", diff --git a/src/redux/actions/notifications.js b/src/redux/actions/notifications.js index 78d0ac9..faa76b5 100644 --- a/src/redux/actions/notifications.js +++ b/src/redux/actions/notifications.js @@ -1,6 +1,6 @@ // @flow import * as ACTIONS from 'constants/action_types'; -import uuid from 'uuid/v4'; +import { v4 as uuid } from 'uuid'; export function doToast(params: ToastParams) { if (!params) { diff --git a/yarn.lock b/yarn.lock index 8ee918c..0421d81 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8174,9 +8174,9 @@ uuid@^3.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" uuid@^8.3.0: - version "8.3.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.0.tgz#ab738085ca22dc9a8c92725e459b1d507df5d6ea" - integrity sha512-fX6Z5o4m6XsXBdli9g7DtWgAx+osMsRRZFKma1mIUsLCz6vRvv+pz5VNbyu9UEDzpMWulZfvpgb/cmDXVulYFQ== + version "8.3.1" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.1.tgz#2ba2e6ca000da60fce5a196954ab241131e05a31" + integrity sha512-FOmRr+FmWEIG8uhZv6C2bTgEVXsHk08kE7mPlrBbEe+c3r9pjceVPgupIfNIhc4yx55H69OXANrUaSuu9eInKg== v8-to-istanbul@^5.0.1: version "5.0.1"