startreact
Advanced tools
+1
-1
| { | ||
| "name": "startreact", | ||
| "version": "1.3.1", | ||
| "version": "1.3.3", | ||
| "description": "React + Redux + Hot + Webpack + Express Template Generator", | ||
@@ -5,0 +5,0 @@ "main": "", |
@@ -17,5 +17,7 @@ { | ||
| "cors": "^2.7.1", | ||
| "es6-promise": "^3.1.2", | ||
| "events": "^1.0.2", | ||
| "express": "^4.12.3", | ||
| "express-http-proxy": "^0.6.0", | ||
| "isomorphic-fetch": "^2.2.1", | ||
| "keymirror": "^0.1.1", | ||
@@ -22,0 +24,0 @@ "morgan": "^1.6.1", |
+19
-16
@@ -1,19 +0,22 @@ | ||
| var express = require('express'); | ||
| var app = express(); | ||
| var bodyParser = require('body-parser'); | ||
| var morgan = require('morgan'); | ||
| import express from 'express'; | ||
| import bodyParser from 'body-parser'; | ||
| import morgan from 'morgan'; | ||
| // webpack | ||
| var path = require('path'); | ||
| var webpack = require('webpack'); | ||
| var webpackDevMiddleware = require('webpack-dev-middleware'); | ||
| var webpackHotMiddleware = require('webpack-hot-middleware'); | ||
| var config = require('./webpack.config'); | ||
| import path from 'path'; | ||
| import webpack from 'webpack'; | ||
| import webpackDevMiddleware from 'webpack-dev-middleware'; | ||
| import webpackHotMiddleware from 'webpack-hot-middleware'; | ||
| import config from './webpack.config'; | ||
| require('es6-promise').polyfill(); | ||
| require('isomorphic-fetch'); | ||
| var port = isProduction ? process.env.PORT : 3000; | ||
| var isProduction = process.env.NODE_ENV === 'production'; | ||
| const app = express(); | ||
| const port = isProduction ? process.env.PORT : 3000; | ||
| const isProduction = process.env.NODE_ENV === 'production'; | ||
| if (!isProduction) { | ||
| var compiler = webpack(config); | ||
| var webpackMiddleware = webpackDevMiddleware(compiler, { | ||
| let compiler = webpack(config); | ||
| let webpackMiddleware = webpackDevMiddleware(compiler, { | ||
| publicPath: config.output.publicPath, | ||
@@ -81,6 +84,6 @@ contentBase: 'src', | ||
| var server = app.listen(port, function() { | ||
| const server = app.listen(port, function() { | ||
| var host = server.address().address; | ||
| var port = server.address().port; | ||
| let host = server.address().address; | ||
| let port = server.address().port; | ||
@@ -87,0 +90,0 @@ console.log('Server listening at http://%s:%s', host, port); |
Network access
Supply chain riskThis module accesses the network.
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
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
267674
0.04%6012
0.03%1
Infinity%