@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 +1 -1
- package/dist/index.mjs +1 -1
- package/dist/leanbase.iife.js +5 -1
- package/dist/leanbase.iife.js.map +1 -1
- package/package.json +1 -1
- package/src/iife.ts +10 -0
- package/src/version.ts +1 -1
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
package/dist/leanbase.iife.js
CHANGED
|
@@ -2863,7 +2863,7 @@ var leanbase = (function (record) {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
};
|
|
2865
2865
|
|
|
2866
|
-
var version = "0.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 {
|