corexxx 1.0.16 → 1.0.17

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/index.d.ts CHANGED
@@ -3,7 +3,6 @@ export * from "./dcolors";
3
3
  export * from "./dconverter";
4
4
  export * from "./dcookie";
5
5
  export * from "./ddebug";
6
- export * from "./dfile";
7
6
  export * from "./dlog";
8
7
  export * from "./dnetwork";
9
8
  export * from "./drandom";
@@ -11,3 +10,4 @@ export * from "./dtime";
11
10
  export * from "./dtypes";
12
11
  export * from "./dutils";
13
12
  export * from "./dvalidation";
13
+ export * from "./yahoofin";
package/dist/index.js CHANGED
@@ -16,7 +16,6 @@ __exportStar(require("./dcolors"), exports);
16
16
  __exportStar(require("./dconverter"), exports);
17
17
  __exportStar(require("./dcookie"), exports);
18
18
  __exportStar(require("./ddebug"), exports);
19
- __exportStar(require("./dfile"), exports);
20
19
  __exportStar(require("./dlog"), exports);
21
20
  __exportStar(require("./dnetwork"), exports);
22
21
  __exportStar(require("./drandom"), exports);
@@ -24,4 +23,5 @@ __exportStar(require("./dtime"), exports);
24
23
  __exportStar(require("./dtypes"), exports);
25
24
  __exportStar(require("./dutils"), exports);
26
25
  __exportStar(require("./dvalidation"), exports);
26
+ __exportStar(require("./yahoofin"), exports);
27
27
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA8C;AAC9C,4CAA0B;AAC1B,4CAA0B;AAC1B,+CAA6B;AAC7B,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,yCAAuB;AACvB,6CAA2B;AAC3B,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA8C;AAC9C,4CAA0B;AAC1B,4CAA0B;AAC1B,+CAA6B;AAC7B,4CAA0B;AAC1B,2CAAyB;AACzB,yCAAuB;AACvB,6CAA2B;AAC3B,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,gDAA8B;AAC9B,6CAA2B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corexxx",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -4,7 +4,6 @@ export * from "./dcolors";
4
4
  export * from "./dconverter";
5
5
  export * from "./dcookie";
6
6
  export * from "./ddebug";
7
- export * from "./dfile";
8
7
  export * from "./dlog";
9
8
  export * from "./dnetwork";
10
9
  export * from "./drandom";
@@ -12,3 +11,4 @@ export * from "./dtime";
12
11
  export * from "./dtypes";
13
12
  export * from "./dutils";
14
13
  export * from "./dvalidation";
14
+ export * from "./yahoofin";
package/src/dfile.ts DELETED
@@ -1,26 +0,0 @@
1
- import fs from "fs";
2
- import { dlog } from "./dlog";
3
- import { TObject } from "./dtypes";
4
-
5
- const fsPromises = fs.promises;
6
-
7
- export namespace dfile {
8
- // We remove c like comments from the config file
9
- export function readConfigFile(path: string): TObject {
10
- var data = fs.readFileSync(path, "utf8");
11
- // remove comments https://stackoverflow.com/questions/37051797/remove-comments-from-string-with-javascript-using-javascript
12
- data = data.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g, "");
13
- return JSON.parse(data);
14
- }
15
- // load file async
16
- export async function loadFile(path: string): Promise<string> {
17
- console.log(path);
18
- try {
19
- let res = await fsPromises.readFile(path);
20
- return res.toString();
21
- } catch (e) {
22
- dlog.ex(e as Error);
23
- return "not able to read file:" + path + e;
24
- }
25
- }
26
- }