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

@tride/grab-handler

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tride/grab-handler - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

10

index.js

@@ -40,6 +40,5 @@ const { create } = require("axios");

};
this.getMotorBikePrice = this.getMotorBikePrice.bind(this);
this.getEstimate = this.getEstimate.bind(this);
this.getCurrentRides = this.getCurrentRides.bind(this);
this.getEstimate = this.getMotorBikePrice;
this.requestRide = this.requestRide.bind(this);

@@ -49,3 +48,3 @@ this.cancelRide = this.cancelRide.bind(this);

async getMotorBikePrice(start = {}, end = {}) {
async getEstimate(start = {}, end = {}) {
if (!start.long || !start.lat || !end.lat || !end.long) {

@@ -88,2 +87,3 @@ throw new Error("no start or end lat/lon");

return {
service: 'grab',
price: upperBound / 100,

@@ -141,2 +141,3 @@ requestKey: {

return {
service: 'grab',
requestId: data.code

@@ -146,5 +147,6 @@ };

async getRideStatus(rideId) {
async rideStatus(rideId) {
return await this.grabBase.get(`/api/passenger/v3/rides/${rideId}/status`);
}
async getCurrentRides() {

@@ -151,0 +153,0 @@ const url = "/api/passenger/v3/current";

2

package.json
{
"name": "@tride/grab-handler",
"version": "0.4.2",
"version": "0.4.3",
"main": "index.js",

@@ -5,0 +5,0 @@ "repository": "git@github.com:trride/grab-handler.git",

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