@builder.io/sdk 2.0.7 → 2.0.8
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/CHANGELOG.md +4 -0
- package/dist/index.browser.js +3 -8
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +3 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +3 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.d.ts +0 -1
- package/dist/src/builder.class.js.map +1 -1
- package/dist/src/functions/next-tick.function.d.ts +1 -2
- package/dist/src/functions/next-tick.function.js +1 -7
- package/dist/src/functions/next-tick.function.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -50,21 +50,16 @@
|
|
|
50
50
|
|
|
51
51
|
var isSafari = typeof window !== 'undefined' &&
|
|
52
52
|
/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent);
|
|
53
|
+
var isClient = typeof window !== 'undefined';
|
|
53
54
|
// TODO: queue all of these in a debounceNextTick
|
|
54
55
|
function nextTick(fn) {
|
|
55
|
-
// React native
|
|
56
|
-
if (typeof setImmediate === 'function' && typeof window === 'undefined') {
|
|
57
|
-
return setImmediate(fn);
|
|
58
|
-
}
|
|
59
|
-
// TODO: should this be setImmediate instead? Forgot if that is micro or macro task
|
|
60
|
-
// TODO: detect specifically if is server
|
|
61
56
|
// if (typeof process !== 'undefined' && process.nextTick) {
|
|
62
57
|
// console.log('process.nextTick?');
|
|
63
58
|
// process.nextTick(fn);
|
|
64
59
|
// return;
|
|
65
60
|
// }
|
|
66
61
|
// FIXME: fix the real safari issue of this randomly not working
|
|
67
|
-
if (isSafari || typeof MutationObserver === 'undefined') {
|
|
62
|
+
if (!isClient || isSafari || typeof MutationObserver === 'undefined') {
|
|
68
63
|
setTimeout(fn);
|
|
69
64
|
return;
|
|
70
65
|
}
|
|
@@ -157,7 +152,7 @@
|
|
|
157
152
|
throw new Error("Property name \"".concat(name, "\" is not allowed"));
|
|
158
153
|
}
|
|
159
154
|
|
|
160
|
-
var version = "2.0.
|
|
155
|
+
var version = "2.0.7";
|
|
161
156
|
|
|
162
157
|
var Subscription = /** @class */ (function () {
|
|
163
158
|
function Subscription(listeners, listener) {
|