Skip to content

Commit

Permalink
use alpha package instead of local package
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauryD committed Oct 21, 2023
1 parent 1035fd3 commit cddbe00
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 115 deletions.
2 changes: 1 addition & 1 deletion app/components/inputs/select-validation.gts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function isArray(value: unknown): value is unknown[] {

// eslint-disable-next-line @typescript-eslint/no-unused-vars
function toString(value: unknown): string {
return String(value);
return String(value ?? '');
}

const InputsSelectValidationComponent: TOC<InputsSelectValidationSignature> = <template>
Expand Down
2 changes: 1 addition & 1 deletion app/services/error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export default class ErrorHandlerService extends Service {
@service declare flashMessages: FlashMessageService;

public handle(changeset: Changeset, errors: Error[] | string) {
this.flashMessages.danger(errors.toString());
this.flashMessages.danger(`${errors}`);
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
"@glint/environment-ember-template-imports": "^1.2.1",
"@glint/template": "^1.2.1",
"@nullvoxpopuli/eslint-configs": "^3.2.2",
"@triptyk/ember-input": "file:../ember-common-ui/packages/ember-input",
"@triptyk/ember-input-validation": "file:../ember-common-ui/packages/ember-input-validation",
"@triptyk/ember-input": "~2.0.0-alpha.11",
"@triptyk/ember-input-validation": "~2.0.0-alpha.11",
"@triptyk/ember-simple-auth-token": "~5.3.2",
"@triptyk/ember-ui": "file:../ember-common-ui/packages/ember-ui",
"@triptyk/ember-ui": "~2.0.0-alpha.11",
"@triptyk/ember-utils": "^1.2.2",
"@tsconfig/ember": "~3.0.1",
"@types/ember-data": "~4.4.13",
Expand Down
162 changes: 78 additions & 84 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions tests/unit/routes/application-test.ts

This file was deleted.

13 changes: 0 additions & 13 deletions tests/unit/routes/login-test.ts

This file was deleted.

0 comments on commit cddbe00

Please sign in to comment.