Socket
Socket
Sign inDemoInstall

yow

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yow - npm Package Compare versions

Comparing version 1.0.78 to 1.0.79

3

package.json
{
"name": "yow",
"version": "1.0.78",
"version": "1.0.79",
"description": "You Only Wish module",

@@ -26,3 +26,2 @@ "main": "yow.js",

"dependencies": {
"client-request": "^1.2.0",
"extend": "^3.0.0",

@@ -29,0 +28,0 @@ "sprintf-js": "^1.0.3"

@@ -113,2 +113,28 @@

if (isString(params.path) && isObject(params.params)) {
var parts = [];
params.path.split('/').forEach(function(part) {
var match = part.match('^:([_$@A-Za-z0-9]+)$');
if (!match)
match = part.match('^{([_$@A-Za-z0-9]+)}$');
if (match) {
var name = match[1];
if (params.params[name] != undefined) {
parts.push(params.params[name]);
}
else
parts.push(part);
}
else
parts.push(part);
});
params.path = parts.join('/');
}
if (isObject(params.query)) {

@@ -125,2 +151,5 @@ params.query = querystring.stringify(params.query);

if (params.debug) {
console.log('Request:', params);
}

@@ -127,0 +156,0 @@ var request = iface.request(params, function(response) {

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