Socket
Socket
Sign inDemoInstall

hoek

Package Overview
Dependencies
Maintainers
3
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hoek - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

3

lib/index.js

@@ -475,3 +475,4 @@ 'use strict';

const hasOnly = options.hasOwnProperty('only'), hasPart = options.hasOwnProperty('part');
const hasOnly = options.hasOwnProperty('only');
const hasPart = options.hasOwnProperty('part');

@@ -478,0 +479,0 @@ compareFlags = {

{
"name": "hoek",
"description": "General purpose node utilities",
"version": "3.0.1",
"version": "3.0.2",
"repository": "git://github.com/hapijs/hoek",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

@@ -227,6 +227,6 @@ ![hoek Logo](https://raw.github.com/hapijs/hoek/master/images/hoek.png)

var array = [1,2,3];
var newObject = Hoek.mapToObject(array); // results in [{"1": true}, {"2": true}, {"3": true}]
var newObject = Hoek.mapToObject(array); // results in {"1": true, "2": true, "3": true}
array = [{id: 1}, {id: 2}];
newObject = Hoek.mapToObject(array, "id"); // results in [{"id": 1}, {"id": 2}]
newObject = Hoek.mapToObject(array, "id"); // results in {"1": true, "2": true}
```

@@ -233,0 +233,0 @@

'use strict';
exports.x = 1;
'use strict';
exports.y = 2;
'use strict';
exports.z = 3;

Sorry, the diff of this file is not supported yet

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