namirasoft-core
Advanced tools
Comparing version 1.0.12 to 1.0.13
export declare class PackageService { | ||
static get(path: string): PackageService | null; | ||
static getMain(): PackageService | null; | ||
static getThis(): PackageService | null; | ||
static get(path: string): PackageService; | ||
static getMain(): PackageService; | ||
static getThis(): PackageService; | ||
private json; | ||
@@ -6,0 +6,0 @@ constructor(json: any); |
@@ -16,3 +16,3 @@ "use strict"; | ||
} | ||
return null; | ||
throw new Error("Coundn't find package"); | ||
} | ||
@@ -23,3 +23,3 @@ static getMain() { | ||
return this.get(paths[paths.length - 1]); | ||
return null; | ||
throw new Error("Coundn't find package"); | ||
} | ||
@@ -30,3 +30,3 @@ static getThis() { | ||
return this.get(paths[0]); | ||
return null; | ||
throw new Error("Coundn't find package"); | ||
} | ||
@@ -33,0 +33,0 @@ constructor(json) { |
{ | ||
"name": "namirasoft-core", | ||
"description": "Namira Software Corporation Core NPM Package", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"main": "./dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "./dist/index.d.ts", |
@@ -6,3 +6,3 @@ import fs from "fs"; | ||
{ | ||
static get(path: string): PackageService | null | ||
static get(path: string): PackageService | ||
{ | ||
@@ -15,5 +15,5 @@ if (path) | ||
} | ||
return null; | ||
throw new Error("Coundn't find package"); | ||
} | ||
static getMain(): PackageService | null | ||
static getMain(): PackageService | ||
{ | ||
@@ -23,5 +23,5 @@ const paths = FindUp('package.json'); | ||
return this.get(paths[paths.length - 1]); | ||
return null; | ||
throw new Error("Coundn't find package"); | ||
} | ||
static getThis(): PackageService | null | ||
static getThis(): PackageService | ||
{ | ||
@@ -31,3 +31,3 @@ const paths = FindUp('package.json'); | ||
return this.get(paths[0]); | ||
return null; | ||
throw new Error("Coundn't find package"); | ||
} | ||
@@ -34,0 +34,0 @@ private json: any; |
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
220915