Skip to content

Commit 5d0e1be

Browse files
authored
Merge pull request #134 from Service-Soft/update-packages
updated packages
2 parents 8321a4b + 8512436 commit 5d0e1be

60 files changed

Lines changed: 2344 additions & 1693 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
node-version: '20'
2424
registry-url: 'https://registry.npmjs.org'
2525
- run: npm i -g npm@latest
26-
- run: npm i -g @angular/cli@20 zibri-cli @loopback/cli@6 @nestjs/cli@11 create-vite@6 create-storybook@9.1.16
26+
- run: npm i -g @angular/cli@20 zibri-cli @loopback/cli@7 @nestjs/cli@11 create-vite@6 create-storybook@9.1.20
2727
- run: npm i
2828
- run: npm run build
2929
- run: npm run test

jest.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const config = {
55
testEnvironment: 'node',
66
rootDir: 'src',
77
transform: {
8-
'^.+.tsx?$': ['ts-jest', {}]
8+
'^.+.tsx?$': ['ts-jest']
99
},
1010
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
1111
bail: false,

package-lock.json

Lines changed: 2100 additions & 1479 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "monux-cli",
3-
"version": "2.5.6",
3+
"version": "2.5.7",
44
"license": "MIT",
55
"main": "index.js",
66
"engines": {
@@ -46,22 +46,22 @@
4646
"cli-table3": "^0.6.5",
4747
"death": "^1.1.0",
4848
"figlet": "^1.8.2",
49-
"inquirer": "^10.2.2",
49+
"inquirer": "^13.3.2",
5050
"js-yaml": "^4.1.0",
5151
"json5": "^2.2.3"
5252
},
5353
"devDependencies": {
5454
"@angular/common": "^20.2.1",
5555
"@faker-js/faker": "^9.0.3",
56-
"@jest/globals": "^30.0.5",
57-
"@nestjs/common": "^11.1.6",
56+
"@jest/globals": "^30.3.0",
57+
"@nestjs/common": "^11.1.18",
5858
"@types/death": "^1.1.5",
5959
"@types/figlet": "^1.7.0",
6060
"@types/js-yaml": "^4.0.9",
6161
"eslint": "^9.34.0",
62-
"eslint-config-service-soft": "^2.1.2",
63-
"jest": "^30.0.5",
64-
"ngx-material-navigation": "^20.0.0",
65-
"ts-jest": "^29.4.1"
62+
"eslint-config-service-soft": "^2.1.6",
63+
"jest": "^30.3.0",
64+
"ngx-material-navigation": "^20.2.2",
65+
"ts-jest": "^29.4.9"
6666
}
6767
}

src/__testing__/mock/fake-add-nav-element-config.function.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export function fakeAddNavElementConfig(addTo: 'navbar' | 'footer' = 'navbar'):
77
rowIndex: 0,
88
element: {
99
type: NavElementTypes.TITLE_WITH_INTERNAL_LINK,
10+
id: 'test',
1011
title: 'Test',
1112
link: {
1213
route: {
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/* eslint-disable jsdoc/require-jsdoc */
2-
import { BuiltInQuestion } from 'inquirer/dist/cjs/types/types';
2+
import { Question } from 'inquirer';
33

44
// eslint-disable-next-line typescript/no-explicit-any
5-
export function inquireMock(answers: Record<string, unknown>): (question: BuiltInQuestion) => Promise<any> {
6-
return (question: BuiltInQuestion) => {
5+
export function inquireMock(answers: Record<string, unknown>): (question: Question) => Promise<any> {
6+
return (question: Question) => {
77
if (typeof question.message !== 'string') {
88
throw new Error('Cannot mock questions with messages that are async functions.');
99
}
1010

11-
if (!Object.keys(answers).includes(question.message)) {
12-
throw new Error(`No answer for the question "${question.message}" has been provided.`);
11+
if (!Object.keys(answers).includes(question.name)) {
12+
throw new Error(`No answer for the question "${question.name}" has been provided.`);
1313
}
1414

1515
// eslint-disable-next-line typescript/no-unsafe-return, typescript/no-explicit-any
16-
return answers[question.message] as any;
16+
return answers[question.name] as any;
1717
};
1818
}

src/angular/angular-utilities.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ describe('AngularUtilities', () => {
159159
' elements: [',
160160
' {',
161161
' type: NavElementTypes.TITLE_WITH_INTERNAL_LINK,',
162+
' id: \'test\',',
162163
' title: \'Test\',',
163164
' link: {',
164165
' route: {',
@@ -216,6 +217,7 @@ describe('AngularUtilities', () => {
216217
' elements: [',
217218
' {',
218219
' type: NavElementTypes.TITLE_WITH_INTERNAL_LINK,',
220+
' id: \'test\',',
219221
' title: \'Test\',',
220222
' link: {',
221223
' route: {',
@@ -227,6 +229,7 @@ describe('AngularUtilities', () => {
227229
' },',
228230
' {',
229231
' type: NavElementTypes.TITLE_WITH_INTERNAL_LINK,',
232+
' id: \'test\',',
230233
' title: \'Test\',',
231234
' link: {',
232235
' route: {',
@@ -297,6 +300,7 @@ describe('AngularUtilities', () => {
297300
' elements: [',
298301
' {',
299302
' type: NavElementTypes.TITLE_WITH_INTERNAL_LINK,',
303+
' id: \'test\',',
300304
' title: \'Test\',',
301305
' link: {',
302306
' route: {',

src/angular/content/admins-page-ts.content.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// eslint-disable-next-line jsdoc/require-jsdoc
2-
export const adminsPageTsContent: string
3-
= `import { CommonModule } from '@angular/common';
2+
export const adminsPageTsContent: string = `import { CommonModule } from '@angular/common';
43
import { Component } from '@angular/core';
54
import { NgxMatEntityTableComponent, TableData } from 'ngx-material-entity';
65
import { Admin } from '../../models/admin.model';

src/angular/content/auth-service.content.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable stylistic/max-len */
22
// eslint-disable-next-line jsdoc/require-jsdoc
3-
export const authServiceContent: string
4-
= `import { HttpClient } from '@angular/common/http';
3+
export const authServiceContent: string = `import { HttpClient } from '@angular/common/http';
54
import { Inject, Injectable, NgZone, PLATFORM_ID } from '@angular/core';
65
import { MatDialog } from '@angular/material/dialog';
76
import { MatSnackBar } from '@angular/material/snack-bar';

src/angular/content/base-entity-model.content.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// eslint-disable-next-line jsdoc/require-jsdoc
2-
export const baseEntityModelContent: string
3-
= `import { string } from 'ngx-material-entity';
2+
export const baseEntityModelContent: string = `import { string } from 'ngx-material-entity';
43
54
export class BaseEntity {
65

0 commit comments

Comments
 (0)