Comparing version 1.0.78 to 1.0.79
{ | ||
"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) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20925
2
501
- Removedclient-request@^1.2.0
- Removedclient-request@1.2.2(transitive)