bt-core-app 2.2.39 → 2.2.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bt-core/core/node_modules/@firebase/app/dist/esm/index.esm.mjs +577 -0
- package/dist/bt-core/core/node_modules/@firebase/component/dist/esm/index.esm.mjs +275 -0
- package/dist/bt-core/core/node_modules/@firebase/installations/dist/esm/index.esm.mjs +763 -0
- package/dist/bt-core/core/node_modules/@firebase/logger/dist/esm/index.esm.mjs +101 -0
- package/dist/bt-core/core/node_modules/@firebase/messaging/dist/esm/index.esm.mjs +1278 -0
- package/dist/bt-core/core/node_modules/@firebase/util/dist/index.esm.mjs +444 -0
- package/dist/bt-core/core/node_modules/@firebase/util/dist/postinstall.mjs +5 -0
- package/dist/bt-core/core/node_modules/@mdi/js/mdi.mjs +60 -59
- package/dist/bt-core/core/node_modules/firebase/app/dist/esm/index.esm.mjs +32 -0
- package/dist/bt-core/core/node_modules/idb/build/index.mjs +58 -0
- package/dist/bt-core/core/node_modules/idb/build/wrap-idb-value.mjs +101 -0
- package/dist/components/BT-Firebase-Notification.vue.d.ts +2 -0
- package/dist/components/BT-Firebase-Notification.vue.mjs +106 -0
- package/dist/components/BT-Firebase-Notification.vue2.mjs +4 -0
- package/dist/components.mjs +18 -16
- package/dist/composables/devices.d.ts +1 -0
- package/dist/composables/devices.mjs +12 -7
- package/dist/composables/firebase.d.ts +29 -0
- package/dist/composables/firebase.mjs +80 -0
- package/dist/composables/icons.mjs +58 -57
- package/dist/composables.mjs +200 -195
- package/dist/core.d.ts +2 -0
- package/dist/core2.mjs +89 -88
- package/dist/index-components.d.ts +2 -1
- package/dist/index-composables.d.ts +3 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
var t;
|
|
18
|
+
(function(r) {
|
|
19
|
+
r[r.DEBUG = 0] = "DEBUG", r[r.VERBOSE = 1] = "VERBOSE", r[r.INFO = 2] = "INFO", r[r.WARN = 3] = "WARN", r[r.ERROR = 4] = "ERROR", r[r.SILENT = 5] = "SILENT";
|
|
20
|
+
})(t || (t = {}));
|
|
21
|
+
const l = {
|
|
22
|
+
debug: t.DEBUG,
|
|
23
|
+
verbose: t.VERBOSE,
|
|
24
|
+
info: t.INFO,
|
|
25
|
+
warn: t.WARN,
|
|
26
|
+
error: t.ERROR,
|
|
27
|
+
silent: t.SILENT
|
|
28
|
+
}, i = t.INFO, h = {
|
|
29
|
+
[t.DEBUG]: "log",
|
|
30
|
+
[t.VERBOSE]: "log",
|
|
31
|
+
[t.INFO]: "info",
|
|
32
|
+
[t.WARN]: "warn",
|
|
33
|
+
[t.ERROR]: "error"
|
|
34
|
+
}, d = (r, e, ...o) => {
|
|
35
|
+
if (e < r.logLevel)
|
|
36
|
+
return;
|
|
37
|
+
const n = (/* @__PURE__ */ new Date()).toISOString(), s = h[e];
|
|
38
|
+
if (s)
|
|
39
|
+
console[s](`[${n}] ${r.name}:`, ...o);
|
|
40
|
+
else
|
|
41
|
+
throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
|
|
42
|
+
};
|
|
43
|
+
class g {
|
|
44
|
+
/**
|
|
45
|
+
* Gives you an instance of a Logger to capture messages according to
|
|
46
|
+
* Firebase's logging scheme.
|
|
47
|
+
*
|
|
48
|
+
* @param name The name that the logs will be associated with
|
|
49
|
+
*/
|
|
50
|
+
constructor(e) {
|
|
51
|
+
this.name = e, this._logLevel = i, this._logHandler = d, this._userLogHandler = null;
|
|
52
|
+
}
|
|
53
|
+
get logLevel() {
|
|
54
|
+
return this._logLevel;
|
|
55
|
+
}
|
|
56
|
+
set logLevel(e) {
|
|
57
|
+
if (!(e in t))
|
|
58
|
+
throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);
|
|
59
|
+
this._logLevel = e;
|
|
60
|
+
}
|
|
61
|
+
// Workaround for setter/getter having to be the same type.
|
|
62
|
+
setLogLevel(e) {
|
|
63
|
+
this._logLevel = typeof e == "string" ? l[e] : e;
|
|
64
|
+
}
|
|
65
|
+
get logHandler() {
|
|
66
|
+
return this._logHandler;
|
|
67
|
+
}
|
|
68
|
+
set logHandler(e) {
|
|
69
|
+
if (typeof e != "function")
|
|
70
|
+
throw new TypeError("Value assigned to `logHandler` must be a function");
|
|
71
|
+
this._logHandler = e;
|
|
72
|
+
}
|
|
73
|
+
get userLogHandler() {
|
|
74
|
+
return this._userLogHandler;
|
|
75
|
+
}
|
|
76
|
+
set userLogHandler(e) {
|
|
77
|
+
this._userLogHandler = e;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The functions below are all based on the `console` interface
|
|
81
|
+
*/
|
|
82
|
+
debug(...e) {
|
|
83
|
+
this._userLogHandler && this._userLogHandler(this, t.DEBUG, ...e), this._logHandler(this, t.DEBUG, ...e);
|
|
84
|
+
}
|
|
85
|
+
log(...e) {
|
|
86
|
+
this._userLogHandler && this._userLogHandler(this, t.VERBOSE, ...e), this._logHandler(this, t.VERBOSE, ...e);
|
|
87
|
+
}
|
|
88
|
+
info(...e) {
|
|
89
|
+
this._userLogHandler && this._userLogHandler(this, t.INFO, ...e), this._logHandler(this, t.INFO, ...e);
|
|
90
|
+
}
|
|
91
|
+
warn(...e) {
|
|
92
|
+
this._userLogHandler && this._userLogHandler(this, t.WARN, ...e), this._logHandler(this, t.WARN, ...e);
|
|
93
|
+
}
|
|
94
|
+
error(...e) {
|
|
95
|
+
this._userLogHandler && this._userLogHandler(this, t.ERROR, ...e), this._logHandler(this, t.ERROR, ...e);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export {
|
|
99
|
+
t as LogLevel,
|
|
100
|
+
g as Logger
|
|
101
|
+
};
|