Comparing version 3.0.2 to 3.1.0
@@ -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 @@ |
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
68649
1182
+ Addedxml2js@^0.4.23
+ Addedsax@1.4.1(transitive)
+ Addedxml2js@0.4.23(transitive)
+ Addedxmlbuilder@11.0.1(transitive)
- Removedxml2json@^0.12.0
- Removedbindings@1.5.0(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removedhoek@4.3.15.0.46.1.3(transitive)
- Removedisemail@3.2.0(transitive)
- Removedjoi@13.7.0(transitive)
- Removednan@2.22.0(transitive)
- Removednode-expat@2.4.1(transitive)
- Removedtopo@3.0.3(transitive)
- Removedxml2json@0.12.0(transitive)