mirror of
https://github.com/S2-/gitlit
synced 2025-08-03 21:00:04 +02:00
remove node_modules
This commit is contained in:
2
app/node_modules/throttleit/.npmignore
generated
vendored
2
app/node_modules/throttleit/.npmignore
generated
vendored
@@ -1,2 +0,0 @@
|
||||
components
|
||||
build
|
11
app/node_modules/throttleit/History.md
generated
vendored
11
app/node_modules/throttleit/History.md
generated
vendored
@@ -1,11 +0,0 @@
|
||||
|
||||
0.0.2 / 2013-03-26
|
||||
==================
|
||||
|
||||
- Cache the return value
|
||||
- Don't use `setTimeout()`
|
||||
|
||||
0.0.1 / 2013-03-26
|
||||
==================
|
||||
|
||||
- Initial release
|
11
app/node_modules/throttleit/Makefile
generated
vendored
11
app/node_modules/throttleit/Makefile
generated
vendored
@@ -1,11 +0,0 @@
|
||||
|
||||
build: components index.js
|
||||
@component build --dev
|
||||
|
||||
components: component.json
|
||||
@component install --dev
|
||||
|
||||
clean:
|
||||
rm -fr build components template.js
|
||||
|
||||
.PHONY: clean
|
16
app/node_modules/throttleit/Readme.md
generated
vendored
16
app/node_modules/throttleit/Readme.md
generated
vendored
@@ -1,16 +0,0 @@
|
||||
|
||||
# throttle
|
||||
|
||||
Throttle a function
|
||||
|
||||
## Installation
|
||||
|
||||
$ component install component/throttle
|
||||
|
||||
## API
|
||||
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
13
app/node_modules/throttleit/component.json
generated
vendored
13
app/node_modules/throttleit/component.json
generated
vendored
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"name": "throttle",
|
||||
"repo": "component/throttle",
|
||||
"description": "Throttle a function",
|
||||
"version": "0.0.2",
|
||||
"keywords": [],
|
||||
"dependencies": {},
|
||||
"development": {},
|
||||
"license": "MIT",
|
||||
"scripts": [
|
||||
"index.js"
|
||||
]
|
||||
}
|
14
app/node_modules/throttleit/example.js
generated
vendored
14
app/node_modules/throttleit/example.js
generated
vendored
@@ -1,14 +0,0 @@
|
||||
|
||||
var throttle = require('./');
|
||||
|
||||
function onprogress(n) {
|
||||
console.log('progress %s%', n);
|
||||
}
|
||||
|
||||
onprogress = throttle(onprogress, 500);
|
||||
|
||||
var n = 0;
|
||||
setInterval(function(){
|
||||
if (n >= 100) return;
|
||||
onprogress(n++);
|
||||
}, 50);
|
30
app/node_modules/throttleit/index.js
generated
vendored
30
app/node_modules/throttleit/index.js
generated
vendored
@@ -1,30 +0,0 @@
|
||||
|
||||
/**
|
||||
* Module exports.
|
||||
*/
|
||||
|
||||
module.exports = throttle;
|
||||
|
||||
/**
|
||||
* Returns a new function that, when invoked, invokes `func` at most one time per
|
||||
* `wait` milliseconds.
|
||||
*
|
||||
* @param {Function} func The `Function` instance to wrap.
|
||||
* @param {Number} wait The minimum number of milliseconds that must elapse in between `func` invokations.
|
||||
* @return {Function} A new function that wraps the `func` function passed in.
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function throttle (func, wait) {
|
||||
var rtn; // return value
|
||||
var last = 0; // last invokation timestamp
|
||||
return function throttled () {
|
||||
var now = new Date().getTime();
|
||||
var delta = now - last;
|
||||
if (delta >= wait) {
|
||||
rtn = func.apply(this, arguments);
|
||||
last = now;
|
||||
}
|
||||
return rtn;
|
||||
};
|
||||
}
|
47
app/node_modules/throttleit/package.json
generated
vendored
47
app/node_modules/throttleit/package.json
generated
vendored
@@ -1,47 +0,0 @@
|
||||
{
|
||||
"_from": "throttleit@0.0.2",
|
||||
"_id": "throttleit@0.0.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-z+34jmDADdlpe2H90qg0OptoDq8=",
|
||||
"_location": "/throttleit",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "throttleit@0.0.2",
|
||||
"name": "throttleit",
|
||||
"escapedName": "throttleit",
|
||||
"rawSpec": "0.0.2",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "0.0.2"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/nugget"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/throttleit/-/throttleit-0.0.2.tgz",
|
||||
"_shasum": "cfedf88e60c00dd9697b61fdd2a8343a9b680eaf",
|
||||
"_spec": "throttleit@0.0.2",
|
||||
"_where": "E:\\projects\\p\\gitlit\\app\\node_modules\\nugget",
|
||||
"bugs": {
|
||||
"url": "https://github.com/component/throttle/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"component": {
|
||||
"scripts": {
|
||||
"throttle/index.js": "index.js"
|
||||
}
|
||||
},
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "Throttle a function",
|
||||
"development": {},
|
||||
"homepage": "https://github.com/component/throttle#readme",
|
||||
"keywords": [],
|
||||
"license": "MIT",
|
||||
"name": "throttleit",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/component/throttle.git"
|
||||
},
|
||||
"version": "0.0.2"
|
||||
}
|
Reference in New Issue
Block a user