@vroskus/library-helpers 1.0.12 → 1.0.13
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.d.ts +1 -1
- package/dist/common.d.ts +3 -3
- package/package.json +3 -3
package/dist/browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './common';
|
|
2
2
|
export declare const cleanFormValues: <D extends Record<string, unknown>>(data: Record<string, unknown>) => D;
|
|
3
|
-
type $AnimationName = 'fadeIn' | '
|
|
3
|
+
type $AnimationName = 'fadeIn' | 'fadeInDown' | 'fadeInUp';
|
|
4
4
|
export declare const animationClass: (name: $AnimationName) => string;
|
|
5
5
|
export declare const getUrlGetParams: (input: string) => Record<string, string>;
|
|
6
6
|
export declare const scrollTop: (elementId?: string, offset?: number) => void;
|
package/dist/common.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import type { RequestHandler } from 'express';
|
|
|
2
2
|
export declare const getValue: <V extends string | void>(value: V, defaultValue: V) => V;
|
|
3
3
|
export declare const durationMiddleware: () => RequestHandler;
|
|
4
4
|
export declare const getDuration: (start: [number, number] | void) => number;
|
|
5
|
-
export declare const sortData: <D extends Record<string, unknown>[]>(data: D, field: string |
|
|
5
|
+
export declare const sortData: <D extends Record<string, unknown>[]>(data: D, field: Array<string> | string, reverse?: boolean) => Promise<D>;
|
|
6
6
|
export declare const getImageUrl: ({ cdnUrl, image, size, undefinedImage, }: {
|
|
7
7
|
cdnUrl: string;
|
|
8
|
-
image?:
|
|
9
|
-
size: '
|
|
8
|
+
image?: null | string;
|
|
9
|
+
size: 'max' | 'mid' | 'min' | 'sqr';
|
|
10
10
|
undefinedImage?: string;
|
|
11
11
|
}) => string;
|
|
12
12
|
export declare const getFileUrl: ({ cdnUrl, file, }: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vroskus/library-helpers",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Utility helpers",
|
|
5
5
|
"author": "Vilius Roškus <info@regattas.eu>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"aphrodite": "2.4.0",
|
|
25
25
|
"express": "4.18.2",
|
|
26
26
|
"lodash": "4.17.21",
|
|
27
|
-
"moment": "2.
|
|
27
|
+
"moment": "2.29.4",
|
|
28
28
|
"query-string": "8.1.0",
|
|
29
29
|
"react-animations": "1.0.0",
|
|
30
30
|
"short-hash": "1.0.0"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/jest": "29.5.11",
|
|
34
34
|
"@types/lodash": "4.14.202",
|
|
35
|
-
"@types/node": "20.10.
|
|
35
|
+
"@types/node": "20.10.7",
|
|
36
36
|
"@types/query-string": "6.3.0",
|
|
37
37
|
"@typescript-eslint/eslint-plugin": "6.18.0",
|
|
38
38
|
"@typescript-eslint/parser": "6.18.0",
|