backlib 0.5.2-SNAPSHOT.6 → 0.5.2-SNAPSHOT.9
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/log-file-writer.js +1 -17
- package/dist/log-file-writer.js.map +1 -1
- package/dist/log.js +0 -2
- package/dist/log.js.map +1 -1
- package/package.json +1 -1
- package/src/log-file-writer.ts +1 -17
- package/src/log.ts +0 -2
package/dist/log-file-writer.js
CHANGED
|
@@ -19,11 +19,8 @@ export class FileWriter {
|
|
|
19
19
|
}
|
|
20
20
|
async init() {
|
|
21
21
|
if (!this._init) {
|
|
22
|
-
console.log('->> init - 11');
|
|
23
22
|
await mkdir(this.dir, { recursive: true });
|
|
24
|
-
console.log('->> init - 22');
|
|
25
23
|
await this.rev();
|
|
26
|
-
console.log('->> init - 33');
|
|
27
24
|
this._init = true;
|
|
28
25
|
}
|
|
29
26
|
}
|
|
@@ -35,33 +32,26 @@ export class FileWriter {
|
|
|
35
32
|
this.filePath = undefined;
|
|
36
33
|
this.fileHandle = undefined;
|
|
37
34
|
// -- CREATE the new file
|
|
38
|
-
console.log('->> rev - 11');
|
|
39
35
|
const fileName = this.fileNameProvider(this._rev);
|
|
40
36
|
this.filePath = Path.join(this.dir, fileName);
|
|
41
37
|
// create and add the content Sync to make sure header is always first
|
|
42
38
|
let fd = openSync(this.filePath, 'a');
|
|
43
|
-
console.log('->> rev - 22');
|
|
44
39
|
let fileHeader = this.fileHeaderProvider();
|
|
45
40
|
if (fileHeader != null) {
|
|
46
|
-
appendFileSync(fd, fileHeader);
|
|
47
|
-
console.log('->> rev - 33');
|
|
41
|
+
appendFileSync(fd, fileHeader + '\n');
|
|
48
42
|
}
|
|
49
43
|
else {
|
|
50
44
|
// make sure it is created (might not be needed)
|
|
51
45
|
appendFileSync(fd, '');
|
|
52
|
-
console.log('->> rev - 44');
|
|
53
46
|
}
|
|
54
47
|
// -- CREATE the file handler
|
|
55
48
|
this.fileHandle = await open(this.filePath, 'a');
|
|
56
|
-
console.log('->> rev - 55');
|
|
57
49
|
}
|
|
58
50
|
/** IMPLEMENTATION of the FileWriter interface */
|
|
59
51
|
async writeRec(rec) {
|
|
60
|
-
console.log('->> writeRec - 11');
|
|
61
52
|
if (!this._init) {
|
|
62
53
|
await this.init();
|
|
63
54
|
}
|
|
64
|
-
console.log('->> writeRec - 22');
|
|
65
55
|
if (this.fileHandle == null) {
|
|
66
56
|
console.log(`BACKLIB ERROR - FileHandle for log file not ready yet ${this.filePath}`);
|
|
67
57
|
return;
|
|
@@ -69,17 +59,13 @@ export class FileWriter {
|
|
|
69
59
|
const str = this.recordSerializer(rec);
|
|
70
60
|
if (str != null) {
|
|
71
61
|
const strWithNl = str + '\n'; // add the new line
|
|
72
|
-
console.log('->> writeRec - 33');
|
|
73
62
|
await appendFile(this.fileHandle, strWithNl);
|
|
74
|
-
console.log('->> writeRec - 44');
|
|
75
63
|
}
|
|
76
64
|
// add count
|
|
77
65
|
this.count = this.count + 1;
|
|
78
66
|
// if we are above the count, we upload
|
|
79
67
|
if (this.count > this.maxCount) {
|
|
80
|
-
console.log('->> writeRec - 55');
|
|
81
68
|
await this.endFile();
|
|
82
|
-
console.log('->> writeRec - 66');
|
|
83
69
|
}
|
|
84
70
|
// if still below the count, but do not have this.nextUpload, schedule one
|
|
85
71
|
else if (this.nextUpload === null) {
|
|
@@ -89,9 +75,7 @@ export class FileWriter {
|
|
|
89
75
|
setTimeout(async () => {
|
|
90
76
|
// perform only if this.nextUpload match the scheduled nextUpload (otherwise, was already processed and this schedule is outdated)
|
|
91
77
|
if (this.nextUpload === nextUpload) {
|
|
92
|
-
console.log('->> writeRec - 77');
|
|
93
78
|
await this.endFile();
|
|
94
|
-
console.log('->> writeRec - 88');
|
|
95
79
|
}
|
|
96
80
|
}, maxTimeMs);
|
|
97
81
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-file-writer.js","sourceRoot":"","sources":["../src/log-file-writer.ts"],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,CAAC,GAAG,CAAC,2DAA2D,IAAI,2BAA2B,CAAC,CAAC;aACzG;SAEF;QACD,kDAAkD;QAClD,OAAO,EAAO,EAAE;YACd,OAAO,CAAC,GAAG,CAAC,uEAAuE,IAAI,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;YAC1G,MAAM,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,QAAQ,CAAC,CAAC;SACrC;QAED,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QACf,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;IACzB,CAAC;CAEF;AAED,yBAAyB;AAEzB,SAAS,iBAAiB,CAAI,GAAM;IAClC,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;AACnD,CAAC;AAED,SAAS,yBAAyB;IAChC,kCAAkC;IAClC,OAAO,IAAI,CAAC;IAEZ,0DAA0D;AAC5D,CAAC;AAED,SAAS,uBAAuB,CAAC,GAAW;IAC1C,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1E,MAAM,MAAM,GAAG,GAAG,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IACzC,OAAO,YAAY,IAAI,IAAI,MAAM,MAAM,CAAC;AAC1C,CAAC"}
|
package/dist/log.js
CHANGED
|
@@ -23,9 +23,7 @@ export class BaseLog {
|
|
|
23
23
|
for (const writer of __classPrivateFieldGet(this, _BaseLog_logWriters, "f")) {
|
|
24
24
|
if (writer.writeRec) {
|
|
25
25
|
try {
|
|
26
|
-
console.log('->> baseLog.log 11');
|
|
27
26
|
await writer.writeRec(rec);
|
|
28
|
-
console.log('->> baseLog.log 22');
|
|
29
27
|
}
|
|
30
28
|
catch (ex) {
|
|
31
29
|
// here log console.log, no choise
|
package/dist/log.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","sourceRoot":"","sources":["../src/log.ts"],"names":[],"mappings":"AACA,yFAAyF;;;;;;;;;;;;;AAQzF;;GAEG;AACH,MAAM,OAAO,OAAO;IAGnB,YAAY,IAAmB;QAF/B,8BAA8B,EAAE,EAAC;QAGhC,uBAAA,IAAI,uBAAe,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAA,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,GAAM;QAEf,KAAK,MAAM,MAAM,IAAI,uBAAA,IAAI,2BAAY,EAAE;YACtC,IAAI,MAAM,CAAC,QAAQ,EAAE;gBACpB,IAAI;oBACH,
|
|
1
|
+
{"version":3,"file":"log.js","sourceRoot":"","sources":["../src/log.ts"],"names":[],"mappings":"AACA,yFAAyF;;;;;;;;;;;;;AAQzF;;GAEG;AACH,MAAM,OAAO,OAAO;IAGnB,YAAY,IAAmB;QAF/B,8BAA8B,EAAE,EAAC;QAGhC,uBAAA,IAAI,uBAAe,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAA,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,GAAM;QAEf,KAAK,MAAM,MAAM,IAAI,uBAAA,IAAI,2BAAY,EAAE;YACtC,IAAI,MAAM,CAAC,QAAQ,EAAE;gBACpB,IAAI;oBACH,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;iBAC3B;gBAAC,OAAO,EAAE,EAAE;oBACZ,kCAAkC;oBAElC,OAAO,CAAC,GAAG,CAAC,sEAAsE,MAAM,KAAK,EAAE,EAAE,CAAC,CAAC;iBACnG;aACD;SACD;IAEF,CAAC;CAED"}
|
package/package.json
CHANGED
package/src/log-file-writer.ts
CHANGED
|
@@ -62,11 +62,8 @@ export class FileWriter<R> implements LogWriter<R> {
|
|
|
62
62
|
|
|
63
63
|
private async init() {
|
|
64
64
|
if (!this._init) {
|
|
65
|
-
console.log('->> init - 11',);
|
|
66
65
|
await mkdir(this.dir, { recursive: true });
|
|
67
|
-
console.log('->> init - 22',);
|
|
68
66
|
await this.rev();
|
|
69
|
-
console.log('->> init - 33',);
|
|
70
67
|
this._init = true;
|
|
71
68
|
}
|
|
72
69
|
}
|
|
@@ -81,36 +78,29 @@ export class FileWriter<R> implements LogWriter<R> {
|
|
|
81
78
|
this.fileHandle = undefined;
|
|
82
79
|
|
|
83
80
|
// -- CREATE the new file
|
|
84
|
-
console.log('->> rev - 11',);
|
|
85
81
|
const fileName = this.fileNameProvider(this._rev);
|
|
86
82
|
this.filePath = Path.join(this.dir, fileName);
|
|
87
83
|
|
|
88
84
|
// create and add the content Sync to make sure header is always first
|
|
89
85
|
let fd = openSync(this.filePath, 'a');
|
|
90
|
-
console.log('->> rev - 22',);
|
|
91
86
|
let fileHeader = this.fileHeaderProvider();
|
|
92
87
|
if (fileHeader != null) {
|
|
93
|
-
appendFileSync(fd, fileHeader);
|
|
94
|
-
console.log('->> rev - 33',);
|
|
88
|
+
appendFileSync(fd, fileHeader + '\n');
|
|
95
89
|
} else {
|
|
96
90
|
// make sure it is created (might not be needed)
|
|
97
91
|
appendFileSync(fd, '');
|
|
98
|
-
console.log('->> rev - 44',);
|
|
99
92
|
}
|
|
100
93
|
|
|
101
94
|
// -- CREATE the file handler
|
|
102
95
|
this.fileHandle = await open(this.filePath, 'a');
|
|
103
|
-
console.log('->> rev - 55',);
|
|
104
96
|
}
|
|
105
97
|
|
|
106
98
|
|
|
107
99
|
/** IMPLEMENTATION of the FileWriter interface */
|
|
108
100
|
async writeRec(rec: R) {
|
|
109
|
-
console.log('->> writeRec - 11',);
|
|
110
101
|
if (!this._init) {
|
|
111
102
|
await this.init();
|
|
112
103
|
}
|
|
113
|
-
console.log('->> writeRec - 22',);
|
|
114
104
|
|
|
115
105
|
if (this.fileHandle == null) {
|
|
116
106
|
console.log(`BACKLIB ERROR - FileHandle for log file not ready yet ${this.filePath}`);
|
|
@@ -120,9 +110,7 @@ export class FileWriter<R> implements LogWriter<R> {
|
|
|
120
110
|
const str = this.recordSerializer(rec);
|
|
121
111
|
if (str != null) {
|
|
122
112
|
const strWithNl = str + '\n'; // add the new line
|
|
123
|
-
console.log('->> writeRec - 33',);
|
|
124
113
|
await appendFile(this.fileHandle!, strWithNl);
|
|
125
|
-
console.log('->> writeRec - 44',);
|
|
126
114
|
}
|
|
127
115
|
|
|
128
116
|
// add count
|
|
@@ -130,9 +118,7 @@ export class FileWriter<R> implements LogWriter<R> {
|
|
|
130
118
|
|
|
131
119
|
// if we are above the count, we upload
|
|
132
120
|
if (this.count > this.maxCount) {
|
|
133
|
-
console.log('->> writeRec - 55',);
|
|
134
121
|
await this.endFile();
|
|
135
|
-
console.log('->> writeRec - 66',);
|
|
136
122
|
}
|
|
137
123
|
// if still below the count, but do not have this.nextUpload, schedule one
|
|
138
124
|
else if (this.nextUpload === null) {
|
|
@@ -144,9 +130,7 @@ export class FileWriter<R> implements LogWriter<R> {
|
|
|
144
130
|
setTimeout(async () => {
|
|
145
131
|
// perform only if this.nextUpload match the scheduled nextUpload (otherwise, was already processed and this schedule is outdated)
|
|
146
132
|
if (this.nextUpload === nextUpload) {
|
|
147
|
-
console.log('->> writeRec - 77',);
|
|
148
133
|
await this.endFile();
|
|
149
|
-
console.log('->> writeRec - 88',);
|
|
150
134
|
}
|
|
151
135
|
}, maxTimeMs);
|
|
152
136
|
}
|
package/src/log.ts
CHANGED
|
@@ -22,9 +22,7 @@ export class BaseLog<R> {
|
|
|
22
22
|
for (const writer of this.#logWriters) {
|
|
23
23
|
if (writer.writeRec) {
|
|
24
24
|
try {
|
|
25
|
-
console.log('->> baseLog.log 11',);
|
|
26
25
|
await writer.writeRec(rec);
|
|
27
|
-
console.log('->> baseLog.log 22',);
|
|
28
26
|
} catch (ex) {
|
|
29
27
|
// here log console.log, no choise
|
|
30
28
|
|