namirasoft-core
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -5,4 +5,6 @@ export declare class PackageService { | ||
static getThis(): PackageService; | ||
private path; | ||
private json; | ||
constructor(json: any); | ||
constructor(path: string, json: any); | ||
getPath(): string; | ||
getName(): string; | ||
@@ -9,0 +11,0 @@ getTitle(): string; |
@@ -14,3 +14,3 @@ "use strict"; | ||
if (json) | ||
return new PackageService(json); | ||
return new PackageService(path, json); | ||
} | ||
@@ -31,5 +31,9 @@ throw new Error("Coundn't find package"); | ||
} | ||
constructor(json) { | ||
constructor(path, json) { | ||
this.json = json; | ||
this.path = path; | ||
} | ||
getPath() { | ||
return this.path; | ||
} | ||
getName() { | ||
@@ -36,0 +40,0 @@ return this.json.name; |
{ | ||
"name": "namirasoft-core", | ||
"description": "Namira Software Corporation Core NPM Package", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"main": "./dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "./dist/index.d.ts", |
@@ -12,3 +12,3 @@ import fs from "fs"; | ||
if (json) | ||
return new PackageService(json); | ||
return new PackageService(path, json); | ||
} | ||
@@ -31,7 +31,13 @@ throw new Error("Coundn't find package"); | ||
} | ||
private path: string; | ||
private json: any; | ||
constructor(json: any) | ||
constructor(path: string, json: any) | ||
{ | ||
this.json = json; | ||
this.path = path; | ||
} | ||
getPath(): string | ||
{ | ||
return this.path; | ||
} | ||
getName(): string | ||
@@ -38,0 +44,0 @@ { |
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
226672
3345