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