@lcap/nasl-sentry
Advanced tools
Comparing version 3.9.0-beta.26 to 3.9.0-beta.27
@@ -8,2 +8,3 @@ "use strict"; | ||
const axios_1 = __importDefault(require("axios")); | ||
const nasl_utils_1 = require("@lcap/nasl-utils"); | ||
exports.CONSTRUCTOR_HOOK = 'constructor'; | ||
@@ -17,3 +18,3 @@ exports.BEFORE_HOOK = 'before'; | ||
exports.getAxios = getAxios; | ||
const developing = process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'testing'; | ||
const needIgnore = nasl_utils_1.isNode || process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'testing'; | ||
const flag = '__monitor__'; | ||
@@ -25,3 +26,3 @@ const passthroughProperties = ['constructor', 'concept', 'getAncestor']; | ||
const isUsefulProperty = (SourceClass) => (property) => { | ||
if (developing) { | ||
if (needIgnore) { | ||
return; | ||
@@ -62,3 +63,3 @@ } | ||
const monitor = (key, SourceClass, TargetClass) => (name) => { | ||
if (developing) { | ||
if (needIgnore) { | ||
return SourceClass; | ||
@@ -107,3 +108,3 @@ } | ||
const sentryMonitor = (key) => (SourceClass) => { | ||
if (developing) { | ||
if (needIgnore) { | ||
return SourceClass; | ||
@@ -135,3 +136,3 @@ } | ||
const extendSentryMonitor = (key) => (SourceClass) => { | ||
if (developing) { | ||
if (needIgnore) { | ||
return SourceClass; | ||
@@ -138,0 +139,0 @@ } |
{ | ||
"name": "@lcap/nasl-sentry", | ||
"description": "NetEase Application Specific Language", | ||
"version": "3.9.0-beta.26", | ||
"version": "3.9.0-beta.27", | ||
"author": "Forrest <rainforest92@126.com>", | ||
@@ -20,3 +20,4 @@ "main": "./out", | ||
"typescript": "5.4.4", | ||
"@lcap/nasl-tsconfig": "1.0.1" | ||
"@lcap/nasl-tsconfig": "1.0.1", | ||
"@lcap/nasl-utils": "3.9.0-beta.27" | ||
}, | ||
@@ -23,0 +24,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
15828
192
6