Socket
Socket
Sign inDemoInstall

one-time

Package Overview
Dependencies
0
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

6

index.js

@@ -6,2 +6,3 @@ 'use strict';

*
* @param {Function} fn Function that should only be called once.
* @returns {Function} A wrapped callback which prevents execution.

@@ -18,4 +19,7 @@ * @api public

called = true;
return (value = fn.apply(this, arguments));
value = fn.apply(this, arguments);
fn = null;
return value;
};
};

2

package.json
{
"name": "one-time",
"version": "0.0.2",
"version": "0.0.3",
"description": "Run the supplied function exactly one time (once)",

@@ -5,0 +5,0 @@ "main": "index.js",

# one-time
[![Build Status](https://travis-ci.org/unshiftio/one-time.svg?branch=master)](https://travis-ci.org/unshiftio/one-time)
[![NPM version](https://badge.fury.io/js/one-time.svg)](http://badge.fury.io/js/one-time)
[![Coverage Status](https://img.shields.io/coveralls/unshiftio/one-time.svg)](https://coveralls.io/r/unshiftio/one-time?branch=master)
[![Made by unshift](https://img.shields.io/badge/made%20by-unshift-00ffcc.svg?style=flat-square)](http://unshift.io)[![Version npm](http://img.shields.io/npm/v/one-time.svg?style=flat-square)](http://browsenpm.org/package/one-time)[![Build Status](http://img.shields.io/travis/unshiftio/one-time/master.svg?style=flat-square)](https://travis-ci.org/unshiftio/one-time)[![Dependencies](https://img.shields.io/david/unshiftio/one-time.svg?style=flat-square)](https://david-dm.org/unshiftio/one-time)[![Coverage Status](http://img.shields.io/coveralls/unshiftio/one-time/master.svg?style=flat-square)](https://coveralls.io/r/unshiftio/one-time?branch=master)[![IRC channel](http://img.shields.io/badge/IRC-irc.freenode.net%23unshift-00a8ff.svg?style=flat-square)](http://webchat.freenode.net/?channels=unshift)

@@ -7,0 +5,0 @@ Call the supplied function exactly one time. This prevents double callback

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc