@github/mini-throttle
Advanced tools
Comparing version 2.0.1 to 2.1.0
import { ThrottleOptions } from './index'; | ||
export declare function throttle(wait?: number, opts?: ThrottleOptions): (proto: unknown, name: string, descriptor: PropertyDescriptor) => void; | ||
export declare function debounce(wait?: number, opts?: ThrottleOptions): (proto: unknown, name: string, descriptor: PropertyDescriptor) => void; | ||
export declare function throttle(wait?: number, opts?: ThrottleOptions): MethodDecorator; | ||
export declare function debounce(wait?: number, opts?: ThrottleOptions): MethodDecorator; | ||
//# sourceMappingURL=decorators.d.ts.map |
import { ThrottleOptions } from './index'; | ||
export declare function throttle(wait?: number, opts?: ThrottleOptions): (proto: unknown, name: string, descriptor: PropertyDescriptor) => void; | ||
export declare function debounce(wait?: number, opts?: ThrottleOptions): (proto: unknown, name: string, descriptor: PropertyDescriptor) => void; | ||
export declare function throttle(wait?: number, opts?: ThrottleOptions): MethodDecorator; | ||
export declare function debounce(wait?: number, opts?: ThrottleOptions): MethodDecorator; | ||
//# sourceMappingURL=decorators.d.ts.map |
@@ -12,2 +12,3 @@ (function (factory) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.debounce = exports.throttle = void 0; | ||
const index_1 = require("./index"); | ||
@@ -14,0 +15,0 @@ function throttle(wait = 0, opts = {}) { |
@@ -12,2 +12,3 @@ (function (factory) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.debounce = exports.throttle = void 0; | ||
function throttle(callback, wait = 0, { start = true, middle = true, once = false } = {}) { | ||
@@ -14,0 +15,0 @@ let last = 0; |
{ | ||
"name": "@github/mini-throttle", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "", | ||
@@ -20,2 +20,3 @@ "repository": { | ||
"types": "dist/index.d.ts", | ||
"sideEffects": false, | ||
"scripts": { | ||
@@ -35,6 +36,7 @@ "prebuild": "npm run clean && npm run lint && mkdir dist", | ||
"extends": [ | ||
"plugin:github/recommended", | ||
"plugin:github/browser", | ||
"plugin:github/es6", | ||
"plugin:github/typescript", | ||
"plugin:escompat/recommended" | ||
"plugin:escompat/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
@@ -54,2 +56,3 @@ "rules": { | ||
}, | ||
"prettier": "@github/prettier-config", | ||
"eslintIgnore": [ | ||
@@ -59,14 +62,17 @@ "dist/" | ||
"devDependencies": { | ||
"@types/chai": "^4.2.11", | ||
"@types/mocha": "^7.0.2", | ||
"@typescript-eslint/parser": "^2.25.0", | ||
"chai": "^4.2.0", | ||
"eslint": "^6.8.0", | ||
"eslint-plugin-compat": "^3.5.1", | ||
"eslint-plugin-escompat": "^1.1.0", | ||
"eslint-plugin-github": "^3.4.1", | ||
"mocha": "^7.1.1", | ||
"ts-node": "^8.8.1", | ||
"typescript": "^3.8.3" | ||
"@github/prettier-config": "0.0.4", | ||
"@types/chai": "^4.2.15", | ||
"@types/mocha": "^8.2.1", | ||
"@typescript-eslint/eslint-plugin": "^4.15.2", | ||
"@typescript-eslint/parser": "^4.15.2", | ||
"chai": "^4.3.0", | ||
"eslint": "^7.20.0", | ||
"eslint-plugin-compat": "^3.9.0", | ||
"eslint-plugin-escompat": "^3.1.0", | ||
"eslint-plugin-github": "^4.1.1", | ||
"mocha": "^8.3.0", | ||
"prettier": "^2.2.1", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.1.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14803
188
14