namirasoft-core
Advanced tools
Comparing version 1.3.41 to 1.3.42
@@ -25,3 +25,4 @@ "use strict"; | ||
try { | ||
return (_a = EncodingOperation_1.EncodingOperation.Base64Decode(this.getAll()[name])) !== null && _a !== void 0 ? _a : defaultValue; | ||
let all = this.getAll(); | ||
return (_a = EncodingOperation_1.EncodingOperation.Base64Decode(all[name])) !== null && _a !== void 0 ? _a : defaultValue; | ||
} | ||
@@ -28,0 +29,0 @@ catch (error) { |
@@ -40,3 +40,4 @@ export declare class NamingConvention { | ||
constructor(name: string, delimiter: string, formatter: (word: string, index: number) => string, splitter: (name: string, delimiter: string) => string[]); | ||
getWords(name: string): string[]; | ||
convert(name: string, to: NamingConvention): string; | ||
} |
@@ -11,4 +11,7 @@ "use strict"; | ||
} | ||
getWords(name) { | ||
return this.splitter(name, this.delimiter); | ||
} | ||
convert(name, to) { | ||
let words = name.split(this.delimiter); | ||
let words = this.getWords(name); | ||
words = words.filter(w => w); | ||
@@ -15,0 +18,0 @@ for (let i = 0; i < words.length; i++) |
{ | ||
"name": "namirasoft-core", | ||
"title": "Namirasoft Core", | ||
"title": "Namirasoft Core NPM Package", | ||
"description": "Namira Software Corporation Core NPM Package", | ||
@@ -11,3 +11,3 @@ "icon": "logo.png", | ||
"private": false, | ||
"version": "1.3.41", | ||
"version": "1.3.42", | ||
"author": "Amir Abolhasani", | ||
@@ -21,3 +21,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@types/node": "^20.12.12", | ||
"@types/node": "^20.13.0", | ||
"axios": "^1.7.2", | ||
@@ -24,0 +24,0 @@ "moment": "^2.30.1", |
@@ -29,3 +29,4 @@ import { EncodingOperation } from "./EncodingOperation"; | ||
{ | ||
return EncodingOperation.Base64Decode(this.getAll()[name]) ?? defaultValue; | ||
let all = this.getAll(); | ||
return EncodingOperation.Base64Decode(all[name]) ?? defaultValue; | ||
} catch (error) | ||
@@ -32,0 +33,0 @@ { |
@@ -85,5 +85,9 @@ export class NamingConvention | ||
} | ||
getWords(name: string) | ||
{ | ||
return this.splitter(name, this.delimiter); | ||
} | ||
convert(name: string, to: NamingConvention) | ||
{ | ||
let words = name.split(this.delimiter); | ||
let words = this.getWords(name); | ||
words = words.filter(w => w); | ||
@@ -90,0 +94,0 @@ for (let i = 0; i < words.length; i++) |
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
350189
4406
Updated@types/node@^20.13.0