zerotal 1.7.4 → 1.7.5
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/api-surface.md +0 -168
- package/package.json +12 -12
package/api-surface.md
CHANGED
|
@@ -686,8 +686,6 @@ function data_get = (target: unknown, key: string, defaultValue?: unknown) => un
|
|
|
686
686
|
|
|
687
687
|
function deepMerge = <T extends object>(base: T, override: DeepPartial<T>) => T
|
|
688
688
|
|
|
689
|
-
function deployEnv = () => string
|
|
690
|
-
|
|
691
689
|
function devSurfacesEnabled = () => boolean
|
|
692
690
|
|
|
693
691
|
function env = { (key: string): string | undefined; (key: string, fallback: string): string; (key: string, fallback: boolean): boolean; (key: string, fallback: number): number;}
|
|
@@ -704,8 +702,6 @@ function inject = (...tokens: BindingToken[]) => (target: new (...args: any[]) =
|
|
|
704
702
|
|
|
705
703
|
function isDevSurfaceAllowed = (env: string) => boolean
|
|
706
704
|
|
|
707
|
-
function isProdLike = (env: string) => boolean
|
|
708
|
-
|
|
709
705
|
function json = (data: unknown, status?: number) => void
|
|
710
706
|
|
|
711
707
|
function make = <T>(token: BindingToken<T>) => Promise<T>
|
|
@@ -728,8 +724,6 @@ function redirect = { (url: string, status?: 301 | 302 | 303 | 307 | 308): Re
|
|
|
728
724
|
|
|
729
725
|
function redirectTo = <N extends RouteTarget>(name: N, params?: RouteParamsArg<N>, status?: 301 | 302 | 303 | 307 | 308) => ResponseBuilder
|
|
730
726
|
|
|
731
|
-
function registerAppScope = (installer: AppScopeInstaller) => void
|
|
732
|
-
|
|
733
727
|
function registerErrorDiagnoser = (diagnoser: ErrorDiagnoser) => void
|
|
734
728
|
|
|
735
729
|
function registerFileRouteResolver = (resolver: FileRouteResolver) => void
|
|
@@ -754,8 +748,6 @@ function setAppEnv = (command?: string) => void
|
|
|
754
748
|
|
|
755
749
|
function setCurrentPageResolver = (resolver: CurrentPageResolver) => void
|
|
756
750
|
|
|
757
|
-
function setImplicitModelResolver = (fn: ((paramName: string) => ModelBindingResolver | undefined) | null) => void
|
|
758
|
-
|
|
759
751
|
function sha256Hex = (input: string | Uint8Array) => string
|
|
760
752
|
|
|
761
753
|
function singularize = (value: string) => string
|
|
@@ -1114,8 +1106,6 @@ type ArgDef = { name: string; required?: boolean; default?: string;}
|
|
|
1114
1106
|
|
|
1115
1107
|
type BindingToken = ClassToken<T> | AbstractToken<T> | keyof ContainerBindings
|
|
1116
1108
|
|
|
1117
|
-
type ClassRef = abstract new (...args: never[]) => unknown
|
|
1118
|
-
|
|
1119
1109
|
type ContextKey = never
|
|
1120
1110
|
|
|
1121
1111
|
type ContextValue = ContextRegistry[K]
|
|
@@ -2094,8 +2084,6 @@ const TWO_FACTOR_SESSION_KEY = 'two_factor_confirmed'
|
|
|
2094
2084
|
|
|
2095
2085
|
const TwoFactor = TwoFactorService
|
|
2096
2086
|
|
|
2097
|
-
function _attachModelPermissions = (modelType: string, modelId: unknown, permissionIds: number[]) => Promise<void>
|
|
2098
|
-
|
|
2099
2087
|
function AuthConfig = (options?: Partial<AuthConfigShape>) => AuthConfigShape
|
|
2100
2088
|
|
|
2101
2089
|
function Authenticatable = <TBase extends Constructor>(Base: TBase) => { new (...args: any[]): Authenticatable; prototype: Authenticatable<any>.Authenticatable;} & TBase
|
|
@@ -2313,11 +2301,6 @@ interface RememberMeOptions = {
|
|
|
2313
2301
|
secure?: boolean
|
|
2314
2302
|
}
|
|
2315
2303
|
|
|
2316
|
-
interface SocialHttpContext = {
|
|
2317
|
-
redirect: (url: string) => void
|
|
2318
|
-
request: { readonly method: string; readonly url: string; formData(): Promise<FormData>;}
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
2304
|
interface SocialSession = {
|
|
2322
2305
|
forget: (key: string) => void
|
|
2323
2306
|
get: <T>(key: string) => T | undefined
|
|
@@ -3196,35 +3179,6 @@ class CssBuildCommand = {
|
|
|
3196
3179
|
write: (msg: string) => void
|
|
3197
3180
|
}
|
|
3198
3181
|
|
|
3199
|
-
class DeployCommand = {
|
|
3200
|
-
new (): DeployCommand
|
|
3201
|
-
static args: ArgDef[]
|
|
3202
|
-
static commandName: string
|
|
3203
|
-
static description: string
|
|
3204
|
-
static flags: ({ name: string; type: 'boolean'; description: string; default: boolean;} | { name: string; type: 'string'; description: string; default?: never;})[]
|
|
3205
|
-
static needsApp: boolean
|
|
3206
|
-
static target: string
|
|
3207
|
-
_readLine: () => Promise<string>
|
|
3208
|
-
_writer: OutputWriter
|
|
3209
|
-
app: unknown
|
|
3210
|
-
args: Record<string, string>
|
|
3211
|
-
ask: (question: string, defaultValue?: string) => Promise<string>
|
|
3212
|
-
choice: (question: string, options: string[]) => Promise<string>
|
|
3213
|
-
confirm: (question: string, defaultValue?: boolean) => Promise<boolean>
|
|
3214
|
-
dim: (msg: string) => void
|
|
3215
|
-
error: (msg: string) => void
|
|
3216
|
-
flags: Record<string, string | number | boolean>
|
|
3217
|
-
info: (msg: string) => void
|
|
3218
|
-
line: (msg: string) => void
|
|
3219
|
-
newLine: () => void
|
|
3220
|
-
run: () => Promise<void>
|
|
3221
|
-
secret: (question: string) => Promise<string>
|
|
3222
|
-
section: (title: string) => void
|
|
3223
|
-
table: (rows: [string, string][], indent?: number) => void
|
|
3224
|
-
warn: (msg: string) => void
|
|
3225
|
-
write: (msg: string) => void
|
|
3226
|
-
}
|
|
3227
|
-
|
|
3228
3182
|
class DevCommand = {
|
|
3229
3183
|
new (): DevCommand
|
|
3230
3184
|
static aliases: string[]
|
|
@@ -3986,8 +3940,6 @@ class WorkerCommand = {
|
|
|
3986
3940
|
write: (msg: string) => void
|
|
3987
3941
|
}
|
|
3988
3942
|
|
|
3989
|
-
function makeDeployCommand = (target: string) => DeployCommandClass
|
|
3990
|
-
|
|
3991
3943
|
## ./config `(./src/config-reexport.ts)`
|
|
3992
3944
|
|
|
3993
3945
|
class ConfigLoader = {
|
|
@@ -4181,8 +4133,6 @@ const SERVER_PROCESS_NAME = 'server'
|
|
|
4181
4133
|
|
|
4182
4134
|
function bootBuildDecision = (outDirs: string[], env: string | undefined) => Promise<BootBuildDecision>
|
|
4183
4135
|
|
|
4184
|
-
function browserEnvDefines = (isProduction: boolean) => Record<string, string>
|
|
4185
|
-
|
|
4186
4136
|
function buildCssBundle = (input: string, outdir: string, minify?: boolean, loader?: Record<string, string>) => Promise<BundleResult>
|
|
4187
4137
|
|
|
4188
4138
|
function buildJsBundle = (input: string, outdir: string, minify?: boolean) => Promise<BundleResult>
|
|
@@ -4193,14 +4143,8 @@ function createDeck = (options: DeckOptions) => Deck
|
|
|
4193
4143
|
|
|
4194
4144
|
function detectCssPlugins = (cwd: string) => Promise<BunPlugin[]>
|
|
4195
4145
|
|
|
4196
|
-
function isDevOrchestrated = (env?: Record<string, string | undefined>, argv?: readonly string[]) => boolean
|
|
4197
|
-
|
|
4198
4146
|
function isWritableDir = (dir: string) => Promise<boolean>
|
|
4199
4147
|
|
|
4200
|
-
function pruneBuildOutput = (outdir: string, outputs: readonly { path: string;}[]) => Promise<string[]>
|
|
4201
|
-
|
|
4202
|
-
function registerDevBuildHook = (name: string, fn: BuildHookFn) => void
|
|
4203
|
-
|
|
4204
4148
|
function registerDevHtmlSnippet = (name: string, fn: DevHtmlSnippet) => void
|
|
4205
4149
|
|
|
4206
4150
|
function startDevMode = (options: StartDevModeOptions) => Promise<void>
|
|
@@ -4878,8 +4822,6 @@ class StackChannel = {
|
|
|
4878
4822
|
|
|
4879
4823
|
const Log = LogManager
|
|
4880
4824
|
|
|
4881
|
-
function frameworkLog = (scope: string) => BoundLogger
|
|
4882
|
-
|
|
4883
4825
|
function LoggingConfig = (options?: Partial<LoggingConfigShape>) => LoggingConfigShape
|
|
4884
4826
|
|
|
4885
4827
|
function renderTable = (data: TableData, indent?: number) => string[]
|
|
@@ -4946,12 +4888,6 @@ class BunImageDriver = {
|
|
|
4946
4888
|
readonly supportsCrop: true
|
|
4947
4889
|
}
|
|
4948
4890
|
|
|
4949
|
-
class ConversionRunner = {
|
|
4950
|
-
new (driver: ImageDriver, config: MediaConfigShape): ConversionRunner
|
|
4951
|
-
run: (media: MediaItem, conversions: ConversionMap) => Promise<{ generated: string[]; failed: Array<{ name: string; reason: string; }>;}>
|
|
4952
|
-
runResponsive: (media: MediaItem, widths: number[]) => Promise<ResponsiveImageSet | null>
|
|
4953
|
-
}
|
|
4954
|
-
|
|
4955
4891
|
class DefaultPathGenerator = {
|
|
4956
4892
|
new (prefix?: string): DefaultPathGenerator
|
|
4957
4893
|
forConversions: (media: MediaItem) => string
|
|
@@ -5214,42 +5150,12 @@ const MediaFake = { all(owner: { id: number | string; construct
|
|
|
5214
5150
|
|
|
5215
5151
|
const MediaLibrary = MediaManager
|
|
5216
5152
|
|
|
5217
|
-
const mediaSchemaConcern = ConcernDescriptor
|
|
5218
|
-
|
|
5219
|
-
function applyRetentionRules = (modelType: string, modelId: number | string, collection: string, definition: CollectionDefinition, justAdded: MediaItem) => Promise<void>
|
|
5220
|
-
|
|
5221
|
-
function collectionNames = (host: CollectionHost) => string[]
|
|
5222
|
-
|
|
5223
|
-
function defaultDiskName = () => string
|
|
5224
|
-
|
|
5225
|
-
function diskFor = (name?: string | null) => StorageDriver
|
|
5226
|
-
|
|
5227
|
-
function dispatchConversions = (mediaId: number, conversions: string[]) => Promise<void>
|
|
5228
|
-
|
|
5229
|
-
function fromDisk = (path: string, disk?: string) => SourceResolver
|
|
5230
|
-
|
|
5231
|
-
function fromPath = (path: string) => SourceResolver
|
|
5232
|
-
|
|
5233
|
-
function fromUrl = (url: string, maxBytes: number) => SourceResolver
|
|
5234
|
-
|
|
5235
|
-
function fromValue = (source: MediaSource, fileName?: string) => SourceResolver
|
|
5236
|
-
|
|
5237
|
-
function hasCollection = (host: CollectionHost, name: string) => boolean
|
|
5238
|
-
|
|
5239
5153
|
function isConvertible = (mimeType: string | null | undefined) => boolean
|
|
5240
5154
|
|
|
5241
|
-
function isQueueAvailable = () => boolean
|
|
5242
|
-
|
|
5243
5155
|
function Media = <TBase extends Constructor>(Base: TBase) => { new (...args: any[]): MediaModel; prototype: Media<any>.MediaModel; mediaCollections: MediaCollections;} & TBase
|
|
5244
5156
|
|
|
5245
5157
|
function MediaConfig = (options?: Partial<MediaConfigShape>) => MediaConfigShape
|
|
5246
5158
|
|
|
5247
|
-
function mediaDefaults = () => MediaConfigShape
|
|
5248
|
-
|
|
5249
|
-
function pathGenerator = () => PathGenerator
|
|
5250
|
-
|
|
5251
|
-
function resolveCollection = (host: CollectionHost, name: string) => CollectionDefinition
|
|
5252
|
-
|
|
5253
5159
|
function setPathGenerator = (generator: PathGenerator) => void
|
|
5254
5160
|
|
|
5255
5161
|
interface CleanReport = {
|
|
@@ -5271,11 +5177,6 @@ interface CollectionDefinition = {
|
|
|
5271
5177
|
single?: boolean
|
|
5272
5178
|
}
|
|
5273
5179
|
|
|
5274
|
-
interface CollectionHost = {
|
|
5275
|
-
mediaCollections?: MediaCollections
|
|
5276
|
-
name: string
|
|
5277
|
-
}
|
|
5278
|
-
|
|
5279
5180
|
interface ConversionDefinition = {
|
|
5280
5181
|
allowEnlargement?: boolean
|
|
5281
5182
|
fit?: ConversionFit
|
|
@@ -5363,11 +5264,6 @@ interface PendingMediaMeta = {
|
|
|
5363
5264
|
order?: number
|
|
5364
5265
|
}
|
|
5365
5266
|
|
|
5366
|
-
interface ResolvedSource = {
|
|
5367
|
-
bytes: Uint8Array<ArrayBufferLike>
|
|
5368
|
-
originalName: string
|
|
5369
|
-
}
|
|
5370
|
-
|
|
5371
5267
|
interface ResponsiveImage = {
|
|
5372
5268
|
fileName: string
|
|
5373
5269
|
height: number
|
|
@@ -5391,8 +5287,6 @@ type MediaSource = UploadedFile | File | Blob | Uint8Array | ArrayBuffer
|
|
|
5391
5287
|
|
|
5392
5288
|
type SafeConversionFormat = 'jpeg' | 'png' | 'webp'
|
|
5393
5289
|
|
|
5394
|
-
type SourceResolver = () => Promise<ResolvedSource>
|
|
5395
|
-
|
|
5396
5290
|
## ./metrics `(./src/metrics.ts)`
|
|
5397
5291
|
|
|
5398
5292
|
function beginHttp = () => void
|
|
@@ -5691,13 +5585,6 @@ class ForeignKeyBuilder = {
|
|
|
5691
5585
|
toConstraintSQL: () => string
|
|
5692
5586
|
}
|
|
5693
5587
|
|
|
5694
|
-
class HookRegistry = {
|
|
5695
|
-
new (): HookRegistry
|
|
5696
|
-
static onAfterRun: ((ModelClass: ClassRef, hook: HookName, model: unknown) => void) | undefined
|
|
5697
|
-
static register: <T>(ModelClass: ClassRef, hook: HookName, fn: HookFn<T>) => void
|
|
5698
|
-
static run: <T>(ModelClass: ClassRef, hook: HookName, model: T) => Promise<void>
|
|
5699
|
-
}
|
|
5700
|
-
|
|
5701
5588
|
class JsonCast = {
|
|
5702
5589
|
new <T = unknown>(mapper?: CastMapper<T> | undefined): JsonCast<T>
|
|
5703
5590
|
fields: () => CastField[]
|
|
@@ -6215,14 +6102,10 @@ class UnsupportedDialectError = {
|
|
|
6215
6102
|
readonly status: number
|
|
6216
6103
|
}
|
|
6217
6104
|
|
|
6218
|
-
const columnRegistry = Map<ClassRef, Map<string, ColumnOptions>>
|
|
6219
|
-
|
|
6220
6105
|
const DB = { table(tableName: string): QueryBuilder; raw<T = Record<string, unknown>>(sql: TemplateStringsArray | string, ...rest: unknown[]): Promise<T[]>; transaction<T>(callback: (tx?: SQLInstance) => Promise<T>, attempts?: number): Promise<T>; beginTransaction(): Promise<ManualTransaction>; onPrimary(): { table(name: string): QueryBuilder; }; currentTx(): unknown | undefined; advisoryLock<T>(key: number, callback: () => Promise<T>): Promise<T>; preventNPlusOne(options?: NPlusOneOptions): void; allowNPlusOne(pattern: string, options?: { once?: boolean; }): void;}
|
|
6221
6106
|
|
|
6222
6107
|
const ModelInspector = { load(pattern: string, cwd?: string): Promise<void>; all(): ModelSchema[]; fromClass(ctor: ClassRef): ModelSchema | null;}
|
|
6223
6108
|
|
|
6224
|
-
const modelsByName = Map<string, ClassRef>
|
|
6225
|
-
|
|
6226
6109
|
const relationRegistry = Map<ClassRef, Map<string, RelationMetadata>>
|
|
6227
6110
|
|
|
6228
6111
|
const Schema = { create(table: string, callback: (bp: Blueprint) => void): Promise<void>; createIfNotExists(table: string, callback: (bp: Blueprint) => void): Promise<void>; table(name: string, callback: (bp: Blueprint) => void): Promise<void>; alter(name: string, callback: (bp: Blueprint) => void): Promise<void>; drop(table: string): Promise<void>; dropIfExists(table: string): Promise<void>; rename(from: string, to: string): Promise<void>; hasTable(table: string): Promise<boolean>; hasColumn(table: string, column: string): Promise<boolean>;}
|
|
@@ -6233,32 +6116,14 @@ const SchemaInspector = { tables(): Promise<string[]>; columns(table: stri
|
|
|
6233
6116
|
|
|
6234
6117
|
const TransactionContext = AsyncLocalStorage<SQLInstance>
|
|
6235
6118
|
|
|
6236
|
-
function _clearModelConnections = () => void
|
|
6237
|
-
|
|
6238
|
-
function _clearTransitionCallbacks = () => void
|
|
6239
|
-
|
|
6240
6119
|
function _getConnection = () => SQLInstance
|
|
6241
6120
|
|
|
6242
6121
|
function _getDbConnectionOverride = () => SQLInstance | null
|
|
6243
6122
|
|
|
6244
|
-
function _getDialect = () => 'sqlite' | 'postgres' | 'mysql'
|
|
6245
|
-
|
|
6246
|
-
function _getModelConnection = () => SQLInstance
|
|
6247
|
-
|
|
6248
6123
|
function _globalScopeRegistry = () => Map<ClassRef, Map<string, GlobalScopeCallback>>
|
|
6249
6124
|
|
|
6250
|
-
function _normaliseSqliteUrl = (raw: string) => string
|
|
6251
|
-
|
|
6252
|
-
function _resolveConn = (ModelClass?: typeof BaseModel) => SQLInstance
|
|
6253
|
-
|
|
6254
|
-
function _setBaseModelConnection = (conn: SQLInstance | null) => void
|
|
6255
|
-
|
|
6256
|
-
function _setBaseModelDialect = (dialect: 'sqlite' | 'postgres' | 'mysql') => void
|
|
6257
|
-
|
|
6258
6125
|
function _setDbConnection = (conn: SQLInstance | null) => void
|
|
6259
6126
|
|
|
6260
|
-
function _setQueryBuilderDialect = (d: Dialect) => void
|
|
6261
|
-
|
|
6262
6127
|
function _setReadReplicas = (primary: SQLInstance, replicas: SQLInstance[]) => void
|
|
6263
6128
|
|
|
6264
6129
|
function _suppressHooks = <T>(fn: () => Promise<T>) => Promise<T>
|
|
@@ -6271,8 +6136,6 @@ function belongsTo = (related: () => unknown, options: BelongsToOptions) => (_va
|
|
|
6271
6136
|
|
|
6272
6137
|
function column = { (): ColumnDecorator; (type: ColumnShorthand): ColumnDecorator; (options: ColumnOptions): ColumnDecorator; (type: ColumnShorthand, options: Omit<ColumnOptions, 'type'>): ColumnDecorator;}
|
|
6273
6138
|
|
|
6274
|
-
function columnsFor = (ctor: ClassRef) => Map<string, ColumnOptions> | null
|
|
6275
|
-
|
|
6276
6139
|
function createReadWriteRouter = (primary: SQLInstance, replicas: SQLInstance[]) => SQLInstance
|
|
6277
6140
|
|
|
6278
6141
|
function currentOrmContext = () => OrmContext
|
|
@@ -6299,10 +6162,6 @@ function json = <T = unknown>(mapper?: CastMapper<T>) => JsonCast<T>
|
|
|
6299
6162
|
|
|
6300
6163
|
function manyToMany = (related: () => unknown, options: ManyToManyOptions) => (_value: unknown, context: ClassFieldDecoratorContext) => void
|
|
6301
6164
|
|
|
6302
|
-
function modelByName = (name: string) => ClassRef | undefined
|
|
6303
|
-
|
|
6304
|
-
function modelForParam = (paramName: string) => ImplicitModel | undefined
|
|
6305
|
-
|
|
6306
6165
|
function morphedByMany = (related: () => unknown, options: MorphedByManyOptions) => (_value: unknown, context: ClassFieldDecoratorContext) => void
|
|
6307
6166
|
|
|
6308
6167
|
function morphMany = (related: () => unknown, options: MorphManyOptions) => (_value: unknown, context: ClassFieldDecoratorContext) => void
|
|
@@ -6317,14 +6176,10 @@ function objectOf = <T = unknown>(mapper?: CastMapper<T>) => JsonCast<T>
|
|
|
6317
6176
|
|
|
6318
6177
|
function preventNPlusOne = (options?: NPlusOneOptions) => void
|
|
6319
6178
|
|
|
6320
|
-
function registerColumn = (ctor: ClassRef, name: string, options: ColumnOptions) => void
|
|
6321
|
-
|
|
6322
6179
|
function registerConnectionResolver = (fn: ContextConnectionResolver | null) => void
|
|
6323
6180
|
|
|
6324
6181
|
function registerImplicitBinding = () => void
|
|
6325
6182
|
|
|
6326
|
-
function registerModel = (ctor: ClassRef) => void
|
|
6327
|
-
|
|
6328
6183
|
function registerModelConnection = (name: string, conn: SQLInstance, dialect?: Dialect) => void
|
|
6329
6184
|
|
|
6330
6185
|
function resetOrmContext = () => void
|
|
@@ -6620,21 +6475,6 @@ interface PaginateResult = {
|
|
|
6620
6475
|
url: (page: number, baseUrl?: string, query?: Record<string, string>) => string
|
|
6621
6476
|
}
|
|
6622
6477
|
|
|
6623
|
-
interface QueryState = {
|
|
6624
|
-
distinct: boolean
|
|
6625
|
-
groupBys: string[]
|
|
6626
|
-
havings: HavingClause[]
|
|
6627
|
-
joins: JoinClause[]
|
|
6628
|
-
limit: number | undefined
|
|
6629
|
-
lock: string | undefined
|
|
6630
|
-
offset: number | undefined
|
|
6631
|
-
orders: OrderClause[]
|
|
6632
|
-
selects: string[]
|
|
6633
|
-
table: string
|
|
6634
|
-
unions: UnionClause[]
|
|
6635
|
-
wheres: WhereClause[]
|
|
6636
|
-
}
|
|
6637
|
-
|
|
6638
6478
|
interface RelationMetadata = {
|
|
6639
6479
|
firstKey?: string
|
|
6640
6480
|
foreignKey: string
|
|
@@ -6729,8 +6569,6 @@ interface TransitionContext = {
|
|
|
6729
6569
|
|
|
6730
6570
|
type CastMapper = ((raw: unknown) => T) | (new (...args: never[]) => T)
|
|
6731
6571
|
|
|
6732
|
-
type ClassRef = abstract new (...args: never[]) => unknown
|
|
6733
|
-
|
|
6734
6572
|
type Columns = { [K in keyof T & string]: K extends `_${string}` ? never : T[K] extends (...args: any[]) => any ? never : K; }[keyof T & string]
|
|
6735
6573
|
|
|
6736
6574
|
type ColumnShorthand = 'string' | 'text' | 'integer' | 'number' | 'float' | 'boolean' | 'datetime' | 'date' | 'json' | 'array' | 'encrypted' | 'encrypted:json'
|
|
@@ -7096,17 +6934,11 @@ function hasRoute = (name: string) => boolean
|
|
|
7096
6934
|
|
|
7097
6935
|
function resetRoutes = () => void
|
|
7098
6936
|
|
|
7099
|
-
function routeMethod = (name: string) => string | undefined
|
|
7100
|
-
|
|
7101
6937
|
interface RouteAction = {
|
|
7102
6938
|
method: string
|
|
7103
6939
|
url: string
|
|
7104
6940
|
}
|
|
7105
6941
|
|
|
7106
|
-
interface RouteMethodRegistry = {}
|
|
7107
|
-
|
|
7108
|
-
type MethodedRouteName = never
|
|
7109
|
-
|
|
7110
6942
|
type RouteArgs = [params?: RouteParamValues, query?: RouteQuery]
|
|
7111
6943
|
|
|
7112
6944
|
type RouteParamValues = { [x: string]: RouteParamValue | readonly RouteParamValue[];}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zerotal",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"maturity": "stable",
|
|
6
6
|
"private": false,
|
|
@@ -61,17 +61,17 @@
|
|
|
61
61
|
"typecheck": "tsc --noEmit"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@zerotal/auth": "1.7.
|
|
65
|
-
"@zerotal/cache": "1.7.
|
|
66
|
-
"@zerotal/client": "1.7.
|
|
67
|
-
"@zerotal/core": "1.7.
|
|
68
|
-
"@zerotal/media": "1.7.
|
|
69
|
-
"@zerotal/orm": "1.7.
|
|
70
|
-
"@zerotal/queue": "1.7.
|
|
71
|
-
"@zerotal/scheduler": "1.7.
|
|
72
|
-
"@zerotal/session": "1.7.
|
|
73
|
-
"@zerotal/testing": "1.7.
|
|
74
|
-
"@zerotal/validator": "1.7.
|
|
64
|
+
"@zerotal/auth": "1.7.5",
|
|
65
|
+
"@zerotal/cache": "1.7.5",
|
|
66
|
+
"@zerotal/client": "1.7.5",
|
|
67
|
+
"@zerotal/core": "1.7.5",
|
|
68
|
+
"@zerotal/media": "1.7.5",
|
|
69
|
+
"@zerotal/orm": "1.7.5",
|
|
70
|
+
"@zerotal/queue": "1.7.5",
|
|
71
|
+
"@zerotal/scheduler": "1.7.5",
|
|
72
|
+
"@zerotal/session": "1.7.5",
|
|
73
|
+
"@zerotal/testing": "1.7.5",
|
|
74
|
+
"@zerotal/validator": "1.7.5"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"typescript": "^5.8.0"
|