startreact
Advanced tools
+1
-1
| { | ||
| "name": "startreact", | ||
| "version": "1.3.0", | ||
| "version": "1.3.1", | ||
| "description": "React + Redux + Hot + Webpack + Express Template Generator", | ||
@@ -5,0 +5,0 @@ "main": "", |
| import * as ActionTypes from '../constants'; | ||
| export function increment() { | ||
| return { | ||
| type: ActionTypes.INCREMENT | ||
| } | ||
| // with redux thunk, in actions you have the access to store.dispatch and store.getState | ||
| return ((dispatch, getState) => { | ||
| return { | ||
| type: ActionTypes.INCREMENT | ||
| }; | ||
| }); | ||
| } | ||
| export function decrement() { | ||
| return { | ||
| type: ActionTypes.DECREMENT | ||
| } | ||
| // with redux thunk, in actions you have the access to store.dispatch and store.getState | ||
| return ((dispatch, getState) => { | ||
| return { | ||
| type: ActionTypes.DECREMENT | ||
| }; | ||
| }); | ||
| } |
| import './style.css'; | ||
| import React, { Component, PropTypes } from 'react' | ||
| import { connect } from 'react-redux'; | ||
| import * as actions from '../../actions'; | ||
@@ -25,7 +26,7 @@ class Counter extends Component { | ||
| _onIncrement() { | ||
| this.props.dispatch({ type: 'INCREMENT' }); | ||
| this.props.dispatch(actions.increment()); | ||
| } | ||
| _onDecrement() { | ||
| this.props.dispatch({ type: 'DECREMENT' }); | ||
| this.props.dispatch(actions.decrement()); | ||
| } | ||
@@ -32,0 +33,0 @@ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
267562
0.13%6010
0.12%0
-100%