patch: fix pretty-bytes imports

This commit is contained in:
Edwin Joassart 2024-04-25 13:48:48 +02:00
parent 2f4a12a48f
commit 0642611079
6 changed files with 13 additions and 13 deletions

View File

@ -29,7 +29,7 @@ import {
isDriveSizeLarge, isDriveSizeLarge,
} from '../../../../shared/drive-constraints'; } from '../../../../shared/drive-constraints';
import { compatibility, warning } from '../../../../shared/messages'; import { compatibility, warning } from '../../../../shared/messages';
import * as prettyBytes from 'pretty-bytes'; import prettyBytes from 'pretty-bytes';
import { getDrives, hasAvailableDrives } from '../../models/available-drives'; import { getDrives, hasAvailableDrives } from '../../models/available-drives';
import { getImage, isDriveSelected } from '../../models/selection-state'; import { getImage, isDriveSelected } from '../../models/selection-state';
import { store } from '../../models/store'; import { store } from '../../models/store';

View File

@ -23,7 +23,7 @@ import ChevronRightSvg from '@fortawesome/fontawesome-free/svgs/solid/chevron-ri
import { ipcRenderer, IpcRendererEvent } from 'electron'; import { ipcRenderer, IpcRendererEvent } from 'electron';
import { uniqBy, isNil } from 'lodash'; import { uniqBy, isNil } from 'lodash';
import * as path from 'path'; import * as path from 'path';
import * as prettyBytes from 'pretty-bytes'; import prettyBytes from 'pretty-bytes';
import * as React from 'react'; import * as React from 'react';
import { requestMetadata } from '../../app'; import { requestMetadata } from '../../app';

View File

@ -23,7 +23,7 @@ import {
DriveStatus, DriveStatus,
} from '../../../../shared/drive-constraints'; } from '../../../../shared/drive-constraints';
import { compatibility, warning } from '../../../../shared/messages'; import { compatibility, warning } from '../../../../shared/messages';
import * as prettyBytes from 'pretty-bytes'; import prettyBytes from 'pretty-bytes';
import { getImage, getSelectedDrives } from '../../models/selection-state'; import { getImage, getSelectedDrives } from '../../models/selection-state';
import { import {
ChangeButton, ChangeButton,

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import * as prettyBytes from 'pretty-bytes'; import prettyBytes from 'pretty-bytes';
import * as i18next from 'i18next'; import * as i18next from 'i18next';
export interface FlashState { export interface FlashState {

View File

@ -18,7 +18,7 @@ import CogSvg from '@fortawesome/fontawesome-free/svgs/solid/gear.svg';
import QuestionCircleSvg from '@fortawesome/fontawesome-free/svgs/solid/circle-question.svg'; import QuestionCircleSvg from '@fortawesome/fontawesome-free/svgs/solid/circle-question.svg';
import * as path from 'path'; import * as path from 'path';
import * as prettyBytes from 'pretty-bytes'; import prettyBytes from 'pretty-bytes';
import * as React from 'react'; import * as React from 'react';
import { Flex } from 'rendition'; import { Flex } from 'rendition';
import styled from 'styled-components'; import styled from 'styled-components';

16
npm-shrinkwrap.json generated
View File

@ -25,7 +25,7 @@
"lodash": "4.17.21", "lodash": "4.17.21",
"outdent": "0.8.0", "outdent": "0.8.0",
"path-is-inside": "1.0.2", "path-is-inside": "1.0.2",
"pretty-bytes": "5.6.0", "pretty-bytes": "6.1.1",
"react": "17.0.2", "react": "17.0.2",
"react-dom": "17.0.2", "react-dom": "17.0.2",
"react-i18next": "13.5.0", "react-i18next": "13.5.0",
@ -21875,11 +21875,11 @@
} }
}, },
"node_modules/pretty-bytes": { "node_modules/pretty-bytes": {
"version": "5.6.0", "version": "6.1.1",
"resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-6.1.1.tgz",
"integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", "integrity": "sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ==",
"engines": { "engines": {
"node": ">=6" "node": "^14.13.1 || >=16.0.0"
}, },
"funding": { "funding": {
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
@ -42398,9 +42398,9 @@
"dev": true "dev": true
}, },
"pretty-bytes": { "pretty-bytes": {
"version": "5.6.0", "version": "6.1.1",
"resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-6.1.1.tgz",
"integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==" "integrity": "sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ=="
}, },
"pretty-error": { "pretty-error": {
"version": "4.0.0", "version": "4.0.0",