@vorplex/api 0.0.4 → 0.0.9
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/client/hub-client.mode.d.ts +9 -0
- package/dist/client/hub-client.mode.js +51 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +3 -0
- package/dist/client/parse-jwt.function.d.ts +1 -0
- package/dist/client/parse-jwt.function.js +8 -0
- package/dist/client/tsconfig.build.tsbuildinfo +1 -0
- package/dist/server/index.d.ts +12 -0
- package/dist/server/index.js +13 -0
- package/dist/server/jwt.util.d.ts +8 -0
- package/dist/server/jwt.util.js +42 -0
- package/dist/server/server/controller/controller.interface.d.ts +15 -0
- package/dist/server/server/controller/controller.interface.js +0 -0
- package/dist/server/server/controller/handler.interface.d.ts +28 -0
- package/dist/server/server/controller/handler.interface.js +0 -0
- package/dist/server/server/http/error.model.d.ts +9 -0
- package/dist/server/server/http/error.model.js +16 -0
- package/dist/server/server/http/reader.util.d.ts +5 -0
- package/dist/server/server/http/reader.util.js +37 -0
- package/dist/server/server/http/request-method.enum.d.ts +11 -0
- package/dist/server/server/http/request-method.enum.js +10 -0
- package/dist/server/server/http/responder.util.d.ts +37 -0
- package/dist/server/server/http/responder.util.js +66 -0
- package/dist/server/server/http/response-codes.enum.d.ts +16 -0
- package/dist/server/server/http/response-codes.enum.js +15 -0
- package/dist/server/server/http/response.interface.d.ts +23 -0
- package/dist/server/server/http/response.interface.js +0 -0
- package/dist/server/server/hub/action.interface.d.ts +15 -0
- package/dist/server/server/hub/action.interface.js +0 -0
- package/dist/server/server/hub/hub.interface.d.ts +5 -0
- package/dist/server/server/hub/hub.interface.js +0 -0
- package/dist/server/server/server.model.d.ts +78 -0
- package/dist/server/server/server.model.js +313 -0
- package/dist/server/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Subscription, WebClient } from '@vorplex/core';
|
|
2
|
+
export declare class HubClient {
|
|
3
|
+
client: WebClient;
|
|
4
|
+
name: string;
|
|
5
|
+
constructor(client: WebClient, name: string);
|
|
6
|
+
invoke(action: string, data?: any): void;
|
|
7
|
+
request<T>(action: string, data?: any): Promise<T>;
|
|
8
|
+
subscribe<T>(action: string, data: any, callback: (result: T) => void): Subscription;
|
|
9
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { $Id } from '@vorplex/core';
|
|
2
|
+
export class HubClient {
|
|
3
|
+
client;
|
|
4
|
+
name;
|
|
5
|
+
constructor(client, name) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
this.name = name;
|
|
8
|
+
}
|
|
9
|
+
invoke(action, data) {
|
|
10
|
+
this.client.send({
|
|
11
|
+
id: $Id.uuid(),
|
|
12
|
+
hub: this.name,
|
|
13
|
+
action,
|
|
14
|
+
data
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
request(action, data) {
|
|
18
|
+
const id = $Id.uuid();
|
|
19
|
+
return new Promise((resolve, reject) => {
|
|
20
|
+
this.client.stream.until(packet => typeof packet === 'object' && packet != null && packet.id === id).then(packet => {
|
|
21
|
+
if ('error' in packet)
|
|
22
|
+
reject(packet.error);
|
|
23
|
+
else if ('data' in packet)
|
|
24
|
+
resolve(packet.data);
|
|
25
|
+
});
|
|
26
|
+
this.client.send({
|
|
27
|
+
id,
|
|
28
|
+
hub: this.name,
|
|
29
|
+
action,
|
|
30
|
+
data
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
subscribe(action, data, callback) {
|
|
35
|
+
const id = $Id.uuid();
|
|
36
|
+
const subscription = this.client.stream.subscribe(packet => {
|
|
37
|
+
if (typeof packet === 'object' && packet != null && packet.id === id) {
|
|
38
|
+
callback(packet.data);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
this.client.send({
|
|
42
|
+
id,
|
|
43
|
+
hub: this.name,
|
|
44
|
+
action,
|
|
45
|
+
data
|
|
46
|
+
});
|
|
47
|
+
return {
|
|
48
|
+
unsubscribe: () => subscription.unsubscribe()
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseJwt(token: string): any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function parseJwt(token) {
|
|
2
|
+
var base64Url = token.split('.')[1];
|
|
3
|
+
var base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
|
|
4
|
+
var jsonPayload = decodeURIComponent(window.atob(base64).split('').map(function (c) {
|
|
5
|
+
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
|
|
6
|
+
}).join(''));
|
|
7
|
+
return JSON.parse(jsonPayload);
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es5.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2021.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2022.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2023.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2024.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.esnext.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.dom.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2024.object.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2024.string.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.esnext.error.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../core/dist/consts/mime-type.const.d.ts","../../../core/dist/consts/unit.const.d.ts","../../../core/dist/functions/debounce.function.d.ts","../../../core/dist/functions/is-node-environment.function.d.ts","../../../core/dist/functions/parse-path-selector.function.d.ts","../../../core/dist/functions/parse-url.function.d.ts","../../../core/dist/interfaces/group.interface.d.ts","../../../core/dist/interfaces/key-value.interface.d.ts","../../../core/dist/modules/subscribable/subscription.interface.d.ts","../../../core/dist/modules/subscribable/subscribable.model.d.ts","../../../core/dist/modules/api/socket.model.d.ts","../../../core/dist/modules/api/web-client.model.d.ts","../../../core/dist/types/predicate.type.d.ts","../../../core/dist/types/selector.type.d.ts","../../../core/dist/modules/array/array.util.d.ts","../../../core/dist/modules/changes/changes.util.d.ts","../../../core/dist/modules/color/hsl.interface.d.ts","../../../core/dist/modules/color/hsv.interface.d.ts","../../../core/dist/modules/color/rgb.interface.d.ts","../../../core/dist/modules/color/color-data.interface.d.ts","../../../core/dist/modules/color/color-formats.const.d.ts","../../../core/dist/modules/color/color.type.d.ts","../../../core/dist/modules/color/color.util.d.ts","../../../core/dist/modules/color/colors.const.d.ts","../../../core/dist/modules/compression/compression.util.d.ts","../../../core/dist/modules/date/date.util.d.ts","../../../core/dist/modules/enum/enum.util.d.ts","../../../core/dist/modules/hash/hash.util.d.ts","../../../core/dist/modules/id/id.util.d.ts","../../../core/dist/modules/reflection/types/constructor.type.d.ts","../../../core/dist/modules/reflection/types/type.type.d.ts","../../../core/dist/modules/reflection/types/instance.type.d.ts","../../../core/dist/modules/injector/provider-scopes.enum.d.ts","../../../core/dist/modules/injector/provider.interface.d.ts","../../../core/dist/modules/injector/injector.model.d.ts","../../../core/dist/modules/reflection/interfaces/parameter.interface.d.ts","../../../core/dist/modules/reflection/utils/decorator.util.d.ts","../../../core/dist/modules/injector/decorators/inject-token.decorator.d.ts","../../../core/dist/modules/injector/decorators/injectable.decorator.d.ts","../../../core/dist/modules/json-filter/json-filter.function.d.ts","../../../core/dist/modules/logging/logger.model.d.ts","../../../core/dist/modules/logging/console-logger.model.d.ts","../../../core/dist/modules/logging/task.d.ts","../../../core/dist/modules/math/rect.d.ts","../../../core/dist/modules/math/point.d.ts","../../../core/dist/modules/math/line.d.ts","../../../core/dist/modules/math/polygon.d.ts","../../../core/dist/modules/math/size.d.ts","../../../core/dist/modules/number/number.util.d.ts","../../../core/dist/modules/object/object.util.d.ts","../../../core/dist/modules/path/path.util.d.ts","../../../core/dist/modules/random/random.util.d.ts","../../../core/dist/modules/readable-stream/readable-stream.util.d.ts","../../../core/dist/modules/reflection/models/attribute.model.d.ts","../../../core/dist/modules/reflection/models/class-attribute.model.d.ts","../../../core/dist/modules/reflection/models/method-attribute.model.d.ts","../../../core/dist/modules/reflection/models/parameter-attribute.model.d.ts","../../../core/dist/modules/reflection/models/property-attribute.model.d.ts","../../../core/dist/modules/reflection/models/property-proxy-attribute.model.d.ts","../../../core/dist/modules/reflection/utils/reflection.util.d.ts","../../../core/dist/modules/router/router.util.d.ts","../../../core/dist/types/keys-of-type.type.d.ts","../../../core/dist/modules/state/update.type.d.ts","../../../core/dist/modules/state/adaptors/array/array-adaptor.util.d.ts","../../../core/dist/modules/state/adaptors/entity/entity.interface.d.ts","../../../core/dist/modules/state/adaptors/entity/entity-map.type.d.ts","../../../core/dist/modules/state/adaptors/entity/entity-adaptor.util.d.ts","../../../core/dist/modules/state/state.model.d.ts","../../../core/dist/modules/string/string.util.d.ts","../../../core/dist/modules/tson/schemas/schema-base.d.ts","../../../core/dist/modules/tson/schemas/any.d.ts","../../../core/dist/types/has-key.type.d.ts","../../../core/dist/types/is-union.type.d.ts","../../../core/dist/modules/tson/schemas/boolean.d.ts","../../../core/dist/modules/tson/schemas/enum.d.ts","../../../core/dist/modules/tson/schemas/number.d.ts","../../../core/dist/modules/tson/schemas/object.d.ts","../../../core/dist/modules/tson/schemas/string.d.ts","../../../core/dist/modules/tson/schemas/union.d.ts","../../../core/dist/modules/tson/type.d.ts","../../../core/dist/modules/tson/schemas/array.d.ts","../../../core/dist/modules/tson/schema.d.ts","../../../core/dist/modules/tson/error.d.ts","../../../core/dist/modules/tson/tson.d.ts","../../../core/dist/modules/value/value.util.d.ts","../../../core/dist/types/awaitable.type.d.ts","../../../core/dist/types/camel-to-kebab.type.d.ts","../../../core/dist/types/keys-with-fix.type.d.ts","../../../core/dist/types/optional-keys.type.d.ts","../../../core/dist/types/partial.type.d.ts","../../../core/dist/types/recursive-readonly.type.d.ts","../../../core/dist/types/recursive-value.type.d.ts","../../../core/dist/index.d.ts","../../client/hub-client.mode.ts","../../client/parse-jwt.function.ts","../../client/index.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/compatibility/disposable.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/compatibility/indexable.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/compatibility/iterators.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/compatibility/index.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/globals.typedarray.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/buffer.buffer.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/globals.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/web-globals/domexception.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/web-globals/events.d.ts","../../../../../node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/web-globals/fetch.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/assert.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/assert/strict.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/async_hooks.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/buffer.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/child_process.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/cluster.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/console.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/constants.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/crypto.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/dgram.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/diagnostics_channel.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/dns.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/dns/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/domain.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/events.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/fs.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/fs/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/http.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/http2.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/https.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/inspector.generated.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/module.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/net.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/os.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/path.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/perf_hooks.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/process.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/punycode.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/querystring.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/readline.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/readline/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/repl.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/sea.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/stream.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/stream/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/stream/consumers.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/stream/web.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/string_decoder.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/test.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/timers.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/timers/promises.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/tls.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/trace_events.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/tty.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/url.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/util.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/v8.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/vm.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/wasi.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/worker_threads.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/zlib.d.ts","../../../../../node_modules/.pnpm/@types+node@20.19.25/node_modules/@types/node/index.d.ts","../../../../../node_modules/.pnpm/@types+formidable@3.4.6/node_modules/@types/formidable/Formidable.d.ts","../../../../../node_modules/.pnpm/@types+formidable@3.4.6/node_modules/@types/formidable/parsers/index.d.ts","../../../../../node_modules/.pnpm/@types+formidable@3.4.6/node_modules/@types/formidable/PersistentFile.d.ts","../../../../../node_modules/.pnpm/@types+formidable@3.4.6/node_modules/@types/formidable/VolatileFile.d.ts","../../../../../node_modules/.pnpm/@types+formidable@3.4.6/node_modules/@types/formidable/FormidableError.d.ts","../../../../../node_modules/.pnpm/@types+formidable@3.4.6/node_modules/@types/formidable/index.d.ts","../../../../../node_modules/.pnpm/@jest+expect-utils@29.7.0/node_modules/@jest/expect-utils/build/index.d.ts","../../../../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../../../node_modules/.pnpm/@sinclair+typebox@0.27.8/node_modules/@sinclair/typebox/typebox.d.ts","../../../../../node_modules/.pnpm/@jest+schemas@29.6.3/node_modules/@jest/schemas/build/index.d.ts","../../../../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/index.d.ts","../../../../../node_modules/.pnpm/jest-diff@29.7.0/node_modules/jest-diff/build/index.d.ts","../../../../../node_modules/.pnpm/jest-matcher-utils@29.7.0/node_modules/jest-matcher-utils/build/index.d.ts","../../../../../node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.d.ts","../../../../../node_modules/.pnpm/@types+jest@29.5.14/node_modules/@types/jest/index.d.ts","../../../../../node_modules/.pnpm/@types+ws@8.18.1/node_modules/@types/ws/index.d.ts"],"fileIdsList":[[184,231],[184,231,288],[184,231,245,261,285],[184,231,242,285],[184,231,261,279,280,281,282,283,284],[184,231,261,285],[184,231,290,293],[184,228,231],[184,230,231],[231],[184,231,236,264],[184,231,232,237,242,250,261,272],[184,231,232,233,242,250],[179,180,181,184,231],[184,231,234,273],[184,231,235,236,243,251],[184,231,236,261,269],[184,231,237,239,242,250],[184,230,231,238],[184,231,239,240],[184,231,241,242],[184,230,231,242],[184,231,242,243,244,261,272],[184,231,242,243,244,257,261,264],[184,231,239,242,245,250,261,272],[184,231,242,243,245,246,250,261,269,272],[184,231,245,247,261,269,272],[182,183,184,185,186,187,188,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278],[184,231,242,248],[184,231,249,272,277],[184,231,239,242,250,261],[184,231,251],[184,231,252],[184,230,231,253],[184,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278],[184,231,255],[184,231,256],[184,231,242,257,258],[184,231,257,259,273,275],[184,231,242,261,262,264],[184,231,263,264],[184,231,261,262],[184,231,264],[184,231,265],[184,228,231,261,266],[184,231,242,267,268],[184,231,267,268],[184,231,236,250,261,269],[184,231,270],[184,231,250,271],[184,231,245,256,272],[184,231,236,273],[184,231,261,274],[184,231,249,275],[184,231,276],[184,226,231],[184,226,231,242,244,253,261,264,272,275,277],[184,231,261,278],[184,231,242,245,247,250,261,269,272,278,279],[184,231,286,292],[184,231,290],[184,231,287,291],[184,231,289],[184,198,202,231,272],[184,198,231,261,272],[184,193,231],[184,195,198,231,269,272],[184,231,250,269],[184,231,279],[184,193,231,279],[184,195,198,231,250,272],[184,190,191,194,197,231,242,261,272],[184,198,205,231],[184,190,196,231],[184,198,219,220,231],[184,194,198,231,264,272,279],[184,219,231,279],[184,192,193,231,279],[184,198,231],[184,192,193,194,195,196,197,198,199,200,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,220,221,222,223,224,225,231],[184,198,213,231],[184,198,205,206,231],[184,196,198,206,207,231],[184,197,231],[184,190,193,198,231],[184,198,202,206,207,231],[184,202,231],[184,196,198,201,231,272],[184,190,195,198,205,231],[184,231,261],[184,193,198,219,231,277,279],[175,184,231],[176,177,184,231],[83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,184,231],[92,184,231],[92,93,175,184,231],[95,96,184,231],[99,100,101,184,231],[99,100,101,102,103,104,184,231],[90,184,231],[113,119,184,231],[115,119,175,184,231],[112,113,114,116,184,231],[113,115,117,184,231],[123,184,231],[127,184,231],[126,184,231],[127,128,184,231],[84,184,231],[136,184,231],[140,184,231],[112,113,184,231],[112,184,231],[113,118,184,231],[95,96,144,145,184,231],[95,144,145,147,148,184,231],[147,184,231],[91,92,112,145,146,147,148,149,184,231],[91,184,231],[164,184,231],[153,156,157,158,159,160,161,163,184,231],[152,164,184,231],[152,162,164,184,231],[113,152,162,164,184,231],[153,156,157,158,159,160,161,163,164,184,231],[154,155,156,157,158,159,160,161,163,164,184,231],[145,184,231]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"2ab096661c711e4a81cc464fa1e6feb929a54f5340b46b0a07ac6bbf857471f0","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"73f78680d4c08509933daf80947902f6ff41b6230f94dd002ae372620adb0f60","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5239f5c01bcfa9cd32f37c496cf19c61d69d37e48be9de612b541aac915805b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"7c7cb43c0cb8d1d52a5564fd000ac3f2c814ecaa0133f122887818928bf18d26","d7ee3684ddd5ff2f622c8c601a8d43929d33a108706a6b86c0dda6303e0add14","92743ab632fe6d538e40187f398cbca4e4ab449a79506012ea8e6f9e41bbaa9d","53a1b081526a7ac240fbda06cbc197165a965f330ef3d8354631c13e4c34af20","941b69f3e84d9f8b26e0ecfb0e2a61f2498d2b3ba64d9c4095bff55c13a44058","d56699e68569c31ebb695db54cb9978698ce10517c23d89e7c195e554175c1d2","cb928516cefee7428b3dc4e92e79ea97606565d5791b4c2d561b29f99c04e9ad","ab4f69cb1e39f346f07caf4906c34ec37473adc48e426c3c77b46be6dc1cbba8","0a04467d4ce30ecdb95243491e728bb56f8f563abf07af352018751ef9dfdcc8","3ea951f463811925928385158fd018030b1f72d8d8ade79bcfd66c4056e51062","a13afacf33edd1afdd1dd208fe824c6cd045777d7328ef7573507395a183c6c4","c202ba4eb9883029ec919a719d1d9f54aaf680bf21559b1b7704dbdbda987cfe","dd1248b5882c206f6be981bc7f4387cb58edf0884a060b8c5a3ddd2796e2bc5b","8d3888b86185726280c7725803857c16e49e103b035669638d6fc33b357a77bc","439a03b5ed1908a43c68d515ad95bdf474387d729b98e8a7c76b62213cd3e6e2","196492ba9c5c8efa0c96dff26a27ca33de4558eb70c564820831c94c1e367004","a199b3ade688ad72011522ff1c90bca0b5386d9b9f53ae8e1b289574d3d226d1","efdcf4dc73277b9cf4e861d24a7acc03141cb560136de92078043ef83670956c","1569ec5614e310bfd2d31c53805f45f773a0171d65fbed36722f333634817e91","5a3a4cb94fe6b2c67a28c59a57a6cf8a80f3e1dae62617b1519f0eade4bbe520","9d85ee2bc848b6f7e0561fa812a32aa5bdd3170a8f2b52c9bd2918a1f3393444","d44e022f2d0daefc5fca52e8cab02a3e4361eb6db3df75cb7e00ca260379b958","abc045d8818b980849d65571b82638c75bd585f06cfa7185119a6ebdfb147d21","3a1dd36d176838ce153c17f8d1abfd8bd0522fcc6f6b48cfe2bb7adceb698938","365b06b997e532856e0723ca86ac402e0a891c9db4f97804f4add38e6792aa4a","8498db082e33ff00f2bf7c9e12513573c09fbd7ce4025a2c226eb6f3d2b77931","72474b704a5635f241c2ef705785d180bd66a9e9b1aa54f3b4fc765525ba77bc","daaa1f1d5e19823462305d8e53ec2bd8796bdad17539acbb5be045d9803ebcd2","8ed3cda28744c8115fc1a85b8d6b8e8a08a95ed87fc57c5d80e24328383c16d5","4b6fc11d4f6042120b71a7b55d523a1d689d138e152004b6a8b8fca07dd8f58f","b3f880e84c162382bfba20003c4eb4e4871acc2dc4f8dd4cb69767df3462819e","73c90a10c08a138ee9188cf0d42aa8648869a0de32dbe5c10b8151d850cd8d35","9934b5f7dd73f1a4fbc63e850d73b07f825a412c082bb0e80e8ba02230082faf","0242bbd4b9bdaaf6dc9bce591cd7633a07f4dcb1e1f9d2c229d01a8f5ec3f39b","7e2397316b11a700e486e8be7431031db2ba59518234397269a49463d553a7b9","19888190d1352d0ac1c385170e0b959abc6bb03a0fbf4c6d20b8252a19f59b5b","2f4661b318ffdd5c83bc5f6c872c2ba1fab9df2f2babef76535aa0074f4e87ae","6c9bacfb9bef4af651ae43f2bd3f71229152aa64599294acf3da6759a2ee99e6","3d99a4ccf45850b3e4336e290a3d36be45ef74407b8a761404d82e15117cdf14","f76f5102639ba9f955b1fdafd80068e59b4c4a59e8acbccc84c3cf9062f1b618","46e437a88581ec09bcf12324c99b793df8a20e5adf62c7f82b96336216e1ccb4","f0b2ddaba4125dad2f4809435986e5cb4355d22d81940f08eb6971a4f7cdf134","391c09ea9362662185909dd35ae02331f3727abb42264f8515853ffbefe507d7","d555cf99d7cd1b13ee8389f8f967fff0caaedb42d749660412134f190b876516","af16d27ac29913117e834b44ed478b3ef43c827f40a5364737f90ef245be78b0","61d6e73f3699921a7f4d9ccacd7444beddc752a83b46851e3f6a26cfcb30de77","206a678f05e6caa4119ca38175de2782210d7afb7efb09d92d47dc8023ab82f8","22b0aa6ab0611a31b81e6e5586e643c54d917bb29aec2bfe6d2552a8199af3cd","5d793ddde66c85114192ecd1158577f2fd8ba10f8b007c347f1b704224bb477f","7ef9156098293cf11f0b8f2f979d6e80eb87a592550aa128d317c5481a32f274","96d15f172288bdede6fa737dfb2c2d2802392abdeb3167148c2d3aadbc7dd446","50b033a7da7ce35a3f1e779ecc68a409e3e531e56bd7d8771e0d1afee28dae5a","31c666949c0b76fc814db04f17186f0aa3c5c9aa6e6edad0d8cd2289e80d3978","e07bb5e6ba301b3eeb8c242ad34eb15c222bafdb1aecf693df684420bbb487c2","d027f3b0ac52a757ecb72b450d9fee414f9c782c092912fe5c09fd3f155a9ff0","c1d11b097ecfc8bc993ec229a14180fc73d154b3582c79d26d86a56e139750d0","69de814b79636d0d9110703882496dec8b4e671bbec8a15872dd8d44d41bd04c","6479028d8b097ffe0d7693a87bfb15cc8215a71ce66c35e384301f7639e7e87f","9b11af388722d7d02b9a3d1d6cf4fcdd674edeae5cc415f26e8c0daba6ca5b28","4417dc7488a7282f44df8a4771d6cbf7a9000b4c342345542ae1cc9bc280a4a2","493930c9f9385f2c3ab74761bfab19054ef520a75f3264dce247cadc5794f966","e2d8475b4d4a28c9185fc8f124c35c14f84ded5b36f59f353a3780f32d42bc06","d69bc3e97b673fb7dc4c9851e3fb21c9cdeb3ceecfa3c771152ffa7607ec2aae","86c0b094d4c336ea6fa360da8e4f0de5000f682d4f9703bae8a59ebaa718bc00","f93049cad2cb94ff0b0cf167cdbde8b0dc871fbe416d9f99eb860b070c125590","3aded29de1c3495c6c07b55f9838f438938b084826a5335a09617e31e22c9419","1f31939734d49fd35f8e38a42f669ade905e3b8e5542de96f3dbd439868e063e","7a335064ce1259cecb009c3e361d81a361316a74e0c17a9db3af7f0d7d874f14","07a13cba33dec94c8e2f6b1f35aaf337145729fe06ada19c5053417004cec6bf","9b145f37731fa20ab6ba444466a020842bf4c97fef8fef2ef26855bc642898b7","3c877bd6228cb7cefedc9b00d8e183fdb094bb0f8704f591b5650e7d608bb8f7","fd38c4579f2b7d6a704391cc618e422cb62e6f30ec98c8f24c780d4ebe449a31","7d1bd9472f054f2ab1998b70a84d18c448d72029bbc3ade08d870b465955000d","dcdfd9f9550e654a9ca34d82ce1a0b4f9c43280b593b6ef4a33795e0dee1c030","76163efa999868aba217f945d749dde2d2376bf241aed001b24247b815b2cf33","b4091ee7bedac0fb6e6010f893e2db0faaa3177fb312e0ad9cdee312b928f9df","3777766001e8e6ce42c28992d308a50a3dc5bf737417403c275a7de36f156b17","92cbf2c841198aa5871b752a16cf80fd0a77ae1dc3d4acb275184a02d9203e49","4827ff920ccea77734347af2dc2d0e31dffbefc14ebe64f54be2f77cd248ce7e","429e84e6e3f89dda674207663499259c80fcc3e50480d8f224ea7afa99ad0fa0","3d4597804600117c9b0d11d852b1af47d340cebedd14cdc88e9ce3a6fc3cbcbb","44d061e35ce0a2ae3d72235d8f51e1bb0d0555999a4e34f1cb8ed270562a37fe","373a009bb1eb65fc062a99bf42ebde7dd72dc26df8aa17b9386280f4bd45a6b4","10cfc7b951c7b2201cbf46bba75ace4cdb9899d493287366cedc446e50999c76","b5a1af7b3a44e43d859a91e19d48e4b3381627aa144642cdb3a82c6444ad0448","d1cfbd825ad75068f67d76b149cdd35e3eab7a24968537d5c55633324c864e20","d621380ae74895e4e10c8cd955f4d33c11e2f1f31d039d6166f99cdd26f9223e","a850303531192d14cc5888fe823419bfc8e7f6910adbaae53b5a8184ddc0e92b","117227c63fb037c5d50f0836b22394fbee8e15019373cc8c54e8c49191adca52","0edafedf410cd01e07e75cda6f1a7a74cfd44cc32dad5b0107cdaa615dfdee5b","f1ed4beded29d27cfcf3d80c5149eba91ce29be156db198593f0120d5c46fc9f","366792155d3324ba92c28d811e160d816798f6ab69d89589c66826d31d6064a2","5317ff54e46a371824b879b09829bd8e7c61a26d6400e1f1f05b0989696513ea",{"version":"93d960f2e7bd367e52d9a0c6fcbfe31796eaf230d092a46de8dfc92453c4e2de","signature":"e3daa5797faf2614fe655fc22cd213cfa98e11d9e943d8d52b5b1b83ede28054"},{"version":"145118a80b74a97f9f4e1e0788f5aeb3cfc61ddd5ad95388135196fd36e12ed6","signature":"39d2d450df6efbf38585fd316f18922c8ac3fdfd4c3fc412d0bee34e2bc86378"},{"version":"f06c1a1ab02b4f0b0b66af6c614d1ccd73363b5904d0ebc3cdd5a587b58b4a01","signature":"11e649ac963d853a14b1621965a795976b8e1e287b92b04a4616ed2eeedefdf1"},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"ba481bca06f37d3f2c137ce343c7d5937029b2468f8e26111f3c9d9963d6568d","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d9ef24f9a22a88e3e9b3b3d8c40ab1ddb0853f1bfbd5c843c37800138437b61","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"2cbe0621042e2a68c7cbce5dfed3906a1862a16a7d496010636cdbdb91341c0f","affectsGlobalScope":true,"impliedFormat":1},{"version":"e2677634fe27e87348825bb041651e22d50a613e2fdf6a4a3ade971d71bac37e","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8c0bcd6c6b67b4b503c11e91a1fb91522ed585900eab2ab1f61bba7d7caa9d6f","impliedFormat":1},{"version":"8cd19276b6590b3ebbeeb030ac271871b9ed0afc3074ac88a94ed2449174b776","affectsGlobalScope":true,"impliedFormat":1},{"version":"696eb8d28f5949b87d894b26dc97318ef944c794a9a4e4f62360cd1d1958014b","impliedFormat":1},{"version":"3f8fa3061bd7402970b399300880d55257953ee6d3cd408722cb9ac20126460c","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"68bd56c92c2bd7d2339457eb84d63e7de3bd56a69b25f3576e1568d21a162398","affectsGlobalScope":true,"impliedFormat":1},{"version":"3e93b123f7c2944969d291b35fed2af79a6e9e27fdd5faa99748a51c07c02d28","impliedFormat":1},{"version":"9d19808c8c291a9010a6c788e8532a2da70f811adb431c97520803e0ec649991","impliedFormat":1},{"version":"87aad3dd9752067dc875cfaa466fc44246451c0c560b820796bdd528e29bef40","impliedFormat":1},{"version":"4aacb0dd020eeaef65426153686cc639a78ec2885dc72ad220be1d25f1a439df","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"8db0ae9cb14d9955b14c214f34dae1b9ef2baee2fe4ce794a4cd3ac2531e3255","affectsGlobalScope":true,"impliedFormat":1},{"version":"15fc6f7512c86810273af28f224251a5a879e4261b4d4c7e532abfbfc3983134","impliedFormat":1},{"version":"58adba1a8ab2d10b54dc1dced4e41f4e7c9772cbbac40939c0dc8ce2cdb1d442","impliedFormat":1},{"version":"2fd4c143eff88dabb57701e6a40e02a4dbc36d5eb1362e7964d32028056a782b","impliedFormat":1},{"version":"714435130b9015fae551788df2a88038471a5a11eb471f27c4ede86552842bc9","impliedFormat":1},{"version":"855cd5f7eb396f5f1ab1bc0f8580339bff77b68a770f84c6b254e319bbfd1ac7","impliedFormat":1},{"version":"5650cf3dace09e7c25d384e3e6b818b938f68f4e8de96f52d9c5a1b3db068e86","impliedFormat":1},{"version":"1354ca5c38bd3fd3836a68e0f7c9f91f172582ba30ab15bb8c075891b91502b7","affectsGlobalScope":true,"impliedFormat":1},{"version":"27fdb0da0daf3b337c5530c5f266efe046a6ceb606e395b346974e4360c36419","impliedFormat":1},{"version":"2d2fcaab481b31a5882065c7951255703ddbe1c0e507af56ea42d79ac3911201","impliedFormat":1},{"version":"afbe24ab0d74694372baa632ecb28bb375be53f3be53f9b07ecd7fc994907de5","impliedFormat":1},{"version":"ca867399f7db82df981d6915bcbb2d81131d7d1ef683bc782b59f71dda59bc85","affectsGlobalScope":true,"impliedFormat":1},{"version":"00877fef624f3171c2e44944fb63a55e2a9f9120d7c8b5eb4181c263c9a077cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"b4f70ec656a11d570e1a9edce07d118cd58d9760239e2ece99306ee9dfe61d02","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"6e70e9570e98aae2b825b533aa6292b6abd542e8d9f6e9475e88e1d7ba17c866","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"47ab634529c5955b6ad793474ae188fce3e6163e3a3fb5edd7e0e48f14435333","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"0225ecb9ed86bdb7a2c7fd01f1556906902929377b44483dc4b83e03b3ef227d","affectsGlobalScope":true,"impliedFormat":1},{"version":"74cf591a0f63db318651e0e04cb55f8791385f86e987a67fd4d2eaab8191f730","impliedFormat":1},{"version":"5eab9b3dc9b34f185417342436ec3f106898da5f4801992d8ff38ab3aff346b5","impliedFormat":1},{"version":"12ed4559eba17cd977aa0db658d25c4047067444b51acfdcbf38470630642b23","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3ffabc95802521e1e4bcba4c88d8615176dc6e09111d920c7a213bdda6e1d65","impliedFormat":1},{"version":"f9ab232778f2842ffd6955f88b1049982fa2ecb764d129ee4893cbc290f41977","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"c3b41e74b9a84b88b1dca61ec39eee25c0dbc8e7d519ba11bb070918cfacf656","affectsGlobalScope":true,"impliedFormat":1},{"version":"4737a9dc24d0e68b734e6cfbcea0c15a2cfafeb493485e27905f7856988c6b29","affectsGlobalScope":true,"impliedFormat":1},{"version":"36d8d3e7506b631c9582c251a2c0b8a28855af3f76719b12b534c6edf952748d","impliedFormat":1},{"version":"1ca69210cc42729e7ca97d3a9ad48f2e9cb0042bada4075b588ae5387debd318","impliedFormat":1},{"version":"f5ebe66baaf7c552cfa59d75f2bfba679f329204847db3cec385acda245e574e","impliedFormat":1},{"version":"ed59add13139f84da271cafd32e2171876b0a0af2f798d0c663e8eeb867732cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"05db535df8bdc30d9116fe754a3473d1b6479afbc14ae8eb18b605c62677d518","impliedFormat":1},{"version":"b1810689b76fd473bd12cc9ee219f8e62f54a7d08019a235d07424afbf074d25","impliedFormat":1},{"version":"fb499168722393a2e8223c295050f5111f5d28735497b46cf3f7ef340d3bef7d","impliedFormat":1},{"version":"5a08c5b7b4a9e7a649c8b1e62cc35ed6fb7f10db4379aa905237cfc3a10e9e57","impliedFormat":1},{"version":"1c55ee4b5d547aa4390b96df6a4d2c10753b2ee2feded87529c5b7962eef7e52","impliedFormat":1},{"version":"7d18ca035d92930c751695e7a250be66c9395fdfaa340cb44733ad8c82783c75","impliedFormat":1},{"version":"cb6bc3ce940e3587566e4ea6328a14bda2c52cd03fc6217865a86d2af0b56a99","impliedFormat":1},{"version":"64f84434bc81b4a2a276829dfec06d57530148ea8139e1fb1b48f4b2e502c425","impliedFormat":1},{"version":"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","impliedFormat":1},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","impliedFormat":1},{"version":"f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","impliedFormat":1},{"version":"5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","impliedFormat":1},{"version":"3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","impliedFormat":1},{"version":"ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","impliedFormat":1},{"version":"d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec","impliedFormat":1},{"version":"f8db4fea512ab759b2223b90ecbbe7dae919c02f8ce95ec03f7fb1cf757cfbeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ba59c8bbeed2cb75b239bb12041582fa3e8ef32f8d0bd0ec802e38442d3f317","impliedFormat":1}],"root":[[176,178]],"options":{"composite":true,"declaration":true,"jsx":1,"module":200,"outDir":"./","rootDir":"../../client","skipLibCheck":true,"strict":false,"target":99},"referencedMap":[[286,1],[289,2],[288,1],[280,3],[284,1],[282,4],[283,4],[285,5],[281,6],[294,7],[228,8],[229,8],[230,9],[184,10],[231,11],[232,12],[233,13],[179,1],[182,14],[180,1],[181,1],[234,15],[235,16],[236,17],[237,18],[238,19],[239,20],[240,20],[241,21],[242,22],[243,23],[244,24],[185,1],[183,1],[245,25],[246,26],[247,27],[279,28],[248,29],[249,30],[250,31],[251,32],[252,33],[253,34],[254,35],[255,36],[256,37],[257,38],[258,38],[259,39],[260,1],[261,40],[263,41],[262,42],[264,43],[265,44],[266,45],[267,46],[268,47],[269,48],[270,49],[271,50],[272,51],[273,52],[274,53],[275,54],[276,55],[186,1],[187,1],[188,1],[227,56],[277,57],[278,58],[295,59],[189,1],[287,1],[293,60],[291,61],[292,62],[290,63],[205,64],[215,65],[204,64],[225,66],[196,67],[195,68],[224,69],[218,70],[223,71],[198,72],[212,73],[197,74],[221,75],[193,76],[192,69],[222,77],[194,78],[199,79],[200,1],[203,79],[190,1],[226,80],[216,81],[207,82],[208,83],[210,84],[206,85],[209,86],[219,69],[201,87],[202,88],[211,89],[191,90],[214,81],[213,79],[217,1],[220,91],[176,92],[178,93],[177,1],[83,1],[84,1],[85,1],[86,1],[87,1],[88,1],[175,94],[89,1],[90,1],[93,95],[94,96],[97,97],[98,1],[102,98],[103,1],[104,98],[105,99],[106,1],[99,1],[100,1],[101,1],[107,1],[108,1],[109,100],[110,1],[111,1],[120,101],[121,102],[117,103],[115,1],[116,104],[122,1],[124,105],[123,1],[125,95],[128,106],[127,107],[129,108],[126,1],[130,1],[131,109],[132,1],[133,1],[134,1],[135,1],[118,1],[136,1],[137,110],[138,110],[139,110],[140,110],[141,111],[112,1],[114,112],[113,113],[119,114],[142,112],[143,1],[146,115],[149,116],[148,117],[147,1],[150,118],[145,1],[151,1],[92,119],[91,1],[165,120],[164,121],[153,122],[163,123],[156,122],[157,122],[158,122],[159,124],[152,1],[160,122],[161,123],[166,125],[162,126],[167,127],[168,1],[169,1],[154,1],[155,1],[144,1],[170,1],[171,1],[172,1],[95,1],[173,1],[174,1],[96,1],[81,1],[82,1],[13,1],[14,1],[16,1],[15,1],[2,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[24,1],[3,1],[25,1],[26,1],[4,1],[27,1],[31,1],[28,1],[29,1],[30,1],[32,1],[33,1],[34,1],[5,1],[35,1],[36,1],[37,1],[38,1],[6,1],[42,1],[39,1],[40,1],[41,1],[43,1],[7,1],[44,1],[49,1],[50,1],[45,1],[46,1],[47,1],[48,1],[8,1],[54,1],[51,1],[52,1],[53,1],[55,1],[9,1],[56,1],[57,1],[58,1],[60,1],[59,1],[61,1],[62,1],[10,1],[63,1],[64,1],[65,1],[11,1],[66,1],[67,1],[68,1],[69,1],[70,1],[1,1],[71,1],[72,1],[12,1],[76,1],[74,1],[79,1],[78,1],[73,1],[77,1],[75,1],[80,1]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './jwt.util';
|
|
2
|
+
export * from './server/server.model';
|
|
3
|
+
export * from './server/controller/controller.interface';
|
|
4
|
+
export * from './server/controller/handler.interface';
|
|
5
|
+
export * from './server/http/error.model';
|
|
6
|
+
export * from './server/http/reader.util';
|
|
7
|
+
export * from './server/http/request-method.enum';
|
|
8
|
+
export * from './server/http/responder.util';
|
|
9
|
+
export * from './server/http/response-codes.enum';
|
|
10
|
+
export * from './server/http/response.interface';
|
|
11
|
+
export * from './server/hub/action.interface';
|
|
12
|
+
export * from './server/hub/hub.interface';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// **/*.ts
|
|
2
|
+
export * from './jwt.util';
|
|
3
|
+
export * from './server/server.model';
|
|
4
|
+
export * from './server/controller/controller.interface';
|
|
5
|
+
export * from './server/controller/handler.interface';
|
|
6
|
+
export * from './server/http/error.model';
|
|
7
|
+
export * from './server/http/reader.util';
|
|
8
|
+
export * from './server/http/request-method.enum';
|
|
9
|
+
export * from './server/http/responder.util';
|
|
10
|
+
export * from './server/http/response-codes.enum';
|
|
11
|
+
export * from './server/http/response.interface';
|
|
12
|
+
export * from './server/hub/action.interface';
|
|
13
|
+
export * from './server/hub/hub.interface';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JWTPayload } from 'jose';
|
|
2
|
+
export declare class $JWT {
|
|
3
|
+
private static jwksCache;
|
|
4
|
+
static create(secret: string, claims: JWTPayload): Promise<string>;
|
|
5
|
+
static decode(token: string): JWTPayload | null;
|
|
6
|
+
static verify(token: string, secret: string): Promise<JWTPayload | null>;
|
|
7
|
+
static verifyWithJwks(token: string, jwksUrl: string): Promise<JWTPayload | null>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { SignJWT, createRemoteJWKSet, decodeJwt, jwtVerify } from 'jose';
|
|
2
|
+
export class $JWT {
|
|
3
|
+
static jwksCache = new Map();
|
|
4
|
+
static async create(secret, claims) {
|
|
5
|
+
const secretKey = new TextEncoder().encode(secret);
|
|
6
|
+
return new SignJWT(claims)
|
|
7
|
+
.setProtectedHeader({ alg: 'HS256', typ: 'JWT' })
|
|
8
|
+
.sign(secretKey);
|
|
9
|
+
}
|
|
10
|
+
static decode(token) {
|
|
11
|
+
try {
|
|
12
|
+
return decodeJwt(token);
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
static async verify(token, secret) {
|
|
19
|
+
try {
|
|
20
|
+
const secretKey = new TextEncoder().encode(secret);
|
|
21
|
+
const { payload } = await jwtVerify(token, secretKey);
|
|
22
|
+
return payload;
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
static async verifyWithJwks(token, jwksUrl) {
|
|
29
|
+
try {
|
|
30
|
+
let jwks = this.jwksCache.get(jwksUrl);
|
|
31
|
+
if (!jwks) {
|
|
32
|
+
jwks = createRemoteJWKSet(new URL(jwksUrl));
|
|
33
|
+
this.jwksCache.set(jwksUrl, jwks);
|
|
34
|
+
}
|
|
35
|
+
const { payload } = await jwtVerify(token, jwks);
|
|
36
|
+
return payload;
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Awaitable, Injector } from '@vorplex/core';
|
|
2
|
+
import { Server } from '../server.model';
|
|
3
|
+
import { Handler } from './handler.interface';
|
|
4
|
+
import { IncomingMessage, ServerResponse } from 'http';
|
|
5
|
+
export type ControllerGuard = (params: {
|
|
6
|
+
injector: Injector;
|
|
7
|
+
server: Server;
|
|
8
|
+
request: IncomingMessage;
|
|
9
|
+
response: ServerResponse;
|
|
10
|
+
}) => Awaitable<boolean>;
|
|
11
|
+
export interface Controller {
|
|
12
|
+
route: string;
|
|
13
|
+
guards?: ControllerGuard[];
|
|
14
|
+
handlers: Handler[];
|
|
15
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Awaitable, ExtractRouteParams, Injector, Task } from '@vorplex/core';
|
|
2
|
+
import { HttpRequestMethod } from '../http/request-method.enum';
|
|
3
|
+
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
|
+
import { HttpResponses } from '../http/response.interface';
|
|
5
|
+
import { Server } from '../server.model';
|
|
6
|
+
type QueryKeys<T extends readonly string[]> = {
|
|
7
|
+
[K in T[number] as K extends `${string}?` ? never : K]: string;
|
|
8
|
+
} & {
|
|
9
|
+
[K in T[number] as K extends `${infer Name}?` ? Name : never]?: string;
|
|
10
|
+
};
|
|
11
|
+
export interface HandlerParams<TRoute extends Record<string, string> = Record<string, string>, TQuery extends readonly string[] = readonly string[]> {
|
|
12
|
+
injector: Injector;
|
|
13
|
+
server: Server;
|
|
14
|
+
task: Task;
|
|
15
|
+
parameters: {
|
|
16
|
+
route: TRoute;
|
|
17
|
+
query: QueryKeys<TQuery>;
|
|
18
|
+
};
|
|
19
|
+
request: IncomingMessage;
|
|
20
|
+
response: ServerResponse;
|
|
21
|
+
}
|
|
22
|
+
export interface Handler<TRoute extends string = string, TParameters extends string[] = string[]> {
|
|
23
|
+
route: TRoute;
|
|
24
|
+
parameters?: TParameters;
|
|
25
|
+
method: HttpRequestMethod;
|
|
26
|
+
callback: (params: HandlerParams<ExtractRouteParams<TRoute>, TParameters>) => Awaitable<HttpResponses | void>;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpResponseCodes } from './response-codes.enum';
|
|
2
|
+
export declare class HttpError extends Error {
|
|
3
|
+
code: HttpResponseCodes;
|
|
4
|
+
constructor(code: HttpResponseCodes, message?: string);
|
|
5
|
+
}
|
|
6
|
+
export declare class WebError extends Error {
|
|
7
|
+
data?: any;
|
|
8
|
+
constructor(message: string, data?: any);
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { $String } from '@vorplex/core';
|
|
2
|
+
import { HttpResponseCodes } from './response-codes.enum';
|
|
3
|
+
export class HttpError extends Error {
|
|
4
|
+
code;
|
|
5
|
+
constructor(code, message) {
|
|
6
|
+
super($String.isNullOrEmpty(message) ? Object.entries(HttpResponseCodes).find(([key, value]) => value === code)?.[0] ?? String(`HTTP ${code}`) : message);
|
|
7
|
+
this.code = code;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export class WebError extends Error {
|
|
11
|
+
data;
|
|
12
|
+
constructor(message, data) {
|
|
13
|
+
super(message);
|
|
14
|
+
this.data = data;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HttpError } from './error.model';
|
|
2
|
+
import { HttpResponseCodes } from './response-codes.enum';
|
|
3
|
+
export class $HttpReader {
|
|
4
|
+
static getCookies(request) {
|
|
5
|
+
const header = request.headers.cookie || '';
|
|
6
|
+
const cookies = {};
|
|
7
|
+
for (let cookie of header.split(';')) {
|
|
8
|
+
cookie = cookie.trim();
|
|
9
|
+
if (!cookie)
|
|
10
|
+
continue;
|
|
11
|
+
const index = cookie.indexOf('=');
|
|
12
|
+
if (index < 0)
|
|
13
|
+
continue;
|
|
14
|
+
const key = cookie.substring(0, index).trim();
|
|
15
|
+
const value = cookie.substring(index + 1);
|
|
16
|
+
cookies[key] = decodeURIComponent(value);
|
|
17
|
+
}
|
|
18
|
+
return cookies;
|
|
19
|
+
}
|
|
20
|
+
static async readJson(request) {
|
|
21
|
+
return new Promise((resolve, reject) => {
|
|
22
|
+
let data = '';
|
|
23
|
+
request.on('data', chunk => data += chunk);
|
|
24
|
+
request.on('end', () => {
|
|
25
|
+
if (!data)
|
|
26
|
+
return resolve(null);
|
|
27
|
+
try {
|
|
28
|
+
resolve(JSON.parse(data));
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
reject(new HttpError(HttpResponseCodes.BadRequest, 'Invalid JSON'));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
request.on('error', reject);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const HttpRequestMethod: {
|
|
2
|
+
readonly Get: "GET";
|
|
3
|
+
readonly Post: "POST";
|
|
4
|
+
readonly Put: "PUT";
|
|
5
|
+
readonly Delete: "DELETE";
|
|
6
|
+
readonly Connect: "CONNECT";
|
|
7
|
+
readonly Options: "OPTIONS";
|
|
8
|
+
readonly Trace: "TRACE";
|
|
9
|
+
readonly Patch: "PATCH";
|
|
10
|
+
};
|
|
11
|
+
export type HttpRequestMethod = typeof HttpRequestMethod[keyof typeof HttpRequestMethod];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ServerResponse, OutgoingHttpHeaders, OutgoingHttpHeader } from 'http';
|
|
2
|
+
import { HttpResponseCodes } from './response-codes.enum';
|
|
3
|
+
export declare class $HttpResponder {
|
|
4
|
+
static setCookie(response: ServerResponse, name: string, value: string, options?: {
|
|
5
|
+
expiresInSeconds?: number;
|
|
6
|
+
path?: string;
|
|
7
|
+
domain?: string;
|
|
8
|
+
httpsOnly?: boolean;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
sameSite?: 'Strict' | 'Lax' | 'None';
|
|
11
|
+
}): void;
|
|
12
|
+
static json(response: ServerResponse, options: {
|
|
13
|
+
statusCode?: HttpResponseCodes;
|
|
14
|
+
statusText?: string;
|
|
15
|
+
headers?: OutgoingHttpHeaders | OutgoingHttpHeader[];
|
|
16
|
+
value: any;
|
|
17
|
+
}): void;
|
|
18
|
+
static file(response: ServerResponse, options: {
|
|
19
|
+
statusCode?: HttpResponseCodes;
|
|
20
|
+
statusText?: string;
|
|
21
|
+
headers?: OutgoingHttpHeaders | OutgoingHttpHeader[];
|
|
22
|
+
filePath: string;
|
|
23
|
+
}): Promise<void>;
|
|
24
|
+
static html(response: ServerResponse, options: {
|
|
25
|
+
statusCode?: HttpResponseCodes;
|
|
26
|
+
statusText?: string;
|
|
27
|
+
headers?: OutgoingHttpHeaders | OutgoingHttpHeader[];
|
|
28
|
+
html: string;
|
|
29
|
+
}): void;
|
|
30
|
+
static internalServerError(response: ServerResponse, options?: {
|
|
31
|
+
statusCode?: HttpResponseCodes;
|
|
32
|
+
statusText?: string;
|
|
33
|
+
headers?: OutgoingHttpHeaders | OutgoingHttpHeader[];
|
|
34
|
+
}): void;
|
|
35
|
+
static ok(response: ServerResponse): void;
|
|
36
|
+
static redirect(response: ServerResponse, url: string): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import { MimeType } from '@vorplex/core';
|
|
4
|
+
import { HttpResponseCodes } from './response-codes.enum';
|
|
5
|
+
export class $HttpResponder {
|
|
6
|
+
static setCookie(response, name, value, options = {}) {
|
|
7
|
+
let existing = response.getHeader('Set-Cookie') || [];
|
|
8
|
+
let attributes = '';
|
|
9
|
+
attributes += `Path=${options.path ?? '/'}; `;
|
|
10
|
+
if (options.expiresInSeconds != null)
|
|
11
|
+
attributes += `Max-Age=${options.expiresInSeconds}; `;
|
|
12
|
+
if (options.domain != null)
|
|
13
|
+
attributes += `Domain=${options.domain}; `;
|
|
14
|
+
if (options.httpsOnly || options.sameSite === 'None')
|
|
15
|
+
attributes += `Secure; `;
|
|
16
|
+
if (options.hidden)
|
|
17
|
+
attributes += `HttpOnly; `;
|
|
18
|
+
if (options.sameSite != null)
|
|
19
|
+
attributes += `SameSite=${options.sameSite}; `;
|
|
20
|
+
const header = `${name}=${value}; ${attributes}`;
|
|
21
|
+
if (Array.isArray(existing))
|
|
22
|
+
existing = existing.concat(header);
|
|
23
|
+
else
|
|
24
|
+
existing = [existing, header];
|
|
25
|
+
response.setHeader('Set-Cookie', existing);
|
|
26
|
+
}
|
|
27
|
+
static json(response, options) {
|
|
28
|
+
response
|
|
29
|
+
.setHeader('Content-Type', MimeType.json)
|
|
30
|
+
.writeHead(options.statusCode ?? (options.value === undefined ? HttpResponseCodes.NoContent : HttpResponseCodes.OK), options.statusText, options.headers)
|
|
31
|
+
.end(options.value === undefined ? undefined : JSON.stringify(options.value));
|
|
32
|
+
}
|
|
33
|
+
static file(response, options) {
|
|
34
|
+
return new Promise((resolve, reject) => {
|
|
35
|
+
response
|
|
36
|
+
.setHeader('Content-Type', MimeType[path.extname(options.filePath).split('.').pop()] || '')
|
|
37
|
+
.writeHead(options.statusCode ?? HttpResponseCodes.OK, options.statusText, options.headers);
|
|
38
|
+
response.once('finish', () => resolve());
|
|
39
|
+
response.once('error', (error) => reject(error));
|
|
40
|
+
fs.createReadStream(options.filePath).pipe(response, { end: true });
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
static html(response, options) {
|
|
44
|
+
response
|
|
45
|
+
.setHeader('Content-Type', MimeType.html)
|
|
46
|
+
.writeHead(options.statusCode ?? HttpResponseCodes.OK, options.statusText, options.headers)
|
|
47
|
+
.end(`<!DOCTYPE html>\n${options.html}`);
|
|
48
|
+
}
|
|
49
|
+
static internalServerError(response, options = {}) {
|
|
50
|
+
response
|
|
51
|
+
.writeHead(options.statusCode ?? HttpResponseCodes.InternalServerError, options.statusText, options.headers)
|
|
52
|
+
.end();
|
|
53
|
+
}
|
|
54
|
+
static ok(response) {
|
|
55
|
+
if (response.writable) {
|
|
56
|
+
response.end();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
static redirect(response, url) {
|
|
60
|
+
if (response.writable) {
|
|
61
|
+
response.statusCode = 302;
|
|
62
|
+
response.setHeader('Location', url);
|
|
63
|
+
response.end();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const HttpResponseCodes: {
|
|
2
|
+
readonly OK: 200;
|
|
3
|
+
readonly NoContent: 204;
|
|
4
|
+
readonly PartialContent: 206;
|
|
5
|
+
readonly Redirect: 302;
|
|
6
|
+
readonly BadRequest: 400;
|
|
7
|
+
readonly Unauthorized: 401;
|
|
8
|
+
readonly Forbidden: 403;
|
|
9
|
+
readonly NotFound: 404;
|
|
10
|
+
readonly MethodNotAllowed: 405;
|
|
11
|
+
readonly UnsupportedMediaType: 415;
|
|
12
|
+
readonly Locked: 423;
|
|
13
|
+
readonly InternalServerError: 500;
|
|
14
|
+
readonly NotImplemented: 501;
|
|
15
|
+
};
|
|
16
|
+
export type HttpResponseCodes = typeof HttpResponseCodes[keyof typeof HttpResponseCodes];
|