Socket
Socket
Sign inDemoInstall

residue

Package Overview
Dependencies
2
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.1 to 1.2.3

6

CHANGELOG.md
# Change Log
## [1.2.3]
- `loadConfiguration` now accepts object
## [1.2.1]
- Included folders updated
## [1.2.0]

@@ -4,0 +10,0 @@ ### Updates

2

package.json
{
"name": "residue",
"version": "1.2.1",
"version": "1.2.3",
"description": "Library to interact with residue server seamlessly.",

@@ -5,0 +5,0 @@ "main": "src/residue.js",

@@ -664,8 +664,8 @@ //

const loadConfiguration = (jsonFilename) => {
if (typeof jsonFilename === 'undefined') {
Utils.log('Please select JSON filename that contains configurations');
const loadConfiguration = (jsonOrFilename) => {
if (typeof jsonOrFilename === 'undefined') {
Utils.log('Please select JSON or JSON filename that contains configurations');
return false;
}
Params.options = JSON.parse(fs.readFileSync(path.resolve(jsonFilename), 'utf8'));
Params.options = typeof jsonOrFilename === 'object' ? jsonOrFilename : JSON.parse(fs.readFileSync(path.resolve(jsonOrFilename), 'utf8'));
Utils.log('Configuration loaded');

@@ -672,0 +672,0 @@ return true;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc