UNPKG

throttle-typescript

Version:

Helper that returns a throttled function (TypeScript types included - works without TypeScript also)

70 lines (69 loc) 2.14 kB
{ "name": "throttle-typescript", "version": "1.1.0", "description": "Helper that returns a throttled function (TypeScript types included - works without TypeScript also)", "main": "./dist/index.js", "types": "./dist/index.d.ts", "author": "Ben Meyrick <bameyrick@gmail.com>", "repository": { "type": "git", "url": "git://github.com/bameyrick/throttle-typescript.git" }, "keywords": [ "throttle", "throttled", "function", "typescript", "types" ], "license": "MIT", "scripts": { "build": "yarn lint && tsc -p tsconfig.json --outDir dist/", "lint": "tslint src/*.ts", "test": "KARMA_SINGLE_RUN=false karma start ./karma.conf.js", "test-single": "yarn tidy-clean && yarn lint && yarn karma start ./karma.conf.js", "lint-staged": "lint-staged", "precommit": "lint-staged", "postcommit": "yarn run prepublishOnly", "tslint-check": "tslint-config-prettier-check ./tslint.json", "tidy-clean": "rm -rf dist coverage" }, "lint-staged": { "*.ts": [ "tslint src/*.ts", "karma start ./karma.conf.js", "prettier --print-width 140 --use-tabs --single-quote --trailing-comma es5 --parser typescript --write" ], "*.json": [ "prettier --print-width 140 --use-tabs --single-quote --trailing-comma es5 --parser json --write" ], "*.js": [ "prettier --print-width 140 --use-tabs --single-quote --trailing-comma es5 --parser babylon --write" ] }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "devDependencies": { "@types/jasmine": "^3.7.7", "codecov": "^3.8.2", "eslint": "^7.29.0", "husky": "^6.0.0", "jasmine-core": "^3.7.1", "karma": "^6.3.4", "karma-chrome-launcher": "^3.1.0", "karma-cli": "^2.0.0", "karma-coverage-istanbul-reporter": "^3.0.3", "karma-jasmine": "^4.0.1", "karma-typescript": "^5.5.1", "karma-typescript-es6-transform": "^5.5.1", "lint-staged": "^11.0.0", "prettier": "^2.3.1", "puppeteer": "^10.0.0", "tslint": "^6.1.3", "tslint-config-prettier": "^1.18.0", "typescript": "^4.3.4" } }