@nymphjs/sorter 1.0.0-beta.45 → 1.0.0-beta.47

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-beta.47](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.46...v1.0.0-beta.47) (2023-11-10)
7
+
8
+ **Note:** Version bump only for package @nymphjs/sorter
9
+
10
+ # [1.0.0-beta.46](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.45...v1.0.0-beta.46) (2023-08-29)
11
+
12
+ **Note:** Version bump only for package @nymphjs/sorter
13
+
6
14
  # [1.0.0-beta.45](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.44...v1.0.0-beta.45) (2023-07-17)
7
15
 
8
16
  **Note:** Version bump only for package @nymphjs/sorter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nymphjs/sorter",
3
- "version": "1.0.0-beta.45",
3
+ "version": "1.0.0-beta.47",
4
4
  "description": "Nymph.js - Sorter",
5
5
  "browser": "dist/index.js",
6
6
  "main": "lib/index.js",
@@ -36,16 +36,16 @@
36
36
  },
37
37
  "license": "Apache-2.0",
38
38
  "devDependencies": {
39
- "@tsconfig/recommended": "^1.0.2",
40
- "@types/jest": "^29.5.2",
41
- "@types/lodash": "^4.14.195",
42
- "jest": "^29.5.0",
39
+ "@tsconfig/recommended": "^1.0.3",
40
+ "@types/jest": "^29.5.8",
41
+ "@types/lodash": "^4.14.201",
42
+ "jest": "^29.7.0",
43
43
  "lodash": "^4.17.21",
44
- "ts-jest": "^29.1.0",
45
- "ts-loader": "^9.4.3",
46
- "typescript": "^5.1.3",
47
- "webpack": "^5.86.0",
44
+ "ts-jest": "^29.1.1",
45
+ "ts-loader": "^9.5.0",
46
+ "typescript": "^5.2.2",
47
+ "webpack": "^5.89.0",
48
48
  "webpack-cli": "^5.1.4"
49
49
  },
50
- "gitHead": "54e7585f6b1cd6c920e47e01414dfc427eb73886"
50
+ "gitHead": "228f0d25911d1b98859f2acf8ace3d3f251c4882"
51
51
  }
@@ -248,7 +248,7 @@ describe('Sorter', () => {
248
248
  parent = parent.parent;
249
249
  }
250
250
  return output + entity.name;
251
- })
251
+ }),
252
252
  ).toEqual([
253
253
  'Anthony',
254
254
  '- Lamar',
package/src/Sorter.ts CHANGED
@@ -27,7 +27,7 @@ export default class Sorter<Entity extends Object> {
27
27
 
28
28
  private _arraySortProperty(
29
29
  a: Entity & { [k: string]: any },
30
- b: Entity & { [k: string]: any }
30
+ b: Entity & { [k: string]: any },
31
31
  ) {
32
32
  const prop = this.sortProperty as string;
33
33
  const parent = this.sortParent as string;
@@ -92,7 +92,7 @@ export default class Sorter<Entity extends Object> {
92
92
  public hsort(
93
93
  property: string,
94
94
  parentProperty: string,
95
- sortOptions?: SortOptions
95
+ sortOptions?: SortOptions,
96
96
  ): Entity[] {
97
97
  // First sort by the requested property.
98
98
  this.sort(property, sortOptions);
@@ -189,7 +189,7 @@ export default class Sorter<Entity extends Object> {
189
189
  reverse = false,
190
190
  collatorOptions = undefined,
191
191
  comparator = undefined,
192
- }: SortOptions = {}
192
+ }: SortOptions = {},
193
193
  ): Entity[] {
194
194
  // Sort by the requested property.
195
195
  this.sortProperty = property;
@@ -199,7 +199,7 @@ export default class Sorter<Entity extends Object> {
199
199
  collatorOptions || {
200
200
  sensitivity: caseSensitive ? 'case' : 'base',
201
201
  caseFirst: 'false',
202
- }
202
+ },
203
203
  );
204
204
  this.comparator = comparator;
205
205
  this.array.sort(this._arraySortProperty.bind(this));
@@ -221,7 +221,7 @@ export default class Sorter<Entity extends Object> {
221
221
  reverse = false,
222
222
  collatorOptions = undefined,
223
223
  comparator = undefined,
224
- }: SortOptions = {}
224
+ }: SortOptions = {},
225
225
  ): Entity[] {
226
226
  // Sort by the requested property.
227
227
  this.sortProperty = property;
@@ -230,7 +230,7 @@ export default class Sorter<Entity extends Object> {
230
230
  undefined,
231
231
  collatorOptions || {
232
232
  sensitivity: caseSensitive ? 'case' : 'base',
233
- }
233
+ },
234
234
  );
235
235
  this.comparator = comparator;
236
236
  this.array.sort(this._arraySortProperty.bind(this));