Skip to content

Commit 436501a

Browse files
committed
fix linting issues
1 parent 16638ba commit 436501a

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

libraries/ng-universal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@trilon/ng-universal",
33
"description": "Angular Universal Schematics and Helpers - Brought to you by Trilon.io",
4-
"version": "1.0.6",
4+
"version": "1.1.0",
55
"author": {
66
"name": "Trion",
77
"email": "hello@trilon.io",

libraries/ng-universal/src/lib/services/link.service.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ export class LinkService implements OnDestroy {
1414
private routeListener: Subscription;
1515

1616
constructor(
17-
@Inject(DOCUMENT) private readonly document: Document,
17+
@Inject(DOCUMENT) private readonly document: any/* Document */,
1818
private readonly router: Router,
1919
) { }
2020

2121
/**
2222
* Create or update a link tag
23-
* @param {LinkDefinition} tag
23+
* @param LinkDefinition tag
2424
*/
2525
public updateTag(tag: LinkDefinition): void {
2626
const selector = this._parseSelector(tag);
@@ -36,7 +36,6 @@ export class LinkService implements OnDestroy {
3636

3737
/**
3838
* Remove a link tag from DOM
39-
* @param tag
4039
*/
4140
public removeTag(tag: LinkDefinition): void {
4241
const selector = this._parseSelector(tag);
@@ -49,8 +48,7 @@ export class LinkService implements OnDestroy {
4948

5049
/**
5150
* Get link tag
52-
* @param tag
53-
* @return {HTMLLinkElement}
51+
* @return HTMLLinkElement
5452
*/
5553
public getTag(tag: LinkDefinition): HTMLLinkElement {
5654
const selector = this._parseSelector(tag);
@@ -60,16 +58,15 @@ export class LinkService implements OnDestroy {
6058

6159
/**
6260
* Get all link tags
63-
* @return {NodeListOf<HTMLLinkElement>}
61+
* @return NodeListOf<HTMLLinkElement>
6462
*/
6563
public getTags(): NodeListOf<HTMLLinkElement> {
6664
return this.document.head.querySelectorAll('link');
6765
}
6866

6967
/**
7068
* Parse tag to create a selector
71-
* @param tag
72-
* @return {string} selector to use in querySelector
69+
* @return string} selector to use in querySelector
7370
*/
7471
private _parseSelector(tag: LinkDefinition): string {
7572
const attr: string = tag.rel ? 'rel' : 'hreflang';

libraries/ng-universal/src/lib/services/seo.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class SeoService {
1717
constructor(
1818
private meta: Meta,
1919
private title: Title,
20-
@Inject(DOCUMENT) private readonly document: Document,
20+
@Inject(DOCUMENT) private readonly document: any /* Document */,
2121
private linkService: LinkService
2222
) {}
2323

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "ng build",
99
"build:ng-universal": "rm -rf ./dist/ng-universal && ng build ng-universal && npm run pack:ng-universal",
1010
"pack:ng-universal": "cd dist/ng-universal && npm pack",
11-
"publish:ng-universal": "npm publish ./dist/ng-universal/trilon-ng-universal-1.0.6.tgz --access=public",
11+
"publish:ng-universal": "npm publish ./dist/ng-universal/trilon-ng-universal-1.1.0.tgz --access=public",
1212
"publish": "npm run build:ng-universal && npm run publish:ng-universal",
1313
"test": "ng test",
1414
"lint": "ng lint",

0 commit comments

Comments
 (0)