@koolbase/js 12.42.0 → 12.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +2 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/package.json +2 -2
package/dist/cjs/index.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export declare const Koolbase: {
|
|
|
34
34
|
readonly analytics: KoolbaseAnalytics;
|
|
35
35
|
isEnabled(key: string): boolean;
|
|
36
36
|
configString(key: string, fallback?: string): string;
|
|
37
|
+
/** Told each time flags and config arrive or refresh; returns the unsubscribe. */
|
|
38
|
+
onRemoteChange(listener: () => void): () => void;
|
|
37
39
|
configNumber(key: string, fallback?: number): number;
|
|
38
40
|
configBool(key: string, fallback?: boolean): boolean;
|
|
39
41
|
checkVersion(currentVersion: string): VersionCheckResult;
|
package/dist/cjs/index.js
CHANGED
|
@@ -176,6 +176,8 @@ exports.Koolbase = {
|
|
|
176
176
|
},
|
|
177
177
|
isEnabled(key) { ensureInitialized(); return _flags.isEnabled(key); },
|
|
178
178
|
configString(key, fallback = '') { ensureInitialized(); return _flags.getString(key, fallback); },
|
|
179
|
+
/** Told each time flags and config arrive or refresh; returns the unsubscribe. */
|
|
180
|
+
onRemoteChange(listener) { ensureInitialized(); return _flags.subscribe(listener); },
|
|
179
181
|
configNumber(key, fallback = 0) { ensureInitialized(); return _flags.getNumber(key, fallback); },
|
|
180
182
|
configBool(key, fallback = false) { ensureInitialized(); return _flags.getBool(key, fallback); },
|
|
181
183
|
checkVersion(currentVersion) { ensureInitialized(); return _flags.checkVersion(currentVersion); },
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export declare const Koolbase: {
|
|
|
34
34
|
readonly analytics: KoolbaseAnalytics;
|
|
35
35
|
isEnabled(key: string): boolean;
|
|
36
36
|
configString(key: string, fallback?: string): string;
|
|
37
|
+
/** Told each time flags and config arrive or refresh; returns the unsubscribe. */
|
|
38
|
+
onRemoteChange(listener: () => void): () => void;
|
|
37
39
|
configNumber(key: string, fallback?: number): number;
|
|
38
40
|
configBool(key: string, fallback?: boolean): boolean;
|
|
39
41
|
checkVersion(currentVersion: string): VersionCheckResult;
|
package/dist/esm/index.js
CHANGED
|
@@ -157,6 +157,8 @@ export const Koolbase = {
|
|
|
157
157
|
},
|
|
158
158
|
isEnabled(key) { ensureInitialized(); return _flags.isEnabled(key); },
|
|
159
159
|
configString(key, fallback = '') { ensureInitialized(); return _flags.getString(key, fallback); },
|
|
160
|
+
/** Told each time flags and config arrive or refresh; returns the unsubscribe. */
|
|
161
|
+
onRemoteChange(listener) { ensureInitialized(); return _flags.subscribe(listener); },
|
|
160
162
|
configNumber(key, fallback = 0) { ensureInitialized(); return _flags.getNumber(key, fallback); },
|
|
161
163
|
configBool(key, fallback = false) { ensureInitialized(); return _flags.getBool(key, fallback); },
|
|
162
164
|
checkVersion(currentVersion) { ensureInitialized(); return _flags.checkVersion(currentVersion); },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koolbase/js",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.43.0",
|
|
4
4
|
"description": "Koolbase SDK for the browser \u2014 auth, database, storage, realtime, functions, flags and offline sync in one package.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"url": "https://github.com/koolbase/koolbase-react-native"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@koolbase/core": "^12.
|
|
29
|
+
"@koolbase/core": "^12.43.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|