@cripty2001/utils 0.0.241 → 0.0.243
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.
|
@@ -4,6 +4,7 @@ import { AppserverData } from './common';
|
|
|
4
4
|
export type { AppserverData };
|
|
5
5
|
export { Static, TSchema, Type } from '@sinclair/typebox';
|
|
6
6
|
export { Value } from '@sinclair/typebox/value';
|
|
7
|
+
export { FormatRegistry } from '@sinclair/typebox';
|
|
7
8
|
export type AppserverHandler<I extends AppserverData, O extends AppserverData> = (input: I, auth: string | undefined) => Promise<O> | O;
|
|
8
9
|
declare class AppserverError<P extends AppserverData = AppserverData> extends Error {
|
|
9
10
|
code: string;
|
package/dist/Appserver/server.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.AppserverDispatcher = exports.AppserverHandledError = exports.AppserverAuthError = exports.Value = exports.Type = void 0;
|
|
6
|
+
exports.AppserverDispatcher = exports.AppserverHandledError = exports.AppserverAuthError = exports.FormatRegistry = exports.Value = exports.Type = void 0;
|
|
7
7
|
const msgpack_1 = require("@msgpack/msgpack");
|
|
8
8
|
const value_1 = require("@sinclair/typebox/value");
|
|
9
9
|
const express_1 = __importDefault(require("express"));
|
|
@@ -14,6 +14,8 @@ var typebox_1 = require("@sinclair/typebox");
|
|
|
14
14
|
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return typebox_1.Type; } });
|
|
15
15
|
var value_2 = require("@sinclair/typebox/value");
|
|
16
16
|
Object.defineProperty(exports, "Value", { enumerable: true, get: function () { return value_2.Value; } });
|
|
17
|
+
var typebox_2 = require("@sinclair/typebox");
|
|
18
|
+
Object.defineProperty(exports, "FormatRegistry", { enumerable: true, get: function () { return typebox_2.FormatRegistry; } });
|
|
17
19
|
(0, msgpack_1.encode)({}); // Fixes issue with msgpack not being included in build
|
|
18
20
|
class AppserverError extends Error {
|
|
19
21
|
code;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cripty2001/utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.243",
|
|
4
4
|
"description": "Internal Set of utils. If you need them use them, otherwise go to the next package ;)",
|
|
5
5
|
"homepage": "https://github.com/cripty2001/utils#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": "Fabio Mauri <cripty2001@outlook.com>",
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=
|
|
16
|
+
"node": ">=26"
|
|
17
17
|
},
|
|
18
18
|
"main": "./dist/index.js",
|
|
19
19
|
"types": "./dist/index.d.ts",
|