chore: update uuid lib
This commit is contained in:
parent
2b3378c722
commit
6a72881c6c
6 changed files with 20 additions and 16 deletions
16
new-lamassu-admin/package-lock.json
generated
16
new-lamassu-admin/package-lock.json
generated
|
|
@ -42,8 +42,8 @@
|
||||||
"react-router-dom": "5.1.2",
|
"react-router-dom": "5.1.2",
|
||||||
"react-use": "15.3.2",
|
"react-use": "15.3.2",
|
||||||
"react-virtualized": "^9.21.2",
|
"react-virtualized": "^9.21.2",
|
||||||
"ua-parser-js": "^1.0.2",
|
"ua-parser-js": "1.0.40",
|
||||||
"uuid": "^8.3.2",
|
"uuid": "11.1.0",
|
||||||
"yup": "1.4.0"
|
"yup": "1.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
@ -8474,12 +8474,16 @@
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/uuid": {
|
"node_modules/uuid": {
|
||||||
"version": "8.3.2",
|
"version": "11.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz",
|
||||||
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
|
"integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==",
|
||||||
|
"funding": [
|
||||||
|
"https://github.com/sponsors/broofa",
|
||||||
|
"https://github.com/sponsors/ctavan"
|
||||||
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
"uuid": "dist/bin/uuid"
|
"uuid": "dist/esm/bin/uuid"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/value-equal": {
|
"node_modules/value-equal": {
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
"react-use": "15.3.2",
|
"react-use": "15.3.2",
|
||||||
"react-virtualized": "^9.21.2",
|
"react-virtualized": "^9.21.2",
|
||||||
"ua-parser-js": "1.0.40",
|
"ua-parser-js": "1.0.40",
|
||||||
"uuid": "^8.3.2",
|
"uuid": "11.1.0",
|
||||||
"yup": "1.4.0"
|
"yup": "1.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import PromptWhenDirty from 'src/components/PromptWhenDirty'
|
||||||
import Link from 'src/components/buttons/Link'
|
import Link from 'src/components/buttons/Link'
|
||||||
import { TBody, Table } from 'src/components/fake-table/Table'
|
import { TBody, Table } from 'src/components/fake-table/Table'
|
||||||
import { Info2, TL1 } from 'src/components/typography'
|
import { Info2, TL1 } from 'src/components/typography'
|
||||||
import { v4 } from 'uuid'
|
import { v4 as uuidv4 } from 'uuid'
|
||||||
|
|
||||||
import { AddButton } from 'src/components/buttons/index'
|
import { AddButton } from 'src/components/buttons/index'
|
||||||
|
|
||||||
|
|
@ -191,7 +191,7 @@ const ETable = ({
|
||||||
<Formik
|
<Formik
|
||||||
validateOnBlur={false}
|
validateOnBlur={false}
|
||||||
validateOnChange={false}
|
validateOnChange={false}
|
||||||
initialValues={{ id: v4(), ...initialValues }}
|
initialValues={{ id: uuidv4(), ...initialValues }}
|
||||||
onReset={onReset}
|
onReset={onReset}
|
||||||
validationSchema={validationSchema}
|
validationSchema={validationSchema}
|
||||||
onSubmit={innerSave}>
|
onSubmit={innerSave}>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import * as R from 'ramda'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
import TxInIcon from 'src/styling/icons/direction/cash-in.svg?react'
|
||||||
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
import TxOutIcon from 'src/styling/icons/direction/cash-out.svg?react'
|
||||||
import { v4 } from 'uuid'
|
import { v4 as uuidv4 } from 'uuid'
|
||||||
import * as Yup from 'yup'
|
import * as Yup from 'yup'
|
||||||
|
|
||||||
import { Autocomplete, NumberInput } from 'src/components/inputs/formik'
|
import { Autocomplete, NumberInput } from 'src/components/inputs/formik'
|
||||||
|
|
@ -426,7 +426,7 @@ const createCommissions = (cryptoCode, deviceId, isDefault, config) => {
|
||||||
machine: deviceId,
|
machine: deviceId,
|
||||||
cryptoCurrencies: [cryptoCode],
|
cryptoCurrencies: [cryptoCode],
|
||||||
default: isDefault,
|
default: isDefault,
|
||||||
id: v4()
|
id: uuidv4()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import { Field, useFormikContext } from 'formik'
|
||||||
import { parsePhoneNumberFromString } from 'libphonenumber-js'
|
import { parsePhoneNumberFromString } from 'libphonenumber-js'
|
||||||
import * as R from 'ramda'
|
import * as R from 'ramda'
|
||||||
import { H4 } from 'src/components/typography'
|
import { H4 } from 'src/components/typography'
|
||||||
import * as uuid from 'uuid'
|
import { validate as uuidValidate } from 'uuid';
|
||||||
import * as Yup from 'yup'
|
import * as Yup from 'yup'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
@ -84,7 +84,7 @@ const getAuthorizedStatus = (it, triggers, customRequests) => {
|
||||||
|
|
||||||
const pendingFieldStatus = R.map(ite => {
|
const pendingFieldStatus = R.map(ite => {
|
||||||
if (isManualField(ite)) {
|
if (isManualField(ite)) {
|
||||||
if (uuid.validate(ite)) {
|
if (uuidValidate(ite)) {
|
||||||
const request = R.find(
|
const request = R.find(
|
||||||
iter => iter.infoRequestId === ite,
|
iter => iter.infoRequestId === ite,
|
||||||
it.customInfoRequests
|
it.customInfoRequests
|
||||||
|
|
@ -103,7 +103,7 @@ const getAuthorizedStatus = (it, triggers, customRequests) => {
|
||||||
|
|
||||||
const rejectedFieldStatus = R.map(ite => {
|
const rejectedFieldStatus = R.map(ite => {
|
||||||
if (isManualField(ite)) {
|
if (isManualField(ite)) {
|
||||||
if (uuid.validate(ite)) {
|
if (uuidValidate(ite)) {
|
||||||
const request = R.find(
|
const request = R.find(
|
||||||
iter => iter.infoRequestId === ite,
|
iter => iter.infoRequestId === ite,
|
||||||
it.customInfoRequests
|
it.customInfoRequests
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { makeStyles, Box } from '@material-ui/core'
|
||||||
import * as R from 'ramda'
|
import * as R from 'ramda'
|
||||||
import React, { useState } from 'react'
|
import React, { useState } from 'react'
|
||||||
import { H2 } from 'src/components/typography'
|
import { H2 } from 'src/components/typography'
|
||||||
import { v4 } from 'uuid'
|
import { v4 as uuidv4 } from 'uuid'
|
||||||
|
|
||||||
import { Button } from 'src/components/buttons'
|
import { Button } from 'src/components/buttons'
|
||||||
import { Table as EditableTable } from 'src/components/editableTable'
|
import { Table as EditableTable } from 'src/components/editableTable'
|
||||||
|
|
@ -51,7 +51,7 @@ const TriggerView = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
const add = rawConfig => {
|
const add = rawConfig => {
|
||||||
const toSave = R.concat([{ id: v4(), direction: 'both', ...rawConfig }])(
|
const toSave = R.concat([{ id: uuidv4(), direction: 'both', ...rawConfig }])(
|
||||||
triggers
|
triggers
|
||||||
)
|
)
|
||||||
return saveConfig({ variables: { config: { triggers: toServer(toSave) } } })
|
return saveConfig({ variables: { config: { triggers: toServer(toSave) } } })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue