tool-shack 0.0.15 → 0.0.18
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/browser/index.d.ts +9 -6
- package/dist/browser/index.js +3 -0
- package/dist/browser/isScrollBehaviorSupported.d.ts +6 -0
- package/dist/browser/isScrollBehaviorSupported.js +7 -0
- package/dist/browser/scrollToElement.d.ts +9 -0
- package/dist/browser/scrollToElement.js +15 -0
- package/dist/browser/scrollToPosition.d.ts +10 -0
- package/dist/browser/scrollToPosition.js +23 -0
- package/dist/browser/tabFocusListener.d.ts +1 -1
- package/dist/dateTime/index.d.ts +3 -3
- package/dist/dateTime/interfaces/index.d.ts +1 -1
- package/dist/dateTime/parseDuration.d.ts +1 -1
- package/dist/dom/createElement.d.ts +1 -1
- package/dist/dom/getElementOffset.d.ts +10 -0
- package/dist/dom/getElementOffset.js +11 -0
- package/dist/dom/index.d.ts +9 -8
- package/dist/dom/index.js +1 -0
- package/dist/dom/interfaces/index.d.ts +1 -1
- package/dist/general/index.d.ts +3 -3
- package/dist/index.d.ts +6 -6
- package/dist/schedule/index.d.ts +2 -2
- package/dist/string/index.d.ts +5 -5
- package/package.json +49 -49
- package/src/browser/index.ts +9 -6
- package/src/browser/isScrollBehaviorSupported.ts +7 -0
- package/src/browser/isTouchSupported.ts +1 -1
- package/src/browser/scrollToElement.ts +20 -0
- package/src/browser/scrollToPosition.ts +27 -0
- package/src/browser/tabFocusListener.ts +1 -1
- package/src/dateTime/index.ts +3 -3
- package/src/dateTime/interfaces/index.ts +1 -1
- package/src/dateTime/parseDuration.ts +1 -1
- package/src/dom/createElement.ts +1 -1
- package/src/dom/getElementOffset.ts +11 -0
- package/src/dom/index.ts +9 -8
- package/src/dom/interfaces/index.ts +1 -1
- package/src/general/index.ts +3 -3
- package/src/general/isEmpty.ts +1 -1
- package/src/index.ts +6 -6
- package/src/schedule/index.ts +2 -2
- package/src/string/index.ts +5 -5
- package/src/string/slugify.ts +1 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
export * from './isPushNotificationSupported';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
1
|
+
export * from './isPushNotificationSupported.js';
|
|
2
|
+
export * from './isScrollBehaviorSupported.js';
|
|
3
|
+
export * from './isShareSupported.js';
|
|
4
|
+
export * from './isTabFocused.js';
|
|
5
|
+
export * from './isTouchSupported.js';
|
|
6
|
+
export * from './preferColorScheme.js';
|
|
7
|
+
export * from './scrollToElement.js';
|
|
8
|
+
export * from './scrollToPosition.js';
|
|
9
|
+
export * from './tabFocusListener.js';
|
package/dist/browser/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from './isPushNotificationSupported.js';
|
|
2
|
+
export * from './isScrollBehaviorSupported.js';
|
|
2
3
|
export * from './isShareSupported.js';
|
|
3
4
|
export * from './isTabFocused.js';
|
|
4
5
|
export * from './isTouchSupported.js';
|
|
5
6
|
export * from './preferColorScheme.js';
|
|
7
|
+
export * from './scrollToElement.js';
|
|
8
|
+
export * from './scrollToPosition.js';
|
|
6
9
|
export * from './tabFocusListener.js';
|
|
7
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if user's browser supports setting scroll behavior
|
|
3
|
+
*
|
|
4
|
+
* @returns Boolean indicating if user's browser supports setting scroll behavior
|
|
5
|
+
*/
|
|
6
|
+
export const isScrollBehaviorSupported = () => !!('scrollBehavior' in document.documentElement.style);
|
|
7
|
+
//# sourceMappingURL=isScrollBehaviorSupported.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scroll window to make HTMLElement visible
|
|
3
|
+
*
|
|
4
|
+
* @param element Element to scroll to
|
|
5
|
+
* @param offset Scroll offset from element, zero by default
|
|
6
|
+
* @param smoothScroll Enable smooth scroll if supported, true by default
|
|
7
|
+
* @returns void
|
|
8
|
+
*/
|
|
9
|
+
export declare const scrollToElement: (element: HTMLElement, offset?: number, smoothScroll?: boolean) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { getOffset } from '../dom/getElementOffset.js';
|
|
2
|
+
import { scrollToPosition } from './scrollToPosition.js';
|
|
3
|
+
/**
|
|
4
|
+
* Scroll window to make HTMLElement visible
|
|
5
|
+
*
|
|
6
|
+
* @param element Element to scroll to
|
|
7
|
+
* @param offset Scroll offset from element, zero by default
|
|
8
|
+
* @param smoothScroll Enable smooth scroll if supported, true by default
|
|
9
|
+
* @returns void
|
|
10
|
+
*/
|
|
11
|
+
export const scrollToElement = (element, offset = 0, smoothScroll = true) => {
|
|
12
|
+
offset = offset ?? window.innerHeight / 6;
|
|
13
|
+
scrollToPosition(0, getOffset(element).top - offset, smoothScroll);
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=scrollToElement.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scroll window or other scrollable element to given position
|
|
3
|
+
*
|
|
4
|
+
* @param x Horizontal position to scroll to
|
|
5
|
+
* @param y Vertical position to scroll to
|
|
6
|
+
* @param smoothScroll Enable smooth scroll if supported, true by default
|
|
7
|
+
* @param target Target to be scrolled, window by default
|
|
8
|
+
* @returns void
|
|
9
|
+
*/
|
|
10
|
+
export declare const scrollToPosition: (x: number, y: number, smoothScroll?: boolean, target?: Window | HTMLElement) => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { isScrollBehaviorSupported } from './isScrollBehaviorSupported.js';
|
|
2
|
+
/**
|
|
3
|
+
* Scroll window or other scrollable element to given position
|
|
4
|
+
*
|
|
5
|
+
* @param x Horizontal position to scroll to
|
|
6
|
+
* @param y Vertical position to scroll to
|
|
7
|
+
* @param smoothScroll Enable smooth scroll if supported, true by default
|
|
8
|
+
* @param target Target to be scrolled, window by default
|
|
9
|
+
* @returns void
|
|
10
|
+
*/
|
|
11
|
+
export const scrollToPosition = (x, y, smoothScroll = true, target = window) => {
|
|
12
|
+
if (smoothScroll && isScrollBehaviorSupported()) {
|
|
13
|
+
target.scrollTo({
|
|
14
|
+
top: y,
|
|
15
|
+
left: x,
|
|
16
|
+
behavior: 'smooth',
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
target.scrollTo(x, y);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=scrollToPosition.js.map
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* @param blurCallback Function to be called when current browser tab goes out of focus
|
|
6
6
|
* @returns void
|
|
7
7
|
*/
|
|
8
|
-
export declare const tabFocusListener: (focusCallback?: (
|
|
8
|
+
export declare const tabFocusListener: (focusCallback?: () => void, blurCallback?: () => void) => void;
|
package/dist/dateTime/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './interfaces';
|
|
2
|
-
export * from './dateAsIso';
|
|
3
|
-
export * from './parseDuration';
|
|
1
|
+
export * from './interfaces/index.js';
|
|
2
|
+
export * from './dateAsIso.js';
|
|
3
|
+
export * from './parseDuration.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './parseDuration';
|
|
1
|
+
export * from './parseDuration.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get element's offset relative to the whole page
|
|
3
|
+
*
|
|
4
|
+
* @param element HTMLElement for which should be calculated offset
|
|
5
|
+
* @returns Object with top and left offset value
|
|
6
|
+
*/
|
|
7
|
+
export declare const getOffset: (element: HTMLElement) => {
|
|
8
|
+
top: number;
|
|
9
|
+
left: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get element's offset relative to the whole page
|
|
3
|
+
*
|
|
4
|
+
* @param element HTMLElement for which should be calculated offset
|
|
5
|
+
* @returns Object with top and left offset value
|
|
6
|
+
*/
|
|
7
|
+
export const getOffset = (element) => {
|
|
8
|
+
const box = element.getBoundingClientRect();
|
|
9
|
+
return { top: box.top + window.pageYOffset, left: box.left + window.pageXOffset };
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=getElementOffset.js.map
|
package/dist/dom/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export * from './interfaces';
|
|
2
|
-
export * from './addAsyncEventListener';
|
|
3
|
-
export * from './addClickOutsideListener';
|
|
4
|
-
export * from './addEventListener';
|
|
5
|
-
export * from './appendAfter';
|
|
6
|
-
export * from './appendBefore';
|
|
7
|
-
export * from './createElement';
|
|
8
|
-
export * from './fireEvent';
|
|
1
|
+
export * from './interfaces/index.js';
|
|
2
|
+
export * from './addAsyncEventListener.js';
|
|
3
|
+
export * from './addClickOutsideListener.js';
|
|
4
|
+
export * from './addEventListener.js';
|
|
5
|
+
export * from './appendAfter.js';
|
|
6
|
+
export * from './appendBefore.js';
|
|
7
|
+
export * from './createElement.js';
|
|
8
|
+
export * from './fireEvent.js';
|
|
9
|
+
export * from './getElementOffset.js';
|
package/dist/dom/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './createElement';
|
|
1
|
+
export * from './createElement.js';
|
package/dist/general/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './isEmpty';
|
|
2
|
-
export * from './isNil';
|
|
3
|
-
export * from './isValidJson';
|
|
1
|
+
export * from './isEmpty.js';
|
|
2
|
+
export * from './isNil.js';
|
|
3
|
+
export * from './isValidJson.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './browser';
|
|
2
|
-
export * from './dateTime';
|
|
3
|
-
export * from './dom';
|
|
4
|
-
export * from './general';
|
|
5
|
-
export * from './schedule';
|
|
6
|
-
export * from './string';
|
|
1
|
+
export * from './browser/index.js';
|
|
2
|
+
export * from './dateTime/index.js';
|
|
3
|
+
export * from './dom/index.js';
|
|
4
|
+
export * from './general/index.js';
|
|
5
|
+
export * from './schedule/index.js';
|
|
6
|
+
export * from './string/index.js';
|
package/dist/schedule/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './runAnimation';
|
|
2
|
-
export * from './runAsync';
|
|
1
|
+
export * from './runAnimation.js';
|
|
2
|
+
export * from './runAsync.js';
|
package/dist/string/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './byteSize';
|
|
2
|
-
export * from './escapeHTML';
|
|
3
|
-
export * from './removeDiacritics';
|
|
4
|
-
export * from './slugify';
|
|
5
|
-
export * from './truncate';
|
|
1
|
+
export * from './byteSize.js';
|
|
2
|
+
export * from './escapeHTML.js';
|
|
3
|
+
export * from './removeDiacritics.js';
|
|
4
|
+
export * from './slugify.js';
|
|
5
|
+
export * from './truncate.js';
|
package/package.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "tool-shack",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Collection of usefull functions to ease work",
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "David Myška",
|
|
7
|
-
"url": "https://www.davidmyska.com/"
|
|
8
|
-
},
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"bugs": {
|
|
11
|
-
"url": "https://github.com/miskith/tool-shack/issues"
|
|
12
|
-
},
|
|
13
|
-
"homepage": "https://www.davidmyska.com/tool-shack/",
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/miskith/tool-shack.git"
|
|
17
|
-
},
|
|
18
|
-
"type": "module",
|
|
19
|
-
"module": "dist/index.js",
|
|
20
|
-
"main": "dist/index.js",
|
|
21
|
-
"exports": {
|
|
22
|
-
"./package.json": {
|
|
23
|
-
"default": "./package.json"
|
|
24
|
-
},
|
|
25
|
-
".": {
|
|
26
|
-
"types": "./dist/index.d.ts",
|
|
27
|
-
"default": "./dist/index.js"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"files": [
|
|
31
|
-
"dist/**/*.js",
|
|
32
|
-
"dist/**/*.d.ts",
|
|
33
|
-
"src/**/*.ts"
|
|
34
|
-
],
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"husky": "^
|
|
44
|
-
"prettier": "^2.
|
|
45
|
-
"pretty-quick": "^3.1.3",
|
|
46
|
-
"typedoc": "^0.
|
|
47
|
-
"typescript": "^4.
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "tool-shack",
|
|
3
|
+
"version": "0.0.18",
|
|
4
|
+
"description": "Collection of usefull functions to ease work",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "David Myška",
|
|
7
|
+
"url": "https://www.davidmyska.com/"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/miskith/tool-shack/issues"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://www.davidmyska.com/tool-shack/",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/miskith/tool-shack.git"
|
|
17
|
+
},
|
|
18
|
+
"type": "module",
|
|
19
|
+
"module": "dist/index.js",
|
|
20
|
+
"main": "dist/index.js",
|
|
21
|
+
"exports": {
|
|
22
|
+
"./package.json": {
|
|
23
|
+
"default": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"default": "./dist/index.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist/**/*.js",
|
|
32
|
+
"dist/**/*.d.ts",
|
|
33
|
+
"src/**/*.ts"
|
|
34
|
+
],
|
|
35
|
+
"sideEffects": false,
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "rm -rf dist && tsc -b .",
|
|
38
|
+
"format": "pretty-quick",
|
|
39
|
+
"generate-docs": "rm -rf docs && typedoc --name \"Tool-Shack\" --readme README.md src/*/index.ts",
|
|
40
|
+
"prepare": "husky install"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"husky": "^8.0.1",
|
|
44
|
+
"prettier": "^2.7.1",
|
|
45
|
+
"pretty-quick": "^3.1.3",
|
|
46
|
+
"typedoc": "^0.23.14",
|
|
47
|
+
"typescript": "^4.8.3"
|
|
48
|
+
}
|
|
49
|
+
}
|
package/src/browser/index.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
export * from './isPushNotificationSupported';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
1
|
+
export * from './isPushNotificationSupported.js';
|
|
2
|
+
export * from './isScrollBehaviorSupported.js';
|
|
3
|
+
export * from './isShareSupported.js';
|
|
4
|
+
export * from './isTabFocused.js';
|
|
5
|
+
export * from './isTouchSupported.js';
|
|
6
|
+
export * from './preferColorScheme.js';
|
|
7
|
+
export * from './scrollToElement.js';
|
|
8
|
+
export * from './scrollToPosition.js';
|
|
9
|
+
export * from './tabFocusListener.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if user's browser supports setting scroll behavior
|
|
3
|
+
*
|
|
4
|
+
* @returns Boolean indicating if user's browser supports setting scroll behavior
|
|
5
|
+
*/
|
|
6
|
+
export const isScrollBehaviorSupported = (): boolean =>
|
|
7
|
+
!!('scrollBehavior' in document.documentElement.style);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getOffset } from '../dom/getElementOffset.js';
|
|
2
|
+
import { scrollToPosition } from './scrollToPosition.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Scroll window to make HTMLElement visible
|
|
6
|
+
*
|
|
7
|
+
* @param element Element to scroll to
|
|
8
|
+
* @param offset Scroll offset from element, zero by default
|
|
9
|
+
* @param smoothScroll Enable smooth scroll if supported, true by default
|
|
10
|
+
* @returns void
|
|
11
|
+
*/
|
|
12
|
+
export const scrollToElement = (
|
|
13
|
+
element: HTMLElement,
|
|
14
|
+
offset: number = 0,
|
|
15
|
+
smoothScroll: boolean = true,
|
|
16
|
+
): void => {
|
|
17
|
+
offset = offset ?? window.innerHeight / 6;
|
|
18
|
+
|
|
19
|
+
scrollToPosition(0, getOffset(element).top - offset, smoothScroll);
|
|
20
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { isScrollBehaviorSupported } from './isScrollBehaviorSupported.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Scroll window or other scrollable element to given position
|
|
5
|
+
*
|
|
6
|
+
* @param x Horizontal position to scroll to
|
|
7
|
+
* @param y Vertical position to scroll to
|
|
8
|
+
* @param smoothScroll Enable smooth scroll if supported, true by default
|
|
9
|
+
* @param target Target to be scrolled, window by default
|
|
10
|
+
* @returns void
|
|
11
|
+
*/
|
|
12
|
+
export const scrollToPosition = (
|
|
13
|
+
x: number,
|
|
14
|
+
y: number,
|
|
15
|
+
smoothScroll: boolean = true,
|
|
16
|
+
target: Window | HTMLElement = window,
|
|
17
|
+
): void => {
|
|
18
|
+
if (smoothScroll && isScrollBehaviorSupported()) {
|
|
19
|
+
target.scrollTo({
|
|
20
|
+
top: y,
|
|
21
|
+
left: x,
|
|
22
|
+
behavior: 'smooth',
|
|
23
|
+
});
|
|
24
|
+
} else {
|
|
25
|
+
target.scrollTo(x, y);
|
|
26
|
+
}
|
|
27
|
+
};
|
package/src/dateTime/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './interfaces';
|
|
1
|
+
export * from './interfaces/index.js';
|
|
2
2
|
|
|
3
|
-
export * from './dateAsIso';
|
|
4
|
-
export * from './parseDuration';
|
|
3
|
+
export * from './dateAsIso.js';
|
|
4
|
+
export * from './parseDuration.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './parseDuration';
|
|
1
|
+
export * from './parseDuration.js';
|
package/src/dom/createElement.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get element's offset relative to the whole page
|
|
3
|
+
*
|
|
4
|
+
* @param element HTMLElement for which should be calculated offset
|
|
5
|
+
* @returns Object with top and left offset value
|
|
6
|
+
*/
|
|
7
|
+
export const getOffset = (element: HTMLElement): { top: number; left: number } => {
|
|
8
|
+
const box: DOMRect = element.getBoundingClientRect();
|
|
9
|
+
|
|
10
|
+
return { top: box.top + window.pageYOffset, left: box.left + window.pageXOffset };
|
|
11
|
+
};
|
package/src/dom/index.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export * from './interfaces';
|
|
1
|
+
export * from './interfaces/index.js';
|
|
2
2
|
|
|
3
|
-
export * from './addAsyncEventListener';
|
|
4
|
-
export * from './addClickOutsideListener';
|
|
5
|
-
export * from './addEventListener';
|
|
6
|
-
export * from './appendAfter';
|
|
7
|
-
export * from './appendBefore';
|
|
8
|
-
export * from './createElement';
|
|
9
|
-
export * from './fireEvent';
|
|
3
|
+
export * from './addAsyncEventListener.js';
|
|
4
|
+
export * from './addClickOutsideListener.js';
|
|
5
|
+
export * from './addEventListener.js';
|
|
6
|
+
export * from './appendAfter.js';
|
|
7
|
+
export * from './appendBefore.js';
|
|
8
|
+
export * from './createElement.js';
|
|
9
|
+
export * from './fireEvent.js';
|
|
10
|
+
export * from './getElementOffset.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './createElement';
|
|
1
|
+
export * from './createElement.js';
|
package/src/general/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './isEmpty';
|
|
2
|
-
export * from './isNil';
|
|
3
|
-
export * from './isValidJson';
|
|
1
|
+
export * from './isEmpty.js';
|
|
2
|
+
export * from './isNil.js';
|
|
3
|
+
export * from './isValidJson.js';
|
package/src/general/isEmpty.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './browser';
|
|
2
|
-
export * from './dateTime';
|
|
3
|
-
export * from './dom';
|
|
4
|
-
export * from './general';
|
|
5
|
-
export * from './schedule';
|
|
6
|
-
export * from './string';
|
|
1
|
+
export * from './browser/index.js';
|
|
2
|
+
export * from './dateTime/index.js';
|
|
3
|
+
export * from './dom/index.js';
|
|
4
|
+
export * from './general/index.js';
|
|
5
|
+
export * from './schedule/index.js';
|
|
6
|
+
export * from './string/index.js';
|
package/src/schedule/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './runAnimation';
|
|
2
|
-
export * from './runAsync';
|
|
1
|
+
export * from './runAnimation.js';
|
|
2
|
+
export * from './runAsync.js';
|
package/src/string/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './byteSize';
|
|
2
|
-
export * from './escapeHTML';
|
|
3
|
-
export * from './removeDiacritics';
|
|
4
|
-
export * from './slugify';
|
|
5
|
-
export * from './truncate';
|
|
1
|
+
export * from './byteSize.js';
|
|
2
|
+
export * from './escapeHTML.js';
|
|
3
|
+
export * from './removeDiacritics.js';
|
|
4
|
+
export * from './slugify.js';
|
|
5
|
+
export * from './truncate.js';
|
package/src/string/slugify.ts
CHANGED