namirasoft-core 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/PackageService.js
CHANGED
|
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PackageService = void 0;
|
|
7
|
-
let findUp = require("find-up");
|
|
8
7
|
const fs_1 = __importDefault(require("fs"));
|
|
9
8
|
class PackageService {
|
|
10
9
|
static get(path) {
|
|
@@ -16,15 +15,15 @@ class PackageService {
|
|
|
16
15
|
return null;
|
|
17
16
|
}
|
|
18
17
|
static getMain() {
|
|
19
|
-
const paths = findUp.findUpSync('package.json');
|
|
20
|
-
if (paths)
|
|
21
|
-
|
|
18
|
+
// const paths = findUp.findUpSync('package.json');
|
|
19
|
+
// if (paths)
|
|
20
|
+
// return this.get(paths[0]);
|
|
22
21
|
return null;
|
|
23
22
|
}
|
|
24
23
|
static getThis() {
|
|
25
|
-
const paths = findUp.findUpSync('package.json');
|
|
26
|
-
if (paths)
|
|
27
|
-
|
|
24
|
+
// const paths = findUp.findUpSync('package.json');
|
|
25
|
+
// if (paths)
|
|
26
|
+
// return this.get(paths[paths.length - 1]);
|
|
28
27
|
return null;
|
|
29
28
|
}
|
|
30
29
|
constructor(json) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageService.js","sourceRoot":"","sources":["../src/PackageService.ts"],"names":[],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"PackageService.js","sourceRoot":"","sources":["../src/PackageService.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AAEpB,MAAa,cAAc;IAEvB,MAAM,CAAC,GAAG,CAAC,IAAY;QAEnB,IAAI,IAAI,EACR;YACI,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,YAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;YACvD,IAAI,IAAI;gBACJ,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;SACvC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,MAAM,CAAC,OAAO;QAEV,mDAAmD;QACnD,aAAa;QACb,iCAAiC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,MAAM,CAAC,OAAO;QAEV,mDAAmD;QACnD,aAAa;QACb,gDAAgD;QAChD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,YAAY,IAAS;QAEjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IACD,OAAO;QAEH,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;IAC1B,CAAC;IACD,QAAQ;QAEJ,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;IAC3B,CAAC;IACD,cAAc;QAEV,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;IACjC,CAAC;IACD,OAAO;QAEH,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;IAC1B,CAAC;IACD,OAAO;QAEH,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;IAC1B,CAAC;IACD,UAAU;QAEN,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;IAC7B,CAAC;CACJ;AAvDD,wCAuDC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "namirasoft-core",
|
|
3
3
|
"description": "Namira Software Corporation Core NPM Package",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.8",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"scripts": {},
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@types/md5": "^2.3.5",
|
|
12
12
|
"axios": "^1.6.0",
|
|
13
|
-
"find-up": "^6.3.0",
|
|
14
13
|
"md5": "^2.3.0",
|
|
15
14
|
"moment": "^2.29.4",
|
|
16
15
|
"phone": "^3.1.41"
|
package/src/PackageService.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
let findUp = require("find-up");
|
|
2
1
|
import fs from "fs";
|
|
3
2
|
|
|
4
3
|
export class PackageService
|
|
@@ -15,16 +14,16 @@ export class PackageService
|
|
|
15
14
|
}
|
|
16
15
|
static getMain(): PackageService | null
|
|
17
16
|
{
|
|
18
|
-
const paths = findUp.findUpSync('package.json');
|
|
19
|
-
if (paths)
|
|
20
|
-
|
|
17
|
+
// const paths = findUp.findUpSync('package.json');
|
|
18
|
+
// if (paths)
|
|
19
|
+
// return this.get(paths[0]);
|
|
21
20
|
return null;
|
|
22
21
|
}
|
|
23
22
|
static getThis(): PackageService | null
|
|
24
23
|
{
|
|
25
|
-
const paths = findUp.findUpSync('package.json');
|
|
26
|
-
if (paths)
|
|
27
|
-
|
|
24
|
+
// const paths = findUp.findUpSync('package.json');
|
|
25
|
+
// if (paths)
|
|
26
|
+
// return this.get(paths[paths.length - 1]);
|
|
28
27
|
return null;
|
|
29
28
|
}
|
|
30
29
|
private json: any;
|