Socket
Socket
Sign inDemoInstall

@voiceflow/common

Package Overview
Dependencies
Maintainers
8
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voiceflow/common - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

10

lib/utils.js

@@ -50,6 +50,2 @@ 'use strict';

static check(object, path, type) {
if (typeof path !== 'string') {
throw new Error('type check path is not defined');
}
if (object === undefined) {

@@ -62,4 +58,6 @@ throw new Error('type check object is not defined');

if (!_[(`is${type}`)](_.get(object, path))) {
throw new Error(`${path} must be a ${type.toLowerCase()}`);
if (path) object = _.get(object, path);
if (!_[(`is${type}`)](object)) {
throw new Error(`${path || 'check object'} must be a ${type.toLowerCase()}`);
}

@@ -66,0 +64,0 @@ }

2

package.json
{
"name": "@voiceflow/common",
"description": "Junk drawer of utility functions",
"version": "1.1.0",
"version": "1.1.1",
"author": "Voiceflow",

@@ -6,0 +6,0 @@ "bugs": {

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