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

heroku-cli-addons

Package Overview
Dependencies
Maintainers
8
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-cli-addons - npm Package Compare versions

Comparing version 1.2.20 to 1.2.21

19

lib/resolve.js

@@ -25,3 +25,3 @@ 'use strict'

})
.then(singularize('addon'))
.then(singularize('addon', options.namespace))
}

@@ -47,3 +47,3 @@

})
.then(singularize('addon'))
.then(singularize('addon', options.namespace))
}

@@ -107,5 +107,10 @@

const singularize = function (type) {
const singularize = function (type, namespace) {
return (matches) => {
matches = matches.filter(m => !m.hasOwnProperty('namespace') || m.namespace === null)
if (namespace) {
matches = matches.filter(m => m.namespace === namespace)
} else if (matches.length > 1) {
// In cases that aren't specific enough, filter by namespace
matches = matches.filter(m => !m.hasOwnProperty('namespace') || m.namespace === null)
}
switch (matches.length) {

@@ -127,3 +132,3 @@ case 0:

'headers': headers, 'body': {'app': null, 'addon_attachment': id, 'addon_service': options.addon_service}
}).then(singularize('addon_attachment'))
}).then(singularize('addon_attachment', options.namespace))
.catch(function (err) { handleNotFound(err, 'add_on attachment') })

@@ -135,3 +140,3 @@ }

.then(filter(app, options.addon_service))
.then(singularize('addon_attachment'))
.then(singularize('addon_attachment', options.namespace))
}

@@ -182,3 +187,3 @@

'headers': headers, 'body': {'app': app, 'addon_attachment': id, 'addon_service': options.addon_service}
}).then(singularize('addon_attachment'))
}).then(singularize('addon_attachment', options.namespace))
}

@@ -185,0 +190,0 @@

{
"name": "heroku-cli-addons",
"description": "`heroku addons:*` commands",
"version": "1.2.20",
"version": "1.2.21",
"author": "Bo Jeanes @bjeanes",

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