Comparing version 1.0.2 to 1.0.3
@@ -7,4 +7,4 @@ const fs = require('fs'), path = require('path'), util = require('util') | ||
if(typeof fn !== 'function') fn = require(fn) | ||
if(typeof fn !== 'function') throw Error(`required file "${name}" doesn't export a function`) | ||
if(fn.length < 1) throw Error(`function "${name}" must specify at least one parameter`) | ||
if(typeof fn !== 'function') throw new Error(`required file "${name}" doesn't export a function`) | ||
if(fn.length < 1) throw new Error(`function "${name}" must specify at least one parameter`) | ||
@@ -55,3 +55,3 @@ let target = fn.length - 1, props = {}, templateProps = {}, properties = () => ({}) | ||
case 'function': | ||
if(wasObject) throw Error(`parameter ${key} can't be a function`) | ||
if(wasObject) throw new Error(`parameter ${key} can't be a function`) | ||
property.get = opts => value.call(opts) | ||
@@ -62,3 +62,3 @@ property.set = opts => () => {} | ||
case 'object': | ||
if(wasObject) throw Error(`parameter ${key} can't be an object`) | ||
if(wasObject) throw new Error(`parameter ${key} can't be an object`) | ||
@@ -71,3 +71,3 @@ if(value.get) property.get = opts => value.get.call(opts) | ||
default: throw Error(`parameter ${key} was an unexpected type`) | ||
default: throw new Error(`parameter ${key} was an unexpected type`) | ||
} | ||
@@ -74,0 +74,0 @@ |
{ | ||
"name": "mews", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "trust your output to a mews", | ||
@@ -13,2 +13,5 @@ "main": "lib/index.js", | ||
}, | ||
"engines": { | ||
"node": ">=6" | ||
}, | ||
"keywords": [ | ||
@@ -15,0 +18,0 @@ "message", |
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
11388