producteca-sdk
Advanced tools
Comparing version 8.8.0 to 8.9.0
[Finishes #ID](https://www.pivotaltracker.com/story/show/ID) | ||
- [ ] App levantada, probada y con los tests corridos! [👌](https://c.tenor.com/joILBoleQeoAAAAC/ricky-fort.gif) |
(function() { | ||
var Client, Promise, _, request, | ||
var Client, Promise, _, debug, request, | ||
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | ||
@@ -9,2 +9,4 @@ | ||
debug = require("debug")("producteca-sdk:client"); | ||
request = require("request-promise"); | ||
@@ -75,2 +77,3 @@ | ||
} | ||
debug(JSON.stringify(options)); | ||
return request(options).promise(); | ||
@@ -77,0 +80,0 @@ }; |
@@ -45,3 +45,3 @@ (function() { | ||
SalesOrdersApi.prototype.getByIntegration = function(arg, overrideApp) { | ||
SalesOrdersApi.prototype.getByIntegration = function(arg, overrideApp, opts) { | ||
var app, integrationId, qs; | ||
@@ -57,8 +57,8 @@ integrationId = arg.integrationId, app = arg.app; | ||
} | ||
return this.client.getAsync("/salesorders/byintegration", { | ||
return this.client.getAsync("/salesorders/byintegration", _.merge({ | ||
qs: qs | ||
}); | ||
}, opts)); | ||
}; | ||
SalesOrdersApi.prototype.getByInvoiceIntegration = function(arg) { | ||
SalesOrdersApi.prototype.getByInvoiceIntegration = function(arg, opts) { | ||
var app, invoiceIntegrationId, qs; | ||
@@ -70,9 +70,9 @@ invoiceIntegrationId = arg.invoiceIntegrationId, app = arg.app; | ||
}; | ||
return this.client.getAsync("/salesorders/byinvoiceintegration", { | ||
return this.client.getAsync("/salesorders/byinvoiceintegration", _.merge({ | ||
qs: qs | ||
}); | ||
}, opts)); | ||
}; | ||
SalesOrdersApi.prototype.getWithFullProducts = function(id) { | ||
return this.get(id).then((function(_this) { | ||
SalesOrdersApi.prototype.getWithFullProducts = function(id, opts) { | ||
return this.get(id, opts).then((function(_this) { | ||
return function(salesOrder) { | ||
@@ -79,0 +79,0 @@ var productIds; |
{ | ||
"name": "producteca-sdk", | ||
"version": "8.9.0", | ||
"description": "SDK for querying the Producteca's API", | ||
"main": "build/sdk.js", | ||
"repository": { | ||
@@ -8,6 +10,10 @@ "type": "git", | ||
}, | ||
"version": "8.8.0", | ||
"main": "build/sdk.js", | ||
"author": "Producteca", | ||
"bugs": { | ||
"url": "https://github.com/Parsimotion/producteca-sdk/issues" | ||
}, | ||
"homepage": "https://github.com/Parsimotion/producteca-sdk#readme", | ||
"dependencies": { | ||
"bluebird": "^3.4.1", | ||
"debug": "^4.3.2", | ||
"jwt-simple": "^0.5.1", | ||
@@ -39,4 +45,7 @@ "lodash": "^4.13.1", | ||
"test": "grunt test", | ||
"prepublish": "grunt build" | ||
"preversion": "npm test", | ||
"version": "git add package.json", | ||
"postversion": "git push origin master && git push origin master --tags && npm publish", | ||
"prepublishOnly": "grunt build" | ||
} | ||
} |
@@ -16,1 +16,6 @@ # Producteca SDK | ||
- The APIs are now divided in different classes (ContactsApi, ProductsApi, SalesOrdersApi). | ||
## Publish instructions | ||
`npm version [<newversion> | major | minor | patch | ...] [-m <commit message>]` | ||
It would be ideal to write a brief description for the GitHub release after the publication. |
Sorry, the diff of this file is not supported yet
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
100845
0
869
0
0
20
7
+ Addeddebug@^4.3.2
+ Addeddebug@4.3.7(transitive)
+ Addedms@2.1.3(transitive)