Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

department-notifications

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

department-notifications - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

6

es6/store.js

@@ -6,2 +6,3 @@ export var NOTIFICATION_ADD = 'NOTIFICATION_ADD';

var initialState = [];
var nextNotificationId = 0;

@@ -14,2 +15,3 @@ // Actions

type: NOTIFICATION_ADD,
id: nextNotificationId++,
message: message,

@@ -53,5 +55,3 @@ kind: kind

return [].concat(state, [{
id: state.reduce(function (maxId, notification) {
return Math.max(notification.id, maxId);
}, -1) + 1,
id: action.id,
message: action.message,

@@ -58,0 +58,0 @@ kind: action.kind

@@ -16,2 +16,3 @@ 'use strict';

var initialState = [];
var nextNotificationId = 0;

@@ -24,2 +25,3 @@ // Actions

type: NOTIFICATION_ADD,
id: nextNotificationId++,
message: message,

@@ -63,5 +65,3 @@ kind: kind

return [].concat(state, [{
id: state.reduce(function (maxId, notification) {
return Math.max(notification.id, maxId);
}, -1) + 1,
id: action.id,
message: action.message,

@@ -68,0 +68,0 @@ kind: action.kind

{
"name": "department-notifications",
"version": "0.1.0",
"version": "0.2.0",
"description": "Drop in redux notifications for department.",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc