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

vigour-util

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vigour-util - npm Package Compare versions

Comparing version 3.0.5 to 3.1.0

15

define.js

@@ -42,7 +42,16 @@ 'use strict'

for (let key in val) {
if (typeof val[key] !== 'function') {
let type = typeof val[key]
if (type === 'object') {
let value = {}
let obj = val[key]
for (let i in obj) {
value[i] = createExtension(obj[i], target[key][i])
}
val[key] = (target.define || define).call(target, { [key]: { value } })
} else if (type !== 'function') {
throw new Error(`Expect function for extension "${key}"`)
} else {
val[key] = (target.define || define)
.call(target, { [key]: createExtension(val[key], target[key]) })
}
val[key] = (target.define || define)
.call(target, { [key]: createExtension(val[key], target[key]) })
}

@@ -49,0 +58,0 @@ }

2

package.json
{
"name": "vigour-util",
"version": "3.0.5",
"version": "3.1.0",
"author": "Vigour.io <dev@vigour.io>",

@@ -5,0 +5,0 @@ "scripts": {

@@ -1,2 +0,2 @@

'use strict'
'use strict'
var Module = require('module')

@@ -3,0 +3,0 @@ var assert = require('assert')

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