Commit 3588e0dc authored by wildfirecode13's avatar wildfirecode13

1

parent 19c83cab
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "teddi",
"version": "1.0.11",
"version": "1.0.14",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@rollup/plugin-commonjs": {
"version": "17.0.0",
"resolved": "http://npm.dui88.com:80/@rollup%2fplugin-commonjs/-/plugin-commonjs-17.0.0.tgz",
"integrity": "sha1-KuIig1TPD7umz58G8wssZql0Mkw=",
"dev": true,
"requires": {
"@rollup/pluginutils": "^3.1.0",
"commondir": "^1.0.1",
"estree-walker": "^2.0.1",
"glob": "^7.1.6",
"is-reference": "^1.2.1",
"magic-string": "^0.25.7",
"resolve": "^1.17.0"
},
"dependencies": {
"estree-walker": {
"version": "2.0.1",
"resolved": "http://npm.dui88.com:80/estree-walker/-/estree-walker-2.0.1.tgz",
"integrity": "sha1-+OAw+yHO+hg7RLetUWt0dDTno+A=",
"dev": true
}
}
},
"@rollup/plugin-node-resolve": {
"version": "11.0.0",
"resolved": "http://npm.dui88.com:80/@rollup%2fplugin-node-resolve/-/plugin-node-resolve-11.0.0.tgz",
"integrity": "sha1-dwRY+yZpGmhsXynzfd7ZSDL/zlk=",
"dev": true,
"requires": {
"@rollup/pluginutils": "^3.1.0",
"@types/resolve": "1.17.1",
"builtin-modules": "^3.1.0",
"deepmerge": "^4.2.2",
"is-module": "^1.0.0",
"resolve": "^1.19.0"
}
},
"@rollup/plugin-typescript": {
"version": "8.0.0",
"resolved": "http://npm.dui88.com:80/@rollup%2fplugin-typescript/-/plugin-typescript-8.0.0.tgz",
"integrity": "sha1-1iHZ4mjvWRyeQ5ZQ9VDF/8U1RcE=",
"dev": true,
"requires": {
"@rollup/pluginutils": "^3.1.0",
"resolve": "^1.17.0"
}
},
"@rollup/pluginutils": {
"version": "3.1.0",
"resolved": "http://npm.dui88.com:80/@rollup%2fpluginutils/-/pluginutils-3.1.0.tgz",
"integrity": "sha1-cGtFJO5tyLEDs8mVUz5a1oDAK5s=",
"dev": true,
"requires": {
"@types/estree": "0.0.39",
"estree-walker": "^1.0.1",
"picomatch": "^2.2.2"
}
},
"@types/estree": {
"version": "0.0.39",
"resolved": "http://npm.dui88.com:80/@types%2festree/-/estree-0.0.39.tgz",
"integrity": "sha1-4Xfmme4bjCLSMXTKqnQiZEOJUJ8=",
"dev": true
},
"@types/node": {
"version": "14.14.10",
"resolved": "http://npm.dui88.com:80/@types%2fnode/-/node-14.14.10.tgz",
"integrity": "sha1-WVioLkGGPPxx8jB7N0jjSRugN4U=",
"dev": true
},
"@types/resolve": {
"version": "1.17.1",
"resolved": "http://npm.dui88.com:80/@types%2fresolve/-/resolve-1.17.1.tgz",
"integrity": "sha1-Ov1q2JZ8d+Q3bFmKgt3Vj0bsRdY=",
"dev": true,
"requires": {
"@types/node": "*"
}
},
"accepts": {
"version": "1.3.7",
"resolved": "http://npm.dui88.com:80/accepts/-/accepts-1.3.7.tgz",
......@@ -519,6 +598,12 @@
"integrity": "sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8=",
"dev": true
},
"builtin-modules": {
"version": "3.1.0",
"resolved": "http://npm.dui88.com:80/builtin-modules/-/builtin-modules-3.1.0.tgz",
"integrity": "sha1-qtl8FRMet2tltQ7yCOdYTNdqdIQ=",
"dev": true
},
"bytes": {
"version": "3.1.0",
"resolved": "http://npm.dui88.com:80/bytes/-/bytes-3.1.0.tgz",
......@@ -735,6 +820,12 @@
"integrity": "sha1-/UhehMA+tIgcIHIrpIA16FMa6zM=",
"dev": true
},
"commondir": {
"version": "1.0.1",
"resolved": "http://npm.dui88.com:80/commondir/-/commondir-1.0.1.tgz",
"integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",
"dev": true
},
"component-bind": {
"version": "1.0.0",
"resolved": "http://npm.dui88.com:80/component-bind/-/component-bind-1.0.0.tgz",
......@@ -868,6 +959,12 @@
"integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=",
"dev": true
},
"deepmerge": {
"version": "4.2.2",
"resolved": "http://npm.dui88.com:80/deepmerge/-/deepmerge-4.2.2.tgz",
"integrity": "sha1-RNLqNnm49NT/ujPwPYZfwee/SVU=",
"dev": true
},
"default-compare": {
"version": "1.0.0",
"resolved": "http://npm.dui88.com:80/default-compare/-/default-compare-1.0.0.tgz",
......@@ -1181,6 +1278,12 @@
"integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=",
"dev": true
},
"estree-walker": {
"version": "1.0.1",
"resolved": "http://npm.dui88.com:80/estree-walker/-/estree-walker-1.0.1.tgz",
"integrity": "sha1-MbxdYSyWtwQQa0d+bdXYqhOMtwA=",
"dev": true
},
"etag": {
"version": "1.8.1",
"resolved": "http://npm.dui88.com:80/etag/-/etag-1.8.1.tgz",
......@@ -2564,6 +2667,12 @@
"is-extglob": "^2.1.1"
}
},
"is-module": {
"version": "1.0.0",
"resolved": "http://npm.dui88.com:80/is-module/-/is-module-1.0.0.tgz",
"integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=",
"dev": true
},
"is-negated-glob": {
"version": "1.0.0",
"resolved": "http://npm.dui88.com:80/is-negated-glob/-/is-negated-glob-1.0.0.tgz",
......@@ -2594,6 +2703,15 @@
"isobject": "^3.0.1"
}
},
"is-reference": {
"version": "1.2.1",
"resolved": "http://npm.dui88.com:80/is-reference/-/is-reference-1.2.1.tgz",
"integrity": "sha1-iy2sCzcfS8mU/eq6nrVC0DAC0Lc=",
"dev": true,
"requires": {
"@types/estree": "*"
}
},
"is-relative": {
"version": "1.0.0",
"resolved": "http://npm.dui88.com:80/is-relative/-/is-relative-1.0.0.tgz",
......@@ -2828,6 +2946,15 @@
"integrity": "sha1-GLEjFCgyM33W6WTfGlp3B7JdNeE=",
"dev": true
},
"magic-string": {
"version": "0.25.7",
"resolved": "http://npm.dui88.com:80/magic-string/-/magic-string-0.25.7.tgz",
"integrity": "sha1-P0l9b9NMZpxnmNy4IfLvMfVEUFE=",
"dev": true,
"requires": {
"sourcemap-codec": "^1.4.4"
}
},
"make-iterator": {
"version": "1.0.1",
"resolved": "http://npm.dui88.com:80/make-iterator/-/make-iterator-1.0.1.tgz",
......@@ -3826,6 +3953,15 @@
"integrity": "sha1-uKSCXVvbH8P29Twrwz+BOIaBx7w=",
"dev": true
},
"rollup": {
"version": "2.34.0",
"resolved": "http://npm.dui88.com:80/rollup/-/rollup-2.34.0.tgz",
"integrity": "sha1-7Mfx1M4suIu1G+wvVrmE88NbgnE=",
"dev": true,
"requires": {
"fsevents": "~2.1.2"
}
},
"rx": {
"version": "4.1.0",
"resolved": "http://npm.dui88.com:80/rx/-/rx-4.1.0.tgz",
......@@ -4364,6 +4500,12 @@
"integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=",
"dev": true
},
"sourcemap-codec": {
"version": "1.4.8",
"resolved": "http://npm.dui88.com:80/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",
"integrity": "sha1-6oBL2UhXQC5pktBaOO8a41qatMQ=",
"dev": true
},
"sparkles": {
"version": "1.0.1",
"resolved": "http://npm.dui88.com:80/sparkles/-/sparkles-1.0.1.tgz",
......@@ -4687,6 +4829,12 @@
"integrity": "sha1-fhvjRw8ed5SLxD2Uo8j013UrpVM=",
"dev": true
},
"tslib": {
"version": "2.0.3",
"resolved": "http://npm.dui88.com:80/tslib/-/tslib-2.0.3.tgz",
"integrity": "sha1-jgdBrEX8DCJuWKF7/D5kubxsphw=",
"dev": true
},
"type": {
"version": "1.2.0",
"resolved": "http://npm.dui88.com:80/type/-/type-1.2.0.tgz",
......@@ -4769,9 +4917,9 @@
"dev": true
},
"typescript": {
"version": "4.0.5",
"resolved": "http://npm.dui88.com:80/typescript/-/typescript-4.0.5.tgz",
"integrity": "sha1-rp3d/RBp8ctb6z7zshcN18EzI4k=",
"version": "4.1.2",
"resolved": "http://npm.dui88.com:80/typescript/-/typescript-4.1.2.tgz",
"integrity": "sha1-Y2nvIlFv5eEDBKrlpcSGLbVTgOk=",
"dev": true
},
"ua-parser-js": {
......
......@@ -4,8 +4,10 @@
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"browser": "dist/teddi.umd.js",
"scripts": {
"build": "tsc",
"build2": "rollup -c",
"doc": "gulp build",
"watch": "gulp watch",
"test": "echo \"Error: no test specified\" && exit 1"
......@@ -20,10 +22,15 @@
"svgaplayerweb": "^2.3.1"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^11.0.0",
"@rollup/plugin-typescript": "^8.0.0",
"browser-sync": "^2.26.13",
"gulp": "^4.0.2",
"gulp-typedoc": "^2.2.5",
"rollup": "^2.34.0",
"tslib": "^2.0.3",
"typedoc": "^0.19.2",
"typescript": "^4.0.5"
"typescript": "^4.1.2"
}
}
......@@ -5,7 +5,7 @@ export class Timer extends EventEmitter<any> {
repeatCount;
delay;
currentCount;
_timer: number | undefined;
_timer;
constructor(repeatCount: number, delay = 1000) {
super();
this.repeatCount = repeatCount;
......
......@@ -9,7 +9,7 @@ export const getDateTimer = () => {
* @param ms
*/
export const wait = (ms:number) => {
return new Promise((resolve, reject) => {
return new Promise<void>((resolve, reject) => {
setTimeout(() => {
resolve();
}, ms);
......
......@@ -4,7 +4,7 @@
* @param wait 等待时间,单位毫秒,默认2000
*/
export const debounce = (fn:Function, wait=2000, immediate = true) => {
let timer:number|null;
let timer;
return function () {
if (timer) clearTimeout(timer)
if (immediate) {
......
{
"compilerOptions": {
"noImplicitAny": true,
"noImplicitAny": false,
"target": "es5",
"module": "commonjs",
"declaration": true,
"outDir": "./dist",
"declarationDir": "./dist",
"strict": true,
"strict": false,
"lib": [
"DOM",
"ES2015",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment