namirasoft-core
Advanced tools
Comparing version 1.3.39 to 1.3.40
@@ -23,3 +23,8 @@ "use strict"; | ||
var _a; | ||
return (_a = EncodingOperation_1.EncodingOperation.Base64Decode(this.getAll()[name])) !== null && _a !== void 0 ? _a : defaultValue; | ||
try { | ||
return (_a = EncodingOperation_1.EncodingOperation.Base64Decode(this.getAll()[name])) !== null && _a !== void 0 ? _a : defaultValue; | ||
} | ||
catch (error) { | ||
return defaultValue; | ||
} | ||
} | ||
@@ -26,0 +31,0 @@ set(name, value) { |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.3.39", | ||
"version": "1.3.40", | ||
"author": "Amir Abolhasani", | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
@@ -25,3 +25,9 @@ import { EncodingOperation } from "./EncodingOperation"; | ||
{ | ||
return EncodingOperation.Base64Decode(this.getAll()[name]) ?? defaultValue; | ||
try | ||
{ | ||
return EncodingOperation.Base64Decode(this.getAll()[name]) ?? defaultValue; | ||
} catch (error) | ||
{ | ||
return defaultValue; | ||
} | ||
} | ||
@@ -28,0 +34,0 @@ override set(name: string, value: 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
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
349491
4392