Skip to content

Commit 0256686

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents a212144 + 545e1f9 commit 0256686

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[![Build Status](https://travis-ci.org/flauc/angular2-notifications.svg?branch=master)](https://travis-ci.org/flauc/angular2-notifications)
2-
[![NPM Version](https://img.shields.io/badge/npm-0.4.47-brightgreen.svg?style=flat)](https://www.npmjs.com/package/angular2-notifications)
2+
[![NPM Version](https://img.shields.io/npm/v/angular2-notifications.svg)](https://www.npmjs.com/package/angular2-notifications)
3+
[![NPM Downloads](https://img.shields.io/npm/dt/angular2-notifications.svg)](https://www.npmjs.com/package/angular2-notifications)
34
# Angular2-Notifications
45
A light and easy to use notifications library for Angular 2. It features both regular page notifications (toasts) and push notifications.
56

components.metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./src/simple-notifications.module","export":["SimpleNotificationsModule"]},{"from":"./src/simple-notifications.component","export":["SimpleNotificationsComponent"]},{"from":"./src/notification.component","export":["NotificationComponent"]},{"from":"./src/notifications.service","export":["NotificationsService"]},{"from":"./src/max.pipe","export":["MaxPipe"]},{"from":"./src/push-notifications.module","export":["PushNotificationsModule"]},{"from":"./src/push-notifications.service","export":["PushNotificationsService"]}]}
1+
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./src/simple-notifications.module","export":["SimpleNotificationsModule"]},{"from":"./src/simple-notifications.component","export":["SimpleNotificationsComponent"]},{"from":"./src/notification.component","export":["NotificationComponent"]},{"from":"./src/notifications.service","export":["NotificationsService"]},{"from":"./src/max.pipe","export":["MaxPipe"]},{"from":"./src/push-notifications.module","export":["PushNotificationsModule"]},{"from":"./src/push-notifications.service","export":["PushNotificationsService"]}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./src/simple-notifications.module","export":["SimpleNotificationsModule"]},{"from":"./src/simple-notifications.component","export":["SimpleNotificationsComponent"]},{"from":"./src/notification.component","export":["NotificationComponent"]},{"from":"./src/notifications.service","export":["NotificationsService"]},{"from":"./src/max.pipe","export":["MaxPipe"]},{"from":"./src/push-notifications.module","export":["PushNotificationsModule"]},{"from":"./src/push-notifications.service","export":["PushNotificationsService"]}]}]

docs/toastNotifications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The onCreate and onDestroy Event Emitters emit the notification that was created
3333
<simple-notifications [options]="options" (onCreate)="created($event)" (onDestroy)="destroyed($event)"></simple-notifications>
3434
```
3535

36-
**If your app cannot find the built JS files for this package,** you may need to tell your build script to scan the `angular2-notifications` directory. See the related issue #25. Example:
36+
**If your app cannot find the built JS files for this package,** you may need to tell your build script to scan the `angular2-notifications` directory. See the related issue [#25](https://github.com/flauc/angular2-notifications/issues/25). Example:
3737

3838
```js
3939
'angular2-notifications/*.+(js|js.map)',

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular2-notifications",
3-
"version": "0.4.47",
3+
"version": "0.4.49",
44
"description": "An easy to use notification library for angular 2",
55
"repository": {
66
"type": "git",
@@ -31,8 +31,7 @@
3131
"peerDependencies": {
3232
"@angular/core": "^2.1.2",
3333
"@angular/common": "^2.1.2",
34-
"@angular/platform-browser": "^2.1.1",
35-
"rxjs": "5.0.0-beta.12"
34+
"@angular/platform-browser": "^2.1.1"
3635
},
3736
"devDependencies": {
3837
"@angular/common": "^2.1.2",
@@ -68,7 +67,7 @@
6867
"ts-helpers": "1.1.1",
6968
"tslint": "^3.15.1",
7069
"tslint-loader": "2.1.5",
71-
"typescript": "^2.0.2",
70+
"typescript": "2.0.10",
7271
"typings": "^1.3.2",
7372
"webpack": "^1.13.2",
7473
"zone.js": "^0.6.23"

src/max.pipe.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import {Pipe, PipeTransform} from '@angular/core';
33
@Pipe({name: 'max'})
44
export class MaxPipe implements PipeTransform {
55
transform(value: string, ...args: any[]): any {
6+
if (!value) return value;
7+
68
let allowed = args[0];
79
let received = value.length;
810

tsconfig.aot.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"compilerOptions": {
33
"emitDecoratorMetadata": true,
44
"experimentalDecorators": true,
5-
"target": "es2015",
5+
"target": "es5",
66
"module": "commonjs",
77
"moduleResolution": "node",
88
"removeComments": true,
99
"sourceMap": true,
1010
"declaration": true,
1111
"types": [
12-
"node"
12+
"core-js"
1313
]
1414
},
1515
"angularCompilerOptions": {

0 commit comments

Comments
 (0)