@be-link/cls-logger 1.0.1-beta.27 → 1.0.1-beta.28
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/index.esm.js +4 -4
- package/dist/index.js +4 -4
- package/dist/index.umd.js +4 -4
- package/dist/mini/deviceInfo.d.ts.map +1 -1
- package/dist/mini.esm.js +1 -1
- package/dist/mini.js +1 -1
- package/dist/web/deviceInfo.d.ts.map +1 -1
- package/dist/web.esm.js +3 -3
- package/dist/web.js +3 -3
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2986,7 +2986,7 @@ function getBrowserDeviceInfo(options) {
|
|
|
2986
2986
|
if (options.includeNetwork) {
|
|
2987
2987
|
try {
|
|
2988
2988
|
const conn = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
|
|
2989
|
-
if (conn &&
|
|
2989
|
+
if (conn && typeof conn === 'object') {
|
|
2990
2990
|
if (typeof conn.effectiveType === 'string')
|
|
2991
2991
|
out.netEffectiveType = conn.effectiveType;
|
|
2992
2992
|
if (typeof conn.downlink === 'number')
|
|
@@ -3004,7 +3004,7 @@ function getBrowserDeviceInfo(options) {
|
|
|
3004
3004
|
if (options.includeNetworkType) {
|
|
3005
3005
|
try {
|
|
3006
3006
|
const conn = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
|
|
3007
|
-
if (conn &&
|
|
3007
|
+
if (conn && typeof conn === 'object') {
|
|
3008
3008
|
const type = conn.type;
|
|
3009
3009
|
const eff = conn.effectiveType;
|
|
3010
3010
|
let val = '';
|
|
@@ -3067,7 +3067,7 @@ function createWebDeviceInfoBaseFields(opts) {
|
|
|
3067
3067
|
try {
|
|
3068
3068
|
const g = globalThis;
|
|
3069
3069
|
const extra = g[globalKey];
|
|
3070
|
-
if (extra &&
|
|
3070
|
+
if (extra && typeof extra === 'object')
|
|
3071
3071
|
return { ...base, ...extra };
|
|
3072
3072
|
}
|
|
3073
3073
|
catch {
|
|
@@ -3176,7 +3176,7 @@ function createMiniDeviceInfoBaseFields(opts) {
|
|
|
3176
3176
|
try {
|
|
3177
3177
|
const g = globalThis;
|
|
3178
3178
|
const extra = g[globalKey];
|
|
3179
|
-
if (extra &&
|
|
3179
|
+
if (extra && typeof extra === 'object')
|
|
3180
3180
|
return { ...base, ...extra };
|
|
3181
3181
|
}
|
|
3182
3182
|
catch {
|
package/dist/index.js
CHANGED
|
@@ -2990,7 +2990,7 @@ function getBrowserDeviceInfo(options) {
|
|
|
2990
2990
|
if (options.includeNetwork) {
|
|
2991
2991
|
try {
|
|
2992
2992
|
const conn = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
|
|
2993
|
-
if (conn &&
|
|
2993
|
+
if (conn && typeof conn === 'object') {
|
|
2994
2994
|
if (typeof conn.effectiveType === 'string')
|
|
2995
2995
|
out.netEffectiveType = conn.effectiveType;
|
|
2996
2996
|
if (typeof conn.downlink === 'number')
|
|
@@ -3008,7 +3008,7 @@ function getBrowserDeviceInfo(options) {
|
|
|
3008
3008
|
if (options.includeNetworkType) {
|
|
3009
3009
|
try {
|
|
3010
3010
|
const conn = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
|
|
3011
|
-
if (conn &&
|
|
3011
|
+
if (conn && typeof conn === 'object') {
|
|
3012
3012
|
const type = conn.type;
|
|
3013
3013
|
const eff = conn.effectiveType;
|
|
3014
3014
|
let val = '';
|
|
@@ -3071,7 +3071,7 @@ function createWebDeviceInfoBaseFields(opts) {
|
|
|
3071
3071
|
try {
|
|
3072
3072
|
const g = globalThis;
|
|
3073
3073
|
const extra = g[globalKey];
|
|
3074
|
-
if (extra &&
|
|
3074
|
+
if (extra && typeof extra === 'object')
|
|
3075
3075
|
return { ...base, ...extra };
|
|
3076
3076
|
}
|
|
3077
3077
|
catch {
|
|
@@ -3180,7 +3180,7 @@ function createMiniDeviceInfoBaseFields(opts) {
|
|
|
3180
3180
|
try {
|
|
3181
3181
|
const g = globalThis;
|
|
3182
3182
|
const extra = g[globalKey];
|
|
3183
|
-
if (extra &&
|
|
3183
|
+
if (extra && typeof extra === 'object')
|
|
3184
3184
|
return { ...base, ...extra };
|
|
3185
3185
|
}
|
|
3186
3186
|
catch {
|
package/dist/index.umd.js
CHANGED
|
@@ -2992,7 +2992,7 @@
|
|
|
2992
2992
|
if (options.includeNetwork) {
|
|
2993
2993
|
try {
|
|
2994
2994
|
const conn = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
|
|
2995
|
-
if (conn &&
|
|
2995
|
+
if (conn && typeof conn === 'object') {
|
|
2996
2996
|
if (typeof conn.effectiveType === 'string')
|
|
2997
2997
|
out.netEffectiveType = conn.effectiveType;
|
|
2998
2998
|
if (typeof conn.downlink === 'number')
|
|
@@ -3010,7 +3010,7 @@
|
|
|
3010
3010
|
if (options.includeNetworkType) {
|
|
3011
3011
|
try {
|
|
3012
3012
|
const conn = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
|
|
3013
|
-
if (conn &&
|
|
3013
|
+
if (conn && typeof conn === 'object') {
|
|
3014
3014
|
const type = conn.type;
|
|
3015
3015
|
const eff = conn.effectiveType;
|
|
3016
3016
|
let val = '';
|
|
@@ -3073,7 +3073,7 @@
|
|
|
3073
3073
|
try {
|
|
3074
3074
|
const g = globalThis;
|
|
3075
3075
|
const extra = g[globalKey];
|
|
3076
|
-
if (extra &&
|
|
3076
|
+
if (extra && typeof extra === 'object')
|
|
3077
3077
|
return { ...base, ...extra };
|
|
3078
3078
|
}
|
|
3079
3079
|
catch {
|
|
@@ -3182,7 +3182,7 @@
|
|
|
3182
3182
|
try {
|
|
3183
3183
|
const g = globalThis;
|
|
3184
3184
|
const extra = g[globalKey];
|
|
3185
|
-
if (extra &&
|
|
3185
|
+
if (extra && typeof extra === 'object')
|
|
3186
3186
|
return { ...base, ...extra };
|
|
3187
3187
|
}
|
|
3188
3188
|
catch {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../src/mini/deviceInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../src/mini/deviceInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAuE9D,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,OAAO,GAAG,iBAAiB,GAAG,SAAS,GAC5C,CAAC,MAAM,UAAU,CAAC,GAAG,IAAI,CAqC3B"}
|
package/dist/mini.esm.js
CHANGED
|
@@ -1917,7 +1917,7 @@ function createMiniDeviceInfoBaseFields(opts) {
|
|
|
1917
1917
|
try {
|
|
1918
1918
|
const g = globalThis;
|
|
1919
1919
|
const extra = g[globalKey];
|
|
1920
|
-
if (extra &&
|
|
1920
|
+
if (extra && typeof extra === 'object')
|
|
1921
1921
|
return { ...base, ...extra };
|
|
1922
1922
|
}
|
|
1923
1923
|
catch {
|
package/dist/mini.js
CHANGED
|
@@ -1940,7 +1940,7 @@ function createMiniDeviceInfoBaseFields(opts) {
|
|
|
1940
1940
|
try {
|
|
1941
1941
|
const g = globalThis;
|
|
1942
1942
|
const extra = g[globalKey];
|
|
1943
|
-
if (extra &&
|
|
1943
|
+
if (extra && typeof extra === 'object')
|
|
1944
1944
|
return { ...base, ...extra };
|
|
1945
1945
|
}
|
|
1946
1946
|
catch {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../src/web/deviceInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../src/web/deviceInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAkK9D,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,OAAO,GAAG,iBAAiB,GAAG,SAAS,GAC5C,CAAC,MAAM,UAAU,CAAC,GAAG,IAAI,CAqC3B"}
|
package/dist/web.esm.js
CHANGED
|
@@ -2064,7 +2064,7 @@ function getBrowserDeviceInfo(options) {
|
|
|
2064
2064
|
if (options.includeNetwork) {
|
|
2065
2065
|
try {
|
|
2066
2066
|
const conn = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
|
|
2067
|
-
if (conn &&
|
|
2067
|
+
if (conn && typeof conn === 'object') {
|
|
2068
2068
|
if (typeof conn.effectiveType === 'string')
|
|
2069
2069
|
out.netEffectiveType = conn.effectiveType;
|
|
2070
2070
|
if (typeof conn.downlink === 'number')
|
|
@@ -2082,7 +2082,7 @@ function getBrowserDeviceInfo(options) {
|
|
|
2082
2082
|
if (options.includeNetworkType) {
|
|
2083
2083
|
try {
|
|
2084
2084
|
const conn = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
|
|
2085
|
-
if (conn &&
|
|
2085
|
+
if (conn && typeof conn === 'object') {
|
|
2086
2086
|
const type = conn.type;
|
|
2087
2087
|
const eff = conn.effectiveType;
|
|
2088
2088
|
let val = '';
|
|
@@ -2145,7 +2145,7 @@ function createWebDeviceInfoBaseFields(opts) {
|
|
|
2145
2145
|
try {
|
|
2146
2146
|
const g = globalThis;
|
|
2147
2147
|
const extra = g[globalKey];
|
|
2148
|
-
if (extra &&
|
|
2148
|
+
if (extra && typeof extra === 'object')
|
|
2149
2149
|
return { ...base, ...extra };
|
|
2150
2150
|
}
|
|
2151
2151
|
catch {
|
package/dist/web.js
CHANGED
|
@@ -2087,7 +2087,7 @@ function getBrowserDeviceInfo(options) {
|
|
|
2087
2087
|
if (options.includeNetwork) {
|
|
2088
2088
|
try {
|
|
2089
2089
|
const conn = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
|
|
2090
|
-
if (conn &&
|
|
2090
|
+
if (conn && typeof conn === 'object') {
|
|
2091
2091
|
if (typeof conn.effectiveType === 'string')
|
|
2092
2092
|
out.netEffectiveType = conn.effectiveType;
|
|
2093
2093
|
if (typeof conn.downlink === 'number')
|
|
@@ -2105,7 +2105,7 @@ function getBrowserDeviceInfo(options) {
|
|
|
2105
2105
|
if (options.includeNetworkType) {
|
|
2106
2106
|
try {
|
|
2107
2107
|
const conn = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
|
|
2108
|
-
if (conn &&
|
|
2108
|
+
if (conn && typeof conn === 'object') {
|
|
2109
2109
|
const type = conn.type;
|
|
2110
2110
|
const eff = conn.effectiveType;
|
|
2111
2111
|
let val = '';
|
|
@@ -2168,7 +2168,7 @@ function createWebDeviceInfoBaseFields(opts) {
|
|
|
2168
2168
|
try {
|
|
2169
2169
|
const g = globalThis;
|
|
2170
2170
|
const extra = g[globalKey];
|
|
2171
|
-
if (extra &&
|
|
2171
|
+
if (extra && typeof extra === 'object')
|
|
2172
2172
|
return { ...base, ...extra };
|
|
2173
2173
|
}
|
|
2174
2174
|
catch {
|