diff --git a/package.json b/package.json index 99282dd..daedcb6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@byloth/core", - "version": "2.0.0-rc.9", + "version": "2.0.0-rc.10", "description": "An unopinionated collection of useful functions and classes that I use widely in all my projects. 🔧", "keywords": [ "Core", diff --git a/src/index.ts b/src/index.ts index 4c4f7fb..635c127 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -export const VERSION = "2.0.0-rc.9"; +export const VERSION = "2.0.0-rc.10"; export type { Constructor, Interval, Timeout } from "./core/types.js"; diff --git a/src/models/callbacks/switchable-callback.ts b/src/models/callbacks/switchable-callback.ts index 7fea0bc..2a6d00d 100644 --- a/src/models/callbacks/switchable-callback.ts +++ b/src/models/callbacks/switchable-callback.ts @@ -32,7 +32,7 @@ export default class SwitchableCallback = Callbac this._callback = ((_default) as unknown) as T; this._callbacks = new Map(); - this._isEnabled = false; + this._isEnabled = true; this._key = ""; this.invoke = (...args: Parameters): ReturnType => this._callback(...args);