@ninetailed/experience.js 1.2.0 → 1.3.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/index.esm.js CHANGED
@@ -4157,6 +4157,7 @@ class Ninetailed {
4157
4157
  };
4158
4158
 
4159
4159
  this.onProfileChange = cb => {
4160
+ cb(this.profileState);
4160
4161
  return this.instance.on(NINETAILED_TRACKER_EVENTS.profile, ({
4161
4162
  payload
4162
4163
  }) => {
package/index.umd.js CHANGED
@@ -3918,6 +3918,7 @@
3918
3918
  };
3919
3919
 
3920
3920
  this.onProfileChange = function (cb) {
3921
+ cb(_this.profileState);
3921
3922
  return _this.instance.on(NINETAILED_TRACKER_EVENTS.profile, function (_a) {
3922
3923
  var payload = _a.payload;
3923
3924
  cb(__assign(__assign({}, _this._profileState), {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "main": "./index.umd.js",
5
5
  "module": "./index.esm.js",
6
6
  "typings": "./index.d.ts",
7
7
  "dependencies": {
8
- "@ninetailed/experience.js-shared": "1.2.0",
8
+ "@ninetailed/experience.js-shared": "1.3.0",
9
9
  "uuid": "^8.3.2",
10
10
  "ts-toolbelt": "^9.6.0",
11
11
  "locale-enum": "^1.1.1",