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

timers-ref

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

timers-ref - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

.travis.yml

2

index.js

@@ -85,3 +85,3 @@ var EventEmitter = require('events').EventEmitter

function _clearInterval (interval) {
if (interval._interval) {
if (interval._interval) {
clearInterval(interval._interval)

@@ -88,0 +88,0 @@ }

{
"name": "timers-ref",
"description": "`setTimeout` and `setInterval` with `unref` and `ref` like in node.js",
"version": "0.1.1",
"version": "0.1.2",
"author": "Feross Aboukhadijeh <feross@feross.org> (http://feross.org/)",

@@ -10,6 +10,8 @@ "bugs": {

"dependencies": {
"process": "^0.6.0"
"process": "^0.11.0"
},
"devDependencies": {
"tape": "2.x"
"standard": "^3.7.3",
"tape": "^4.0.0",
"zuul": "^3.0.0"
},

@@ -34,14 +36,6 @@ "homepage": "https://github.com/feross/timers-ref",

"scripts": {
"test": "testling -u"
},
"testling": {
"files": "test/*.js",
"browsers": [
"ie/9..latest",
"chrome/25..latest",
"firefox/20..latest",
"safari/6..latest",
"opera/15.0..latest"
]
"test": "standard && npm run test-browser",
"test-browser": "zuul test/*.js",
"test-browser-local": "zuul --local test/*.js"
}
}

@@ -1,5 +0,12 @@

# timers-ref [![npm](https://img.shields.io/npm/v/timers-ref.svg)](https://npmjs.org/package/timers-ref)
# timers-ref [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url]
[![browser support](https://ci.testling.com/feross/timers-ref.png)](https://ci.testling.com/feross/timers-ref)
[travis-image]: https://img.shields.io/travis/feross/timers-ref.svg?style=flat
[travis-url]: https://travis-ci.org/feross/timers-ref
[npm-image]: https://img.shields.io/npm/v/timers-ref.svg?style=flat
[npm-url]: https://npmjs.org/package/timers-ref
[downloads-image]: https://img.shields.io/npm/dm/timers-ref.svg?style=flat
[downloads-url]: https://npmjs.org/package/timers-ref
[![Sauce Test Status](https://saucelabs.com/browser-matrix/timers-ref.svg)](https://saucelabs.com/u/timers-ref)
### `setTimeout` and `setInterval` with `unref` and `ref` like in node.js

@@ -6,0 +13,0 @@

@@ -6,3 +6,2 @@ var test = require('tape')

t.plan(2)
var d = Date.now()
timers.setTimeout(function (arg1, arg2) {

@@ -18,3 +17,2 @@ t.equal(arg1, 'this is arg1')

var count = 0
var d = Date.now()
var interval = timers.setInterval(function (arg1, arg2) {

@@ -21,0 +19,0 @@ count += 1

@@ -26,2 +26,1 @@ var test = require('tape')

})
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