chore(deps) adapt to logger package rename

This commit is contained in:
Saúl Ibarra Corretgé 2021-11-10 11:11:29 +01:00 committed by Saúl Ibarra Corretgé
parent 28c793b3a9
commit 8f08a54fb2
21 changed files with 31 additions and 21 deletions

View File

@ -1,8 +1,8 @@
/* global APP, JitsiMeetJS, config, interfaceConfig */ /* global APP, JitsiMeetJS, config, interfaceConfig */
import { jitsiLocalStorage } from '@jitsi/js-utils'; import { jitsiLocalStorage } from '@jitsi/js-utils';
import Logger from '@jitsi/logger';
import EventEmitter from 'events'; import EventEmitter from 'events';
import Logger from 'jitsi-meet-logger';
import { openConnection } from './connection'; import { openConnection } from './connection';
import { ENDPOINT_TEXT_MESSAGE_NAME } from './modules/API/constants'; import { ENDPOINT_TEXT_MESSAGE_NAME } from './modules/API/constants';

View File

@ -1,7 +1,7 @@
/* global APP, JitsiMeetJS, config */ /* global APP, JitsiMeetJS, config */
import { jitsiLocalStorage } from '@jitsi/js-utils'; import { jitsiLocalStorage } from '@jitsi/js-utils';
import Logger from 'jitsi-meet-logger'; import Logger from '@jitsi/logger';
import { redirectToTokenAuthService } from './modules/UI/authentication/AuthHandler'; import { redirectToTokenAuthService } from './modules/UI/authentication/AuthHandler';
import { LoginDialog } from './react/features/authentication/components'; import { LoginDialog } from './react/features/authentication/components';

View File

@ -1,6 +1,6 @@
// @flow // @flow
import Logger from 'jitsi-meet-logger'; import Logger from '@jitsi/logger';
import { import {
createApiEvent, createApiEvent,

View File

@ -1,6 +1,6 @@
// @flow // @flow
import Logger from 'jitsi-meet-logger'; import Logger from '@jitsi/logger';
const logger = Logger.getLogger(__filename); const logger = Logger.getLogger(__filename);

View File

@ -3,8 +3,8 @@
const UI = {}; const UI = {};
import Logger from '@jitsi/logger';
import EventEmitter from 'events'; import EventEmitter from 'events';
import Logger from 'jitsi-meet-logger';
import { isMobileBrowser } from '../../react/features/base/environment/utils'; import { isMobileBrowser } from '../../react/features/base/environment/utils';
import { setColorAlpha } from '../../react/features/base/util'; import { setColorAlpha } from '../../react/features/base/util';

View File

@ -1,6 +1,6 @@
// @flow // @flow
import Logger from 'jitsi-meet-logger'; import Logger from '@jitsi/logger';
import { openConnection } from '../../../connection'; import { openConnection } from '../../../connection';
import { import {

View File

@ -1,6 +1,6 @@
/* global $, APP */ /* global $, APP */
/* eslint-disable no-unused-vars */ /* eslint-disable no-unused-vars */
import Logger from 'jitsi-meet-logger'; import Logger from '@jitsi/logger';
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import { I18nextProvider } from 'react-i18next'; import { I18nextProvider } from 'react-i18next';

View File

@ -1,6 +1,6 @@
/* global APP */ /* global APP */
import Logger from 'jitsi-meet-logger'; import Logger from '@jitsi/logger';
import { MEDIA_TYPE, VIDEO_TYPE } from '../../../react/features/base/media'; import { MEDIA_TYPE, VIDEO_TYPE } from '../../../react/features/base/media';
import { import {

View File

@ -1,6 +1,6 @@
/* global APP */ /* global APP */
import { jitsiLocalStorage } from '@jitsi/js-utils'; import { jitsiLocalStorage } from '@jitsi/js-utils';
import Logger from 'jitsi-meet-logger'; import Logger from '@jitsi/logger';
import { import {
ACTION_SHORTCUT_PRESSED as PRESSED, ACTION_SHORTCUT_PRESSED as PRESSED,

View File

@ -1,4 +1,4 @@
const logger = require('jitsi-meet-logger').getLogger(__filename); const logger = require('@jitsi/logger').getLogger(__filename);
/** /**
* Manages a queue of functions where the current function in progress will * Manages a queue of functions where the current function in progress will

12
package-lock.json generated
View File

@ -30,6 +30,7 @@
"@atlaskit/tooltip": "17.1.2", "@atlaskit/tooltip": "17.1.2",
"@hapi/bourne": "2.0.0", "@hapi/bourne": "2.0.0",
"@jitsi/js-utils": "2.0.0", "@jitsi/js-utils": "2.0.0",
"@jitsi/logger": "2.0.0",
"@material-ui/core": "4.11.3", "@material-ui/core": "4.11.3",
"@matrix-org/olm": "https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.3.tgz", "@matrix-org/olm": "https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.3.tgz",
"@microsoft/microsoft-graph-client": "1.1.0", "@microsoft/microsoft-graph-client": "1.1.0",
@ -55,7 +56,6 @@
"i18next-browser-languagedetector": "3.0.1", "i18next-browser-languagedetector": "3.0.1",
"i18next-xhr-backend": "3.0.0", "i18next-xhr-backend": "3.0.0",
"image-capture": "0.4.0", "image-capture": "0.4.0",
"jitsi-meet-logger": "github:jitsi/jitsi-meet-logger#v1.0.0",
"jquery": "3.5.1", "jquery": "3.5.1",
"jquery-i18next": "1.2.1", "jquery-i18next": "1.2.1",
"js-md5": "0.6.1", "js-md5": "0.6.1",
@ -3366,6 +3366,11 @@
"resolved": "https://registry.npmjs.org/js-md5/-/js-md5-0.7.3.tgz", "resolved": "https://registry.npmjs.org/js-md5/-/js-md5-0.7.3.tgz",
"integrity": "sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ==" "integrity": "sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ=="
}, },
"node_modules/@jitsi/logger": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@jitsi/logger/-/logger-2.0.0.tgz",
"integrity": "sha512-QZE0NpI/GKRdZK0vhuyFYWr4XkCz4slihkSfy6RTszjj/YEHZKIV7yGJo6Hbs3kYI2h5v7apoy+h2WCOMumPJw=="
},
"node_modules/@jitsi/sdp-interop": { "node_modules/@jitsi/sdp-interop": {
"version": "1.0.5", "version": "1.0.5",
"resolved": "git+ssh://git@github.com/jitsi/sdp-interop.git#4669790bb9020cc8f10c1d1f3823c26b08497547", "resolved": "git+ssh://git@github.com/jitsi/sdp-interop.git#4669790bb9020cc8f10c1d1f3823c26b08497547",
@ -22711,6 +22716,11 @@
} }
} }
}, },
"@jitsi/logger": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@jitsi/logger/-/logger-2.0.0.tgz",
"integrity": "sha512-QZE0NpI/GKRdZK0vhuyFYWr4XkCz4slihkSfy6RTszjj/YEHZKIV7yGJo6Hbs3kYI2h5v7apoy+h2WCOMumPJw=="
},
"@jitsi/sdp-interop": { "@jitsi/sdp-interop": {
"version": "git+ssh://git@github.com/jitsi/sdp-interop.git#4669790bb9020cc8f10c1d1f3823c26b08497547", "version": "git+ssh://git@github.com/jitsi/sdp-interop.git#4669790bb9020cc8f10c1d1f3823c26b08497547",
"integrity": "sha512-4nqEqJWyRFjHM/riI0DQRNx+mgx277iK0r5LhwVAHDZDBYbLN54vYcfZ6JepcmygQiixa8jet/gLJnikdH9wzQ==", "integrity": "sha512-4nqEqJWyRFjHM/riI0DQRNx+mgx277iK0r5LhwVAHDZDBYbLN54vYcfZ6JepcmygQiixa8jet/gLJnikdH9wzQ==",

View File

@ -35,6 +35,7 @@
"@atlaskit/tooltip": "17.1.2", "@atlaskit/tooltip": "17.1.2",
"@hapi/bourne": "2.0.0", "@hapi/bourne": "2.0.0",
"@jitsi/js-utils": "2.0.0", "@jitsi/js-utils": "2.0.0",
"@jitsi/logger": "2.0.0",
"@material-ui/core": "4.11.3", "@material-ui/core": "4.11.3",
"@matrix-org/olm": "https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.3.tgz", "@matrix-org/olm": "https://gitlab.matrix.org/api/v4/projects/27/packages/npm/@matrix-org/olm/-/@matrix-org/olm-3.2.3.tgz",
"@microsoft/microsoft-graph-client": "1.1.0", "@microsoft/microsoft-graph-client": "1.1.0",
@ -60,7 +61,6 @@
"i18next-browser-languagedetector": "3.0.1", "i18next-browser-languagedetector": "3.0.1",
"i18next-xhr-backend": "3.0.0", "i18next-xhr-backend": "3.0.0",
"image-capture": "0.4.0", "image-capture": "0.4.0",
"jitsi-meet-logger": "github:jitsi/jitsi-meet-logger#v1.0.0",
"jquery": "3.5.1", "jquery": "3.5.1",
"jquery-i18next": "1.2.1", "jquery-i18next": "1.2.1",
"js-md5": "0.6.1", "js-md5": "0.6.1",

View File

@ -2,7 +2,7 @@
import { getCurrentConference } from '../conference'; import { getCurrentConference } from '../conference';
/** /**
* Implements log storage interface from the jitsi-meet-logger lib. Captured * Implements log storage interface from the @jitsi/logger lib. Captured
* logs are sent to CallStats. * logs are sent to CallStats.
*/ */
export default class JitsiMeetLogStorage { export default class JitsiMeetLogStorage {

View File

@ -26,7 +26,7 @@ function stackToString(e) {
} }
/** /**
* Constructs a log transport object for use with jitsi-meet-logger. * Constructs a log transport object for use with @jitsi/logger.
* *
* @returns {Object} - The transport object. * @returns {Object} - The transport object.
*/ */

View File

@ -1,6 +1,6 @@
// @flow // @flow
import Logger, { getLogger as _getLogger } from 'jitsi-meet-logger'; import Logger, { getLogger as _getLogger } from '@jitsi/logger';
import _ from 'lodash'; import _ from 'lodash';
import LogTransport from './LogTransport'; import LogTransport from './LogTransport';

View File

@ -1,6 +1,6 @@
/* @flow */ /* @flow */
import Logger from 'jitsi-meet-logger'; import Logger from '@jitsi/logger';
import { APP_WILL_MOUNT } from '../app'; import { APP_WILL_MOUNT } from '../app';
import { CONFERENCE_JOINED, getCurrentConference } from '../conference'; import { CONFERENCE_JOINED, getCurrentConference } from '../conference';

View File

@ -1,6 +1,6 @@
// @flow // @flow
import { getLogger } from 'jitsi-meet-logger'; import { getLogger } from '@jitsi/logger';
import { doGetJSON } from '../base/util'; import { doGetJSON } from '../base/util';

View File

@ -281,7 +281,7 @@ function _visitNode(node, callback) {
const { console } = global; const { console } = global;
if (console) { if (console) {
const loggerLevels = require('jitsi-meet-logger').levels; const loggerLevels = require('@jitsi/logger').levels;
Object.keys(loggerLevels).forEach(key => { Object.keys(loggerLevels).forEach(key => {
const level = loggerLevels[key]; const level = loggerLevels[key];

View File

@ -1,4 +1,4 @@
import Logger from 'jitsi-meet-logger'; import Logger from '@jitsi/logger';
import React from 'react'; import React from 'react';
import Video from 'react-native-video'; import Video from 'react-native-video';

View File

@ -1,6 +1,6 @@
/* @flow */ /* @flow */
/* eslint-disable no-invalid-this */ /* eslint-disable no-invalid-this */
import Logger from 'jitsi-meet-logger'; import Logger from '@jitsi/logger';
import throttle from 'lodash/throttle'; import throttle from 'lodash/throttle';
import { PureComponent } from 'react'; import { PureComponent } from 'react';

View File

@ -1,5 +1,5 @@
// @flow // @flow
import { getLogger } from 'jitsi-meet-logger'; import { getLogger } from '@jitsi/logger';
import type { Dispatch } from 'redux'; import type { Dispatch } from 'redux';
import UIEvents from '../../../service/UI/UIEvents'; import UIEvents from '../../../service/UI/UIEvents';