Comparing version 1.0.1-alpha.3 to 1.0.1-alpha.4
@@ -59,3 +59,2 @@ type BlacObserver<S> = (newState: S, oldState: S) => void | Promise<void>; | ||
pluginMap: Map<string, any>; | ||
constructor(options?: O); | ||
report: (event: BlacEvent, bloc: BlocBase<any>) => void; | ||
@@ -69,11 +68,3 @@ unregisterBloc(bloc: BlocBase<any>): void; | ||
} | ||
declare global { | ||
interface Window { | ||
blac?: Blac<any>; | ||
} | ||
interface GlobalThis { | ||
blac?: Blac<any>; | ||
} | ||
} | ||
export { Blac, BlacEvent, BlacObservable, BlacObserver, BlacOptions, Bloc, BlocBase, BlocBaseAbstract, BlocClassNoParams, BlocConstructor, BlocOptions, Cubit, CubitOptions, ValueType }; |
@@ -30,3 +30,3 @@ class BlacObservable { | ||
observer; | ||
blac = globalThis.blac; | ||
blac = undefined; | ||
uid = Math.random().toString(36).split(".")[1]; | ||
@@ -64,5 +64,2 @@ pluginStore = new Map(); | ||
pluginMap = new Map(); | ||
constructor(options = {}) { | ||
globalThis.blac = this; | ||
} | ||
report = (event, bloc) => { | ||
@@ -69,0 +66,0 @@ const base = bloc.constructor; |
@@ -32,3 +32,3 @@ 'use strict'; | ||
observer; | ||
blac = globalThis.blac; | ||
blac = undefined; | ||
uid = Math.random().toString(36).split(".")[1]; | ||
@@ -66,5 +66,2 @@ pluginStore = new Map(); | ||
pluginMap = new Map(); | ||
constructor(options = {}) { | ||
globalThis.blac = this; | ||
} | ||
report = (event, bloc) => { | ||
@@ -71,0 +68,0 @@ const base = bloc.constructor; |
{ | ||
"name": "blac", | ||
"version": "1.0.1-alpha.3", | ||
"version": "1.0.1-alpha.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/blac.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
12415
335