ma3route-sdk
Advanced tools
Comparing version 0.7.0 to 0.8.1
{ | ||
"baseurl": "https://www.ma3route.com/findit-api/v2/json/", | ||
"enforce_params_filter": true, | ||
"enforce_params_filter": false, | ||
"request": { | ||
@@ -5,0 +5,0 @@ "strictSSL": true, |
@@ -9,2 +9,6 @@ { | ||
}, | ||
"directions": { | ||
"create": ["townid", "fromid", "toid", "description", "cost", "alternative", "alternativecost"], | ||
"get": ["from_id", "to_id", "name"] | ||
}, | ||
"drivingReports": { | ||
@@ -11,0 +15,0 @@ "create": ["regno", "drivetype", "latitude", "longitude", "country", "email", "delete", "favorite", "unfavorite"], |
@@ -11,5 +11,5 @@ /** | ||
// own modules | ||
var generate = require("./generate"); | ||
var paramsConfig = require("./params"); | ||
@@ -24,2 +24,12 @@ | ||
getTowns: generate.newGet("towns", []), | ||
/** | ||
* Create directions | ||
* @type {itemsPostOneRequest} | ||
*/ | ||
createDirections: generate.newPostOne("directions", paramsConfig.directions.create), | ||
/** | ||
* Retrieve directions | ||
* @type {itemsGetOneRequest} | ||
*/ | ||
getDirections: generate.newGetOne("directions", paramsConfig.directions.get), | ||
}; |
@@ -26,4 +26,4 @@ /** | ||
* Poller Class. Inherits from events.EventEmitter. This poller | ||
* is designed in that you it polls for new updates automagically | ||
* rather than have you implement `lastreadId` logic. | ||
* is designed in that it polls for new updates automatically | ||
* without having you implement `lastreadId` logic. | ||
* | ||
@@ -65,3 +65,2 @@ * @example | ||
* @param {Integer} [options.interval=5000] - configures the poller's timer | ||
* @param {Object|Function} [options.params] | ||
*/ | ||
@@ -80,3 +79,2 @@ function Poller(getRequest, options) { | ||
// inherit from the EventEmitter class | ||
@@ -83,0 +81,0 @@ util.inherits(Poller, events.EventEmitter); |
@@ -41,3 +41,3 @@ /** | ||
var rawRequest = require("request"); | ||
var URI = require("URIjs"); | ||
var URI = require("urijs"); | ||
@@ -136,2 +136,4 @@ | ||
return url(options).segment("contactus"); | ||
case "directions": | ||
return url(options).segment("directions"); | ||
case "drivingReports": | ||
@@ -138,0 +140,0 @@ return url(options).segment("drivingreports"); |
{ | ||
"name": "ma3route-sdk", | ||
"version": "0.7.0", | ||
"version": "0.8.1", | ||
"description": "Node.js SDK for developing with the Ma3Route REST API", | ||
@@ -34,3 +34,3 @@ "repository": { | ||
"request":"^2.57.0", | ||
"URIjs": "^1.15.1", | ||
"urijs": "^1.16.1", | ||
"lodash": "^3.9.3", | ||
@@ -51,3 +51,4 @@ "trim-character": "^2.0.1" | ||
"mocha-lcov-reporter": "^0.0.2", | ||
"should": "^7.0.1" | ||
"should": "^7.0.1", | ||
"mocha": ">=1.20.0" | ||
}, | ||
@@ -54,0 +55,0 @@ "engines": { |
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
42416
1307
13
+ Addedurijs@^1.16.1
+ Addedurijs@1.19.11(transitive)
- RemovedURIjs@^1.15.1
- RemovedURIjs@1.16.1(transitive)