@ktjs/shared 0.22.2 → 0.22.3
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.d.ts +2 -1
- package/dist/index.iife.js +4 -1
- package/dist/index.legacy.js +4 -1
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ type ChangeTriggerField = 'value' | 'checked' | 'selected' | 'valueAsDate' | 'va
|
|
|
93
93
|
|
|
94
94
|
type InputElementTag = 'input' | 'select' | 'textarea';
|
|
95
95
|
|
|
96
|
+
declare const $isNode: (x: any) => boolean;
|
|
96
97
|
/**
|
|
97
98
|
* & Remove `bind` because it is shockingly slower than wrapper
|
|
98
99
|
* & `window.document` is safe because it is not configurable and its setter is undefined
|
|
@@ -141,5 +142,5 @@ declare const emplaceParams: (path: string, params: Record<string, string>) => s
|
|
|
141
142
|
*/
|
|
142
143
|
declare const extractParams: (pattern: string, path: string) => Record<string, string> | null;
|
|
143
144
|
|
|
144
|
-
export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyFn, $entries, $hasOwn, $is, $isArray, $isThenable, $keys, $throw, $toString, $warn, applyModel, buildQuery, emplaceParams, extractParams, generateHandler, normalizePath, parseQuery, parseStyle };
|
|
145
|
+
export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyFn, $entries, $hasOwn, $is, $isArray, $isNode, $isThenable, $keys, $throw, $toString, $warn, applyModel, buildQuery, emplaceParams, extractParams, generateHandler, normalizePath, parseQuery, parseStyle };
|
|
145
146
|
export type { ChangeHandler, ChangeTriggerField, HTMLTag, InputElementTag, MathMLTag, NoTextNodeTag, NonSpecialTags, SVGTag, otherstring };
|
package/dist/index.iife.js
CHANGED
|
@@ -34,6 +34,7 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
34
34
|
|
|
35
35
|
// DOM manipulation utilities
|
|
36
36
|
// # dom natives
|
|
37
|
+
const $isNode = (x) => x?.nodeType > 0;
|
|
37
38
|
/**
|
|
38
39
|
* & Remove `bind` because it is shockingly slower than wrapper
|
|
39
40
|
* & `window.document` is safe because it is not configurable and its setter is undefined
|
|
@@ -179,8 +180,9 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
179
180
|
};
|
|
180
181
|
|
|
181
182
|
// Shared utilities and cached native methods for kt.js framework
|
|
183
|
+
// import './misc/symbol-polyfill.js';
|
|
182
184
|
// Re-export all utilities
|
|
183
|
-
Object.defineProperty(window, '__ktjs__', { value: '0.22.
|
|
185
|
+
Object.defineProperty(window, '__ktjs__', { value: '0.22.3' });
|
|
184
186
|
|
|
185
187
|
exports.$ArrayFrom = $ArrayFrom;
|
|
186
188
|
exports.$append = $append;
|
|
@@ -195,6 +197,7 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
195
197
|
exports.$hasOwn = $hasOwn;
|
|
196
198
|
exports.$is = $is;
|
|
197
199
|
exports.$isArray = $isArray;
|
|
200
|
+
exports.$isNode = $isNode;
|
|
198
201
|
exports.$isThenable = $isThenable;
|
|
199
202
|
exports.$keys = $keys;
|
|
200
203
|
exports.$throw = $throw;
|
package/dist/index.legacy.js
CHANGED
|
@@ -37,6 +37,7 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
37
37
|
// DOM manipulation utilities
|
|
38
38
|
var _a;
|
|
39
39
|
// # dom natives
|
|
40
|
+
var $isNode = function (x) { return (x === null || x === void 0 ? void 0 : x.nodeType) > 0; };
|
|
40
41
|
/**
|
|
41
42
|
* & Remove `bind` because it is shockingly slower than wrapper
|
|
42
43
|
* & `window.document` is safe because it is not configurable and its setter is undefined
|
|
@@ -192,8 +193,9 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
192
193
|
};
|
|
193
194
|
|
|
194
195
|
// Shared utilities and cached native methods for kt.js framework
|
|
196
|
+
// import './misc/symbol-polyfill.js';
|
|
195
197
|
// Re-export all utilities
|
|
196
|
-
Object.defineProperty(window, '__ktjs__', { value: '0.22.
|
|
198
|
+
Object.defineProperty(window, '__ktjs__', { value: '0.22.3' });
|
|
197
199
|
|
|
198
200
|
exports.$ArrayFrom = $ArrayFrom;
|
|
199
201
|
exports.$append = $append;
|
|
@@ -208,6 +210,7 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
208
210
|
exports.$hasOwn = $hasOwn;
|
|
209
211
|
exports.$is = $is;
|
|
210
212
|
exports.$isArray = $isArray;
|
|
213
|
+
exports.$isNode = $isNode;
|
|
211
214
|
exports.$isThenable = $isThenable;
|
|
212
215
|
exports.$keys = $keys;
|
|
213
216
|
exports.$throw = $throw;
|
package/dist/index.mjs
CHANGED
|
@@ -31,6 +31,7 @@ const $emptyFn = (() => true);
|
|
|
31
31
|
|
|
32
32
|
// DOM manipulation utilities
|
|
33
33
|
// # dom natives
|
|
34
|
+
const $isNode = (x) => x?.nodeType > 0;
|
|
34
35
|
/**
|
|
35
36
|
* & Remove `bind` because it is shockingly slower than wrapper
|
|
36
37
|
* & `window.document` is safe because it is not configurable and its setter is undefined
|
|
@@ -176,7 +177,8 @@ const extractParams = (pattern, path) => {
|
|
|
176
177
|
};
|
|
177
178
|
|
|
178
179
|
// Shared utilities and cached native methods for kt.js framework
|
|
180
|
+
// import './misc/symbol-polyfill.js';
|
|
179
181
|
// Re-export all utilities
|
|
180
|
-
Object.defineProperty(window, '__ktjs__', { value: '0.22.
|
|
182
|
+
Object.defineProperty(window, '__ktjs__', { value: '0.22.3' });
|
|
181
183
|
|
|
182
|
-
export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyFn, $entries, $hasOwn, $is, $isArray, $isThenable, $keys, $throw, $toString, $warn, applyModel, buildQuery, emplaceParams, extractParams, generateHandler, normalizePath, parseQuery, parseStyle };
|
|
184
|
+
export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyFn, $entries, $hasOwn, $is, $isArray, $isNode, $isThenable, $keys, $throw, $toString, $warn, applyModel, buildQuery, emplaceParams, extractParams, generateHandler, normalizePath, parseQuery, parseStyle };
|