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

cimpress-handlebars-helpers

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cimpress-handlebars-helpers - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

CHANGELOG.md

@@ -8,4 +8,8 @@ # Changelog

## [0.0.2] - 2018.12.13
### Fixed
- Return empty array instead of throwing error
## [0.0.1] - 2018.12.13
### Added
- Initial release

6

lib/helpers/filterByValues.js

@@ -10,9 +10,9 @@ 'use strict';

if (!collection || !Array.isArray(collection)) {
throw new Error('filterByValues expects array as first argument (collection)');
return [];
}
if (!key || typeof key !== 'string') {
throw new Error('filterByValues expects string as second argument (key)');
return [];
}
if (!values || !Array.isArray(values)) {
throw new Error('filterByValues expects array as third argument (values)');
return [];
}

@@ -19,0 +19,0 @@

@@ -11,6 +11,6 @@ 'use strict';

if (!array || !Array.isArray(array)) {
throw new Error('flatMap expects array as first argument (array)');
return [];
}
if (!path || typeof path !== 'string') {
throw new Error('flatMap expects string as second argument (path)');
return [];
}

@@ -17,0 +17,0 @@ return flatMap(array, function (element) {

{
"name": "cimpress-handlebars-helpers",
"version": "0.0.1",
"version": "0.0.2",
"description": "A set of simple handlebars helpers",

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

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