Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dottie

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dottie - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name" : "dottie",
"version" : "0.0.5",
"version" : "0.0.6",
"devDependencies": {

@@ -5,0 +5,0 @@ "buster": "*"

[![Build Status](https://secure.travis-ci.org/innofluence/dottie.js.png)](http://travis-ci.org/innofluence/dottie.js)
## Install
`npm install dottie`
npm install dottie

@@ -11,2 +11,3 @@ ## Usage

Gets nested value, or undefined if unreachable.
var values = {

@@ -26,3 +27,3 @@ some: {

`dottie.set(values, 'some.nested.value', someValue);`
dottie.set(values, 'some.nested.value', someValue);

@@ -29,0 +30,0 @@ ### Transform object

var buster = require('buster'),
Dot = require('../dot');
dottie = require('../dottie');
buster.spec.expose();
describe("Dot.transform", function () {
it("should create a properly nested object from a basic dot notated set of keys", function () {
describe("dottie.transform", function () {
it("should create a properly nested object from a basic dottie notated set of keys", function () {
var values = {

@@ -15,3 +15,3 @@ 'user.name': 'John Doe',

var transformed = Dot.transform(values);
var transformed = dottie.transform(values);

@@ -28,3 +28,3 @@ expect(transformed.user).toBeDefined();

it("should be able to handle a mixture of nested properties and dot notated set of keys", function () {
it("should be able to handle a mixture of nested properties and dottie notated set of keys", function () {
var values = {

@@ -37,6 +37,6 @@ user: {

'user.location.city': 'Zanzibar City',
'project.title': 'Dot'
'project.title': 'dottie'
};
var transformed = Dot.transform(values);
var transformed = dottie.transform(values);

@@ -53,4 +53,4 @@ expect(transformed.user).toBeDefined();

expect(transformed.user.location.city).toEqual('Zanzibar City');
expect(transformed.project.title).toEqual('Dot');
expect(transformed.project.title).toEqual('dottie');
});
});
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