namirasoft-core
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -8,2 +8,3 @@ "use strict"; | ||
const fs_1 = __importDefault(require("fs")); | ||
const FindUp_1 = require("./FindUp"); | ||
class PackageService { | ||
@@ -19,11 +20,11 @@ static get(path) { | ||
static getMain() { | ||
// const paths = findUp.findUpSync('package.json'); | ||
// if (paths) | ||
// return this.get(paths[0]); | ||
const paths = (0, FindUp_1.FindUp)('package.json'); | ||
if (paths) | ||
return this.get(paths[0]); | ||
return null; | ||
} | ||
static getThis() { | ||
// const paths = findUp.findUpSync('package.json'); | ||
// if (paths) | ||
// return this.get(paths[paths.length - 1]); | ||
const paths = (0, FindUp_1.FindUp)('package.json'); | ||
if (paths) | ||
return this.get(paths[paths.length - 1]); | ||
return null; | ||
@@ -30,0 +31,0 @@ } |
{ | ||
"name": "namirasoft-core", | ||
"description": "Namira Software Corporation Core NPM Package", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"main": "./dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "./dist/index.d.ts", |
import fs from "fs"; | ||
import { FindUp } from "./FindUp"; | ||
@@ -17,5 +18,5 @@ export class PackageService | ||
{ | ||
// const paths = findUp.findUpSync('package.json'); | ||
// if (paths) | ||
// return this.get(paths[0]); | ||
const paths = FindUp('package.json'); | ||
if (paths) | ||
return this.get(paths[0]); | ||
return null; | ||
@@ -25,5 +26,5 @@ } | ||
{ | ||
// const paths = findUp.findUpSync('package.json'); | ||
// if (paths) | ||
// return this.get(paths[paths.length - 1]); | ||
const paths = FindUp('package.json'); | ||
if (paths) | ||
return this.get(paths[paths.length - 1]); | ||
return null; | ||
@@ -30,0 +31,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
220955
94
3215
3