Comparing version 0.3.0 to 0.3.1
/*! | ||
* 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
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
29375
12
8
0
182
0
8
0
755
+ Addedcwd@0.10.0(transitive)
+ Addedexpand-tilde@1.2.22.0.2(transitive)
+ Addedfind-file-up@0.1.3(transitive)
+ Addedfind-pkg@0.1.2(transitive)
+ Addedis-core-module@2.16.0(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedresolve@1.22.9(transitive)
+ Addedresolve-dir@0.1.1(transitive)
+ Addedresolve-file@0.3.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedlazy-cache@^2.0.1
Updatedresolve-file@^0.3.0