angular-point-discussion-thread
Advanced tools
Comparing version 5.0.1 to 5.0.2
{ | ||
"name": "angular-point-discussion-thread", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Simple discussion thread directive for angular-point.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
import * as _ from 'lodash'; | ||
import * as toastr from 'toastr'; | ||
import {ListItem} from 'angular-point'; | ||
@@ -10,8 +11,8 @@ import {DiscussionThreadFactory} from './apDiscussionThreadFactory'; | ||
interface IControllerScope extends ng.IScope { | ||
changeEvent?(action: string, content?: string): void; | ||
fieldName?: string; | ||
listItem: ListItem<any>; | ||
changeEvent?(action: string, content?: string): void; | ||
} | ||
class DiscussionThreadController { | ||
export class DiscussionThreadController { | ||
static $inject = ['apDiscussionThreadFactory', '$templateCache']; | ||
@@ -36,3 +37,3 @@ changeEvent: (action: string, content?: string) => void; | ||
$onChanges(changesObj: ng.IOnChangesObject) { | ||
$onChanges(changesObj: ng.IOnChangesObject | any) { | ||
if (changesObj.listItem) { | ||
@@ -39,0 +40,0 @@ this.discussionThread = changesObj.listItem.currentValue[this.fieldName]; |
@@ -1,2 +0,3 @@ | ||
import {ListItem} from 'angular-point'; | ||
import { ListItem } from 'angular-point'; | ||
import {DiscussionThread} from './DiscussionThread'; | ||
@@ -3,0 +4,0 @@ |
import * as _ from 'lodash'; | ||
import {ListItem} from 'angular-point'; | ||
import { ListItem } from 'angular-point'; | ||
import {Post} from './Post'; | ||
@@ -8,2 +9,3 @@ import {user} from './apDiscussionThreadFactory'; | ||
export interface IDiscussionThread { | ||
posts: Post[]; | ||
createPost(parentId: number, content: string): Post; | ||
@@ -13,3 +15,2 @@ getDiscussionAttributeName(): string; | ||
getNextId(): number; | ||
posts: Post[]; | ||
prune(): void; | ||
@@ -16,0 +17,0 @@ reset(): void; |
@@ -0,4 +1,7 @@ | ||
import { AngularPointModule } from 'angular-point'; | ||
import {DiscussionThreadFactory} from './apDiscussionThreadFactory'; | ||
import {APDiscussionThreadComponent} from './apDiscussionThreadComponent'; | ||
import {AngularPointModule} from 'angular-point'; | ||
import {DiscussionThread} from './DiscussionThread'; | ||
import {Post} from './Post'; | ||
@@ -8,1 +11,4 @@ AngularPointModule | ||
.component('apDiscussionThread', APDiscussionThreadComponent); | ||
export {DiscussionThread, Post, DiscussionThreadFactory}; |
import * as moment from 'moment'; | ||
import * as _ from 'lodash'; | ||
import {IUser} from 'angular-point'; | ||
import {User, ListItem} from 'angular-point'; | ||
import {DiscussionThread} from './DiscussionThread'; | ||
@@ -13,3 +13,3 @@ | ||
parentId: number; | ||
user: IUser; | ||
user: User; | ||
@@ -42,2 +42,2 @@ constructor(post) { | ||
} | ||
} | ||
} |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
0
95910
18
405