@unchainedshop/core-assortments 2.8.4 → 2.8.10

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.
@@ -1,10 +1,10 @@
1
1
  import { Tree } from '@unchainedshop/types/common.js';
2
- export declare const fillUp: <T>(arr: T[], size: number) => T[];
3
- export declare const fillToSameLengthArray: <T>(a: T[], b: T[]) => T[][];
4
- export declare const divideTreeByLevels: (array: Tree<string>, level?: number) => {
2
+ export declare const fillUp: <T>(arr: Array<T>, size: number) => Array<T>;
3
+ export declare const fillToSameLengthArray: <T>(a: Array<T>, b: Array<T>) => T[][];
4
+ export declare const divideTreeByLevels: (array: Tree<string>, level?: number) => Array<{
5
5
  level: number;
6
6
  items: Array<string>;
7
- }[];
7
+ }>;
8
8
  export declare const concatItemsByLevels: (levelArray: any) => Tree<string>;
9
9
  export declare const shuffleEachLevel: (unshuffledLevels: any) => any;
10
10
  declare const _default: (tree: Tree<string>) => Array<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unchainedshop/core-assortments",
3
- "version": "2.8.4",
3
+ "version": "2.8.10",
4
4
  "main": "lib/assortments-index.js",
5
5
  "exports": {
6
6
  ".": "./lib/assortments-index.js",
@@ -31,21 +31,21 @@
31
31
  },
32
32
  "homepage": "https://github.com/unchainedshop/unchained#readme",
33
33
  "dependencies": {
34
- "@unchainedshop/events": "^2.8.4",
35
- "@unchainedshop/file-upload": "^2.8.4",
36
- "@unchainedshop/logger": "^2.8.4",
37
- "@unchainedshop/utils": "^2.8.4",
34
+ "@unchainedshop/events": "^2.8.10",
35
+ "@unchainedshop/file-upload": "^2.8.10",
36
+ "@unchainedshop/logger": "^2.8.10",
37
+ "@unchainedshop/utils": "^2.8.10",
38
38
  "locale": "^0.1.0",
39
39
  "ramda": "^0.29.1",
40
40
  "simpl-schema": "^3.4.6"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/locale": "^0.1.4",
44
- "@types/node": "^20.11.25",
45
- "@unchainedshop/types": "^2.8.4",
44
+ "@types/node": "^20.12.5",
45
+ "@unchainedshop/types": "^2.8.10",
46
46
  "cross-env": "^7.0.3",
47
47
  "jest": "^29.7.0",
48
48
  "ts-jest": "^29.1.2",
49
- "typescript": "^5.3.3"
49
+ "typescript": "^5.4.4"
50
50
  }
51
51
  }