@wiredcraft/miniprogram-wiredsentry
Advanced tools
Comparing version 0.4.0-dev.2 to 0.4.0-dev.3
@@ -104,3 +104,4 @@ 'use strict'; | ||
const DSN_PAT = /(http(?:s)?:\/\/)([0-9a-z]+):?([0-9a-z]+?)?@([\w.-]+?)\/([\d]+)$/; | ||
const DSN_PAT = | ||
/(http(?:s)?:\/\/)([0-9a-z]+):?([0-9a-z]+?)?@([\w.-]+?)\/([\d]+)$/; | ||
const sdk = { name, version }; | ||
@@ -171,6 +172,8 @@ const STORAGE_KEY = '__sentry__'; | ||
setTimeout(() => { | ||
inst.flushLogs(); | ||
if (inst) { | ||
inst.flushLogs(); | ||
} | ||
}, 500); | ||
wx.onNetworkStatusChange((res) => { | ||
if (res.isConnected) { | ||
if (inst && res.isConnected) { | ||
inst.flushLogs(); | ||
@@ -177,0 +180,0 @@ } |
@@ -100,3 +100,4 @@ var name = "@wiredcraft/miniprogram-wiredsentry"; | ||
const DSN_PAT = /(http(?:s)?:\/\/)([0-9a-z]+):?([0-9a-z]+?)?@([\w.-]+?)\/([\d]+)$/; | ||
const DSN_PAT = | ||
/(http(?:s)?:\/\/)([0-9a-z]+):?([0-9a-z]+?)?@([\w.-]+?)\/([\d]+)$/; | ||
const sdk = { name, version }; | ||
@@ -167,6 +168,8 @@ const STORAGE_KEY = '__sentry__'; | ||
setTimeout(() => { | ||
inst.flushLogs(); | ||
if (inst) { | ||
inst.flushLogs(); | ||
} | ||
}, 500); | ||
wx.onNetworkStatusChange((res) => { | ||
if (res.isConnected) { | ||
if (inst && res.isConnected) { | ||
inst.flushLogs(); | ||
@@ -173,0 +176,0 @@ } |
{ | ||
"name": "@wiredcraft/miniprogram-wiredsentry", | ||
"version": "0.4.0-dev.2", | ||
"version": "0.4.0-dev.3", | ||
"description": "Custom Sentry client for wechat miniprograms", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
215581
5952