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

varson

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

varson - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

6

CHANGELOG.md
0.5.1 / 2016-10-21
==================
* fixed . bug
* updated mocha
0.5.0 / 2016-10-19

@@ -3,0 +9,0 @@ ==================

4

index.js

@@ -68,7 +68,7 @@ 'use strict';

oldPath.push(originalKey);
unset(memo, oldPath.join('.'));
unset(memo, oldPath);
// and now we can set the evaluated key:
const path = this.path.slice(0, this.path.length - 1);
path.push(evaluatedKey);
set(memo, path.join('.'), evaluatedValue);
set(memo, path, evaluatedValue);
}

@@ -75,0 +75,0 @@ return memo;

{
"name": "varson",
"version": "0.5.0",
"version": "0.5.1",
"description": "",

@@ -30,4 +30,4 @@ "main": "index.js",

"eslint-plugin-import": "^1.14.0",
"mocha": "^2.3.3"
"mocha": "^3.1.2"
}
}

@@ -319,2 +319,19 @@ /* global describe, it */

it('should allow . in key or value (failed before)', () => {
const result = varson({
blah: 'yep',
'./test': {
'./debug': './true',
'{{blah}}': 123
}
});
expect(result).to.deep.equal({
blah: 'yep',
'./test': {
'./debug': './true',
yep: 123
}
});
});
it('should allow to change {{ }} to { }', () => {

@@ -321,0 +338,0 @@ const origSettings = varson.settings;

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