bump version to 0.21.0-rc2
This commit is contained in:
+3
-2
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "tinode-webapp",
|
||||
"description": "Tinode messenger for the web",
|
||||
"version": "0.21.0-rc1",
|
||||
"version": "0.21.0-rc2",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tinode/example-react-js.git"
|
||||
@@ -49,6 +49,7 @@
|
||||
"de",
|
||||
"en",
|
||||
"es",
|
||||
"fr",
|
||||
"ko",
|
||||
"ro",
|
||||
"ru",
|
||||
@@ -68,7 +69,7 @@
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-intl": "^6.2.1",
|
||||
"tinode-sdk": "^0.21.0-rc1",
|
||||
"tinode-sdk": "^0.21.0-rc2",
|
||||
"webm-duration-fix": "^1.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// This is a generated file. Don't edit.
|
||||
|
||||
export const PACKAGE_VERSION = "0.21.0-rc1";
|
||||
export const PACKAGE_VERSION = "0.21.0-rc2";
|
||||
|
||||
+187
-156
@@ -38,6 +38,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ "getDefaultAppConfig": () => (/* binding */ getDefaultAppConfig),
|
||||
/* harmony export */ "getDefaultEmulatorHost": () => (/* binding */ getDefaultEmulatorHost),
|
||||
/* harmony export */ "getDefaultEmulatorHostnameAndPort": () => (/* binding */ getDefaultEmulatorHostnameAndPort),
|
||||
/* harmony export */ "getDefaults": () => (/* binding */ getDefaults),
|
||||
/* harmony export */ "getExperimentalSetting": () => (/* binding */ getExperimentalSetting),
|
||||
/* harmony export */ "getGlobal": () => (/* binding */ getGlobal),
|
||||
/* harmony export */ "getModularInstance": () => (/* binding */ getModularInstance),
|
||||
@@ -526,7 +527,7 @@ function isValidKey(key) {
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* Copyright 2022 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -540,156 +541,10 @@ function isValidKey(key) {
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Returns navigator.userAgent string or '' if it's not defined.
|
||||
* @return user agent string
|
||||
*/
|
||||
function getUA() {
|
||||
if (typeof navigator !== 'undefined' &&
|
||||
typeof navigator['userAgent'] === 'string') {
|
||||
return navigator['userAgent'];
|
||||
}
|
||||
else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Detect Cordova / PhoneGap / Ionic frameworks on a mobile device.
|
||||
*
|
||||
* Deliberately does not rely on checking `file://` URLs (as this fails PhoneGap
|
||||
* in the Ripple emulator) nor Cordova `onDeviceReady`, which would normally
|
||||
* wait for a callback.
|
||||
*/
|
||||
function isMobileCordova() {
|
||||
return (typeof window !== 'undefined' &&
|
||||
// @ts-ignore Setting up an broadly applicable index signature for Window
|
||||
// just to deal with this case would probably be a bad idea.
|
||||
!!(window['cordova'] || window['phonegap'] || window['PhoneGap']) &&
|
||||
/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(getUA()));
|
||||
}
|
||||
/**
|
||||
* Detect Node.js.
|
||||
*
|
||||
* @return true if Node.js environment is detected.
|
||||
*/
|
||||
// Node detection logic from: https://github.com/iliakan/detect-node/
|
||||
function isNode() {
|
||||
try {
|
||||
return (Object.prototype.toString.call(__webpack_require__.g.process) === '[object process]');
|
||||
}
|
||||
catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Detect Browser Environment
|
||||
*/
|
||||
function isBrowser() {
|
||||
return typeof self === 'object' && self.self === self;
|
||||
}
|
||||
function isBrowserExtension() {
|
||||
const runtime = typeof chrome === 'object'
|
||||
? chrome.runtime
|
||||
: typeof browser === 'object'
|
||||
? browser.runtime
|
||||
: undefined;
|
||||
return typeof runtime === 'object' && runtime.id !== undefined;
|
||||
}
|
||||
/**
|
||||
* Detect React Native.
|
||||
*
|
||||
* @return true if ReactNative environment is detected.
|
||||
*/
|
||||
function isReactNative() {
|
||||
return (typeof navigator === 'object' && navigator['product'] === 'ReactNative');
|
||||
}
|
||||
/** Detects Electron apps. */
|
||||
function isElectron() {
|
||||
return getUA().indexOf('Electron/') >= 0;
|
||||
}
|
||||
/** Detects Internet Explorer. */
|
||||
function isIE() {
|
||||
const ua = getUA();
|
||||
return ua.indexOf('MSIE ') >= 0 || ua.indexOf('Trident/') >= 0;
|
||||
}
|
||||
/** Detects Universal Windows Platform apps. */
|
||||
function isUWP() {
|
||||
return getUA().indexOf('MSAppHost/') >= 0;
|
||||
}
|
||||
/**
|
||||
* Detect whether the current SDK build is the Node version.
|
||||
*
|
||||
* @return true if it's the Node SDK build.
|
||||
*/
|
||||
function isNodeSdk() {
|
||||
return CONSTANTS.NODE_CLIENT === true || CONSTANTS.NODE_ADMIN === true;
|
||||
}
|
||||
/** Returns true if we are running in Safari. */
|
||||
function isSafari() {
|
||||
return (!isNode() &&
|
||||
navigator.userAgent.includes('Safari') &&
|
||||
!navigator.userAgent.includes('Chrome'));
|
||||
}
|
||||
/**
|
||||
* This method checks if indexedDB is supported by current browser/service worker context
|
||||
* @return true if indexedDB is supported by current browser/service worker context
|
||||
*/
|
||||
function isIndexedDBAvailable() {
|
||||
try {
|
||||
return typeof indexedDB === 'object';
|
||||
}
|
||||
catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* This method validates browser/sw context for indexedDB by opening a dummy indexedDB database and reject
|
||||
* if errors occur during the database open operation.
|
||||
*
|
||||
* @throws exception if current browser/sw context can't run idb.open (ex: Safari iframe, Firefox
|
||||
* private browsing)
|
||||
*/
|
||||
function validateIndexedDBOpenable() {
|
||||
return new Promise((resolve, reject) => {
|
||||
try {
|
||||
let preExist = true;
|
||||
const DB_CHECK_NAME = 'validate-browser-context-for-indexeddb-analytics-module';
|
||||
const request = self.indexedDB.open(DB_CHECK_NAME);
|
||||
request.onsuccess = () => {
|
||||
request.result.close();
|
||||
// delete database only when it doesn't pre-exist
|
||||
if (!preExist) {
|
||||
self.indexedDB.deleteDatabase(DB_CHECK_NAME);
|
||||
}
|
||||
resolve(true);
|
||||
};
|
||||
request.onupgradeneeded = () => {
|
||||
preExist = false;
|
||||
};
|
||||
request.onerror = () => {
|
||||
var _a;
|
||||
reject(((_a = request.error) === null || _a === void 0 ? void 0 : _a.message) || '');
|
||||
};
|
||||
}
|
||||
catch (error) {
|
||||
reject(error);
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
*
|
||||
* This method checks whether cookie is enabled within current browser
|
||||
* @return true if cookie is enabled within current browser
|
||||
*/
|
||||
function areCookiesEnabled() {
|
||||
if (typeof navigator === 'undefined' || !navigator.cookieEnabled) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* Polyfill for `globalThis` object.
|
||||
* @returns the `globalThis` object for the given environment.
|
||||
* @public
|
||||
*/
|
||||
function getGlobal() {
|
||||
if (typeof self !== 'undefined') {
|
||||
@@ -723,8 +578,11 @@ function getGlobal() {
|
||||
const getDefaultsFromGlobal = () => getGlobal().__FIREBASE_DEFAULTS__;
|
||||
/**
|
||||
* Attempt to read defaults from a JSON string provided to
|
||||
* process.env.__FIREBASE_DEFAULTS__ or a JSON file whose path is in
|
||||
* process.env.__FIREBASE_DEFAULTS_PATH__
|
||||
* process(.)env(.)__FIREBASE_DEFAULTS__ or a JSON file whose path is in
|
||||
* process(.)env(.)__FIREBASE_DEFAULTS_PATH__
|
||||
* The dots are in parens because certain compilers (Vite?) cannot
|
||||
* handle seeing that variable in comments.
|
||||
* See https://github.com/firebase/firebase-js-sdk/issues/6838
|
||||
*/
|
||||
const getDefaultsFromEnvVariable = () => {
|
||||
if (typeof process === 'undefined' || typeof process.env === 'undefined') {
|
||||
@@ -756,6 +614,7 @@ const getDefaultsFromCookie = () => {
|
||||
* (1) if such an object exists as a property of `globalThis`
|
||||
* (2) if such an object was provided on a shell environment variable
|
||||
* (3) if such an object exists in a cookie
|
||||
* @public
|
||||
*/
|
||||
const getDefaults = () => {
|
||||
try {
|
||||
@@ -919,6 +778,178 @@ function createMockUserToken(token, projectId) {
|
||||
].join('.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Returns navigator.userAgent string or '' if it's not defined.
|
||||
* @return user agent string
|
||||
*/
|
||||
function getUA() {
|
||||
if (typeof navigator !== 'undefined' &&
|
||||
typeof navigator['userAgent'] === 'string') {
|
||||
return navigator['userAgent'];
|
||||
}
|
||||
else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Detect Cordova / PhoneGap / Ionic frameworks on a mobile device.
|
||||
*
|
||||
* Deliberately does not rely on checking `file://` URLs (as this fails PhoneGap
|
||||
* in the Ripple emulator) nor Cordova `onDeviceReady`, which would normally
|
||||
* wait for a callback.
|
||||
*/
|
||||
function isMobileCordova() {
|
||||
return (typeof window !== 'undefined' &&
|
||||
// @ts-ignore Setting up an broadly applicable index signature for Window
|
||||
// just to deal with this case would probably be a bad idea.
|
||||
!!(window['cordova'] || window['phonegap'] || window['PhoneGap']) &&
|
||||
/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(getUA()));
|
||||
}
|
||||
/**
|
||||
* Detect Node.js.
|
||||
*
|
||||
* @return true if Node.js environment is detected or specified.
|
||||
*/
|
||||
// Node detection logic from: https://github.com/iliakan/detect-node/
|
||||
function isNode() {
|
||||
var _a;
|
||||
const forceEnvironment = (_a = getDefaults()) === null || _a === void 0 ? void 0 : _a.forceEnvironment;
|
||||
if (forceEnvironment === 'node') {
|
||||
return true;
|
||||
}
|
||||
else if (forceEnvironment === 'browser') {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
return (Object.prototype.toString.call(__webpack_require__.g.process) === '[object process]');
|
||||
}
|
||||
catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Detect Browser Environment
|
||||
*/
|
||||
function isBrowser() {
|
||||
return typeof self === 'object' && self.self === self;
|
||||
}
|
||||
function isBrowserExtension() {
|
||||
const runtime = typeof chrome === 'object'
|
||||
? chrome.runtime
|
||||
: typeof browser === 'object'
|
||||
? browser.runtime
|
||||
: undefined;
|
||||
return typeof runtime === 'object' && runtime.id !== undefined;
|
||||
}
|
||||
/**
|
||||
* Detect React Native.
|
||||
*
|
||||
* @return true if ReactNative environment is detected.
|
||||
*/
|
||||
function isReactNative() {
|
||||
return (typeof navigator === 'object' && navigator['product'] === 'ReactNative');
|
||||
}
|
||||
/** Detects Electron apps. */
|
||||
function isElectron() {
|
||||
return getUA().indexOf('Electron/') >= 0;
|
||||
}
|
||||
/** Detects Internet Explorer. */
|
||||
function isIE() {
|
||||
const ua = getUA();
|
||||
return ua.indexOf('MSIE ') >= 0 || ua.indexOf('Trident/') >= 0;
|
||||
}
|
||||
/** Detects Universal Windows Platform apps. */
|
||||
function isUWP() {
|
||||
return getUA().indexOf('MSAppHost/') >= 0;
|
||||
}
|
||||
/**
|
||||
* Detect whether the current SDK build is the Node version.
|
||||
*
|
||||
* @return true if it's the Node SDK build.
|
||||
*/
|
||||
function isNodeSdk() {
|
||||
return CONSTANTS.NODE_CLIENT === true || CONSTANTS.NODE_ADMIN === true;
|
||||
}
|
||||
/** Returns true if we are running in Safari. */
|
||||
function isSafari() {
|
||||
return (!isNode() &&
|
||||
navigator.userAgent.includes('Safari') &&
|
||||
!navigator.userAgent.includes('Chrome'));
|
||||
}
|
||||
/**
|
||||
* This method checks if indexedDB is supported by current browser/service worker context
|
||||
* @return true if indexedDB is supported by current browser/service worker context
|
||||
*/
|
||||
function isIndexedDBAvailable() {
|
||||
try {
|
||||
return typeof indexedDB === 'object';
|
||||
}
|
||||
catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* This method validates browser/sw context for indexedDB by opening a dummy indexedDB database and reject
|
||||
* if errors occur during the database open operation.
|
||||
*
|
||||
* @throws exception if current browser/sw context can't run idb.open (ex: Safari iframe, Firefox
|
||||
* private browsing)
|
||||
*/
|
||||
function validateIndexedDBOpenable() {
|
||||
return new Promise((resolve, reject) => {
|
||||
try {
|
||||
let preExist = true;
|
||||
const DB_CHECK_NAME = 'validate-browser-context-for-indexeddb-analytics-module';
|
||||
const request = self.indexedDB.open(DB_CHECK_NAME);
|
||||
request.onsuccess = () => {
|
||||
request.result.close();
|
||||
// delete database only when it doesn't pre-exist
|
||||
if (!preExist) {
|
||||
self.indexedDB.deleteDatabase(DB_CHECK_NAME);
|
||||
}
|
||||
resolve(true);
|
||||
};
|
||||
request.onupgradeneeded = () => {
|
||||
preExist = false;
|
||||
};
|
||||
request.onerror = () => {
|
||||
var _a;
|
||||
reject(((_a = request.error) === null || _a === void 0 ? void 0 : _a.message) || '');
|
||||
};
|
||||
}
|
||||
catch (error) {
|
||||
reject(error);
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
*
|
||||
* This method checks whether cookie is enabled within current browser
|
||||
* @return true if cookie is enabled within current browser
|
||||
*/
|
||||
function areCookiesEnabled() {
|
||||
if (typeof navigator === 'undefined' || !navigator.cookieEnabled) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
@@ -3544,7 +3575,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "PACKAGE_VERSION": () => (/* binding */ PACKAGE_VERSION)
|
||||
/* harmony export */ });
|
||||
const PACKAGE_VERSION = "0.21.0-rc1";
|
||||
const PACKAGE_VERSION = "0.21.0-rc2";
|
||||
|
||||
/***/ }),
|
||||
|
||||
@@ -17070,7 +17101,7 @@ function isVersionServiceProvider(provider) {
|
||||
}
|
||||
|
||||
const name$o = "@firebase/app";
|
||||
const version$1 = "0.9.0";
|
||||
const version$1 = "0.9.1";
|
||||
|
||||
/**
|
||||
* @license
|
||||
@@ -17137,7 +17168,7 @@ const name$2 = "@firebase/firestore";
|
||||
const name$1 = "@firebase/firestore-compat";
|
||||
|
||||
const name = "firebase";
|
||||
const version = "9.15.0";
|
||||
const version = "9.16.0";
|
||||
|
||||
/**
|
||||
* @license
|
||||
@@ -18397,7 +18428,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
const name = "@firebase/installations";
|
||||
const version = "0.6.0";
|
||||
const version = "0.6.1";
|
||||
|
||||
/**
|
||||
* @license
|
||||
@@ -20802,7 +20833,7 @@ async function messageEventListener(messaging, event) {
|
||||
}
|
||||
|
||||
const name = "@firebase/messaging";
|
||||
const version = "0.12.0";
|
||||
const version = "0.12.1";
|
||||
|
||||
/**
|
||||
* @license
|
||||
@@ -21074,7 +21105,7 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
var name = "firebase";
|
||||
var version = "9.15.0";
|
||||
var version = "9.16.0";
|
||||
|
||||
/**
|
||||
* @license
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,3 +1,3 @@
|
||||
// This is a generated file. Don't edit.
|
||||
|
||||
const PACKAGE_VERSION = "0.21.0-rc1";
|
||||
const PACKAGE_VERSION = "0.21.0-rc2";
|
||||
|
||||
Reference in New Issue
Block a user