Skip to content

Commit

Permalink
fix(package): Update to Angular 2.0.0-beta.8
Browse files Browse the repository at this point in the history
  • Loading branch information
akserg committed Mar 7, 2016
1 parent 6ca4a8f commit ebf6703
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
13 changes: 4 additions & 9 deletions bundles/ng2-toasty.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,6 @@ System.registerDynamic("src/toasty.service", ["angular2/core", "angular2/src/fac
type = type || 'default';
this.uniqueCounter++;
var showClose = this._checkConfigItem(this.config, toastyOptions, 'showClose');
var clickToClose = this._checkConfigItem(this.config, toastyOptions, 'clickToClose');
var html = this._checkConfigItem(this.config, toastyOptions, 'html');
var shake = this._checkConfigItem(this.config, toastyOptions, 'shake');
var theme;
if (toastyOptions.theme) {
theme = ToastyService.THEMES.indexOf(toastyOptions.theme) > -1 ? toastyOptions.theme : this.config.theme;
Expand All @@ -276,8 +273,8 @@ System.registerDynamic("src/toasty.service", ["angular2/core", "angular2/src/fac
}
var toast = {
id: this.uniqueCounter,
title: html ? this._trustAsHtml(toastyOptions.title) : toastyOptions.title,
msg: html ? this._trustAsHtml(toastyOptions.msg) : toastyOptions.msg,
title: toastyOptions.title,
msg: toastyOptions.msg,
showClose: showClose,
type: 'toasty-type-' + type,
theme: 'toasty-theme-' + theme,
Expand All @@ -295,7 +292,8 @@ System.registerDynamic("src/toasty.service", ["angular2/core", "angular2/src/fac
toastyOptions.onAdd.call(this, toast);
}
} catch (e) {
console.log('May be you forget add <ng2-toasty/> to your html?');
console.log(e);
console.log('!!! Suggestion: Seems you forget add <ng2-toasty></ng2-toasty> into your html?');
}
};
ToastyService.prototype.clearAll = function() {
Expand All @@ -310,9 +308,6 @@ System.registerDynamic("src/toasty.service", ["angular2/core", "angular2/src/fac
return true;
}
};
ToastyService.prototype._trustAsHtml = function(input) {
return input;
};
ToastyService.THEMES = ['default', 'material', 'bootstrap'];
ToastyService = __decorate([core_1.Injectable(), __metadata('design:paramtypes', [toasty_config_1.ToastyConfig])], ToastyService);
return ToastyService;
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
"typings": "./ng2-toasty.d.ts",
"homepage": "https://github.com/akserg/ng2-toasty",
"peerDependencies": {
"angular2": "~2.0.0-beta.0",
"angular2": "~2.0.0-beta.8",
"es6-promise": "~3.0.2",
"es6-shim": "~0.33.3",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.0",
"zone.js": "~0.5.10"
"rxjs": "5.0.0-beta.2",
"zone.js": "~0.5.15"
},
"devDependencies": {
"angular2": "2.0.0-beta.6",
"angular2": "2.0.0-beta.8",
"cz-conventional-changelog": "^1.1.5",
"es6-promise": "~3.0.2",
"es6-shim": "~0.33.3",
Expand All @@ -45,14 +45,14 @@
"karma-jasmine": "~0.3.6",
"karma-typescript-preprocessor": "0.0.21",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.0",
"rxjs": "5.0.0-beta.2",
"semantic-release": "^4.3.5",
"systemjs": "~0.19.6",
"systemjs-builder": "^0.15.6",
"tsd": "^0.6.5",
"typescript": "~1.7.3",
"typings": "^0.6.8",
"zone.js": "0.5.14"
"zone.js": "0.5.15"
},
"config": {
"commitizen": {
Expand Down

0 comments on commit ebf6703

Please sign in to comment.