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

dominos

Package Overview
Dependencies
Maintainers
5
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dominos - npm Package Compare versions

Comparing version 3.0.2 to 3.1.0

8

modules/Tracking.js

@@ -35,10 +35,10 @@ import Is from "strong-type";

//console.log(this.dominosAPIResult);
//console.dir(this.dominosAPIResult,{depth:10});
is.object(this.dominosAPIResult['soap:Envelope']);
is.object(this.dominosAPIResult['soap:Envelope']['soap:Body']);
is.object(this.dominosAPIResult['soap:Envelope']['soap:Body'].GetTrackerDataResponse);
is.object(this.dominosAPIResult['soap:Envelope']['soap:Body'][0].GetTrackerDataResponse);
this.orders=this.dominosAPIResult['soap:Envelope']['soap:Body'].GetTrackerDataResponse.OrderStatuses;
this.query=this.dominosAPIResult['soap:Envelope']['soap:Body'].GetTrackerDataResponse.Query;
this.orders=this.dominosAPIResult['soap:Envelope']['soap:Body'][0].GetTrackerDataResponse[0].OrderStatuses;
this.query=this.dominosAPIResult['soap:Envelope']['soap:Body'][0].GetTrackerDataResponse[0].Query[0];

@@ -45,0 +45,0 @@ return this;

{
"name": "dominos",
"version": "3.0.2",
"version": "3.1.0",
"description": "node js API for Domino's pizza",

@@ -26,3 +26,3 @@ "exports": "./index.js",

"vanilla-test": "^1.4.7",
"xml2json": "^0.12.0"
"xml2js": "^0.4.23"
},

@@ -29,0 +29,0 @@ "devDependencies": {

import fetch from 'node-fetch';
import urls from './urls.js';
import {default as parser} from 'xml2json';
import {default as xml2js} from 'xml2js';

@@ -66,12 +66,6 @@ const post=async function(url, payload) {

//console.log(await res.text());
const parser = new xml2js.Parser;
return parser.toJson(
await res.text(),
{
coerce: false,
sanitize: false,
object: true,
trim: false
}
);
return await xml2js.parseStringPromise(await res.text())
}

@@ -78,0 +72,0 @@

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