namirasoft-core
Advanced tools
Comparing version 1.3.12 to 1.3.13
export declare class PackageService { | ||
static MainJson: any; | ||
static ThisJson: any; | ||
static get(path: string): PackageService; | ||
@@ -3,0 +5,0 @@ static getMain(): PackageService; |
@@ -18,2 +18,4 @@ "use strict"; | ||
static getMain() { | ||
if (PackageService.MainJson) | ||
return new PackageService("", PackageService.MainJson); | ||
const paths = FileOperation_1.FileOperation.findUp('package.json'); | ||
@@ -25,2 +27,4 @@ if (paths) | ||
static getThis() { | ||
if (PackageService.ThisJson) | ||
return new PackageService("", PackageService.ThisJson); | ||
const paths = FileOperation_1.FileOperation.findUp('package.json'); | ||
@@ -61,2 +65,4 @@ if (paths) | ||
exports.PackageService = PackageService; | ||
PackageService.MainJson = null; | ||
PackageService.ThisJson = null; | ||
//# sourceMappingURL=PackageService.js.map |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.3.12", | ||
"version": "1.3.13", | ||
"main": "./dist/index.js", | ||
@@ -14,0 +14,0 @@ "types": "./dist/index.d.ts", |
@@ -8,2 +8,4 @@ let fs: any; | ||
{ | ||
static MainJson: any = null; | ||
static ThisJson: any = null; | ||
static get(path: string): PackageService | ||
@@ -21,2 +23,4 @@ { | ||
{ | ||
if (PackageService.MainJson) | ||
return new PackageService("", PackageService.MainJson); | ||
const paths = FileOperation.findUp('package.json'); | ||
@@ -29,2 +33,4 @@ if (paths) | ||
{ | ||
if (PackageService.ThisJson) | ||
return new PackageService("", PackageService.ThisJson); | ||
const paths = FileOperation.findUp('package.json'); | ||
@@ -31,0 +37,0 @@ if (paths) |
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
301333
3673