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

ebay-promised

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ebay-promised - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

20

lib/utils/index.js

@@ -141,5 +141,23 @@ // Generated by CoffeeScript 1.9.1

parsed.results = Array.isArray(arr) ? arr : [arr];
return parsed;
return utils.flatten(parsed);
};
utils.flatten = function(o) {
var i, key, len, memo, ref;
if (o.value) {
return o.value;
}
if (Array.isArray(o)) {
return o.map(flatten);
} else {
memo = {};
ref = Object.keys(o);
for (i = 0, len = ref.length; i < len; i++) {
key = ref[i];
memo[key] = o[key].value ? o[key].value : flatten(o[key]);
}
return memo;
}
};
module.exports = utils;

2

package.json
{
"name": "ebay-promised",
"version": "1.2.0",
"version": "1.2.1",
"description": "promise wrapped Ebay requests with sensible response parsers",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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