@satorijs/core
Advanced tools
Comparing version 3.6.0-alpha.4 to 3.6.0
@@ -1,2 +0,1 @@ | ||
/// <reference types="undios-file" /> | ||
import * as cordis from 'cordis'; | ||
@@ -197,4 +196,4 @@ import { Message, SendOptions, Event, GuildMember, User, Login, Methods, Status } from '@satorijs/protocol'; | ||
} | ||
export class Service<C extends Context = Context> extends cordis.Service<C> { | ||
static Context: typeof Context; | ||
export abstract class Service<T = undefined, C extends Context = Context> extends cordis.Service<T, C> { | ||
[cordis.Service.setup](): void; | ||
} | ||
@@ -201,0 +200,0 @@ export abstract class Adapter<C extends Context = Context, B extends Bot<C> = Bot<C>> { |
{ | ||
"name": "@satorijs/core", | ||
"description": "Core components of Satorijs", | ||
"version": "3.6.0-alpha.4", | ||
"version": "3.6.0", | ||
"type": "module", | ||
@@ -47,7 +47,7 @@ "main": "lib/index.cjs", | ||
"dependencies": { | ||
"@satorijs/element": "^3.1.4", | ||
"@satorijs/element": "^3.1.5", | ||
"@satorijs/protocol": "^1.3.0-alpha.0", | ||
"cordis": "^3.11.0", | ||
"cordis": "^3.12.0", | ||
"cosmokit": "^1.5.2", | ||
"undios": "^0.2.0", | ||
"undios": "^0.2.2", | ||
"undios-file": "^0.1.2", | ||
@@ -54,0 +54,0 @@ "ws": "^8.14.2" |
@@ -171,4 +171,6 @@ import * as cordis from 'cordis' | ||
export class Service<C extends Context = Context> extends cordis.Service<C> { | ||
static Context = Context | ||
export abstract class Service<T = undefined, C extends Context = Context> extends cordis.Service<T, C> { | ||
[cordis.Service.setup]() { | ||
this.ctx = new Context() as C | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
100964
2151
0
Updated@satorijs/element@^3.1.5
Updatedcordis@^3.12.0
Updatedundios@^0.2.2