@suprsend/web-sdk 0.1.21 → 0.1.22

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": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "This is sdk used to integrate suprsend functionality in javascript applications",
5
5
  "main": "dist/cjs_bundle.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -101,6 +101,7 @@ class SuprSend {
101
101
  utils.set_cookie(constants.distinct_id, unique_id);
102
102
  suprSendInstance.distinct_id = unique_id;
103
103
  suprSendInstance._user_identified = true;
104
+ this.sw.update_subscription();
104
105
  }
105
106
  }
106
107
 
package/src/user.js CHANGED
@@ -138,6 +138,7 @@ class User {
138
138
  this.append({
139
139
  $webpush: push,
140
140
  $device_id: this.instance?.env_properties?.$device_id,
141
+ $pushvendor: "vapid",
141
142
  });
142
143
  }
143
144
  }