@ktjs/shared 0.22.4 → 0.22.5
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.iife.js +2 -2
- package/dist/index.legacy.js +2 -4
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.iife.js
CHANGED
|
@@ -28,7 +28,7 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
28
28
|
const $define = Object.defineProperty;
|
|
29
29
|
const $entries = Object.entries;
|
|
30
30
|
const $random = Math.random;
|
|
31
|
-
const $isThenable = (o) => typeof o
|
|
31
|
+
const $isThenable = (o) => typeof o?.then === 'function';
|
|
32
32
|
|
|
33
33
|
// Error handling utilities
|
|
34
34
|
/**
|
|
@@ -202,7 +202,7 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
// Shared utilities and cached native methods for kt.js framework
|
|
205
|
-
Object.defineProperty(window, '__ktjs__', { value: '0.22.
|
|
205
|
+
Object.defineProperty(window, '__ktjs__', { value: '0.22.5' });
|
|
206
206
|
|
|
207
207
|
exports.$ArrayFrom = $ArrayFrom;
|
|
208
208
|
exports.$append = $append;
|
package/dist/index.legacy.js
CHANGED
|
@@ -28,9 +28,7 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
28
28
|
var $define = Object.defineProperty;
|
|
29
29
|
var $entries = Object.entries;
|
|
30
30
|
var $random = Math.random;
|
|
31
|
-
var $isThenable = function (o) {
|
|
32
|
-
return typeof o === 'object' && o !== null && typeof o.then === 'function';
|
|
33
|
-
};
|
|
31
|
+
var $isThenable = function (o) { return typeof (o === null || o === void 0 ? void 0 : o.then) === 'function'; };
|
|
34
32
|
|
|
35
33
|
// Error handling utilities
|
|
36
34
|
/**
|
|
@@ -215,7 +213,7 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
215
213
|
}
|
|
216
214
|
|
|
217
215
|
// Shared utilities and cached native methods for kt.js framework
|
|
218
|
-
Object.defineProperty(window, '__ktjs__', { value: '0.22.
|
|
216
|
+
Object.defineProperty(window, '__ktjs__', { value: '0.22.5' });
|
|
219
217
|
|
|
220
218
|
exports.$ArrayFrom = $ArrayFrom;
|
|
221
219
|
exports.$append = $append;
|
package/dist/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ const $defines = Object.defineProperties;
|
|
|
25
25
|
const $define = Object.defineProperty;
|
|
26
26
|
const $entries = Object.entries;
|
|
27
27
|
const $random = Math.random;
|
|
28
|
-
const $isThenable = (o) => typeof o
|
|
28
|
+
const $isThenable = (o) => typeof o?.then === 'function';
|
|
29
29
|
|
|
30
30
|
// Error handling utilities
|
|
31
31
|
/**
|
|
@@ -199,6 +199,6 @@ if (typeof Symbol === 'undefined') {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
// Shared utilities and cached native methods for kt.js framework
|
|
202
|
-
Object.defineProperty(window, '__ktjs__', { value: '0.22.
|
|
202
|
+
Object.defineProperty(window, '__ktjs__', { value: '0.22.5' });
|
|
203
203
|
|
|
204
204
|
export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyFn, $entries, $hasOwn, $is, $isArray, $isNode, $isThenable, $keys, $random, $throw, $toString, $warn, DIRV_TYPE, MATHML_ATTR_FLAG, SVG_ATTR_FLAG, applyModel, buildQuery, emplaceParams, extractParams, generateHandler, normalizePath, parseQuery, parseStyle };
|