kerium 1.4.2 → 1.4.4
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/error.d.ts +3 -0
- package/dist/error.js +3 -0
- package/dist/log.js +1 -1
- package/package.json +1 -1
package/dist/error.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare enum Errno {
|
|
|
51
51
|
ENFILE = 23,
|
|
52
52
|
/** Too many open files */
|
|
53
53
|
EMFILE = 24,
|
|
54
|
+
/** Inappropriate ioctl for device */
|
|
55
|
+
ENOTTY = 25,
|
|
54
56
|
/** Text file busy */
|
|
55
57
|
ETXTBSY = 26,
|
|
56
58
|
/** File is too big */
|
|
@@ -293,6 +295,7 @@ declare const errnoMessages: {
|
|
|
293
295
|
readonly 22: "invalid argument";
|
|
294
296
|
readonly 23: "file table overflow";
|
|
295
297
|
readonly 24: "too many open files";
|
|
298
|
+
readonly 25: "inappropriate ioctl for device";
|
|
296
299
|
readonly 26: "text file is busy";
|
|
297
300
|
readonly 27: "file too large";
|
|
298
301
|
readonly 28: "no space left on device";
|
package/dist/error.js
CHANGED
|
@@ -53,6 +53,8 @@ export var Errno;
|
|
|
53
53
|
Errno[Errno["ENFILE"] = 23] = "ENFILE";
|
|
54
54
|
/** Too many open files */
|
|
55
55
|
Errno[Errno["EMFILE"] = 24] = "EMFILE";
|
|
56
|
+
/** Inappropriate ioctl for device */
|
|
57
|
+
Errno[Errno["ENOTTY"] = 25] = "ENOTTY";
|
|
56
58
|
/** Text file busy */
|
|
57
59
|
Errno[Errno["ETXTBSY"] = 26] = "ETXTBSY";
|
|
58
60
|
/** File is too big */
|
|
@@ -295,6 +297,7 @@ const errnoMessages = {
|
|
|
295
297
|
[Errno.EINVAL]: 'invalid argument',
|
|
296
298
|
[Errno.ENFILE]: 'file table overflow',
|
|
297
299
|
[Errno.EMFILE]: 'too many open files',
|
|
300
|
+
[Errno.ENOTTY]: 'inappropriate ioctl for device',
|
|
298
301
|
[Errno.ETXTBSY]: 'text file is busy',
|
|
299
302
|
[Errno.EFBIG]: 'file too large',
|
|
300
303
|
[Errno.ENOSPC]: 'no space left on device',
|
package/dist/log.js
CHANGED
|
@@ -164,7 +164,7 @@ export function format(entry) {
|
|
|
164
164
|
const formatted = _format(entry);
|
|
165
165
|
return typeof formatted == 'string' ? [formatted] : Array.from(formatted);
|
|
166
166
|
}
|
|
167
|
-
let _output = console.error;
|
|
167
|
+
let _output = 'process' in globalThis ? console.error : console.log;
|
|
168
168
|
function output(entry) {
|
|
169
169
|
if (entry.level > minLevel)
|
|
170
170
|
return;
|