@leanbase-giangnd/js 0.1.1 → 0.1.2

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/index.cjs CHANGED
@@ -1185,7 +1185,7 @@ const detectDeviceType = function (user_agent) {
1185
1185
  }
1186
1186
  };
1187
1187
 
1188
- var version = "0.1.1";
1188
+ var version = "0.1.2";
1189
1189
  var packageInfo = {
1190
1190
  version: version};
1191
1191
 
package/dist/index.mjs CHANGED
@@ -1183,7 +1183,7 @@ const detectDeviceType = function (user_agent) {
1183
1183
  }
1184
1184
  };
1185
1185
 
1186
- var version = "0.1.1";
1186
+ var version = "0.1.2";
1187
1187
  var packageInfo = {
1188
1188
  version: version};
1189
1189
 
@@ -2863,7 +2863,7 @@ var leanbase = (function (record) {
2863
2863
  }
2864
2864
  };
2865
2865
 
2866
- var version = "0.1.1";
2866
+ var version = "0.1.2";
2867
2867
  var packageInfo = {
2868
2868
  version: version};
2869
2869
 
@@ -8293,6 +8293,10 @@ var leanbase = (function (record) {
8293
8293
  _queue: [],
8294
8294
  init(apiKey, options) {
8295
8295
  this._instance = new Leanbase(apiKey, options);
8296
+ // Expose the instantiated SDK for legacy/global access when running in a browser
8297
+ if (typeof window !== 'undefined') {
8298
+ window.__LEANBASE__ = this._instance;
8299
+ }
8296
8300
  const q = this._queue;
8297
8301
  this._queue = [];
8298
8302
  for (const {