@knit/needle
Advanced tools
Comparing version 0.1.3 to 0.1.4
'use strict'; | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); | ||
var _defineProperty3 = _interopRequireDefault(_defineProperty2); | ||
var _keys = require('babel-runtime/core-js/object/keys'); | ||
var _keys2 = _interopRequireDefault(_keys); | ||
var _stringify = require('babel-runtime/core-js/json/stringify'); | ||
var _stringify2 = _interopRequireDefault(_stringify); | ||
var _assign = require('babel-runtime/core-js/object/assign'); | ||
var _assign2 = _interopRequireDefault(_assign); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var path = require('path'); | ||
@@ -54,14 +70,14 @@ var readPkgUp = require('read-pkg-up'); | ||
proxy: process.env.PROXY || (pkgNeedle || {}).proxy || 'http://localhost:5000', | ||
env: Object.assign({}, { | ||
env: (0, _assign2.default)({}, { | ||
'process.env': { | ||
NODE_ENV: JSON.stringify(process.env.NODE_ENV), | ||
BABEL_ENV: JSON.stringify(process.env.BABEL_ENV), | ||
TEST_ENV: JSON.stringify(process.env.TEST_ENV) | ||
NODE_ENV: (0, _stringify2.default)(process.env.NODE_ENV), | ||
BABEL_ENV: (0, _stringify2.default)(process.env.BABEL_ENV), | ||
TEST_ENV: (0, _stringify2.default)(process.env.TEST_ENV) | ||
}, | ||
DEBUG: parseInt(process.env.DEBUG, 10) === 1, | ||
BASE: JSON.stringify(process.env.BASE) || '' | ||
}, Object.keys(PKG_ENV).reduce(function (acc, k) { | ||
return Object.assign({}, acc, _defineProperty({}, k, JSON.stringify(process.env[k] || PKG_ENV[k]))); | ||
BASE: (0, _stringify2.default)(process.env.BASE) || '' | ||
}, (0, _keys2.default)(PKG_ENV).reduce(function (acc, k) { | ||
return (0, _assign2.default)({}, acc, (0, _defineProperty3.default)({}, k, (0, _stringify2.default)(process.env[k] || PKG_ENV[k]))); | ||
}, {})), | ||
pkg: Object.assign({ | ||
pkg: (0, _assign2.default)({ | ||
dependencies: {}, | ||
@@ -68,0 +84,0 @@ devDependencies: {}, |
@@ -26,3 +26,3 @@ { | ||
"description": "Knitting needle", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "dist/lib/index.js", | ||
@@ -29,0 +29,0 @@ "dependencies": { |
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
70224
70