From 09603f0ec09843087128c5ed245b894faa0c457b Mon Sep 17 00:00:00 2001 From: "Blischke Florian (extern)" Date: Thu, 8 Aug 2019 09:33:05 +0200 Subject: [PATCH] quickfix for aurelia-dependency-injection 1.5.0 --- dist/aurelia-validation.d.ts | 6 ++---- package-lock.json | 6 +++--- package.json | 4 ++-- src/validation-errors-custom-attribute.ts | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/dist/aurelia-validation.d.ts b/dist/aurelia-validation.d.ts index c3e4d796..d5f7f566 100644 --- a/dist/aurelia-validation.d.ts +++ b/dist/aurelia-validation.d.ts @@ -1,5 +1,6 @@ import { AccessKeyed, AccessMember, AccessScope, Binary, Binding, BindingBehavior, CallMember, Conditional, Expression, Parser, Scope, ValueConverter } from 'aurelia-binding'; import { Container, Lazy } from 'aurelia-dependency-injection'; +import { DOM } from 'aurelia-pal'; import { TaskQueue } from 'aurelia-task-queue'; import { BindingLanguage, ViewResources } from 'aurelia-templating'; @@ -430,10 +431,7 @@ export interface RenderedError { export declare class ValidationErrorsCustomAttribute implements ValidationRenderer { private boundaryElement; private controllerAccessor; - static inject(): ({ - new (): Element; - prototype: Element; - } | Lazy)[]; + static inject(): [typeof DOM.Element, Lazy]; controller: ValidationController | null; errors: RenderedError[]; private errorsInternal; diff --git a/package-lock.json b/package-lock.json index c4ead664..36c44ffb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -411,9 +411,9 @@ } }, "aurelia-dependency-injection": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/aurelia-dependency-injection/-/aurelia-dependency-injection-1.4.1.tgz", - "integrity": "sha512-NexdxbXQKVhg8ywHosauccKbnn3vAeLyNg3oPa0l+z1fgOMf3/jvVYpcdmWelJP5yfBmYNyTYVBffCKeaS2m0w==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/aurelia-dependency-injection/-/aurelia-dependency-injection-1.5.0.tgz", + "integrity": "sha512-EJrWQGbdnKUXQas5HkSKMmlTpXXS9lEHsp9Du+x/Y5i5u9PPOSM1Dmr81KFx1twbRci36wtCDbe0VLQU+NKYtA==", "requires": { "aurelia-metadata": "^1.0.0", "aurelia-pal": "^1.0.0" diff --git a/package.json b/package.json index 9ad980a5..3fa59299 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ }, "peerDependencies": { "aurelia-binding": "^2.1.5", - "aurelia-dependency-injection": "^1.4.1", + "aurelia-dependency-injection": "^1.5.0", "aurelia-logging": "^1.5.0", "aurelia-pal": "^1.8.0", "aurelia-task-queue": "^1.3.1", @@ -74,7 +74,7 @@ }, "dependencies": { "aurelia-binding": "^2.1.5", - "aurelia-dependency-injection": "^1.4.1", + "aurelia-dependency-injection": "^1.5.0", "aurelia-logging": "^1.5.0", "aurelia-pal": "^1.8.0", "aurelia-task-queue": "^1.3.1", diff --git a/src/validation-errors-custom-attribute.ts b/src/validation-errors-custom-attribute.ts index 9f62115b..3521816d 100644 --- a/src/validation-errors-custom-attribute.ts +++ b/src/validation-errors-custom-attribute.ts @@ -14,7 +14,7 @@ export interface RenderedError { @customAttribute('validation-errors') export class ValidationErrorsCustomAttribute implements ValidationRenderer { - public static inject() { + public static inject(): [typeof DOM.Element, Lazy] { return [DOM.Element, Lazy.of(ValidationController)]; }