@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.
@@ -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 === 'object' && o !== null && typeof o.then === 'function';
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.4' });
205
+ Object.defineProperty(window, '__ktjs__', { value: '0.22.5' });
206
206
 
207
207
  exports.$ArrayFrom = $ArrayFrom;
208
208
  exports.$append = $append;
@@ -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.4' });
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 === 'object' && o !== null && typeof o.then === 'function';
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.4' });
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ktjs/shared",
3
- "version": "0.22.4",
3
+ "version": "0.22.5",
4
4
  "description": "Shared utilities and cached native methods for kt.js framework",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",