@wthek/hono-middleware 0.0.0-stage → 1.0.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/LICENSE +22 -0
- package/README.md +147 -2
- package/dist/index.d.ts +62 -0
- package/dist/index.js +82 -0
- package/package.json +103 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Himanshu Bansal
|
|
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
CHANGED
|
@@ -1,3 +1,148 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Official @wthek Extension – Hono Middleware for `http-error-kit`
|
|
2
|
+
|
|
3
|
+
**Seamless Hono Error Handling with @wthek**
|
|
4
|
+
|
|
5
|
+
_Built for applications powered by [http-error-kit][http-error-kit], this middleware ensures that all `http-error-kit` errors are properly formatted and returned with the correct HTTP status codes in Hono._
|
|
6
|
+
|
|
7
|
+
> 💡 What the HEK?! Need a hassle-free way to manage error responses for `http-error-kit` errors in Hono? `@wthek/hono-middleware` has got you covered!
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
[](https://www.npmjs.com/package/@wthek/hono-middleware)
|
|
11
|
+
[](LICENSE)
|
|
12
|
+
[](https://github.com/Skillnter/wthek-hono-middleware/issues)
|
|
13
|
+

|
|
14
|
+
[](https://bundlephobia.com/package/%40wthek%2Fhono-middleware)
|
|
15
|
+
[](https://app.codacy.com/gh/Skillnter/wthek-hono-middleware/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
|
16
|
+
[](https://app.codacy.com/gh/Skillnter/wthek-hono-middleware/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
|
|
17
|
+
[](https://socket.dev/npm/package/@wthek/hono-middleware/overview/1.0.0)
|
|
18
|
+
[](https://skillnter.github.io/wthek-hono-middleware/)
|
|
19
|
+
[](https://github.com/sponsors/Skillnter)
|
|
20
|
+
[](https://opencollective.com/skillnter)
|
|
21
|
+
[](https://www.buymeacoffee.com/skillnter)
|
|
22
|
+
[](https://www.patreon.com/skillnter)
|
|
23
|
+
[](https://www.paypal.me/skillnte)
|
|
24
|
+
|
|
25
|
+
## Features
|
|
26
|
+
|
|
27
|
+
- **Official `http-error-kit` Extension** – The recommended error-handling middleware for Hono apps.
|
|
28
|
+
- **Auto-sets HTTP status codes** – Ensures the response status matches the error type.
|
|
29
|
+
- **Plug-and-Play Middleware** – Register via `KitHonoMiddleware(app)` or `app.onError(KitHonoErrorHandler())`.
|
|
30
|
+
- **Graceful Fallbacks** – Returns clean error responses for non-Kit errors.
|
|
31
|
+
- **Configurable Logging** – Enable console logging or provide your own logger callback (Pino, Winston).
|
|
32
|
+
- **`handleUnknownErrors` Option** – Optionally catch non-Kit errors and return a structured 500 JSON response.
|
|
33
|
+
- **Multi-Runtime Support** – Works seamlessly across Node.js, Cloudflare Workers, Deno, and Bun.
|
|
34
|
+
|
|
35
|
+
## Table of Content
|
|
36
|
+
|
|
37
|
+
- [Installation](#installation)
|
|
38
|
+
- [Usage](#usage)
|
|
39
|
+
- [Options](#options)
|
|
40
|
+
- [Explore More WTHek Extensions](#explore-more-wthek-extensions)
|
|
41
|
+
- [People](#people)
|
|
42
|
+
- [Donations](#donations)
|
|
43
|
+
- [License](#license)
|
|
44
|
+
|
|
45
|
+
## Installation
|
|
46
|
+
|
|
47
|
+
```console
|
|
48
|
+
npm install @wthek/hono-middleware
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Usage
|
|
52
|
+
|
|
53
|
+
### 1. Global Setup (`KitHonoMiddleware`)
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
import { Hono } from "hono";
|
|
57
|
+
import { KitHonoMiddleware } from "@wthek/hono-middleware";
|
|
58
|
+
import { KitHttpError } from "http-error-kit";
|
|
59
|
+
import { NOT_FOUND } from "http-response-status-code";
|
|
60
|
+
|
|
61
|
+
const app = new Hono();
|
|
62
|
+
|
|
63
|
+
app.get("/users/:id", (c) => {
|
|
64
|
+
throw new KitHttpError(NOT_FOUND, "User Not Found", { id: c.req.param("id") });
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
// Register global error handler
|
|
68
|
+
KitHonoMiddleware(app, {
|
|
69
|
+
log: true,
|
|
70
|
+
handleUnknownErrors: true,
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export default app;
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 2. Standalone Handler (`KitHonoErrorHandler`)
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import { Hono } from "hono";
|
|
80
|
+
import { KitHonoErrorHandler } from "@wthek/hono-middleware";
|
|
81
|
+
|
|
82
|
+
const app = new Hono();
|
|
83
|
+
|
|
84
|
+
app.onError(
|
|
85
|
+
KitHonoErrorHandler({
|
|
86
|
+
log: (err, c) => console.error(`Error on ${c.req.method} ${c.req.path}:`, err),
|
|
87
|
+
handleUnknownErrors: true,
|
|
88
|
+
})
|
|
89
|
+
);
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Options
|
|
93
|
+
|
|
94
|
+
| Option | Type | Default | Description |
|
|
95
|
+
| --------------------- | ------------------------------------------------------- | ------- | ---------------------------------------------------------------------------------------------------- |
|
|
96
|
+
| `log` | `boolean \| ((error: unknown, c: Context) => void)` | `false` | When `true`, logs via `console.error`. When a function is provided, receives `(error, c)` for custom logging. |
|
|
97
|
+
| `handleUnknownErrors` | `boolean` | `false` | When `true`, non-Kit errors return a structured 500 JSON response instead of plain text. |
|
|
98
|
+
|
|
99
|
+
### Custom Formatting with `KitHttpErrorConfig`
|
|
100
|
+
|
|
101
|
+
```typescript
|
|
102
|
+
import { KitHttpErrorConfig } from "http-error-kit";
|
|
103
|
+
|
|
104
|
+
KitHttpErrorConfig.configureFormatter(
|
|
105
|
+
(statusCode, message, details, ...args) => ({
|
|
106
|
+
status: statusCode,
|
|
107
|
+
error: message,
|
|
108
|
+
details,
|
|
109
|
+
timestamp: new Date().toISOString(),
|
|
110
|
+
})
|
|
111
|
+
);
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Explore More WTHek Extensions
|
|
115
|
+
|
|
116
|
+
The WTHek ecosystem continues to grow with new extensions to simplify error handling across various frameworks and libraries. Stay updated with the latest tools that integrate seamlessly with `http-error-kit`.
|
|
117
|
+
|
|
118
|
+
**Check out the official list of extensions**: [Official Extensions List](https://github.com/Skillnter/http-error-kit/wiki/Official-Extensions-List)
|
|
119
|
+
|
|
120
|
+
## People
|
|
121
|
+
|
|
122
|
+
The original author of the project is [Himanshu Bansal][skillnter]
|
|
123
|
+
|
|
124
|
+
## Donations
|
|
125
|
+
|
|
126
|
+
**This is all voluntary work**, so if you want to support my efforts you can
|
|
127
|
+
|
|
128
|
+
- [Buy Me A Coffee](https://www.buymeacoffee.com/skillnter)
|
|
129
|
+
- [Paypal](https://www.paypal.me/skillnte)
|
|
130
|
+
- [GitHub Sponsor](https://github.com/sponsors/Skillnter)
|
|
131
|
+
- [Patreon](https://www.patreon.com/skillnter)
|
|
132
|
+
- [Open Collective](https://opencollective.com/skillnter)
|
|
133
|
+
|
|
134
|
+
You can also use the following:
|
|
135
|
+
|
|
136
|
+

|
|
137
|
+
|
|
138
|
+

|
|
139
|
+
|
|
140
|
+

|
|
141
|
+
|
|
142
|
+
## License
|
|
143
|
+
|
|
144
|
+
`@wthek/hono-middleware` project is open-sourced software licensed under the [MIT license](LICENSE) by [Himanshu Bansal][skillnter].
|
|
145
|
+
|
|
146
|
+
[skillnter]: https://github.com/Skillnter/
|
|
147
|
+
[http-error-kit]: https://www.npmjs.com/package/http-error-kit
|
|
2
148
|
|
|
3
|
-
This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { Context, ErrorHandler, Hono } from "hono";
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options for KitHonoMiddleware and KitHonoErrorHandler.
|
|
4
|
+
*/
|
|
5
|
+
export interface IKitHonoMiddlewareOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Optional logger callback or boolean flag.
|
|
8
|
+
* When set to `true`, errors are logged via `console.error`.
|
|
9
|
+
* When set to a function, the function receives the error and context
|
|
10
|
+
* for custom logging (e.g. Pino, Winston).
|
|
11
|
+
*
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
log?: boolean | ((error: unknown, c: Context) => void);
|
|
15
|
+
/**
|
|
16
|
+
* If true, catches non-Kit errors and returns a structured 500 JSON response
|
|
17
|
+
* instead of passing raw error messages.
|
|
18
|
+
*
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
handleUnknownErrors?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns a Hono error handler function for applications powered by `http-error-kit`.
|
|
25
|
+
* The returned handler inspects errors and, if they are instances of `KitHttpError`
|
|
26
|
+
* or `KitGeneralError`, sends a structured JSON response with the appropriate HTTP status code.
|
|
27
|
+
* Unrecognised errors are either returned as a text error response or formatted as a structured
|
|
28
|
+
* 500 JSON response when `handleUnknownErrors` is enabled.
|
|
29
|
+
*
|
|
30
|
+
* Use this when you need to pass the handler explicitly to `app.onError` or sub-routers.
|
|
31
|
+
*
|
|
32
|
+
* @param {IKitHonoMiddlewareOptions} [options] Optional configuration for the handler.
|
|
33
|
+
* @returns {ErrorHandler} A Hono-compatible error handler function.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import { Hono } from "hono";
|
|
38
|
+
* import { KitHonoErrorHandler } from "@wthek/hono-middleware";
|
|
39
|
+
*
|
|
40
|
+
* const app = new Hono();
|
|
41
|
+
* app.onError(KitHonoErrorHandler({ log: true }));
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare const KitHonoErrorHandler: (options?: IKitHonoMiddlewareOptions) => ErrorHandler;
|
|
45
|
+
/**
|
|
46
|
+
* KitHonoMiddleware is a convenience wrapper that registers `KitHonoErrorHandler`
|
|
47
|
+
* as the global error handler on the given Hono instance via `app.onError`.
|
|
48
|
+
*
|
|
49
|
+
* @param {Hono} app The Hono application instance.
|
|
50
|
+
* @param {IKitHonoMiddlewareOptions} [options] Optional configuration for the middleware.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```typescript
|
|
54
|
+
* import { Hono } from "hono";
|
|
55
|
+
* import { KitHonoMiddleware } from "@wthek/hono-middleware";
|
|
56
|
+
*
|
|
57
|
+
* const app = new Hono();
|
|
58
|
+
* KitHonoMiddleware(app, { log: true, handleUnknownErrors: true });
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare const KitHonoMiddleware: (app: Hono, options?: IKitHonoMiddlewareOptions) => void;
|
|
62
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KitHonoMiddleware = exports.KitHonoErrorHandler = void 0;
|
|
4
|
+
var http_error_kit_1 = require("http-error-kit");
|
|
5
|
+
var http_response_status_code_1 = require("http-response-status-code");
|
|
6
|
+
/**
|
|
7
|
+
* Returns a Hono error handler function for applications powered by `http-error-kit`.
|
|
8
|
+
* The returned handler inspects errors and, if they are instances of `KitHttpError`
|
|
9
|
+
* or `KitGeneralError`, sends a structured JSON response with the appropriate HTTP status code.
|
|
10
|
+
* Unrecognised errors are either returned as a text error response or formatted as a structured
|
|
11
|
+
* 500 JSON response when `handleUnknownErrors` is enabled.
|
|
12
|
+
*
|
|
13
|
+
* Use this when you need to pass the handler explicitly to `app.onError` or sub-routers.
|
|
14
|
+
*
|
|
15
|
+
* @param {IKitHonoMiddlewareOptions} [options] Optional configuration for the handler.
|
|
16
|
+
* @returns {ErrorHandler} A Hono-compatible error handler function.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import { Hono } from "hono";
|
|
21
|
+
* import { KitHonoErrorHandler } from "@wthek/hono-middleware";
|
|
22
|
+
*
|
|
23
|
+
* const app = new Hono();
|
|
24
|
+
* app.onError(KitHonoErrorHandler({ log: true }));
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
var KitHonoErrorHandler = function (options) {
|
|
28
|
+
var _a = options !== null && options !== void 0 ? options : {}, _b = _a.log, log = _b === void 0 ? false : _b, _c = _a.handleUnknownErrors, handleUnknownErrors = _c === void 0 ? false : _c;
|
|
29
|
+
return function (error, c) {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
try {
|
|
32
|
+
if (log) {
|
|
33
|
+
if (typeof log === "function") {
|
|
34
|
+
log(error, c);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
console.error(error);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (error instanceof http_error_kit_1.KitHttpError || error instanceof http_error_kit_1.KitGeneralError) {
|
|
41
|
+
// eslint-disable-next-line
|
|
42
|
+
var statusCode = ((_b = (_a = error.getInputs()) === null || _a === void 0 ? void 0 : _a.statusCode) !== null && _b !== void 0 ? _b : http_response_status_code_1.INTERNAL_SERVER_ERROR);
|
|
43
|
+
var payload = typeof error.toJSON === "function" ? error.toJSON() : error;
|
|
44
|
+
return c.json(payload, statusCode);
|
|
45
|
+
}
|
|
46
|
+
if (handleUnknownErrors) {
|
|
47
|
+
return c.json({
|
|
48
|
+
message: (0, http_response_status_code_1.getStatusDescription)(http_response_status_code_1.INTERNAL_SERVER_ERROR),
|
|
49
|
+
statusCode: http_response_status_code_1.INTERNAL_SERVER_ERROR,
|
|
50
|
+
}, http_response_status_code_1.INTERNAL_SERVER_ERROR);
|
|
51
|
+
}
|
|
52
|
+
var message = error instanceof Error
|
|
53
|
+
? error.message
|
|
54
|
+
: (0, http_response_status_code_1.getStatusDescription)(http_response_status_code_1.INTERNAL_SERVER_ERROR);
|
|
55
|
+
return c.text(message, http_response_status_code_1.INTERNAL_SERVER_ERROR);
|
|
56
|
+
}
|
|
57
|
+
catch (_c) {
|
|
58
|
+
return c.text((0, http_response_status_code_1.getStatusDescription)(http_response_status_code_1.INTERNAL_SERVER_ERROR), http_response_status_code_1.INTERNAL_SERVER_ERROR);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
exports.KitHonoErrorHandler = KitHonoErrorHandler;
|
|
63
|
+
/**
|
|
64
|
+
* KitHonoMiddleware is a convenience wrapper that registers `KitHonoErrorHandler`
|
|
65
|
+
* as the global error handler on the given Hono instance via `app.onError`.
|
|
66
|
+
*
|
|
67
|
+
* @param {Hono} app The Hono application instance.
|
|
68
|
+
* @param {IKitHonoMiddlewareOptions} [options] Optional configuration for the middleware.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```typescript
|
|
72
|
+
* import { Hono } from "hono";
|
|
73
|
+
* import { KitHonoMiddleware } from "@wthek/hono-middleware";
|
|
74
|
+
*
|
|
75
|
+
* const app = new Hono();
|
|
76
|
+
* KitHonoMiddleware(app, { log: true, handleUnknownErrors: true });
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
var KitHonoMiddleware = function (app, options) {
|
|
80
|
+
app.onError((0, exports.KitHonoErrorHandler)(options));
|
|
81
|
+
};
|
|
82
|
+
exports.KitHonoMiddleware = KitHonoMiddleware;
|
package/package.json
CHANGED
|
@@ -1,6 +1,104 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@wthek/hono-middleware",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Production-safe Hono error-handling middleware for http-error-kit. Maps KitHttpError instances to structured JSON responses with correct HTTP status codes and optional logging.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./package.json": "./package.json"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "jest --config jest.config.ts",
|
|
17
|
+
"build": "tsc --build",
|
|
18
|
+
"coverage": "jest --coverage --config jest.config.ts",
|
|
19
|
+
"prepublishOnly": "npm run test && npm run build"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/Skillnter/wthek-hono-middleware.git"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"http",
|
|
27
|
+
"error",
|
|
28
|
+
"kit",
|
|
29
|
+
"http-errors",
|
|
30
|
+
"custom-errors",
|
|
31
|
+
"error-handling",
|
|
32
|
+
"hono",
|
|
33
|
+
"hono-middleware",
|
|
34
|
+
"hono-error-handler",
|
|
35
|
+
"honojs",
|
|
36
|
+
"rest-api",
|
|
37
|
+
"status-codes",
|
|
38
|
+
"api-error",
|
|
39
|
+
"json-error",
|
|
40
|
+
"typescript",
|
|
41
|
+
"middleware",
|
|
42
|
+
"wthek",
|
|
43
|
+
"skillnter"
|
|
44
|
+
],
|
|
45
|
+
"author": "Himanshu Bansal <skillhimanshubansal@gmail.com>",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=18"
|
|
49
|
+
},
|
|
50
|
+
"bugs": {
|
|
51
|
+
"url": "https://github.com/Skillnter/wthek-hono-middleware/issues"
|
|
52
|
+
},
|
|
53
|
+
"homepage": "https://github.com/Skillnter/wthek-hono-middleware#readme",
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"http-error-kit": "^1.2.0",
|
|
56
|
+
"http-response-status-code": "^1.8.0"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"hono": "^4.0.0"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@types/jest": "^29.5.14",
|
|
63
|
+
"@types/mocha": "^10.0.10",
|
|
64
|
+
"@types/node": "^22.13.4",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^8.22.0",
|
|
66
|
+
"eslint-plugin-security": "^3.0.1",
|
|
67
|
+
"hono": "^4.13.18",
|
|
68
|
+
"jest": "^29.7.0",
|
|
69
|
+
"ts-jest": "^29.2.5",
|
|
70
|
+
"ts-node": "^10.9.2",
|
|
71
|
+
"tslib": "^2.8.1",
|
|
72
|
+
"typescript": "^5.7.3"
|
|
73
|
+
},
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"@skillnter:registry": "https://npm.pkg.github.com/"
|
|
76
|
+
},
|
|
77
|
+
"files": [
|
|
78
|
+
"dist/index.js",
|
|
79
|
+
"dist/index.d.ts",
|
|
80
|
+
"LICENSE"
|
|
81
|
+
],
|
|
82
|
+
"funding": [
|
|
83
|
+
{
|
|
84
|
+
"type": "github",
|
|
85
|
+
"url": "https://github.com/sponsors/Skillnter"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "patreon",
|
|
89
|
+
"url": "https://www.patreon.com/skillnter"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "open_collective",
|
|
93
|
+
"url": "https://opencollective.com/skillnter"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "buy_me_a_coffee",
|
|
97
|
+
"url": "https://buymeacoffee.com/skillnter"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "paypal",
|
|
101
|
+
"url": "https://www.paypal.com/paypalme/skillnte"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|