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

mews

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mews - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

10

lib/index.js

@@ -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",

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