mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
refactor: update to Angular 17
This commit is contained in:
@@ -62,8 +62,8 @@
|
||||
"nock": "13.3.1",
|
||||
"ts-node": "10.9.1",
|
||||
"tsup": "7.2.0",
|
||||
"typedoc": "0.24.8",
|
||||
"typescript": "5.1.6"
|
||||
"typedoc": "0.25.3",
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@openstapps/core": "workspace:*"
|
||||
|
||||
@@ -56,8 +56,8 @@
|
||||
"traverse": "0.6.7",
|
||||
"ts-node": "10.9.1",
|
||||
"tsup": "7.2.0",
|
||||
"typedoc": "0.24.8",
|
||||
"typescript": "5.1.6",
|
||||
"typedoc": "0.25.3",
|
||||
"typescript": "5.2.2",
|
||||
"undici": "5.22.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
"mocha": "10.2.0",
|
||||
"mocha-junit-reporter": "2.2.0",
|
||||
"ts-node": "10.9.1",
|
||||
"typedoc": "0.24.8",
|
||||
"typescript": "5.1.6"
|
||||
"typedoc": "0.25.3",
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"prettier": "@openstapps/prettier-config",
|
||||
"eslintConfig": {
|
||||
|
||||
@@ -52,5 +52,5 @@ export function groupByStable(collection, group) {
|
||||
* @returns {Record<string, T[]>}
|
||||
*/
|
||||
export function groupByProperty(collection, property) {
|
||||
return groupBy(collection, item => item[property]);
|
||||
return groupBy(collection, item => /** @type {string} */ (item[property]));
|
||||
}
|
||||
|
||||
@@ -104,11 +104,11 @@ describe('groupByStable', () => {
|
||||
describe('groupByProperty', function () {
|
||||
it('should group by property', () => {
|
||||
const array = [
|
||||
{id: 1, name: 'one'},
|
||||
{id: 2, name: 'two'},
|
||||
{id: 3, name: 'three'},
|
||||
{id: 4, name: 'four'},
|
||||
{id: 5, name: 'five'},
|
||||
{id: /** @type {1} */ 1, name: /** @type {'one'} */ 'one'},
|
||||
{id: /** @type {2} */ 2, name: /** @type {'two'} */ 'two'},
|
||||
{id: /** @type {3} */ 3, name: /** @type {'three'} */ 'three'},
|
||||
{id: /** @type {4} */ 4, name: /** @type {'four'} */ 'four'},
|
||||
{id: /** @type {5} */ 5, name: /** @type {'five'} */ 'five'},
|
||||
];
|
||||
|
||||
const result = groupByProperty(array, 'name');
|
||||
|
||||
@@ -52,8 +52,8 @@
|
||||
"mocha-junit-reporter": "2.2.0",
|
||||
"nock": "13.3.1",
|
||||
"ts-node": "10.9.1",
|
||||
"typedoc": "0.24.8",
|
||||
"typescript": "5.1.6"
|
||||
"typedoc": "0.25.3",
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"prettier": "@openstapps/prettier-config",
|
||||
"eslintConfig": {
|
||||
|
||||
@@ -71,8 +71,8 @@
|
||||
"surge": "0.23.1",
|
||||
"ts-node": "10.9.1",
|
||||
"tsup": "7.2.0",
|
||||
"typedoc": "0.24.8",
|
||||
"typescript": "5.1.6"
|
||||
"typedoc": "0.25.3",
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"prettier": "@openstapps/prettier-config",
|
||||
"eslintConfig": {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"@openstapps/collection-utils": "workspace:*",
|
||||
"@openstapps/logger": "workspace:*",
|
||||
"glob": "10.2.7",
|
||||
"typescript": "5.1.6"
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openstapps/eslint-config": "workspace:*",
|
||||
@@ -41,7 +41,7 @@
|
||||
"mocha-junit-reporter": "2.2.0",
|
||||
"ts-node": "10.9.1",
|
||||
"tsup": "7.2.0",
|
||||
"typedoc": "0.24.8"
|
||||
"typedoc": "0.25.3"
|
||||
},
|
||||
"tsup": {
|
||||
"entry": [
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
"nock": "13.3.1",
|
||||
"ts-node": "10.9.1",
|
||||
"tsup": "7.2.0",
|
||||
"typedoc": "0.24.8",
|
||||
"typescript": "5.1.6"
|
||||
"typedoc": "0.25.3",
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"prettier": "@openstapps/prettier-config",
|
||||
"eslintConfig": {
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
"@types/node": "18.15.3",
|
||||
"ts-node": "10.9.1",
|
||||
"tsup": "7.2.0",
|
||||
"typedoc": "0.24.8",
|
||||
"typescript": "5.1.6"
|
||||
"typedoc": "0.25.3",
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"tsup": {
|
||||
"entry": [
|
||||
|
||||
@@ -51,8 +51,8 @@
|
||||
"mocha-junit-reporter": "2.2.0",
|
||||
"nock": "13.3.1",
|
||||
"ts-node": "10.9.1",
|
||||
"typedoc": "0.24.8",
|
||||
"typescript": "5.1.6"
|
||||
"typedoc": "0.25.3",
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"prettier": "@openstapps/prettier-config",
|
||||
"eslintConfig": {
|
||||
|
||||
@@ -50,8 +50,8 @@
|
||||
"mocha-junit-reporter": "2.2.0",
|
||||
"ts-node": "10.9.1",
|
||||
"tsup": "7.2.0",
|
||||
"typedoc": "0.24.8",
|
||||
"typescript": "5.1.6"
|
||||
"typedoc": "0.25.3",
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"tsup": {
|
||||
"entry": [
|
||||
|
||||
@@ -49,8 +49,8 @@
|
||||
"mocha": "10.2.0",
|
||||
"mocha-junit-reporter": "2.2.0",
|
||||
"nock": "13.3.1",
|
||||
"typedoc": "0.24.8",
|
||||
"typescript": "5.1.6"
|
||||
"typedoc": "0.25.3",
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"prettier": "@openstapps/prettier-config",
|
||||
"eslintConfig": {
|
||||
|
||||
@@ -49,8 +49,8 @@
|
||||
"mocha": "10.2.0",
|
||||
"mocha-junit-reporter": "2.2.0",
|
||||
"nock": "13.3.1",
|
||||
"typedoc": "0.24.8",
|
||||
"typescript": "5.1.6"
|
||||
"typedoc": "0.25.3",
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"prettier": "@openstapps/prettier-config",
|
||||
"eslintConfig": {
|
||||
|
||||
Reference in New Issue
Block a user