react-notification-center
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -105,3 +105,3 @@ 'use strict'; | ||
return this.state.notifications.filter(function (item) { | ||
return !item[_this3.mapOptions().new]; | ||
return item[_this3.mapOptions().new]; | ||
}).length; | ||
@@ -161,3 +161,3 @@ }; | ||
if (notification[_this4.mapOptions().id] == item[_this4.mapOptions().id]) { | ||
notification[_this4.mapOptions().new] = true; | ||
notification[_this4.mapOptions().new] = false; | ||
} | ||
@@ -164,0 +164,0 @@ return notification; |
{ | ||
"name": "react-notification-center", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "react-notification-center keep all your notification in a single place", | ||
@@ -10,3 +10,3 @@ "main": "lib/index.js", | ||
"build:w": "better-npm-run build:w", | ||
"build": "better-npm-run build", | ||
"build": "better-npm-run build && npm run less && npm run less:m", | ||
"less": "node_modules/.bin/lessc src/less/index.less --autoprefix=\"last 2 versions\" lib/css/react-redux-notification.css", | ||
@@ -110,8 +110,2 @@ "less:m": "node_modules/.bin/lessc src/less/index.less --autoprefix=\"last 2 versions\" --clean-css lib/css/react-redux-notification.min.css", | ||
"react-hot-loader": "^1.3.0", | ||
"react-redux": "^4.4.0", | ||
"redux": "^3.3.1", | ||
"redux-devtools": "^3.1.1", | ||
"redux-devtools-dock-monitor": "^1.1.0", | ||
"redux-devtools-log-monitor": "^1.0.5", | ||
"redux-logger": "^2.0.4", | ||
"rimraf": "^2.4.4", | ||
@@ -125,5 +119,4 @@ "style-loader": "^0.13.0", | ||
"classnames": "^2.2.3", | ||
"element-class": "^0.2.2", | ||
"eventemitter3": "^1.1.1" | ||
"element-class": "^0.2.2" | ||
} | ||
} |
@@ -78,3 +78,3 @@ import React, {Component, PropTypes} from 'react'; | ||
getUnreadLength() { | ||
return this.state.notifications.filter(item => !item[this.mapOptions().new]).length; | ||
return this.state.notifications.filter(item => item[this.mapOptions().new]).length; | ||
} | ||
@@ -131,3 +131,3 @@ | ||
if (notification[this.mapOptions().id] == item[this.mapOptions().id]) { | ||
notification[this.mapOptions().new] = true; | ||
notification[this.mapOptions().new] = false; | ||
} | ||
@@ -134,0 +134,0 @@ return notification; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80950
2
37
27
1450
- Removedeventemitter3@^1.1.1
- Removedeventemitter3@1.2.0(transitive)