Skip to content

Commit

Permalink
drop any-promise
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxins committed Jul 4, 2020
1 parent bb8bc4c commit 885467d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 2 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@

var Promise = require('any-promise')

module.exports = function (interval) {
var timer
var promise = new Promise(function (resolve) {
let timer
let promise = new Promise(function (resolve) {
timer = setTimeout(resolve, interval || 0)
})
promise.clear = function () {
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",
"license": "MIT",
"repository": "thenables/timeout-then",
"dependencies": {
"any-promise": "^1.3.0"
},
"devDependencies": {
"bluebird": "^3.4.0",
"istanbul": "^0.4.3",
Expand Down

0 comments on commit 885467d

Please sign in to comment.