Socket
Socket
Sign inDemoInstall

catering

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

catering - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

next-tick-browser.js

6

index.js
'use strict'
var queueTick = require('queue-tick')
var nextTick = require('./next-tick')

@@ -26,4 +26,4 @@ exports.fromCallback = function (callback, symbol) {

promise
.then(function (res) { queueTick(() => callback(null, res)) })
.catch(function (err) { queueTick(() => callback(err)) })
.then(function (res) { nextTick(() => callback(null, res)) })
.catch(function (err) { nextTick(() => callback(err)) })
}
{
"name": "catering",
"version": "2.1.0",
"version": "2.1.1",
"description": "Simple utility to allow your module to be consumed with a callback or promise",

@@ -8,3 +8,4 @@ "license": "MIT",

"scripts": {
"test": "standard && node test.js"
"test": "standard && node test.js",
"test-browsers-local": "airtap test.js"
},

@@ -14,10 +15,14 @@ "types": "index.d.ts",

"index.js",
"index.d.ts"
"index.d.ts",
"next-tick.js",
"next-tick-browser.js"
],
"dependencies": {
"queue-tick": "^1.0.0"
"browser": {
"./next-tick.js": "./next-tick-browser.js"
},
"devDependencies": {
"standard": "^14.0.0",
"tape": "^5.0.0"
"airtap": "^4.0.4",
"airtap-playwright": "^1.0.1",
"standard": "^16.0.4",
"tape": "^5.4.0"
},

@@ -24,0 +29,0 @@ "keywords": [

@@ -6,7 +6,6 @@ # catering

[![npm status](http://img.shields.io/npm/v/catering.svg)](https://www.npmjs.org/package/catering)
[![node](https://img.shields.io/node/v/catering.svg)](https://www.npmjs.org/package/catering)
[![Travis build status](https://img.shields.io/travis/vweevers/catering.svg?label=travis)](http://travis-ci.org/vweevers/catering)
[![AppVeyor build status](https://img.shields.io/appveyor/ci/vweevers/catering.svg?label=appveyor)](https://ci.appveyor.com/project/vweevers/catering)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![npm status](https://img.shields.io/npm/v/catering.svg)](https://www.npmjs.com/package/catering)
[![Node version](https://img.shields.io/node/v/catering.svg)](https://www.npmjs.com/package/catering)
[![Test](https://img.shields.io/github/workflow/status/vweevers/catering/Test?label=test)](https://github.com/vweevers/catering/actions/workflows/test.yml)
[![Standard](https://img.shields.io/badge/standard-informational?logo=javascript&logoColor=fff)](https://standardjs.com)

@@ -13,0 +12,0 @@ ## Menu

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