From 3faf09c96f0560119d16ffb4725f4d42a9fa014c Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Mon, 6 Aug 2018 18:37:39 +0100 Subject: [PATCH] mgr/dashboard: Update Codelyzer package Signed-off-by: Tiago Melo --- .../mgr/dashboard/frontend/package-lock.json | 18 +++++++++++++----- src/pybind/mgr/dashboard/frontend/package.json | 2 +- .../copy2clipboard-button.directive.ts | 2 +- .../directives/password-button.directive.ts | 2 +- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/package-lock.json b/src/pybind/mgr/dashboard/frontend/package-lock.json index 939915969119a..54ca2e3641d24 100644 --- a/src/pybind/mgr/dashboard/frontend/package-lock.json +++ b/src/pybind/mgr/dashboard/frontend/package-lock.json @@ -2640,17 +2640,25 @@ "dev": true }, "codelyzer": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/codelyzer/-/codelyzer-4.3.0.tgz", - "integrity": "sha512-RLMrtLwrBS0dfo2/KTP+2NHofCpzcuh0bEp/A/naqvQonbUL4AW/qWQdbpn8dMNudtpmzEx9eS8KEpGdVPg1BA==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/codelyzer/-/codelyzer-4.4.3.tgz", + "integrity": "sha512-BrARi+8uo3gajjFFXA5bMhE0wZ0nd/QRjyLISA37anjN2f7pxcb6rkhQX9/GJLTwsUiSaOLbghSIWkHy4F67NQ==", "dev": true, "requires": { - "app-root-path": "^2.0.1", + "app-root-path": "^2.1.0", "css-selector-tokenizer": "^0.7.0", "cssauron": "^1.4.0", "semver-dsl": "^1.0.1", "source-map": "^0.5.7", - "sprintf-js": "^1.0.3" + "sprintf-js": "^1.1.1" + }, + "dependencies": { + "sprintf-js": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.1.tgz", + "integrity": "sha1-Nr54Mgr+WAH2zqPueLblqrlA6gw=", + "dev": true + } } }, "collection-visit": { diff --git a/src/pybind/mgr/dashboard/frontend/package.json b/src/pybind/mgr/dashboard/frontend/package.json index a3cc884315dc6..b31ba852c7949 100644 --- a/src/pybind/mgr/dashboard/frontend/package.json +++ b/src/pybind/mgr/dashboard/frontend/package.json @@ -72,7 +72,7 @@ "@types/jest": "23.3.1", "@types/node": "8.10.23", "babel-preset-env": "1.7.0", - "codelyzer": "4.3.0", + "codelyzer": "4.4.3", "jasmine-core": "3.1.0", "jasmine-spec-reporter": "4.2.1", "jest": "23.4.2", diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/copy2clipboard-button.directive.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/copy2clipboard-button.directive.ts index 9f8d402e53158..f049fb29475f0 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/copy2clipboard-button.directive.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/copy2clipboard-button.directive.ts @@ -6,7 +6,7 @@ import { ToastsManager } from 'ng2-toastr'; selector: '[cdCopy2ClipboardButton]' }) export class Copy2ClipboardButtonDirective implements OnInit { - @Input('cdCopy2ClipboardButton') private cdCopy2ClipboardButton: string; + @Input() private cdCopy2ClipboardButton: string; constructor( private elementRef: ElementRef, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/password-button.directive.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/password-button.directive.ts index abfbe3a671a73..b6b95184fd039 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/password-button.directive.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/directives/password-button.directive.ts @@ -6,7 +6,7 @@ import { Directive, ElementRef, HostListener, Input, OnInit, Renderer2 } from '@ export class PasswordButtonDirective implements OnInit { private iElement: HTMLElement; - @Input('cdPasswordButton') private cdPasswordButton: string; + @Input() private cdPasswordButton: string; constructor(private elementRef: ElementRef, private renderer: Renderer2) {} -- 2.39.5