Selaa lähdekoodia

Updates dependencies & switches to lodash-es

main
Eric Amodio 6 vuotta sitten
vanhempi
commit
8c27adb1ec
3 muutettua tiedostoa jossa 795 lisäystä ja 437 poistoa
  1. +788
    -428
      package-lock.json
  2. +4
    -4
      package.json
  3. +3
    -5
      src/system/function.ts

+ 788
- 428
package-lock.json
File diff suppressed because it is too large
Näytä tiedosto


+ 4
- 4
package.json Näytä tiedosto

@ -4311,13 +4311,13 @@
"clipboardy": "1.2.3",
"date-fns": "1.29.0",
"iconv-lite": "0.4.24",
"lodash.debounce": "4.0.8",
"lodash.once": "4.1.1",
"lodash-es": "4.17.11",
"tslib": "1.9.3"
},
"devDependencies": {
"@types/clipboardy": "1.1.0",
"@types/node": "8.10.36",
"@types/lodash-es": "4.17.1",
"@types/node": "8.10.37",
"clean-webpack-plugin": "0.1.19",
"css-loader": "1.0.1",
"filemanager-webpack-plugin": "2.0.5",
@ -4326,7 +4326,7 @@
"imagemin-webpack-plugin": "2.3.0",
"mini-css-extract-plugin": "0.4.4",
"node-sass": "4.10.0",
"prettier": "1.15.1",
"prettier": "1.15.2",
"prettier-tslint": "0.4.0",
"sass-loader": "7.1.0",
"size-plugin": "1.0.1",

+ 3
- 5
src/system/function.ts Näytä tiedosto

@ -1,9 +1,7 @@
'use strict';
import { debounce as _debounce, once as _once } from 'lodash-es';
import { CancellationToken, Disposable } from 'vscode';
const _debounce = require('lodash.debounce');
const _once = require('lodash.once');
export interface IDeferrable {
cancel(): void;
flush(...args: any[]): void;
@ -37,7 +35,7 @@ export namespace Functions {
});
}
export function debounce<T extends Function>(
export function debounce<T extends (...args: any[]) => any>(
fn: T,
wait?: number,
options?: { leading?: boolean; maxWait?: number; track?: boolean; trailing?: boolean }
@ -82,7 +80,7 @@ export namespace Functions {
return (typeof o === 'object' || typeof o === 'function') && typeof o.then === 'function';
}
export function once<T extends Function>(fn: T): T {
export function once<T extends (...args: any[]) => any>(fn: T): T {
return _once(fn);
}

Ladataan…
Peruuta
Tallenna