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

@codetanzania/emis-api-states

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codetanzania/emis-api-states - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

CHANGELOG.md

@@ -7,1 +7,5 @@ # 0.1.0 / 14-01-2019

- Use latest version of emis-api-client
# 0.2.2 / 14-01-2019
- Fix issues with connect function and rename it to Connect

8

es/index.js

@@ -5,3 +5,3 @@ import forIn from 'lodash/forIn';

import React from 'react';
import { Provider } from 'react-redux';
import { Provider, connect } from 'react-redux';
import { pluralize, singularize } from 'inflection';

@@ -511,3 +511,3 @@ import { combineReducers } from 'redux';

* @function
* @name connect
* @name Connect
*

@@ -521,3 +521,3 @@ * @param {ReactComponent} component

*/
function connect(component) {
function Connect(component) {
var stateToProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;

@@ -542,2 +542,2 @@

export { StoreProvider, connect, getActivities, getActivity, selectActivity, closeActivityForm, openActivityForm, postActivity, putActivity, setActivitySchema, getAlerts, getAlert, selectAlert, closeAlertForm, openAlertForm, postAlert, putAlert, setAlertSchema, getAssessments, getAssessment, selectAssessment, closeAssessmentForm, openAssessmentForm, postAssessment, putAssessment, setAssessmentSchema, getFeatures, getFeature, selectFeature, closeFeatureForm, openFeatureForm, postFeature, putFeature, setFeatureSchema, getIncidents, getIncident, selectIncident, closeIncidentForm, openIncidentForm, postIncident, putIncident, setIncidentSchema, getIncidentTypes, getIncidentType, selectIncidentType, closedIncidentTypeForm, openIncidentTypeForm, postIncidentType, putIncidentType, setIncidentTypeSchema, getPlans, getPlan, selectPlan, closePlanForm, openPlanForm, postPlan, putPlan, setPlanSchema, getProcedures, getProcedure, selectProcedure, closeProcedureForm, openProcedureForm, postProcedure, putProcedure, setProcedureSchema, getQuestionnaires, getQuestionnaire, selectQuestionnaire, closeQuestionnaireForm, openQuestionnaireForm, postQuestionnaire, putQuestionnaire, setQuestionnaireSchema, getResources, getResource, selectResource, closeResourceForm, openResourceForm, postResource, putResource, setResourceSchema, getRoles, getRole, selectRole, closeRoleForm, openRoleForm, postRole, putRole, setRoleSchema, getStakeholders, getStakeholder, selectStakeholder, closeStakeholderForm, openStakeholderForm, postStakeholder, putStakeholder, setStakeholderSchema };
export { StoreProvider, Connect, getActivities, getActivity, selectActivity, closeActivityForm, openActivityForm, postActivity, putActivity, setActivitySchema, getAlerts, getAlert, selectAlert, closeAlertForm, openAlertForm, postAlert, putAlert, setAlertSchema, getAssessments, getAssessment, selectAssessment, closeAssessmentForm, openAssessmentForm, postAssessment, putAssessment, setAssessmentSchema, getFeatures, getFeature, selectFeature, closeFeatureForm, openFeatureForm, postFeature, putFeature, setFeatureSchema, getIncidents, getIncident, selectIncident, closeIncidentForm, openIncidentForm, postIncident, putIncident, setIncidentSchema, getIncidentTypes, getIncidentType, selectIncidentType, closedIncidentTypeForm, openIncidentTypeForm, postIncidentType, putIncidentType, setIncidentTypeSchema, getPlans, getPlan, selectPlan, closePlanForm, openPlanForm, postPlan, putPlan, setPlanSchema, getProcedures, getProcedure, selectProcedure, closeProcedureForm, openProcedureForm, postProcedure, putProcedure, setProcedureSchema, getQuestionnaires, getQuestionnaire, selectQuestionnaire, closeQuestionnaireForm, openQuestionnaireForm, postQuestionnaire, putQuestionnaire, setQuestionnaireSchema, getResources, getResource, selectResource, closeResourceForm, openResourceForm, postResource, putResource, setResourceSchema, getRoles, getRole, selectRole, closeRoleForm, openRoleForm, postRole, putRole, setRoleSchema, getStakeholders, getStakeholder, selectStakeholder, closeStakeholderForm, openStakeholderForm, postStakeholder, putStakeholder, setStakeholderSchema };

@@ -516,3 +516,3 @@ 'use strict';

* @function
* @name connect
* @name Connect
*

@@ -526,3 +526,3 @@ * @param {ReactComponent} component

*/
function connect(component) {
function Connect(component) {
var stateToProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;

@@ -544,7 +544,7 @@

return connect(_mapStateToProps)(component);
return reactRedux.connect(_mapStateToProps)(component);
}
exports.StoreProvider = StoreProvider;
exports.connect = connect;
exports.Connect = Connect;
exports.getActivities = getActivities;

@@ -551,0 +551,0 @@ exports.getActivity = getActivity;

{
"name": "@codetanzania/emis-api-states",
"version": "0.2.1",
"version": "0.2.2",
"description": "EMIS Redux state management library",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -25,3 +25,3 @@ # EMIS API States

```jsx
import { StoreProvider, connect } from '@codetanzania/emis-api-states';
import { StoreProvider, Connect } from '@codetanzania/emis-api-states';

@@ -44,3 +44,3 @@ // store provider

// connect TodoList component to store
export connect(TodoList, {
export Connect(TodoList, {
alerts: 'alerts.list'

@@ -47,0 +47,0 @@ });

@@ -5,3 +5,3 @@ import forIn from 'lodash/forIn';

import React from 'react';
import { Provider } from 'react-redux';
import { connect, Provider } from 'react-redux';
import { store } from './store';

@@ -31,3 +31,3 @@

* @function
* @name connect
* @name Connect
*

@@ -41,3 +41,3 @@ * @param {ReactComponent} component

*/
export function connect(component, stateToProps = null) {
export function Connect(component, stateToProps = null) {
let mapStateToProps = stateToProps;

@@ -44,0 +44,0 @@

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