@nosnibor89/svelte-client-sdk 0.1.29 → 0.1.291
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/LDFlag.svelte
CHANGED
@@ -42,7 +42,6 @@ function toFlagsProxy(client, flags) {
|
|
42
42
|
* @returns {Object} The LaunchDarkly instance object.
|
43
43
|
*/
|
44
44
|
function createLD() {
|
45
|
-
console.log('instantiating client');
|
46
45
|
let coreLdClient;
|
47
46
|
const loading = writable(true);
|
48
47
|
const flagsWritable = writable({});
|
@@ -59,16 +58,11 @@ function createLD() {
|
|
59
58
|
loading.set(false);
|
60
59
|
const rawFlags = coreLdClient.allFlags();
|
61
60
|
const allFlags = toFlagsProxy(coreLdClient, rawFlags);
|
62
|
-
// const allFlags = rawFlags;
|
63
|
-
console.log('[LD] flag ready', rawFlags, allFlags);
|
64
61
|
flagsWritable.set(allFlags);
|
65
62
|
});
|
66
|
-
coreLdClient.on('change', (
|
67
|
-
console.log('changed ctx', context, changedFlags);
|
63
|
+
coreLdClient.on('change', () => {
|
68
64
|
const rawFlags = coreLdClient.allFlags();
|
69
65
|
const allFlags = toFlagsProxy(coreLdClient, rawFlags);
|
70
|
-
// const allFlags = rawFlags;
|
71
|
-
console.log('[LD] flag changed', rawFlags, allFlags);
|
72
66
|
flagsWritable.set(allFlags);
|
73
67
|
});
|
74
68
|
return {
|
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { LD
|
1
|
+
export { LD } from './client/SvelteLDClient.js';
|
2
2
|
export type { LDOptions } from './client/SvelteLDClient.js';
|
3
3
|
export { default as LDProvider } from './provider/LDProvider.svelte';
|
4
4
|
export { default as LDFlag } from './LDFlag.svelte';
|
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
// Reexport your entry components here
|
2
|
-
export { LD
|
2
|
+
export { LD } from './client/SvelteLDClient.js';
|
3
3
|
// Export Components
|
4
4
|
export { default as LDProvider } from './provider/LDProvider.svelte';
|
5
5
|
export { default as LDFlag } from './LDFlag.svelte';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nosnibor89/svelte-client-sdk",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.291",
|
4
4
|
"description": "Svelte LaunchDarkly SDK",
|
5
5
|
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/svelte",
|
6
6
|
"repository": {
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"svelte": "^5.0.0"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@launchdarkly/js-client-sdk": "^0.
|
49
|
+
"@launchdarkly/js-client-sdk": "^0.4.1",
|
50
50
|
"esm-env": "^1.0.0"
|
51
51
|
},
|
52
52
|
"devDependencies": {
|