namirasoft-core
Advanced tools
Comparing version 1.2.4 to 1.2.5
export declare abstract class ConvertService { | ||
repair: boolean; | ||
private mandatory; | ||
@@ -3,0 +4,0 @@ constructor(mandatory?: boolean); |
@@ -5,4 +5,6 @@ "use strict"; | ||
const ErrorOperation_1 = require("./ErrorOperation"); | ||
const StringOperation_1 = require("./StringOperation"); | ||
class ConvertService { | ||
constructor(mandatory = false) { | ||
this.repair = true; | ||
this.mandatory = mandatory; | ||
@@ -21,3 +23,6 @@ } | ||
var _a; | ||
return (_a = this.checkMandatory(this.getNullString())) !== null && _a !== void 0 ? _a : _default; | ||
let ans = (_a = this.checkMandatory(this.getNullString())) !== null && _a !== void 0 ? _a : _default; | ||
if (this.repair) | ||
ans = StringOperation_1.StringOperation.repair(ans); | ||
return ans; | ||
} | ||
@@ -24,0 +29,0 @@ getNullInt() { |
{ | ||
"name": "namirasoft-core", | ||
"description": "Namira Software Corporation Core NPM Package", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"main": "./dist/index.js", | ||
@@ -12,8 +12,8 @@ "types": "./dist/index.d.ts", | ||
"@types/md5": "^2.3.5", | ||
"@types/node": "^20.10.3", | ||
"axios": "^1.6.2", | ||
"@types/node": "^20.10.6", | ||
"axios": "^1.6.3", | ||
"md5": "^2.3.0", | ||
"moment": "^2.29.4", | ||
"phone": "^3.1.41" | ||
"moment": "^2.30.1", | ||
"phone": "^3.1.42" | ||
} | ||
} |
import { ErrorOperation } from "./ErrorOperation"; | ||
import { StringOperation } from "./StringOperation"; | ||
export abstract class ConvertService | ||
{ | ||
repair: boolean = true; | ||
private mandatory: boolean; | ||
@@ -24,3 +26,6 @@ constructor(mandatory: boolean = false) | ||
{ | ||
return this.checkMandatory(this.getNullString()) ?? _default; | ||
let ans = this.checkMandatory(this.getNullString()) ?? _default; | ||
if (this.repair) | ||
ans = StringOperation.repair(ans); | ||
return ans; | ||
} | ||
@@ -27,0 +32,0 @@ getNullInt(): number | null |
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
226381
3343
Updated@types/node@^20.10.6
Updatedaxios@^1.6.3
Updatedmoment@^2.30.1
Updatedphone@^3.1.42