@sanity/util
Advanced tools
Comparing version 0.99.0 to 0.101.3
@@ -21,2 +21,6 @@ 'use strict'; | ||
var _reduceConfig = require('./reduceConfig'); | ||
var _reduceConfig2 = _interopRequireDefault(_reduceConfig); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -38,3 +42,4 @@ | ||
const localConfig = rootDir && (0, _safeJson.loadJsonSync)(_path2.default.join(rootDir, 'sanity.json')); | ||
const config = localConfig ? (0, _merge2.default)({}, defaults, localConfig) : defaults; | ||
const config = (0, _reduceConfig2.default)(localConfig ? (0, _merge2.default)({}, defaults, localConfig) : defaults, process.env.NODE_ENV || 'development' // eslint-disable-line no-process-env | ||
); | ||
@@ -41,0 +46,0 @@ return configContainer(config); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.safeJson = exports.lazyRequire = exports.getConfig = undefined; | ||
exports.safeJson = exports.lazyRequire = exports.reduceConfig = exports.getConfig = undefined; | ||
@@ -13,2 +13,6 @@ var _getConfig = require('./getConfig'); | ||
var _reduceConfig = require('./reduceConfig'); | ||
var _reduceConfig2 = _interopRequireDefault(_reduceConfig); | ||
var _lazyRequire = require('./lazyRequire'); | ||
@@ -25,3 +29,4 @@ | ||
exports.getConfig = _getConfig2.default; | ||
exports.reduceConfig = _reduceConfig2.default; | ||
exports.lazyRequire = _lazyRequire2.default; | ||
exports.safeJson = _safeJson2.default; |
@@ -18,7 +18,7 @@ 'use strict'; | ||
throw new Error(`Error while attempting to read projects "${ fileName }":\n${ err.message }`); | ||
throw new Error(`Error while attempting to read projects "${fileName}":\n${err.message}`); | ||
} | ||
}); | ||
return function readLocalManifest(_x, _x2) { | ||
return function readLocalManifest(_x) { | ||
return _ref.apply(this, arguments); | ||
@@ -25,0 +25,0 @@ }; |
{ | ||
"name": "@sanity/util", | ||
"version": "0.99.0", | ||
"version": "0.101.3", | ||
"description": "Utilities shared across projects of Sanity", | ||
@@ -24,3 +24,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"fs-promise": "^0.5.0" | ||
"fs-promise": "^0.5.0", | ||
"lodash.merge": "^4.6.0" | ||
}, | ||
@@ -27,0 +28,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
18
191
60607
2
6
1
+ Addedlodash.merge@^4.6.0
+ Addedlodash.merge@4.6.2(transitive)