@mcp-abap-adt/logger 0.1.0
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/CHANGELOG.md +17 -0
- package/LICENSE +22 -0
- package/README.md +103 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +22 -0
- package/dist/logger.d.ts +39 -0
- package/dist/logger.js +186 -0
- package/package.json +55 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.1.0] - 2025-12-04
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Initial release
|
|
12
|
+
- Logger interface
|
|
13
|
+
- DefaultLogger implementation
|
|
14
|
+
- TestLogger implementation
|
|
15
|
+
- Log level support (ERROR, WARN, INFO, DEBUG)
|
|
16
|
+
- Environment variable configuration (AUTH_LOG_LEVEL)
|
|
17
|
+
|
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Oleksii Kyslytsia
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# @mcp-abap-adt/logger
|
|
2
|
+
|
|
3
|
+
Logger interface and implementations for MCP ABAP ADT packages.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @mcp-abap-adt/logger
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### Basic Usage
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { Logger, defaultLogger, LogLevel } from '@mcp-abap-adt/logger';
|
|
17
|
+
|
|
18
|
+
// Use default logger
|
|
19
|
+
defaultLogger.info('Hello, world!');
|
|
20
|
+
defaultLogger.debug('Debug message');
|
|
21
|
+
defaultLogger.error('Error message');
|
|
22
|
+
defaultLogger.warn('Warning message');
|
|
23
|
+
|
|
24
|
+
// Specialized logging methods
|
|
25
|
+
defaultLogger.browserAuth('Starting browser authentication...');
|
|
26
|
+
defaultLogger.refresh('Refreshing token...');
|
|
27
|
+
defaultLogger.success('Operation completed successfully');
|
|
28
|
+
defaultLogger.browserUrl('https://example.com/auth');
|
|
29
|
+
defaultLogger.browserOpening();
|
|
30
|
+
defaultLogger.testSkip('Test skipped');
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Log Levels
|
|
34
|
+
|
|
35
|
+
Logger supports four log levels controlled by `AUTH_LOG_LEVEL` environment variable:
|
|
36
|
+
|
|
37
|
+
- `error` - only errors
|
|
38
|
+
- `warn` - errors and warnings
|
|
39
|
+
- `info` - errors, warnings, and info (default)
|
|
40
|
+
- `debug` - all messages
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
export AUTH_LOG_LEVEL=debug
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
For backward compatibility, `DEBUG_AUTH_LOG=true` also sets level to debug.
|
|
47
|
+
|
|
48
|
+
### Logger Interface
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
import type { Logger } from '@mcp-abap-adt/logger';
|
|
52
|
+
|
|
53
|
+
class MyCustomLogger implements Logger {
|
|
54
|
+
info(message: string): void {
|
|
55
|
+
// Custom implementation
|
|
56
|
+
}
|
|
57
|
+
debug(message: string): void {
|
|
58
|
+
// Custom implementation
|
|
59
|
+
}
|
|
60
|
+
error(message: string): void {
|
|
61
|
+
// Custom implementation
|
|
62
|
+
}
|
|
63
|
+
warn(message: string): void {
|
|
64
|
+
// Custom implementation
|
|
65
|
+
}
|
|
66
|
+
browserAuth(message: string): void {
|
|
67
|
+
// Custom implementation
|
|
68
|
+
}
|
|
69
|
+
refresh(message: string): void {
|
|
70
|
+
// Custom implementation
|
|
71
|
+
}
|
|
72
|
+
success(message: string): void {
|
|
73
|
+
// Custom implementation
|
|
74
|
+
}
|
|
75
|
+
browserUrl(url: string): void {
|
|
76
|
+
// Custom implementation
|
|
77
|
+
}
|
|
78
|
+
browserOpening(): void {
|
|
79
|
+
// Custom implementation
|
|
80
|
+
}
|
|
81
|
+
testSkip(message: string): void {
|
|
82
|
+
// Custom implementation
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Convenience Functions
|
|
88
|
+
|
|
89
|
+
For backward compatibility, convenience functions are also exported:
|
|
90
|
+
|
|
91
|
+
```typescript
|
|
92
|
+
import { info, debug, error, warn, browserAuth, refresh, success, browserUrl, browserOpening, testSkip } from '@mcp-abap-adt/logger';
|
|
93
|
+
|
|
94
|
+
info('Info message');
|
|
95
|
+
debug('Debug message');
|
|
96
|
+
error('Error message');
|
|
97
|
+
warn('Warning message');
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## License
|
|
101
|
+
|
|
102
|
+
MIT
|
|
103
|
+
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @mcp-abap-adt/logger
|
|
3
|
+
* Logger interface and implementations for MCP ABAP ADT packages
|
|
4
|
+
*/
|
|
5
|
+
export { LogLevel, defaultLogger, testLogger } from './logger';
|
|
6
|
+
export type { Logger } from './logger';
|
|
7
|
+
export { info, debug, error, warn, browserAuth, refresh, success, browserUrl, browserOpening, testSkip, } from './logger';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.testSkip = exports.browserOpening = exports.browserUrl = exports.success = exports.refresh = exports.browserAuth = exports.warn = exports.error = exports.debug = exports.info = exports.testLogger = exports.defaultLogger = exports.LogLevel = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @mcp-abap-adt/logger
|
|
6
|
+
* Logger interface and implementations for MCP ABAP ADT packages
|
|
7
|
+
*/
|
|
8
|
+
var logger_1 = require("./logger");
|
|
9
|
+
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return logger_1.LogLevel; } });
|
|
10
|
+
Object.defineProperty(exports, "defaultLogger", { enumerable: true, get: function () { return logger_1.defaultLogger; } });
|
|
11
|
+
Object.defineProperty(exports, "testLogger", { enumerable: true, get: function () { return logger_1.testLogger; } });
|
|
12
|
+
var logger_2 = require("./logger");
|
|
13
|
+
Object.defineProperty(exports, "info", { enumerable: true, get: function () { return logger_2.info; } });
|
|
14
|
+
Object.defineProperty(exports, "debug", { enumerable: true, get: function () { return logger_2.debug; } });
|
|
15
|
+
Object.defineProperty(exports, "error", { enumerable: true, get: function () { return logger_2.error; } });
|
|
16
|
+
Object.defineProperty(exports, "warn", { enumerable: true, get: function () { return logger_2.warn; } });
|
|
17
|
+
Object.defineProperty(exports, "browserAuth", { enumerable: true, get: function () { return logger_2.browserAuth; } });
|
|
18
|
+
Object.defineProperty(exports, "refresh", { enumerable: true, get: function () { return logger_2.refresh; } });
|
|
19
|
+
Object.defineProperty(exports, "success", { enumerable: true, get: function () { return logger_2.success; } });
|
|
20
|
+
Object.defineProperty(exports, "browserUrl", { enumerable: true, get: function () { return logger_2.browserUrl; } });
|
|
21
|
+
Object.defineProperty(exports, "browserOpening", { enumerable: true, get: function () { return logger_2.browserOpening; } });
|
|
22
|
+
Object.defineProperty(exports, "testSkip", { enumerable: true, get: function () { return logger_2.testSkip; } });
|
package/dist/logger.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logger interface and implementations for MCP ABAP ADT packages
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Log levels
|
|
6
|
+
*/
|
|
7
|
+
export declare enum LogLevel {
|
|
8
|
+
ERROR = 0,
|
|
9
|
+
WARN = 1,
|
|
10
|
+
INFO = 2,
|
|
11
|
+
DEBUG = 3
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Logger interface - defines logging methods
|
|
15
|
+
*/
|
|
16
|
+
export interface Logger {
|
|
17
|
+
info(message: string): void;
|
|
18
|
+
debug(message: string): void;
|
|
19
|
+
error(message: string): void;
|
|
20
|
+
warn(message: string): void;
|
|
21
|
+
browserAuth(message: string): void;
|
|
22
|
+
refresh(message: string): void;
|
|
23
|
+
success(message: string): void;
|
|
24
|
+
browserUrl(url: string): void;
|
|
25
|
+
browserOpening(): void;
|
|
26
|
+
testSkip(message: string): void;
|
|
27
|
+
}
|
|
28
|
+
export declare const defaultLogger: Logger;
|
|
29
|
+
export declare const testLogger: Logger;
|
|
30
|
+
export declare function info(message: string): void;
|
|
31
|
+
export declare function debug(message: string): void;
|
|
32
|
+
export declare function error(message: string): void;
|
|
33
|
+
export declare function browserAuth(message: string): void;
|
|
34
|
+
export declare function refresh(message: string): void;
|
|
35
|
+
export declare function success(message: string): void;
|
|
36
|
+
export declare function browserUrl(url: string): void;
|
|
37
|
+
export declare function browserOpening(): void;
|
|
38
|
+
export declare function testSkip(message: string): void;
|
|
39
|
+
export declare function warn(message: string): void;
|
package/dist/logger.js
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Logger interface and implementations for MCP ABAP ADT packages
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.testLogger = exports.defaultLogger = exports.LogLevel = void 0;
|
|
7
|
+
exports.info = info;
|
|
8
|
+
exports.debug = debug;
|
|
9
|
+
exports.error = error;
|
|
10
|
+
exports.browserAuth = browserAuth;
|
|
11
|
+
exports.refresh = refresh;
|
|
12
|
+
exports.success = success;
|
|
13
|
+
exports.browserUrl = browserUrl;
|
|
14
|
+
exports.browserOpening = browserOpening;
|
|
15
|
+
exports.testSkip = testSkip;
|
|
16
|
+
exports.warn = warn;
|
|
17
|
+
/**
|
|
18
|
+
* Log levels
|
|
19
|
+
*/
|
|
20
|
+
var LogLevel;
|
|
21
|
+
(function (LogLevel) {
|
|
22
|
+
LogLevel[LogLevel["ERROR"] = 0] = "ERROR";
|
|
23
|
+
LogLevel[LogLevel["WARN"] = 1] = "WARN";
|
|
24
|
+
LogLevel[LogLevel["INFO"] = 2] = "INFO";
|
|
25
|
+
LogLevel[LogLevel["DEBUG"] = 3] = "DEBUG";
|
|
26
|
+
})(LogLevel || (exports.LogLevel = LogLevel = {}));
|
|
27
|
+
/**
|
|
28
|
+
* Get log level from environment variable
|
|
29
|
+
* AUTH_LOG_LEVEL can be: error, warn, info, debug
|
|
30
|
+
* DEBUG_AUTH_LOG=true is also supported for backward compatibility (sets level to debug)
|
|
31
|
+
*/
|
|
32
|
+
function getLogLevel() {
|
|
33
|
+
const level = process.env.AUTH_LOG_LEVEL?.toLowerCase();
|
|
34
|
+
if (level === 'error')
|
|
35
|
+
return LogLevel.ERROR;
|
|
36
|
+
if (level === 'warn')
|
|
37
|
+
return LogLevel.WARN;
|
|
38
|
+
if (level === 'info')
|
|
39
|
+
return LogLevel.INFO;
|
|
40
|
+
if (level === 'debug')
|
|
41
|
+
return LogLevel.DEBUG;
|
|
42
|
+
// Backward compatibility
|
|
43
|
+
if (process.env.DEBUG_AUTH_LOG === 'true')
|
|
44
|
+
return LogLevel.DEBUG;
|
|
45
|
+
// Default: info level
|
|
46
|
+
return LogLevel.INFO;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Default logger implementation
|
|
50
|
+
* Controls output based on AUTH_LOG_LEVEL environment variable:
|
|
51
|
+
* - error: only errors
|
|
52
|
+
* - warn: errors and warnings
|
|
53
|
+
* - info: errors, warnings, and info (default)
|
|
54
|
+
* - debug: all messages
|
|
55
|
+
*/
|
|
56
|
+
class DefaultLogger {
|
|
57
|
+
logLevel;
|
|
58
|
+
constructor(logLevel) {
|
|
59
|
+
this.logLevel = logLevel ?? getLogLevel();
|
|
60
|
+
}
|
|
61
|
+
info(message) {
|
|
62
|
+
if (this.logLevel >= LogLevel.INFO) {
|
|
63
|
+
console.info(message);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
debug(message) {
|
|
67
|
+
if (this.logLevel >= LogLevel.DEBUG) {
|
|
68
|
+
console.debug(`[DEBUG] ${message}`);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
error(message) {
|
|
72
|
+
if (this.logLevel >= LogLevel.ERROR) {
|
|
73
|
+
console.error(message);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
warn(message) {
|
|
77
|
+
if (this.logLevel >= LogLevel.WARN) {
|
|
78
|
+
console.warn(`[WARN] ${message}`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
browserAuth(message) {
|
|
82
|
+
this.info(`🌐 ${message}`);
|
|
83
|
+
}
|
|
84
|
+
refresh(message) {
|
|
85
|
+
this.info(`🔄 ${message}`);
|
|
86
|
+
}
|
|
87
|
+
success(message) {
|
|
88
|
+
this.info(`✅ ${message}`);
|
|
89
|
+
}
|
|
90
|
+
browserUrl(url) {
|
|
91
|
+
// Always show URL when browser is not opened automatically (user needs to open manually)
|
|
92
|
+
this.info(`🔗 Open in browser: ${url}`);
|
|
93
|
+
}
|
|
94
|
+
browserOpening() {
|
|
95
|
+
// Only show when debug is enabled (browser opens automatically)
|
|
96
|
+
this.debug(`🌐 Opening browser for authentication...`);
|
|
97
|
+
}
|
|
98
|
+
testSkip(message) {
|
|
99
|
+
this.info(`⏭️ ${message}`);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Test logger implementation
|
|
104
|
+
* Uses same log levels as DefaultLogger
|
|
105
|
+
*/
|
|
106
|
+
class TestLogger {
|
|
107
|
+
logLevel;
|
|
108
|
+
constructor(logLevel) {
|
|
109
|
+
this.logLevel = logLevel ?? getLogLevel();
|
|
110
|
+
}
|
|
111
|
+
info(message) {
|
|
112
|
+
if (this.logLevel >= LogLevel.INFO) {
|
|
113
|
+
console.info(message);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
debug(message) {
|
|
117
|
+
if (this.logLevel >= LogLevel.DEBUG) {
|
|
118
|
+
console.info(`[DEBUG] ${message}`);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
error(message) {
|
|
122
|
+
if (this.logLevel >= LogLevel.ERROR) {
|
|
123
|
+
console.error(message);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
warn(message) {
|
|
127
|
+
if (this.logLevel >= LogLevel.WARN) {
|
|
128
|
+
console.warn(`[WARN] ${message}`);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
browserAuth(message) {
|
|
132
|
+
this.info(`🌐 ${message}`);
|
|
133
|
+
}
|
|
134
|
+
refresh(message) {
|
|
135
|
+
this.info(`🔄 ${message}`);
|
|
136
|
+
}
|
|
137
|
+
success(message) {
|
|
138
|
+
this.info(`✅ ${message}`);
|
|
139
|
+
}
|
|
140
|
+
browserUrl(url) {
|
|
141
|
+
// Always show URL when browser is not opened automatically (user needs to open manually)
|
|
142
|
+
this.info(`🔗 Open in browser: ${url}`);
|
|
143
|
+
}
|
|
144
|
+
browserOpening() {
|
|
145
|
+
// Only show when debug is enabled (browser opens automatically)
|
|
146
|
+
this.debug(`🌐 Opening browser for authentication...`);
|
|
147
|
+
}
|
|
148
|
+
testSkip(message) {
|
|
149
|
+
this.info(`⏭️ ${message}`);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
// Default logger instance (singleton)
|
|
153
|
+
exports.defaultLogger = new DefaultLogger();
|
|
154
|
+
// Test logger instance
|
|
155
|
+
exports.testLogger = new TestLogger();
|
|
156
|
+
// Export convenience functions that use default logger (for backward compatibility)
|
|
157
|
+
function info(message) {
|
|
158
|
+
exports.defaultLogger.info(message);
|
|
159
|
+
}
|
|
160
|
+
function debug(message) {
|
|
161
|
+
exports.defaultLogger.debug(message);
|
|
162
|
+
}
|
|
163
|
+
function error(message) {
|
|
164
|
+
exports.defaultLogger.error(message);
|
|
165
|
+
}
|
|
166
|
+
function browserAuth(message) {
|
|
167
|
+
exports.defaultLogger.browserAuth(message);
|
|
168
|
+
}
|
|
169
|
+
function refresh(message) {
|
|
170
|
+
exports.defaultLogger.refresh(message);
|
|
171
|
+
}
|
|
172
|
+
function success(message) {
|
|
173
|
+
exports.defaultLogger.success(message);
|
|
174
|
+
}
|
|
175
|
+
function browserUrl(url) {
|
|
176
|
+
exports.defaultLogger.browserUrl(url);
|
|
177
|
+
}
|
|
178
|
+
function browserOpening() {
|
|
179
|
+
exports.defaultLogger.browserOpening();
|
|
180
|
+
}
|
|
181
|
+
function testSkip(message) {
|
|
182
|
+
exports.defaultLogger.testSkip(message);
|
|
183
|
+
}
|
|
184
|
+
function warn(message) {
|
|
185
|
+
exports.defaultLogger.warn(message);
|
|
186
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mcp-abap-adt/logger",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Logger interface and implementations for MCP ABAP ADT packages",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md",
|
|
10
|
+
"CHANGELOG.md",
|
|
11
|
+
"LICENSE"
|
|
12
|
+
],
|
|
13
|
+
"keywords": [
|
|
14
|
+
"abap",
|
|
15
|
+
"sap",
|
|
16
|
+
"adt",
|
|
17
|
+
"logger",
|
|
18
|
+
"logging",
|
|
19
|
+
"mcp",
|
|
20
|
+
"abap-adt"
|
|
21
|
+
],
|
|
22
|
+
"author": "Oleksii Kyslytsia <oleksij.kyslytsja@gmail.com>",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"homepage": "https://github.com/fr0ster/mcp-abap-adt-logger#readme",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/fr0ster/mcp-abap-adt-logger/issues"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/fr0ster/mcp-abap-adt-logger.git"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
37
|
+
"build": "npm run clean --silent && npx tsc -p tsconfig.json",
|
|
38
|
+
"build:fast": "npx tsc -p tsconfig.json",
|
|
39
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
40
|
+
"test:check": "npx tsc --noEmit",
|
|
41
|
+
"prepublishOnly": "npm run build"
|
|
42
|
+
},
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=18.0.0"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@types/jest": "^30.0.0",
|
|
49
|
+
"@types/node": "^24.2.1",
|
|
50
|
+
"jest": "^30.2.0",
|
|
51
|
+
"ts-jest": "^29.2.5",
|
|
52
|
+
"typescript": "^5.9.2"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|