New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

config-utilities

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-utilities - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

config-utilities-1.1.0.tgz

9

CHANGELOG.md

@@ -5,2 +5,11 @@ # Changelog

## [v1.2.0] - 2019-04-26
### Changed
- Path resolution rules to support Node 12
- Docker image to Node 12
- Dependencies updated
## Fixed
- Source documentation not represented as JSDoc comments
## [v1.1.0] - 2019-01-20

@@ -7,0 +16,0 @@ ### Added

17

index.js

@@ -1,3 +0,3 @@

/*
Copyright 2018-2019 Alfredo Mungo <alfredo.mungo@protonmail.ch>
/**
@copyright 2018-2019 Alfredo Mungo <alfredo.mungo@protonmail.ch>

@@ -31,3 +31,3 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

/*
/**
Resolve paths in a configuration object.

@@ -81,2 +81,5 @@

// Fixes problem with paths when using junctions on NTFS
opts2.baseDir = fs.realpathSync(opts2.baseDir);
// Load the paths and resolve those that don't depend on any other

@@ -149,3 +152,3 @@ // path in the config

/*
/**
Read configuration files from folder and return an object containing the

@@ -171,2 +174,4 @@ exported configuration.

}
cfgDir = path.resolve(cfgDir);
/* eslint-enable no-param-reassign, prefer-rest-params */

@@ -198,3 +203,3 @@

const modContent = require( // eslint-disable-line global-require, import/no-dynamic-require
require.resolve(modName, { paths: [cfgDir] })
slash(path.join(cfgDir, modName))
);

@@ -211,3 +216,3 @@

/*
/**
Read task files from folder and return an object containing the

@@ -214,0 +219,0 @@ exported tasks.

{
"name": "config-utilities",
"version": "1.1.0",
"version": "1.2.0",
"description": "Configuration file utilities",

@@ -25,8 +25,8 @@ "main": "index.js",

"del": "^3.0.0",
"eslint": "^5.11.0",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-import": "^2.17.2",
"mocha": "^5.2.0",
"nyc": "^13.1.0",
"sinon": "^7.2.2",
"nyc": "^13.3.0",
"sinon": "^7.3.2",
"sinon-chai": "^3.3.0"

@@ -33,0 +33,0 @@ },

@@ -11,2 +11,3 @@ /* eslint-env mocha, chai */

const del = require('del');
const { realpathSync } = require('fs');
const {

@@ -27,3 +28,3 @@ DEFAULT_TASK_DIR,

tempTaskPath;
const modules = ['index', 'paths', 'browserify', 'mocha', 'eslint'];
const modules = ['index', 'paths', 'xrowserify', 'mocha', 'eslint'];

@@ -34,3 +35,3 @@ before(function () {

)
.then((folder) => { tempDirPath = folder; return folder; })
.then((folder) => { tempDirPath = realpathSync(folder); return tempDirPath; })
.then((folder) => {

@@ -78,3 +79,2 @@ oldCwd = process.cwd();

const allForwardSlashes = ({ a }) => !a.includes('\\');
const driveLetter = WIN32 ? process.cwd().charAt(0) : '';
const paths = {

@@ -97,3 +97,3 @@ myFolder1: '.',

it('should respect the baseDir option', function () {
const baseDir = '/my/base/dir';
const baseDir = tempCfgPath;

@@ -132,8 +132,6 @@ expect(resolvePaths(paths, { baseDir })).to.deep.equal({

userHome: '$home/user/second'
}, { baseDir: '/home', relative: false })
}, { baseDir: tempCfgPath, relative: false })
).to.have.property(
'userHome', (
WIN32
? `${driveLetter}:\\home\\user\\second`
: '/home/user/second'
path.join(tempCfgPath, 'user/second')
)

@@ -146,3 +144,3 @@ );

userHome: '$home/user/second'
}, { baseDir: '/home', relative: true })
}, { baseDir: tempCfgPath, relative: true })
).to.have.property(

@@ -149,0 +147,0 @@ 'userHome', (

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