@satorijs/core
Advanced tools
Comparing version 3.5.1 to 3.5.2
@@ -5,3 +5,3 @@ import * as cordis from 'cordis'; | ||
import { Dict, Awaitable } from 'cosmokit'; | ||
import Schema from 'schemastery'; | ||
import { Schema } from 'cordis'; | ||
import { Quester } from 'cordis-axios'; | ||
@@ -118,5 +118,5 @@ export abstract class MessageEncoder<C extends Context = Context, B extends Bot<C> = Bot<C>> { | ||
export type { Fragment, Render } from '@satorijs/element'; | ||
export { Logger, Service } from 'cordis'; | ||
export { Logger, Schema, Schema as z } from 'cordis'; | ||
export { h, h as Element, h as segment }; | ||
export { Schema, Schema as z, Quester }; | ||
export { Quester }; | ||
export * as Satori from '@satorijs/protocol'; | ||
@@ -175,2 +175,9 @@ export * as Universal from '@satorijs/protocol'; | ||
} | ||
export type EffectScope<C extends Context = Context> = cordis.EffectScope<C>; | ||
export type ForkScope<C extends Context = Context> = cordis.ForkScope<C>; | ||
export type MainScope<C extends Context = Context> = cordis.MainScope<C>; | ||
export interface Events<C extends Context = Context> extends cordis.Events<C> { | ||
} | ||
export class Service<C extends Context = Context> extends cordis.Service<C> { | ||
} | ||
export interface Context { | ||
@@ -229,3 +236,2 @@ [Context.events]: Events<this>; | ||
static reusable: boolean; | ||
static Config: Schema<WsClientConfig>; | ||
constructor(ctx: C, bot: B); | ||
@@ -232,0 +238,0 @@ getActive(): boolean; |
{ | ||
"name": "@satorijs/core", | ||
"description": "Core components of Satorijs", | ||
"version": "3.5.1", | ||
"version": "3.5.2", | ||
"type": "module", | ||
@@ -49,8 +49,7 @@ "main": "lib/index.cjs", | ||
"@satorijs/protocol": "^1.2.1", | ||
"cordis": "^3.8.3", | ||
"cordis": "^3.9.0", | ||
"cordis-axios": "^4.1.0", | ||
"cosmokit": "^1.5.2", | ||
"schemastery": "^3.14.3", | ||
"ws": "^8.14.2" | ||
} | ||
} |
import { Awaitable, remove, Time } from 'cosmokit' | ||
import { Status, WebSocket } from '@satorijs/protocol' | ||
import { Context } from '.' | ||
import { Context, Schema } from '.' | ||
import { Bot } from './bot' | ||
import Schema from 'schemastery' | ||
@@ -106,3 +105,2 @@ export abstract class Adapter<C extends Context = Context, B extends Bot<C> = Bot<C>> { | ||
static reusable = true | ||
static Config = WsClientConfig | ||
@@ -109,0 +107,0 @@ constructor(ctx: C, public bot: B) { |
@@ -5,3 +5,3 @@ import * as cordis from 'cordis' | ||
import { Session } from './session' | ||
import Schema from 'schemastery' | ||
import { Schema } from 'cordis' | ||
import { Quester } from 'cordis-axios' | ||
@@ -17,6 +17,6 @@ import { Event, SendOptions } from '@satorijs/protocol' | ||
export { Logger, Service } from 'cordis' | ||
export { Logger, Schema, Schema as z } from 'cordis' | ||
export { h, h as Element, h as segment } | ||
export { Schema, Schema as z, Quester } | ||
export { Quester } | ||
@@ -103,2 +103,10 @@ export * as Satori from '@satorijs/protocol' | ||
export type EffectScope<C extends Context = Context> = cordis.EffectScope<C> | ||
export type ForkScope<C extends Context = Context> = cordis.ForkScope<C> | ||
export type MainScope<C extends Context = Context> = cordis.MainScope<C> | ||
export interface Events<C extends Context = Context> extends cordis.Events<C> {} | ||
export class Service<C extends Context = Context> extends cordis.Service<C> {} | ||
export interface Context { | ||
@@ -105,0 +113,0 @@ [Context.events]: Events<this> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
103279
6
2155
- Removedschemastery@^3.14.3
Updatedcordis@^3.9.0