namirasoft-core
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -8,3 +8,3 @@ "use strict"; | ||
const fs_1 = __importDefault(require("fs")); | ||
const FindUp_1 = require("./FindUp"); | ||
const FileOperation_1 = require("./FileOperation"); | ||
class PackageService { | ||
@@ -20,3 +20,3 @@ static get(path) { | ||
static getMain() { | ||
const paths = (0, FindUp_1.FindUp)('package.json'); | ||
const paths = FileOperation_1.FileOperation.findUp('package.json'); | ||
if (paths) | ||
@@ -27,3 +27,3 @@ return this.get(paths[paths.length - 1]); | ||
static getThis() { | ||
const paths = (0, FindUp_1.FindUp)('package.json'); | ||
const paths = FileOperation_1.FileOperation.findUp('package.json'); | ||
if (paths) | ||
@@ -30,0 +30,0 @@ return this.get(paths[0]); |
{ | ||
"name": "namirasoft-core", | ||
"description": "Namira Software Corporation Core NPM Package", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"main": "./dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "./dist/index.d.ts", |
import fs from "fs"; | ||
import { FindUp } from "./FindUp"; | ||
import { FileOperation } from "./FileOperation"; | ||
@@ -18,3 +18,3 @@ export class PackageService | ||
{ | ||
const paths = FindUp('package.json'); | ||
const paths = FileOperation.findUp('package.json'); | ||
if (paths) | ||
@@ -26,3 +26,3 @@ return this.get(paths[paths.length - 1]); | ||
{ | ||
const paths = FindUp('package.json'); | ||
const paths = FileOperation.findUp('package.json'); | ||
if (paths) | ||
@@ -29,0 +29,0 @@ return this.get(paths[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
225156
3305