@nosnibor89/svelte-client-sdk 0.1.27 → 0.1.28
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.
@@ -81,12 +81,16 @@ function createLD() {
|
|
81
81
|
* @param {LDContext} context - The user context.
|
82
82
|
* @returns {Promise} A promise that resolves when the user is identified.
|
83
83
|
*/
|
84
|
+
// async function identify(context: LDContext): Promise<LDFlagSet> {
|
85
|
+
// isClientInitialized(coreLdClient);
|
86
|
+
// const allFlags = await coreLdClient.identify(context);
|
87
|
+
// // const allFlags = toFlagsProxy(coreLdClient!, rawFlags);
|
88
|
+
// flagsWritable.set(allFlags);
|
89
|
+
// return allFlags;
|
90
|
+
// }
|
84
91
|
async function identify(context) {
|
85
92
|
isClientInitialized(coreLdClient);
|
86
|
-
|
87
|
-
// const allFlags = toFlagsProxy(coreLdClient!, rawFlags);
|
88
|
-
flagsWritable.set(allFlags);
|
89
|
-
return allFlags;
|
93
|
+
return coreLdClient.identify(context);
|
90
94
|
}
|
91
95
|
/**
|
92
96
|
* Watches a flag for changes.
|
package/package.json
CHANGED