namirasoft-core
Advanced tools
Comparing version 1.3.14 to 1.3.15
@@ -12,9 +12,11 @@ "use strict"; | ||
checkMandatory(value) { | ||
if (this.mandatory) | ||
if (value == null || value == undefined) | ||
this.onMandatoryError(); | ||
if (!process.env.NAMIRASOFT_MUTE) | ||
if (this.mandatory) | ||
if (value == null || value == undefined) | ||
this.onMandatoryError(); | ||
return value; | ||
} | ||
onMandatoryError() { | ||
ErrorOperation_1.ErrorOperation.throwHTTP(500, "Object value can not be converted."); | ||
if (!process.env.NAMIRASOFT_MUTE) | ||
ErrorOperation_1.ErrorOperation.throwHTTP(500, "Object value can not be converted."); | ||
} | ||
@@ -21,0 +23,0 @@ getString(_default = "") { |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.3.14", | ||
"version": "1.3.15", | ||
"main": "./dist/index.js", | ||
@@ -21,3 +21,3 @@ "types": "./dist/index.d.ts", | ||
"dependencies": { | ||
"@types/node": "^20.11.30", | ||
"@types/node": "^20.12.2", | ||
"axios": "^1.6.8", | ||
@@ -24,0 +24,0 @@ "moment": "^2.30.1", |
@@ -15,5 +15,6 @@ import { ErrorOperation } from "./ErrorOperation"; | ||
{ | ||
if (this.mandatory) | ||
if (value == null || value == undefined) | ||
this.onMandatoryError(); | ||
if (!process.env.NAMIRASOFT_MUTE) | ||
if (this.mandatory) | ||
if (value == null || value == undefined) | ||
this.onMandatoryError(); | ||
return value; | ||
@@ -23,3 +24,4 @@ } | ||
{ | ||
ErrorOperation.throwHTTP(500, "Object value can not be converted."); | ||
if (!process.env.NAMIRASOFT_MUTE) | ||
ErrorOperation.throwHTTP(500, "Object value can not be converted."); | ||
} | ||
@@ -26,0 +28,0 @@ getString(_default: string = ""): string |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
303193
3709
5
Updated@types/node@^20.12.2