UNPKG

@esm2cjs/p-timeout

Version:

Timeout a promise after a specified amount of time. This is a fork of sindresorhus/p-timeout, but with CommonJS support.

78 lines (77 loc) 1.33 kB
{ "name": "@esm2cjs/p-timeout", "version": "6.1.2", "description": "Timeout a promise after a specified amount of time. This is a fork of sindresorhus/p-timeout, but with CommonJS support.", "license": "MIT", "repository": "esm2cjs/p-timeout", "funding": "https://github.com/sponsors/AlCalzone", "author": { "name": "Dominic Griesel", "email": "d.griesel@gmx.net" }, "exports": { ".": { "import": "./esm/index.js", "require": "./cjs/index.js" }, "./package.json": "./package.json" }, "types": "esm/index.d.ts", "engines": { "node": ">=14.16" }, "scripts": { "test": "xo && ava && tsd" }, "files": [ "cjs/", "esm/" ], "keywords": [ "promise", "timeout", "error", "invalidate", "async", "await", "promises", "time", "out", "cancel", "bluebird" ], "devDependencies": { "ava": "^4.3.1", "delay": "^5.0.0", "in-range": "^3.0.0", "p-cancelable": "^4.0.1", "time-span": "^5.1.0", "tsd": "^0.22.0", "xo": "^0.54.2" }, "publishConfig": { "access": "public" }, "main": "cjs/index.js", "module": "esm/index.js", "typesVersions": { "*": { "esm/index.d.ts": [ "esm/index.d.ts" ], "cjs/index.d.ts": [ "esm/index.d.ts" ], "*": [ "esm/*" ] } }, "xo": { "ignores": [ "cjs", "**/*.test-d.ts", "**/*.d.ts" ] } }