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

reilt2834

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reilt2834 - npm Package Compare versions

Comparing version 1.2.0 to 1.2.2

3

dist/redux/appointmentsFilter.reducer.d.ts

@@ -1,2 +0,2 @@

import { AppointmentsFilter, AppointmentsDateRangeFilter } from 'neilt32423';
import { AppointmentsFilter, AppointmentsDateRangeFilter, OrderByType } from 'neilt32423';
declare function AppointmentsFilterReducer(state?: AppointmentsFilter, action?: {

@@ -7,4 +7,5 @@ type: string;

dateRange: AppointmentsDateRangeFilter;
orderBy: OrderByType;
}): AppointmentsFilter;
export { AppointmentsFilterReducer };
export default AppointmentsFilterReducer;

@@ -8,7 +8,14 @@ "use strict";

const defaultFilter = new neilt32423_1.AppointmentsDateRangeFilter('Next 7 Days');
const initialState = new neilt32423_1.AppointmentsFilter('', defaultStatus, defaultFilter);
function AppointmentsFilterReducer(state = initialState, action = { type: '', search: '', status: defaultStatus, dateRange: defaultFilter }) {
const defaultOrderBy = "asc";
const initialState = new neilt32423_1.AppointmentsFilter('', defaultStatus, defaultFilter, defaultOrderBy);
function AppointmentsFilterReducer(state = initialState, action = {
type: '',
search: '',
status: defaultStatus,
dateRange: defaultFilter,
orderBy: defaultOrderBy
}) {
switch (action.type) {
case types.SET_APPOINTMENTS_FILTER:
return new neilt32423_1.AppointmentsFilter(action.search, action.status, action.dateRange);
return new neilt32423_1.AppointmentsFilter(action.search, action.status, action.dateRange, action.orderBy);
default:

@@ -15,0 +22,0 @@ return state;

{
"name": "reilt2834",
"version": "1.2.0",
"version": "1.2.2",
"description": "",

@@ -13,3 +13,3 @@ "main": "./dist/index.js",

"dependencies": {
"neilt32423": "^1.6.26",
"neilt32423": "^1.6.30",
"npmrc": "^1.1.1"

@@ -16,0 +16,0 @@ },

import * as types from '../actionTypes';
import { AppointmentsFilter, AppointmentsDateRangeFilter } from 'neilt32423';
import { AppointmentsFilter, AppointmentsDateRangeFilter, OrderByType } from 'neilt32423';
const defaultStatus = 'Active';
const defaultFilter = new AppointmentsDateRangeFilter('Next 7 Days');
const defaultOrderBy: OrderByType = "asc";
const initialState = new AppointmentsFilter('', defaultStatus, defaultFilter);
const initialState = new AppointmentsFilter('', defaultStatus, defaultFilter, defaultOrderBy);
function AppointmentsFilterReducer(state = initialState, action = {type: '', search: '', status: defaultStatus, dateRange: defaultFilter}) {
function AppointmentsFilterReducer(state = initialState, action = {
type: '',
search: '',
status: defaultStatus,
dateRange: defaultFilter,
orderBy: defaultOrderBy
}) {
switch (action.type) {
case types.SET_APPOINTMENTS_FILTER:
return new AppointmentsFilter(action.search, action.status, action.dateRange);
return new AppointmentsFilter(action.search, action.status, action.dateRange, action.orderBy);
default:

@@ -14,0 +21,0 @@ return state;

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