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

@knit/needle

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knit/needle - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

34

dist/lib/index.js
'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": {

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