Comparing version 0.9.0 to 0.9.1
{ | ||
"name": "sayhi-ai", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "Human responses for your bots - Turn your bot's language into human language.", | ||
@@ -57,3 +57,3 @@ "main": "lib/lib.min.js", | ||
"author": "sayhi-ai", | ||
"license": "GPL", | ||
"license": "MIT", | ||
"bugs": { | ||
@@ -63,3 +63,8 @@ "url": "https://github.com/sayhi-ai/sayhi-npm/issues" | ||
"homepage": "https://sayhi.ai", | ||
"engines": { | ||
"npm": ">=3.0.0", | ||
"node": ">=7.0.0" | ||
}, | ||
"dependencies": { | ||
"immutable": "^3.8.1", | ||
"isomorphic-fetch": "^2.2.1" | ||
@@ -76,2 +81,4 @@ }, | ||
"esdoc": "^0.4.8", | ||
"eslint": "^3.5.0", | ||
"eslint-config-google": "^0.6.0", | ||
"json-loader": "^0.5.4", | ||
@@ -82,3 +89,5 @@ "npm-run-all": "^3.1.1", | ||
"scripts": { | ||
"start": "npm-run-all build", | ||
"start": "npm-run-all lint build", | ||
"dev": "webpack --progress --config tools/webpack.config.dev.js --watch", | ||
"lint": "eslint ./src", | ||
"build": "webpack -p --config tools/webpack.config.prod.js", | ||
@@ -85,0 +94,0 @@ "build:dev": "webpack -p --config tools/webpack.config.dev.js", |
@@ -1,1 +0,4 @@ | ||
# sayhi-ai npm module | ||
# sayhi-ai npm module | ||
[![Build Status](https://travis-ci.org/sayhi-ai/sayhi-npm.svg?branch=master)](https://travis-ci.org/sayhi-ai/sayhi-npm) | ||
[![npm version](https://badge.fury.io/js/sayhi-ai.svg)](https://badge.fury.io/js/sayhi-ai) |
let ENV_VARS; | ||
const CONSTANTS = { | ||
RESPONSE_VARIABLE: "$VAR" | ||
RESPONSE_VARIABLE: "$VAR" | ||
}; | ||
if (process.env.NODE_ENV === "production") { | ||
ENV_VARS = { | ||
SERVER_URL: "https://api.sayhi.ai", | ||
CONSTANTS: CONSTANTS | ||
}; | ||
ENV_VARS = { | ||
SERVER_URL: "https://api.sayhi.ai", | ||
CONSTANTS: CONSTANTS | ||
}; | ||
} else { | ||
ENV_VARS = { | ||
SERVER_URL: "http://localhost:8080", | ||
CONSTANTS: CONSTANTS | ||
}; | ||
ENV_VARS = { | ||
SERVER_URL: "http://localhost:8080", | ||
CONSTANTS: CONSTANTS | ||
}; | ||
} | ||
export default ENV_VARS; |
var webpack = require('webpack'); | ||
module.exports = { | ||
entry: "./src/index.js", | ||
target: 'node', | ||
module: { | ||
loaders: [ | ||
{test: /\.json$/, loader: "json-loader"}, | ||
{test: /\.jsx?$/, exclude: /(node_modules)/, loader: 'babel'} | ||
] | ||
}, | ||
output: { | ||
path: "./dev", | ||
filename: "lib.min.js", | ||
libraryTarget: 'umd' | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': '"development"' | ||
}) | ||
entry: "./src/index.js", | ||
target: 'node', | ||
module: { | ||
loaders: [ | ||
{test: /\.json$/, loader: "json-loader"}, | ||
{test: /\.jsx?$/, exclude: /(node_modules)/, loader: 'babel'} | ||
] | ||
}, | ||
output: { | ||
path: "./dev", | ||
filename: "lib.min.js", | ||
libraryTarget: 'umd' | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': '"development"' | ||
}) | ||
] | ||
}; |
var webpack = require('webpack'); | ||
module.exports = { | ||
entry: "./src/index.js", | ||
target: 'node', | ||
module: { | ||
loaders: [ | ||
{test: /\.json$/, loader: "json-loader"}, | ||
{test: /\.jsx?$/, exclude: /(node_modules)/, loader: 'babel'} | ||
] | ||
}, | ||
output: { | ||
path: "./lib", | ||
filename: "lib.min.js", | ||
libraryTarget: 'umd' | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': '"production"' | ||
}) | ||
entry: "./src/index.js", | ||
target: 'node', | ||
module: { | ||
loaders: [ | ||
{test: /\.json$/, loader: "json-loader"}, | ||
{test: /\.jsx?$/, exclude: /(node_modules)/, loader: 'babel'} | ||
] | ||
}, | ||
output: { | ||
path: "./lib", | ||
filename: "lib.min.js", | ||
libraryTarget: 'umd' | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': '"production"' | ||
}) | ||
] | ||
}; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
346324
12
0
0
1114
5
2
13
+ Addedimmutable@^3.8.1
+ Addedimmutable@3.8.2(transitive)