billogramapi
Advanced tools
Comparing version 1.2.7 to 1.3.0
@@ -16,2 +16,13 @@ 'use strict'; | ||
function makeRequestJson(fn, uri, data, options, callback) { | ||
fn(uri, data, options) | ||
.on('complete', function (result) { | ||
if (result instanceof Error) { | ||
callback(result); | ||
} else { | ||
callback(null, result); | ||
} | ||
}); | ||
} | ||
function makeRequest(fn, uri, options, callback) { | ||
@@ -46,3 +57,3 @@ fn(uri, options) | ||
makeRequest( | ||
makeRequestJson( | ||
rest.postJson, this.baseUri, customerData, | ||
@@ -49,0 +60,0 @@ { |
{ | ||
"name": "billogramapi", | ||
"version": "1.2.7", | ||
"version": "1.3.0", | ||
"description": "Wrapper for Billograms API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
2461
72