Comparing version 3.9.2 to 3.10.0
@@ -1,2 +0,1 @@ | ||
/// <reference types="@cordisjs/timer" /> | ||
import * as core from '@cordisjs/core'; | ||
@@ -7,8 +6,2 @@ import * as logger from '@cordisjs/logger'; | ||
export { Logger } from '@cordisjs/logger'; | ||
export interface EffectScope<C extends Context = Context> extends core.EffectScope<C> { | ||
} | ||
export interface ForkScope<C extends Context = Context> extends core.ForkScope<C> { | ||
} | ||
export interface MainScope<C extends Context = Context> extends core.MainScope<C> { | ||
} | ||
export interface Events<C extends Context = Context> extends core.Events<C> { | ||
@@ -26,7 +19,12 @@ } | ||
} | ||
export declare class Service<C extends Context = Context> extends core.Service<C> { | ||
export declare abstract class Service<C extends Context = Context> extends core.Service<C> { | ||
static Context: typeof Context; | ||
logger: logger.Logger; | ||
constructor(ctx: C | undefined, name: string, immediate?: boolean); | ||
constructor(ctx: C | undefined, name: string, options?: boolean | core.Service.Options); | ||
} | ||
export declare abstract class FunctionalService<C extends Context = Context> extends core.FunctionalService<C> { | ||
static Context: typeof Context; | ||
logger: logger.Logger; | ||
constructor(ctx: C | undefined, name: string, options?: boolean | core.Service.Options); | ||
} | ||
export default function (): void; |
{ | ||
"name": "cordis", | ||
"description": "Meta-Framework for Modern JavaScript Applications", | ||
"version": "3.9.2", | ||
"version": "3.10.0", | ||
"type": "module", | ||
@@ -56,4 +56,4 @@ "main": "lib/index.cjs", | ||
"dependencies": { | ||
"@cordisjs/core": "3.9.2", | ||
"@cordisjs/loader": "^0.4.8", | ||
"@cordisjs/core": "3.10.0", | ||
"@cordisjs/loader": "^0.5.0", | ||
"@cordisjs/logger": "^0.2.0", | ||
@@ -60,0 +60,0 @@ "@cordisjs/timer": "^0.3.0", |
@@ -9,6 +9,2 @@ import * as core from '@cordisjs/core' | ||
export interface EffectScope<C extends Context = Context> extends core.EffectScope<C> {} | ||
export interface ForkScope<C extends Context = Context> extends core.ForkScope<C> {} | ||
export interface MainScope<C extends Context = Context> extends core.MainScope<C> {} | ||
export interface Events<C extends Context = Context> extends core.Events<C> {} | ||
@@ -39,3 +35,3 @@ | ||
export class Service<C extends Context = Context> extends core.Service<C> { | ||
export abstract class Service<C extends Context = Context> extends core.Service<C> { | ||
static Context = Context | ||
@@ -45,4 +41,4 @@ | ||
constructor(ctx: C | undefined, name: string, immediate?: boolean) { | ||
super(ctx, name, immediate) | ||
constructor(ctx: C | undefined, name: string, options?: boolean | core.Service.Options) { | ||
super(ctx, name, options) | ||
this.logger = this.ctx.logger(name) | ||
@@ -52,2 +48,13 @@ } | ||
export abstract class FunctionalService<C extends Context = Context> extends core.FunctionalService<C> { | ||
static Context = Context | ||
public logger: logger.Logger | ||
constructor(ctx: C | undefined, name: string, options?: boolean | core.Service.Options) { | ||
super(ctx, name, options) | ||
this.logger = this.ctx.logger(name) | ||
} | ||
} | ||
export default function () {} |
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
41723
964
+ Added@cordisjs/core@3.10.0(transitive)
+ Added@cordisjs/loader@0.5.4(transitive)
- Removed@cordisjs/core@3.9.2(transitive)
- Removed@cordisjs/loader@0.4.8(transitive)
Updated@cordisjs/core@3.10.0
Updated@cordisjs/loader@^0.5.0