@logtape/windows-eventlog 1.0.0-dev.225
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/LICENSE +20 -0
- package/README.md +129 -0
- package/dist/_virtual/rolldown_runtime.cjs +30 -0
- package/dist/ffi.bun.cjs +102 -0
- package/dist/ffi.bun.js +102 -0
- package/dist/ffi.bun.js.map +1 -0
- package/dist/ffi.deno.cjs +116 -0
- package/dist/ffi.deno.js +113 -0
- package/dist/ffi.deno.js.map +1 -0
- package/dist/ffi.node.cjs +78 -0
- package/dist/ffi.node.js +78 -0
- package/dist/ffi.node.js.map +1 -0
- package/dist/mod.cjs +12 -0
- package/dist/mod.d.cts +3 -0
- package/dist/mod.d.ts +3 -0
- package/dist/mod.js +4 -0
- package/dist/platform.cjs +30 -0
- package/dist/platform.js +30 -0
- package/dist/platform.js.map +1 -0
- package/dist/sink.bun.cjs +102 -0
- package/dist/sink.bun.d.cts +34 -0
- package/dist/sink.bun.d.cts.map +1 -0
- package/dist/sink.bun.d.ts +34 -0
- package/dist/sink.bun.d.ts.map +1 -0
- package/dist/sink.bun.js +102 -0
- package/dist/sink.bun.js.map +1 -0
- package/dist/sink.deno.cjs +116 -0
- package/dist/sink.deno.d.cts +34 -0
- package/dist/sink.deno.d.cts.map +1 -0
- package/dist/sink.deno.d.ts +34 -0
- package/dist/sink.deno.d.ts.map +1 -0
- package/dist/sink.deno.js +116 -0
- package/dist/sink.deno.js.map +1 -0
- package/dist/sink.node.cjs +112 -0
- package/dist/sink.node.d.cts +33 -0
- package/dist/sink.node.d.cts.map +1 -0
- package/dist/sink.node.d.ts +33 -0
- package/dist/sink.node.d.ts.map +1 -0
- package/dist/sink.node.js +112 -0
- package/dist/sink.node.js.map +1 -0
- package/dist/types.cjs +55 -0
- package/dist/types.d.cts +79 -0
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.ts +79 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +52 -0
- package/dist/types.js.map +1 -0
- package/package.json +73 -0
package/dist/types.cjs
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
|
|
2
|
+
//#region types.ts
|
|
3
|
+
/**
|
|
4
|
+
* Default Event ID mapping for LogTape levels.
|
|
5
|
+
* @since 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
const DEFAULT_EVENT_ID_MAPPING = {
|
|
8
|
+
fatal: 1,
|
|
9
|
+
error: 2,
|
|
10
|
+
warning: 3,
|
|
11
|
+
info: 4,
|
|
12
|
+
debug: 5,
|
|
13
|
+
trace: 6
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Maps LogTape log levels to Windows Event Log event types
|
|
17
|
+
*/
|
|
18
|
+
function mapLogLevelToEventType(level) {
|
|
19
|
+
switch (level) {
|
|
20
|
+
case "fatal":
|
|
21
|
+
case "error": return 1;
|
|
22
|
+
case "warning": return 2;
|
|
23
|
+
case "info":
|
|
24
|
+
case "debug":
|
|
25
|
+
case "trace":
|
|
26
|
+
default: return 4;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Platform validation error thrown when trying to use the sink on non-Windows platforms.
|
|
31
|
+
* @since 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
var WindowsPlatformError = class extends Error {
|
|
34
|
+
constructor(platform) {
|
|
35
|
+
super(`Windows Event Log sink can only be used on Windows platforms. Current platform: ${platform}. This package is designed specifically for Windows Event Log integration.`);
|
|
36
|
+
this.name = "WindowsPlatformError";
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Error thrown when Windows Event Log operations fail.
|
|
41
|
+
* @since 1.0.0
|
|
42
|
+
*/
|
|
43
|
+
var WindowsEventLogError = class extends Error {
|
|
44
|
+
constructor(message, cause) {
|
|
45
|
+
super(`Windows Event Log error: ${message}`);
|
|
46
|
+
this.name = "WindowsEventLogError";
|
|
47
|
+
if (cause) this.cause = cause;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
exports.DEFAULT_EVENT_ID_MAPPING = DEFAULT_EVENT_ID_MAPPING;
|
|
53
|
+
exports.WindowsEventLogError = WindowsEventLogError;
|
|
54
|
+
exports.WindowsPlatformError = WindowsPlatformError;
|
|
55
|
+
exports.mapLogLevelToEventType = mapLogLevelToEventType;
|
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { LogLevel } from "@logtape/logtape";
|
|
2
|
+
|
|
3
|
+
//#region types.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Windows Event Log names supported by the sink.
|
|
7
|
+
* @since 1.0.0
|
|
8
|
+
*/
|
|
9
|
+
type WindowsLogName = "Application" | "System";
|
|
10
|
+
/**
|
|
11
|
+
* Configuration options for the Windows Event Log sink.
|
|
12
|
+
* @since 1.0.0
|
|
13
|
+
*/
|
|
14
|
+
interface WindowsEventLogSinkOptions {
|
|
15
|
+
/**
|
|
16
|
+
* The name of the event source. This is typically your application name
|
|
17
|
+
* and will appear as the "Source" in Windows Event Viewer.
|
|
18
|
+
*
|
|
19
|
+
* @example "MyApplication"
|
|
20
|
+
*/
|
|
21
|
+
readonly sourceName: string;
|
|
22
|
+
/**
|
|
23
|
+
* The target Windows Event Log to write to.
|
|
24
|
+
*
|
|
25
|
+
* - "Application": Standard application log (most common)
|
|
26
|
+
* - "System": System-level log (requires admin privileges)
|
|
27
|
+
*
|
|
28
|
+
* @default "Application"
|
|
29
|
+
*/
|
|
30
|
+
readonly logName?: WindowsLogName;
|
|
31
|
+
/**
|
|
32
|
+
* The server name to write logs to. Use this for remote logging.
|
|
33
|
+
*
|
|
34
|
+
* @default undefined (local machine)
|
|
35
|
+
*/
|
|
36
|
+
readonly serverName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Custom mapping of LogTape log levels to Windows Event IDs.
|
|
39
|
+
* Event IDs are numeric identifiers that can be used for filtering
|
|
40
|
+
* and automation in Windows Event Log.
|
|
41
|
+
*
|
|
42
|
+
* @default
|
|
43
|
+
* ```typescript
|
|
44
|
+
* {
|
|
45
|
+
* fatal: 1,
|
|
46
|
+
* error: 2,
|
|
47
|
+
* warning: 3,
|
|
48
|
+
* info: 4,
|
|
49
|
+
* debug: 5,
|
|
50
|
+
* trace: 6
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
readonly eventIdMapping?: Partial<Record<LogLevel, number>>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Windows Event Log entry types mapped to LogTape levels.
|
|
58
|
+
* These correspond to the event types visible in Windows Event Viewer.
|
|
59
|
+
* @since 1.0.0
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Platform validation error thrown when trying to use the sink on non-Windows platforms.
|
|
64
|
+
* @since 1.0.0
|
|
65
|
+
*/
|
|
66
|
+
declare class WindowsPlatformError extends Error {
|
|
67
|
+
constructor(platform: string);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Error thrown when Windows Event Log operations fail.
|
|
71
|
+
* @since 1.0.0
|
|
72
|
+
*/
|
|
73
|
+
declare class WindowsEventLogError extends Error {
|
|
74
|
+
constructor(message: string, cause?: Error);
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=types.d.ts.map
|
|
77
|
+
//#endregion
|
|
78
|
+
export { WindowsEventLogError, WindowsEventLogSinkOptions, WindowsLogName, WindowsPlatformError };
|
|
79
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../types.ts"],"sourcesContent":[],"mappings":";;;;;;AAMA;AAMA;AAA2C,KAN/B,cAAA,GAM+B,aAAA,GAAA,QAAA;;;;;AA2CR,UA3ClB,0BAAA,CA2CkB;EAyDtB;AAeb;;;;AAA+C;;;;;;;;;;qBAlG1B;;;;;;;;;;;;;;;;;;;;;;;;4BA0BO,QAAQ,OAAO;;;;;;;;;;;;cAyD9B,oBAAA,SAA6B,KAAK;;;;;;;cAelC,oBAAA,SAA6B,KAAA;uCACH"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { LogLevel } from "@logtape/logtape";
|
|
2
|
+
|
|
3
|
+
//#region types.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Windows Event Log names supported by the sink.
|
|
7
|
+
* @since 1.0.0
|
|
8
|
+
*/
|
|
9
|
+
type WindowsLogName = "Application" | "System";
|
|
10
|
+
/**
|
|
11
|
+
* Configuration options for the Windows Event Log sink.
|
|
12
|
+
* @since 1.0.0
|
|
13
|
+
*/
|
|
14
|
+
interface WindowsEventLogSinkOptions {
|
|
15
|
+
/**
|
|
16
|
+
* The name of the event source. This is typically your application name
|
|
17
|
+
* and will appear as the "Source" in Windows Event Viewer.
|
|
18
|
+
*
|
|
19
|
+
* @example "MyApplication"
|
|
20
|
+
*/
|
|
21
|
+
readonly sourceName: string;
|
|
22
|
+
/**
|
|
23
|
+
* The target Windows Event Log to write to.
|
|
24
|
+
*
|
|
25
|
+
* - "Application": Standard application log (most common)
|
|
26
|
+
* - "System": System-level log (requires admin privileges)
|
|
27
|
+
*
|
|
28
|
+
* @default "Application"
|
|
29
|
+
*/
|
|
30
|
+
readonly logName?: WindowsLogName;
|
|
31
|
+
/**
|
|
32
|
+
* The server name to write logs to. Use this for remote logging.
|
|
33
|
+
*
|
|
34
|
+
* @default undefined (local machine)
|
|
35
|
+
*/
|
|
36
|
+
readonly serverName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Custom mapping of LogTape log levels to Windows Event IDs.
|
|
39
|
+
* Event IDs are numeric identifiers that can be used for filtering
|
|
40
|
+
* and automation in Windows Event Log.
|
|
41
|
+
*
|
|
42
|
+
* @default
|
|
43
|
+
* ```typescript
|
|
44
|
+
* {
|
|
45
|
+
* fatal: 1,
|
|
46
|
+
* error: 2,
|
|
47
|
+
* warning: 3,
|
|
48
|
+
* info: 4,
|
|
49
|
+
* debug: 5,
|
|
50
|
+
* trace: 6
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
readonly eventIdMapping?: Partial<Record<LogLevel, number>>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Windows Event Log entry types mapped to LogTape levels.
|
|
58
|
+
* These correspond to the event types visible in Windows Event Viewer.
|
|
59
|
+
* @since 1.0.0
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Platform validation error thrown when trying to use the sink on non-Windows platforms.
|
|
64
|
+
* @since 1.0.0
|
|
65
|
+
*/
|
|
66
|
+
declare class WindowsPlatformError extends Error {
|
|
67
|
+
constructor(platform: string);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Error thrown when Windows Event Log operations fail.
|
|
71
|
+
* @since 1.0.0
|
|
72
|
+
*/
|
|
73
|
+
declare class WindowsEventLogError extends Error {
|
|
74
|
+
constructor(message: string, cause?: Error);
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=types.d.ts.map
|
|
77
|
+
//#endregion
|
|
78
|
+
export { WindowsEventLogError, WindowsEventLogSinkOptions, WindowsLogName, WindowsPlatformError };
|
|
79
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../types.ts"],"sourcesContent":[],"mappings":";;;;;;AAMA;AAMA;AAA2C,KAN/B,cAAA,GAM+B,aAAA,GAAA,QAAA;;;;;AA2CR,UA3ClB,0BAAA,CA2CkB;EAyDtB;AAeb;;;;AAA+C;;;;;;;;;;qBAlG1B;;;;;;;;;;;;;;;;;;;;;;;;4BA0BO,QAAQ,OAAO;;;;;;;;;;;;cAyD9B,oBAAA,SAA6B,KAAK;;;;;;;cAelC,oBAAA,SAA6B,KAAA;uCACH"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//#region types.ts
|
|
2
|
+
/**
|
|
3
|
+
* Default Event ID mapping for LogTape levels.
|
|
4
|
+
* @since 1.0.0
|
|
5
|
+
*/
|
|
6
|
+
const DEFAULT_EVENT_ID_MAPPING = {
|
|
7
|
+
fatal: 1,
|
|
8
|
+
error: 2,
|
|
9
|
+
warning: 3,
|
|
10
|
+
info: 4,
|
|
11
|
+
debug: 5,
|
|
12
|
+
trace: 6
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Maps LogTape log levels to Windows Event Log event types
|
|
16
|
+
*/
|
|
17
|
+
function mapLogLevelToEventType(level) {
|
|
18
|
+
switch (level) {
|
|
19
|
+
case "fatal":
|
|
20
|
+
case "error": return 1;
|
|
21
|
+
case "warning": return 2;
|
|
22
|
+
case "info":
|
|
23
|
+
case "debug":
|
|
24
|
+
case "trace":
|
|
25
|
+
default: return 4;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Platform validation error thrown when trying to use the sink on non-Windows platforms.
|
|
30
|
+
* @since 1.0.0
|
|
31
|
+
*/
|
|
32
|
+
var WindowsPlatformError = class extends Error {
|
|
33
|
+
constructor(platform) {
|
|
34
|
+
super(`Windows Event Log sink can only be used on Windows platforms. Current platform: ${platform}. This package is designed specifically for Windows Event Log integration.`);
|
|
35
|
+
this.name = "WindowsPlatformError";
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Error thrown when Windows Event Log operations fail.
|
|
40
|
+
* @since 1.0.0
|
|
41
|
+
*/
|
|
42
|
+
var WindowsEventLogError = class extends Error {
|
|
43
|
+
constructor(message, cause) {
|
|
44
|
+
super(`Windows Event Log error: ${message}`);
|
|
45
|
+
this.name = "WindowsEventLogError";
|
|
46
|
+
if (cause) this.cause = cause;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { DEFAULT_EVENT_ID_MAPPING, WindowsEventLogError, WindowsPlatformError, mapLogLevelToEventType };
|
|
52
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["DEFAULT_EVENT_ID_MAPPING: Record<LogLevel, number>","level: LogLevel","platform: string","message: string","cause?: Error"],"sources":["../types.ts"],"sourcesContent":["import type { LogLevel } from \"@logtape/logtape\";\n\n/**\n * Windows Event Log names supported by the sink.\n * @since 1.0.0\n */\nexport type WindowsLogName = \"Application\" | \"System\";\n\n/**\n * Configuration options for the Windows Event Log sink.\n * @since 1.0.0\n */\nexport interface WindowsEventLogSinkOptions {\n /**\n * The name of the event source. This is typically your application name\n * and will appear as the \"Source\" in Windows Event Viewer.\n *\n * @example \"MyApplication\"\n */\n readonly sourceName: string;\n\n /**\n * The target Windows Event Log to write to.\n *\n * - \"Application\": Standard application log (most common)\n * - \"System\": System-level log (requires admin privileges)\n *\n * @default \"Application\"\n */\n readonly logName?: WindowsLogName;\n\n /**\n * The server name to write logs to. Use this for remote logging.\n *\n * @default undefined (local machine)\n */\n readonly serverName?: string;\n\n /**\n * Custom mapping of LogTape log levels to Windows Event IDs.\n * Event IDs are numeric identifiers that can be used for filtering\n * and automation in Windows Event Log.\n *\n * @default\n * ```typescript\n * {\n * fatal: 1,\n * error: 2,\n * warning: 3,\n * info: 4,\n * debug: 5,\n * trace: 6\n * }\n * ```\n */\n readonly eventIdMapping?: Partial<Record<LogLevel, number>>;\n}\n\n/**\n * Windows Event Log entry types mapped to LogTape levels.\n * These correspond to the event types visible in Windows Event Viewer.\n * @since 1.0.0\n */\nexport const WINDOWS_EVENT_TYPES: Record<LogLevel, number> = {\n fatal: 1, // Error\n error: 1, // Error\n warning: 2, // Warning\n info: 4, // Information\n debug: 4, // Information\n trace: 4, // Information\n} as const;\n\n/**\n * Default Event ID mapping for LogTape levels.\n * @since 1.0.0\n */\nexport const DEFAULT_EVENT_ID_MAPPING: Record<LogLevel, number> = {\n fatal: 1,\n error: 2,\n warning: 3,\n info: 4,\n debug: 5,\n trace: 6,\n} as const;\n\n/**\n * Windows Event Log event type constants\n */\nexport type EventType = 1 | 2 | 4; // Error, Warning, Information\n\n/**\n * Maps LogTape log levels to Windows Event Log event types\n */\nexport function mapLogLevelToEventType(level: LogLevel): EventType {\n switch (level) {\n case \"fatal\":\n case \"error\":\n return 1; // EVENTLOG_ERROR_TYPE\n case \"warning\":\n return 2; // EVENTLOG_WARNING_TYPE\n case \"info\":\n case \"debug\":\n case \"trace\":\n default:\n return 4; // EVENTLOG_INFORMATION_TYPE\n }\n}\n\n/**\n * Platform validation error thrown when trying to use the sink on non-Windows platforms.\n * @since 1.0.0\n */\nexport class WindowsPlatformError extends Error {\n constructor(platform: string) {\n super(\n `Windows Event Log sink can only be used on Windows platforms. ` +\n `Current platform: ${platform}. ` +\n `This package is designed specifically for Windows Event Log integration.`,\n );\n this.name = \"WindowsPlatformError\";\n }\n}\n\n/**\n * Error thrown when Windows Event Log operations fail.\n * @since 1.0.0\n */\nexport class WindowsEventLogError extends Error {\n constructor(message: string, cause?: Error) {\n super(`Windows Event Log error: ${message}`);\n this.name = \"WindowsEventLogError\";\n if (cause) {\n this.cause = cause;\n }\n }\n}\n"],"mappings":";;;;;AA4EA,MAAaA,2BAAqD;CAChE,OAAO;CACP,OAAO;CACP,SAAS;CACT,MAAM;CACN,OAAO;CACP,OAAO;AACR;;;;AAUD,SAAgB,uBAAuBC,OAA4B;AACjE,SAAQ,OAAR;EACE,KAAK;EACL,KAAK,QACH,QAAO;EACT,KAAK,UACH,QAAO;EACT,KAAK;EACL,KAAK;EACL,KAAK;EACL,QACE,QAAO;CACV;AACF;;;;;AAMD,IAAa,uBAAb,cAA0C,MAAM;CAC9C,YAAYC,UAAkB;AAC5B,SACG,kFACsB,SAAS,4EAEjC;AACD,OAAK,OAAO;CACb;AACF;;;;;AAMD,IAAa,uBAAb,cAA0C,MAAM;CAC9C,YAAYC,SAAiBC,OAAe;AAC1C,SAAO,2BAA2B,QAAQ,EAAE;AAC5C,OAAK,OAAO;AACZ,MAAI,MACF,MAAK,QAAQ;CAEhB;AACF"}
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@logtape/windows-eventlog",
|
|
3
|
+
"version": "1.0.0-dev.225+31dc47d5",
|
|
4
|
+
"description": "Windows Event Log sink for LogTape",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"logging",
|
|
8
|
+
"windows",
|
|
9
|
+
"eventlog",
|
|
10
|
+
"logtape",
|
|
11
|
+
"sink"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://logtape.org/",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/dahlia/logtape.git",
|
|
17
|
+
"directory": "windows-eventlog"
|
|
18
|
+
},
|
|
19
|
+
"bugs": "https://github.com/dahlia/logtape/issues",
|
|
20
|
+
"author": {
|
|
21
|
+
"name": "Hong Minhee",
|
|
22
|
+
"email": "hong@minhee.org",
|
|
23
|
+
"url": "https://hongminhee.org/"
|
|
24
|
+
},
|
|
25
|
+
"type": "module",
|
|
26
|
+
"os": [
|
|
27
|
+
"win32"
|
|
28
|
+
],
|
|
29
|
+
"module": "./dist/mod.js",
|
|
30
|
+
"main": "./dist/mod.cjs",
|
|
31
|
+
"types": "./dist/mod.d.ts",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"import": "./dist/mod.js",
|
|
35
|
+
"require": "./dist/mod.cjs",
|
|
36
|
+
"types": "./dist/mod.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"./package.json": "./package.json"
|
|
39
|
+
},
|
|
40
|
+
"imports": {
|
|
41
|
+
"#wineventlog": {
|
|
42
|
+
"bun": "./dist/sink.bun.js",
|
|
43
|
+
"deno": "./dist/sink.deno.js",
|
|
44
|
+
"import": "./dist/sink.node.js",
|
|
45
|
+
"require": "./dist/sink.node.cjs",
|
|
46
|
+
"types": "./dist/sink.node.d.ts"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"dist/"
|
|
51
|
+
],
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@logtape/logtape": "1.0.0-dev.225+31dc47d5"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"koffi": "^2.10.0"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@alinea/suite": "^0.6.3",
|
|
60
|
+
"@std/assert": "npm:@jsr/std__assert@^1.0.13",
|
|
61
|
+
"@std/async": "npm:@jsr/std__async@^1.0.13",
|
|
62
|
+
"tsdown": "^0.12.7",
|
|
63
|
+
"typescript": "^5.8.3"
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "tsdown",
|
|
67
|
+
"prepublish": "tsdown",
|
|
68
|
+
"test": "tsdown && node --experimental-transform-types --test",
|
|
69
|
+
"test:bun": "tsdown && bun test --timeout 10000",
|
|
70
|
+
"test:deno": "deno test --allow-ffi --allow-run=powershell --allow-env=TEMP,TMP,TMPDIR,HOSTNAME",
|
|
71
|
+
"test-all": "tsdown && node --experimental-transform-types --test && bun test && deno test"
|
|
72
|
+
}
|
|
73
|
+
}
|