@suprsend/web-sdk 1.2.5 → 1.2.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suprsend/web-sdk",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "This is sdk used to integrate suprsend functionality in javascript applications",
5
5
  "main": "dist/cjs_bundle.js",
6
6
  "scripts": {
@@ -12,7 +12,7 @@ class Preferences {
12
12
  constructor(instance, emitter) {
13
13
  this.ss_instance = instance;
14
14
  this._preference_data;
15
- this._preference_args;
15
+ this._preference_args; // used internally after over_all_channel_preferences update
16
16
  this._emitter = emitter;
17
17
 
18
18
  this._debounced_update_category_preferences = utils.debounce_by_type(
@@ -181,6 +181,7 @@ class Preferences {
181
181
 
182
182
  async get_preferences(args = {}) {
183
183
  let url_path = "full_preference";
184
+ this._preference_args = args;
184
185
  let query_params = { tenant_id: args?.tenant_id };
185
186
 
186
187
  const response = await this._get_request(url_path, query_params);