@gravito/core 2.0.0 → 2.0.1
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/engine/index.js +62 -14
- package/dist/engine/index.js.map +7 -6
- package/dist/ffi/index.js +22 -493
- package/dist/ffi/index.js.map +3 -6
- package/dist/http/types.d.ts +7 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6225 -6554
- package/dist/index.js.map +15 -17
- package/dist/runtime.d.ts +1 -1
- package/package.json +10 -10
- package/dist/compat.cjs +0 -49
- package/dist/compat.cjs.map +0 -9
- package/dist/engine/index.cjs +0 -1693
- package/dist/engine/index.cjs.map +0 -22
- package/dist/ffi/index.cjs +0 -621
- package/dist/ffi/index.cjs.map +0 -14
- package/dist/index.cjs +0 -14260
- package/dist/index.cjs.map +0 -168
package/dist/http/types.d.ts
CHANGED
|
@@ -169,6 +169,12 @@ export interface GravitoRequest {
|
|
|
169
169
|
* @throws {Error} If validation was not performed for this target
|
|
170
170
|
*/
|
|
171
171
|
valid<T = unknown>(target: ValidationTarget): T;
|
|
172
|
+
/**
|
|
173
|
+
* Store validated data for a specific source
|
|
174
|
+
* @param target - The validation target
|
|
175
|
+
* @param data - The validated data to store
|
|
176
|
+
*/
|
|
177
|
+
setValidated(target: ValidationTarget, data: unknown): void;
|
|
172
178
|
}
|
|
173
179
|
/**
|
|
174
180
|
* Options for request forwarding (Proxy)
|
|
@@ -351,7 +357,7 @@ export interface GravitoContext<V extends GravitoVariables = GravitoVariables> {
|
|
|
351
357
|
/**
|
|
352
358
|
* Next function for middleware chain
|
|
353
359
|
*/
|
|
354
|
-
export type GravitoNext = () => Promise<
|
|
360
|
+
export type GravitoNext = () => Promise<void>;
|
|
355
361
|
/**
|
|
356
362
|
* GravitoHandler - Standard route handler type
|
|
357
363
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import type { GravitoConfig } from './PlanetCore';
|
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
13
|
export declare const VERSION: string;
|
|
14
|
+
export { BunNativeAdapter } from './adapters/bun/BunNativeAdapter';
|
|
14
15
|
export { GravitoEngineAdapter } from './adapters/GravitoEngineAdapter';
|
|
15
16
|
export type { AdapterConfig, AdapterFactory, HttpAdapter, RouteDefinition } from './adapters/types';
|
|
16
17
|
export { isHttpAdapter } from './adapters/types';
|
|
@@ -60,7 +61,7 @@ export { Encrypter, type EncrypterOptions } from './security/Encrypter';
|
|
|
60
61
|
export type { Channel, ShouldBroadcast } from './types/events';
|
|
61
62
|
export { Event } from './types/events';
|
|
62
63
|
export * from './testing';
|
|
63
|
-
export { type ArchiveCreateOptions, type ArchiveEntry, type ArchiveExtractOptions, type ArchiveFileInfo, type ArchiveFromDirectoryOptions, archiveFromDirectory, type CompressionOptions, createHtmlRenderCallbacks, createSqliteDatabase, type EscapeHtmlFn, getArchiveAdapter, getCompressionAdapter, getEscapeHtml, getMarkdownAdapter, getPasswordAdapter, getRuntimeAdapter, getRuntimeEnv, getRuntimeKind, type MarkdownRenderCallbacks, type MarkdownRenderOptions, type RuntimeAdapter, type RuntimeArchiveAdapter, type RuntimeCompressionAdapter, type RuntimeFileSink, type RuntimeFileStat, type RuntimeKind, type RuntimeMarkdownAdapter, type RuntimePasswordAdapter, type RuntimeProcess, type RuntimeProcessOutput, type RuntimeResourceUsage, type RuntimeServeConfig, type RuntimeServer, type RuntimeSpawnOptions, type RuntimeSpawnSyncResult, type RuntimeSqliteDatabase, type RuntimeSqliteStatement, toUint8Array, } from './runtime';
|
|
64
|
+
export { type ArchiveCreateOptions, type ArchiveEntry, type ArchiveExtractOptions, type ArchiveFileInfo, type ArchiveFromDirectoryOptions, archiveFromDirectory, type CompressionOptions, createHtmlRenderCallbacks, createSqliteDatabase, type EscapeHtmlFn, getArchiveAdapter, getCompressionAdapter, getEscapeHtml, getMarkdownAdapter, getPasswordAdapter, getRuntimeAdapter, getRuntimeEnv, getRuntimeKind, type MarkdownRenderCallbacks, type MarkdownRenderOptions, type RuntimeAdapter, type RuntimeArchiveAdapter, type RuntimeCompressionAdapter, type RuntimeFileSink, type RuntimeFileStat, type RuntimeKind, type RuntimeMarkdownAdapter, type RuntimePasswordAdapter, type RuntimeProcess, type RuntimeProcessOutput, type RuntimeResourceUsage, type RuntimeServeConfig, type RuntimeServer, type RuntimeSpawnOptions, type RuntimeSpawnSyncResult, type RuntimeSqliteDatabase, type RuntimeSqliteStatement, resetRuntimeAdapter, toUint8Array, } from './runtime';
|
|
64
65
|
export { getDefaultRuntimeAdapter, runtimeAppendFile, runtimeCreateFileSink, runtimeMkdir, runtimeReadDir, runtimeReadJSON, runtimeReadText, runtimeRemoveRecursive, runtimeRename, runtimeStatFull, runtimeWriteFileExclusive, } from './runtime-helpers';
|
|
65
66
|
export { BinaryUtils } from './binary';
|
|
66
67
|
export type { DeepEqualsFn, DeepEqualsOptions } from './runtime/deep-equals';
|
|
@@ -83,3 +84,4 @@ export * as engine from './engine';
|
|
|
83
84
|
* ```
|
|
84
85
|
*/
|
|
85
86
|
export declare function defineConfig(config: GravitoConfig): GravitoConfig;
|
|
87
|
+
export * from './adapters/bun/index';
|