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

base-env

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-env - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

README.md

6

index.js
/*!
* base-env <https://github.com/jonschlinkert/base-env>
* base-env <https://github.com/base/base-env>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/

@@ -7,0 +7,0 @@

@@ -10,4 +10,2 @@ /*!

var fs = require('fs');
var path = require('path');
var util = require('util');

@@ -14,0 +12,0 @@ var debug = require('debug')('base:base-env');

@@ -164,3 +164,3 @@ 'use strict';

get: function() {
return this.history[this.history.length - 1];
return this.history[this.history.length - 1];
}

@@ -167,0 +167,0 @@ });

@@ -6,3 +6,2 @@ 'use strict';

var utils = require('./utils');
var File = require('./file');

@@ -39,3 +38,2 @@ /**

function resolvePath(file, options) {

@@ -51,3 +49,2 @@ var opts = utils.extend({}, options, file.options);

Object.defineProperty(file, 'pkgPath', {

@@ -54,0 +51,0 @@ configurable: true,

@@ -5,25 +5,17 @@ 'use strict';

var debug = require('debug')('base:env');
var utils = module.exports = require('lazy-cache')(require);
var File = require('./file');
var fn = require;
require = utils; // eslint-ignore-line
var utils = module.exports = {};
var requireCache = {};
/**
* Lazily required module dependencies
*/
utils.namespace = require('base-namespace');
utils.containsPath = require('contains-path');
utils.extend = require('extend-shallow');
utils.exists = require('fs-exists-sync');
utils.gm = require('global-modules');
utils.isAbsolute = require('is-absolute');
utils.isValidApp = require('is-valid-app');
utils.isValidInstance = require('is-valid-instance');
utils.typeOf = require('kind-of');
utils.home = require('os-homedir');
utils.resolve = require('resolve-file');
require('base-namespace', 'namespace');
require('contains-path');
require('extend-shallow', 'extend');
require('fs-exists-sync', 'exists');
require('global-modules', 'gm');
require('is-absolute');
require('is-valid-app');
require('is-valid-instance');
require('kind-of', 'typeOf');
require('os-homedir', 'home');
require('resolve-file', 'resolve');
require = fn; // eslint-ignore-line
/**

@@ -30,0 +22,0 @@ * Return true if val is an object

{
"name": "base-env",
"description": "Base plugin, creates a normalized environment object from a function, filepath or instance of base.",
"version": "0.3.0",
"homepage": "https://github.com/node-base/base-env",
"version": "0.3.1",
"homepage": "https://github.com/base/base-env",
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"repository": "node-base/base-env",
"contributors": [
"Brian Woodward (https://twitter.com/doowb)",
"Jon Schlinkert (http://twitter.com/jonschlinkert)"
],
"repository": "base/base-env",
"bugs": {
"url": "https://github.com/node-base/base-env/issues"
"url": "https://github.com/base/base-env/issues"
},

@@ -14,4 +18,3 @@ "license": "MIT",

"index.js",
"lib",
"utils.js"
"lib"
],

@@ -36,5 +39,4 @@ "main": "index.js",

"kind-of": "^3.0.3",
"lazy-cache": "^2.0.1",
"os-homedir": "^1.0.1",
"resolve-file": "github:jonschlinkert/resolve-file"
"resolve-file": "^0.3.0"
},

@@ -41,0 +43,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

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