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.1 to 3.0.2

4

package.json
{
"name": "dominos",
"version": "3.0.1",
"version": "3.0.2",
"description": "node js API for Domino's pizza",

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

"vanilla-test": "^1.4.7",
"xml2json": "^0.9.0"
"xml2json": "^0.12.0"
},

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

@@ -65,3 +65,3 @@ # Domino's Pizza API

import {Order,Customer,Item,Payment,NearbyStores} from '../index.js';
import {Order,Customer,Item,Payment,NearbyStores} from 'dominos';

@@ -197,2 +197,48 @@ //extra cheese thin crust pizza

# Legacy CommonJS support
This is for those who wish to use the `domnios api` in older code bases still using `require`. While node v12+ is still required, see the detailed info and order example in [CommonJS.md](https://github.com/RIAEvangelist/node-dominos-pizza-api/blob/master/docs/CommonJS.md) for how to include and use the module in your code.
```js
(async () => {
const dominos=await import('dominos');
//importing variables into the global like this just allows us to use the same code
//from the ESM implementation for the commonJS implementation
//This is the same as an ESM import of
//import {Address,NearbyStores,Store,Menu,Customer,Item,Image,Order,Payment,Tracking,urls,IsDominos} from 'dominos'
Object.assign(global,dominos);
//need to await dominos promise completion
//because ES6 is async by nature
start();
})()
function start(){
//any of the ESM examples from the other docs will work as is here
//because we mimiced an ESM import above.
const n='\n';
console.log(
n,
Address,n,
NearbyStores,n,
Store,n,
Menu,n,
Customer,n,
Item,n,
Image,n,
Order,n,
Payment,n,
Tracking,n,
urls,n,
IsDominos,n
);
}
```
---

@@ -199,0 +245,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