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

sayhi-ai

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

sayhi-ai - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

.eslintrc.js

15

package.json
{
"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)

18

tools/ENV_VARS.js
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

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