Comparing version 3.0.1 to 3.0.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2717
153579