@ktjs/shared 0.20.0 → 0.20.1
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 +16 -1
- package/dist/index.iife.js +11 -1
- package/dist/index.legacy.js +11 -1
- package/dist/index.mjs +7 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
declare const $isArray: (arg: any) => arg is any[];
|
|
2
|
+
declare const $ArrayFrom: {
|
|
3
|
+
<T>(arrayLike: ArrayLike<T>): T[];
|
|
4
|
+
<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
5
|
+
<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
6
|
+
<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
7
|
+
};
|
|
8
|
+
declare const $is: (value1: any, value2: any) => boolean;
|
|
9
|
+
declare const $assign: {
|
|
10
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
11
|
+
<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
|
|
12
|
+
<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
|
|
13
|
+
(target: object, ...sources: any[]): any;
|
|
14
|
+
};
|
|
2
15
|
declare const $hasOwn: (v: PropertyKey) => boolean;
|
|
16
|
+
declare const $toString: () => string;
|
|
3
17
|
declare const $keys: <T>(o: T) => Array<keyof T>;
|
|
4
18
|
declare const $defines: <T>(o: T, properties: PropertyDescriptorMap & ThisType<any>) => T;
|
|
19
|
+
declare const $define: <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T;
|
|
5
20
|
declare const $entries: <T>(o: T) => Array<[keyof T, T[keyof T]]>;
|
|
6
21
|
declare const $isThenable: (o: any) => o is Promise<any>;
|
|
7
22
|
|
|
@@ -48,5 +63,5 @@ declare const emplaceParams: (path: string, params: Record<string, string>) => s
|
|
|
48
63
|
*/
|
|
49
64
|
declare const extractParams: (pattern: string, path: string) => Record<string, string> | null;
|
|
50
65
|
|
|
51
|
-
export { $append, $appendChild, $buttonDisabledGetter, $buttonDisabledSetter, $defines, $emptyFn, $entries, $hasOwn, $isArray, $isThenable, $keys, $throw, buildQuery, emplaceParams, extractParams, generateHandler, normalizePath, parseQuery, parseStyle };
|
|
66
|
+
export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyFn, $entries, $hasOwn, $is, $isArray, $isThenable, $keys, $throw, $toString, buildQuery, emplaceParams, extractParams, generateHandler, normalizePath, parseQuery, parseStyle };
|
|
52
67
|
export type { ChangeHandler };
|
package/dist/index.iife.js
CHANGED
|
@@ -3,9 +3,14 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
3
3
|
|
|
4
4
|
// Cached native methods for performance optimization
|
|
5
5
|
const $isArray = Array.isArray;
|
|
6
|
+
const $ArrayFrom = Array.from;
|
|
7
|
+
const $is = Object.is;
|
|
8
|
+
const $assign = Object.assign;
|
|
6
9
|
const $hasOwn = Object.prototype.hasOwnProperty;
|
|
10
|
+
const $toString = Object.prototype.toString;
|
|
7
11
|
const $keys = Object.keys;
|
|
8
12
|
const $defines = Object.defineProperties;
|
|
13
|
+
const $define = Object.defineProperty;
|
|
9
14
|
const $entries = Object.entries;
|
|
10
15
|
const $isThenable = (o) => typeof o === 'object' && o !== null && typeof o.then === 'function';
|
|
11
16
|
|
|
@@ -160,20 +165,25 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
160
165
|
|
|
161
166
|
// Shared utilities and cached native methods for kt.js framework
|
|
162
167
|
// Re-export all utilities
|
|
163
|
-
Object.defineProperty(window, '@ktjs/shared', { value: '0.20.
|
|
168
|
+
Object.defineProperty(window, '@ktjs/shared', { value: '0.20.1' });
|
|
164
169
|
|
|
170
|
+
exports.$ArrayFrom = $ArrayFrom;
|
|
165
171
|
exports.$append = $append;
|
|
166
172
|
exports.$appendChild = $appendChild;
|
|
173
|
+
exports.$assign = $assign;
|
|
167
174
|
exports.$buttonDisabledGetter = $buttonDisabledGetter;
|
|
168
175
|
exports.$buttonDisabledSetter = $buttonDisabledSetter;
|
|
176
|
+
exports.$define = $define;
|
|
169
177
|
exports.$defines = $defines;
|
|
170
178
|
exports.$emptyFn = $emptyFn;
|
|
171
179
|
exports.$entries = $entries;
|
|
172
180
|
exports.$hasOwn = $hasOwn;
|
|
181
|
+
exports.$is = $is;
|
|
173
182
|
exports.$isArray = $isArray;
|
|
174
183
|
exports.$isThenable = $isThenable;
|
|
175
184
|
exports.$keys = $keys;
|
|
176
185
|
exports.$throw = $throw;
|
|
186
|
+
exports.$toString = $toString;
|
|
177
187
|
exports.buildQuery = buildQuery;
|
|
178
188
|
exports.emplaceParams = emplaceParams;
|
|
179
189
|
exports.extractParams = extractParams;
|
package/dist/index.legacy.js
CHANGED
|
@@ -3,9 +3,14 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
3
3
|
|
|
4
4
|
// Cached native methods for performance optimization
|
|
5
5
|
var $isArray = Array.isArray;
|
|
6
|
+
var $ArrayFrom = Array.from;
|
|
7
|
+
var $is = Object.is;
|
|
8
|
+
var $assign = Object.assign;
|
|
6
9
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
10
|
+
var $toString = Object.prototype.toString;
|
|
7
11
|
var $keys = Object.keys;
|
|
8
12
|
var $defines = Object.defineProperties;
|
|
13
|
+
var $define = Object.defineProperty;
|
|
9
14
|
var $entries = Object.entries;
|
|
10
15
|
var $isThenable = function (o) {
|
|
11
16
|
return typeof o === 'object' && o !== null && typeof o.then === 'function';
|
|
@@ -173,20 +178,25 @@ var __ktjs_shared__ = (function (exports) {
|
|
|
173
178
|
|
|
174
179
|
// Shared utilities and cached native methods for kt.js framework
|
|
175
180
|
// Re-export all utilities
|
|
176
|
-
Object.defineProperty(window, '@ktjs/shared', { value: '0.20.
|
|
181
|
+
Object.defineProperty(window, '@ktjs/shared', { value: '0.20.1' });
|
|
177
182
|
|
|
183
|
+
exports.$ArrayFrom = $ArrayFrom;
|
|
178
184
|
exports.$append = $append;
|
|
179
185
|
exports.$appendChild = $appendChild;
|
|
186
|
+
exports.$assign = $assign;
|
|
180
187
|
exports.$buttonDisabledGetter = $buttonDisabledGetter;
|
|
181
188
|
exports.$buttonDisabledSetter = $buttonDisabledSetter;
|
|
189
|
+
exports.$define = $define;
|
|
182
190
|
exports.$defines = $defines;
|
|
183
191
|
exports.$emptyFn = $emptyFn;
|
|
184
192
|
exports.$entries = $entries;
|
|
185
193
|
exports.$hasOwn = $hasOwn;
|
|
194
|
+
exports.$is = $is;
|
|
186
195
|
exports.$isArray = $isArray;
|
|
187
196
|
exports.$isThenable = $isThenable;
|
|
188
197
|
exports.$keys = $keys;
|
|
189
198
|
exports.$throw = $throw;
|
|
199
|
+
exports.$toString = $toString;
|
|
190
200
|
exports.buildQuery = buildQuery;
|
|
191
201
|
exports.emplaceParams = emplaceParams;
|
|
192
202
|
exports.extractParams = extractParams;
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
// Cached native methods for performance optimization
|
|
2
2
|
const $isArray = Array.isArray;
|
|
3
|
+
const $ArrayFrom = Array.from;
|
|
4
|
+
const $is = Object.is;
|
|
5
|
+
const $assign = Object.assign;
|
|
3
6
|
const $hasOwn = Object.prototype.hasOwnProperty;
|
|
7
|
+
const $toString = Object.prototype.toString;
|
|
4
8
|
const $keys = Object.keys;
|
|
5
9
|
const $defines = Object.defineProperties;
|
|
10
|
+
const $define = Object.defineProperty;
|
|
6
11
|
const $entries = Object.entries;
|
|
7
12
|
const $isThenable = (o) => typeof o === 'object' && o !== null && typeof o.then === 'function';
|
|
8
13
|
|
|
@@ -157,6 +162,6 @@ const extractParams = (pattern, path) => {
|
|
|
157
162
|
|
|
158
163
|
// Shared utilities and cached native methods for kt.js framework
|
|
159
164
|
// Re-export all utilities
|
|
160
|
-
Object.defineProperty(window, '@ktjs/shared', { value: '0.20.
|
|
165
|
+
Object.defineProperty(window, '@ktjs/shared', { value: '0.20.1' });
|
|
161
166
|
|
|
162
|
-
export { $append, $appendChild, $buttonDisabledGetter, $buttonDisabledSetter, $defines, $emptyFn, $entries, $hasOwn, $isArray, $isThenable, $keys, $throw, buildQuery, emplaceParams, extractParams, generateHandler, normalizePath, parseQuery, parseStyle };
|
|
167
|
+
export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyFn, $entries, $hasOwn, $is, $isArray, $isThenable, $keys, $throw, $toString, buildQuery, emplaceParams, extractParams, generateHandler, normalizePath, parseQuery, parseStyle };
|