Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ma3route-sdk

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ma3route-sdk - npm Package Compare versions

Comparing version 0.7.0 to 0.8.1

2

config.json
{
"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": {

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