mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 02:42:48 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
17
node_modules/timers-ext/.lint
generated
vendored
Normal file
17
node_modules/timers-ext/.lint
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
@root
|
||||
|
||||
es5
|
||||
module
|
||||
|
||||
tabs
|
||||
indent 2
|
||||
maxlen 100
|
||||
|
||||
ass
|
||||
nomen
|
||||
plusplus
|
||||
|
||||
predef+ clearInterval, clearTimeout, setInterval, setTimeout
|
||||
|
||||
./once.js
|
||||
bitwise
|
||||
4
node_modules/timers-ext/.npmignore
generated
vendored
Normal file
4
node_modules/timers-ext/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
.DS_Store
|
||||
/node_modules
|
||||
/npm-debug.log
|
||||
/.lintcache
|
||||
9
node_modules/timers-ext/.travis.yml
generated
vendored
Normal file
9
node_modules/timers-ext/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- 0.8
|
||||
- 0.10
|
||||
- 0.11
|
||||
|
||||
notifications:
|
||||
email:
|
||||
- medikoo+timers-ext@medikoo.com
|
||||
10
node_modules/timers-ext/CHANGES
generated
vendored
Normal file
10
node_modules/timers-ext/CHANGES
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
v0.1.0 -- 2014.04.27
|
||||
First production ready version
|
||||
- Depend strictly on npm hosted package versions
|
||||
- Full documentation
|
||||
- Add `once` (moved from next-tick project)
|
||||
- Make timeout value optional in delay
|
||||
- Rename MAX_VALUE into MAX_TIMEOUT
|
||||
|
||||
v0.0.0 -- 2013.08.27
|
||||
Initial (dev) version
|
||||
19
node_modules/timers-ext/LICENCE
generated
vendored
Normal file
19
node_modules/timers-ext/LICENCE
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (C) 2013 Mariusz Nowak (www.medikoo.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
55
node_modules/timers-ext/README.md
generated
vendored
Normal file
55
node_modules/timers-ext/README.md
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
# timers-ext
|
||||
## Timers extensions
|
||||
|
||||
### Installation
|
||||
|
||||
$ npm install timers-ext
|
||||
|
||||
To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)
|
||||
|
||||
### API
|
||||
|
||||
#### MAX\_TIMEOUT _(timers-ext/max-timeout)_
|
||||
|
||||
Maximum possible timeout value in milliseconds. It equals to maximum positive value for 32bit signed integer, so _2³¹ (2147483647)_, which makes it around 24.9 days
|
||||
|
||||
#### delay(fn[, timeout]) _(timers-ext/delay)_
|
||||
|
||||
Returns function which when invoked will call _fn_ function after specified
|
||||
_timeout_. If _timeout_ is not provided [nextTick](https://github.com/medikoo/next-tick/#next-tick) propagation is used.
|
||||
|
||||
#### once(fn[, timeout]) _(timers-ext/timeout)_
|
||||
|
||||
Makes sure _fn_ function is invoked only once in given _timeout_ span. If _timeout_ is not provided [nextTick](https://github.com/medikoo/next-tick/#next-tick) propagation is used.
|
||||
|
||||
|
||||
```javascript
|
||||
var nextTick = require('next-tick');
|
||||
var logFoo = function () { console.log('foo'); };
|
||||
var logFooOnce = require('timers-ext/once')(logFoo);
|
||||
|
||||
logFooOnce();
|
||||
logFooOnce(); // ignored, logFoo will be logged only once
|
||||
logFooOnce(); // ignored
|
||||
|
||||
|
||||
nextTick(function () {
|
||||
logFooOnce(); // Invokes another log (as tick passed)
|
||||
logFooOnce(); // ignored
|
||||
logFooOnce(); // ignored
|
||||
});
|
||||
|
||||
```
|
||||
|
||||
#### validTimeout(timeout) _(timers-ext/valid-timeout)_
|
||||
|
||||
Validates timeout value.
|
||||
For `NaN` resolved _timeout_ `0` is returned.
|
||||
If _timeout_ resolves to a number:
|
||||
- for _timeout < 0_ `0` is returned
|
||||
- for _0 >= timeout <= [MAX_TIMEOUT](#max_timeout-timers-extmax-timeout)_, `timeout` value is returned
|
||||
- for _timeout > [MAX_TIMEOUT](#max_timeout-timers-extmax-timeout)_ exception is thrown
|
||||
|
||||
### Tests [](https://travis-ci.org/medikoo/timers-ext)
|
||||
|
||||
$ npm test
|
||||
19
node_modules/timers-ext/delay.js
generated
vendored
Normal file
19
node_modules/timers-ext/delay.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
var callable = require('es5-ext/object/valid-callable')
|
||||
, nextTick = require('next-tick')
|
||||
, validTimeout = require('./valid-timeout')
|
||||
|
||||
, apply = Function.prototype.apply;
|
||||
|
||||
module.exports = function (fn/*, timeout*/) {
|
||||
var delay, timeout = arguments[1];
|
||||
callable(fn);
|
||||
if (timeout === undefined) {
|
||||
delay = nextTick;
|
||||
} else {
|
||||
timeout = validTimeout(timeout);
|
||||
delay = setTimeout;
|
||||
}
|
||||
return function () { return delay(apply.bind(fn, this, arguments), timeout); };
|
||||
};
|
||||
3
node_modules/timers-ext/max-timeout.js
generated
vendored
Normal file
3
node_modules/timers-ext/max-timeout.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = 2147483647;
|
||||
33
node_modules/timers-ext/once.js
generated
vendored
Normal file
33
node_modules/timers-ext/once.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
'use strict';
|
||||
|
||||
var callable = require('es5-ext/object/valid-callable')
|
||||
, nextTick = require('next-tick')
|
||||
, validTimeout = require('./valid-timeout');
|
||||
|
||||
module.exports = function (fn/*, timeout*/) {
|
||||
var scheduled, run, context, args, delay, index, timeout = arguments[1];
|
||||
callable(fn);
|
||||
if (timeout === undefined) {
|
||||
delay = nextTick;
|
||||
} else {
|
||||
timeout = validTimeout(timeout);
|
||||
delay = setTimeout;
|
||||
}
|
||||
run = function () {
|
||||
scheduled = false;
|
||||
index = null;
|
||||
fn.apply(context, args);
|
||||
context = null;
|
||||
args = null;
|
||||
};
|
||||
return function () {
|
||||
if (scheduled) {
|
||||
if (index == null) return;
|
||||
clearTimeout(index);
|
||||
}
|
||||
scheduled = true;
|
||||
context = this;
|
||||
args = arguments;
|
||||
index = delay(run, timeout);
|
||||
};
|
||||
};
|
||||
84
node_modules/timers-ext/package.json
generated
vendored
Normal file
84
node_modules/timers-ext/package.json
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"timers-ext@0.1",
|
||||
"/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/cli-color"
|
||||
]
|
||||
],
|
||||
"_from": "timers-ext@>=0.1.0 <0.2.0",
|
||||
"_id": "timers-ext@0.1.0",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/timers-ext",
|
||||
"_npmUser": {
|
||||
"email": "medikoo+npm@medikoo.com",
|
||||
"name": "medikoo"
|
||||
},
|
||||
"_npmVersion": "1.4.3",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "timers-ext",
|
||||
"raw": "timers-ext@0.1",
|
||||
"rawSpec": "0.1",
|
||||
"scope": null,
|
||||
"spec": ">=0.1.0 <0.2.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/cli-color",
|
||||
"/memoizee"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.0.tgz",
|
||||
"_shasum": "00345a2ca93089d1251322054389d263e27b77e2",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "timers-ext@0.1",
|
||||
"_where": "/home/mitchell/Desktop/test-mywebsite/mywebsite/node_modules/cli-color",
|
||||
"author": {
|
||||
"email": "medyk@medikoo.com",
|
||||
"name": "Mariusz Nowak",
|
||||
"url": "http://www.medikoo.com/"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/medikoo/timers-ext/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"es5-ext": "~0.10.2",
|
||||
"next-tick": "~0.2.2"
|
||||
},
|
||||
"description": "Timers extensions",
|
||||
"devDependencies": {
|
||||
"tad": "~0.1.21"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "00345a2ca93089d1251322054389d263e27b77e2",
|
||||
"tarball": "http://registry.npmjs.org/timers-ext/-/timers-ext-0.1.0.tgz"
|
||||
},
|
||||
"homepage": "https://github.com/medikoo/timers-ext",
|
||||
"keywords": [
|
||||
"delay",
|
||||
"interval",
|
||||
"time",
|
||||
"timeout",
|
||||
"timer",
|
||||
"timers"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "medikoo",
|
||||
"email": "medikoo+npm@medikoo.com"
|
||||
}
|
||||
],
|
||||
"name": "timers-ext",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/medikoo/timers-ext.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node node_modules/tad/bin/tad"
|
||||
},
|
||||
"version": "0.1.0"
|
||||
}
|
||||
23
node_modules/timers-ext/test/delay.js
generated
vendored
Normal file
23
node_modules/timers-ext/test/delay.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (t, a, d) {
|
||||
var data, count = 0
|
||||
, x = function (a, b, c) { data = [this, a, b, c, ++count]; }
|
||||
, y = t(x, 200), z = {};
|
||||
|
||||
a(data, undefined, "Setup");
|
||||
y.call(z, 111, 'foo', false);
|
||||
a(data, undefined, "Immediately");
|
||||
setTimeout(function () {
|
||||
a(data, undefined, "100ms");
|
||||
setTimeout(function () {
|
||||
a.deep(data, [z, 111, 'foo', false, 1], "250ms");
|
||||
data = null;
|
||||
clearTimeout(y());
|
||||
setTimeout(function () {
|
||||
a(data, null, "Clear");
|
||||
d();
|
||||
}, 300);
|
||||
}, 150);
|
||||
}, 100);
|
||||
};
|
||||
11
node_modules/timers-ext/test/max-timeout.js
generated
vendored
Normal file
11
node_modules/timers-ext/test/max-timeout.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (t, a, d) {
|
||||
var invoked, id;
|
||||
id = setTimeout(function () { invoked = true; }, t);
|
||||
setTimeout(function () {
|
||||
a(invoked, undefined);
|
||||
clearTimeout(id);
|
||||
d();
|
||||
}, 100);
|
||||
};
|
||||
38
node_modules/timers-ext/test/once.js
generated
vendored
Normal file
38
node_modules/timers-ext/test/once.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (t, a, d) {
|
||||
var called = 0, fn = t(function () { ++called; });
|
||||
|
||||
fn();
|
||||
fn();
|
||||
fn();
|
||||
setTimeout(function () {
|
||||
a(called, 1);
|
||||
|
||||
called = 0;
|
||||
fn = t(function () { ++called; }, 50);
|
||||
fn();
|
||||
fn();
|
||||
fn();
|
||||
|
||||
setTimeout(function () {
|
||||
fn();
|
||||
fn();
|
||||
|
||||
setTimeout(function () {
|
||||
fn();
|
||||
fn();
|
||||
|
||||
setTimeout(function () {
|
||||
fn();
|
||||
fn();
|
||||
|
||||
setTimeout(function () {
|
||||
a(called, 1);
|
||||
d();
|
||||
}, 70);
|
||||
}, 30);
|
||||
}, 30);
|
||||
}, 30);
|
||||
}, 10);
|
||||
};
|
||||
8
node_modules/timers-ext/test/valid-timeout.js
generated
vendored
Normal file
8
node_modules/timers-ext/test/valid-timeout.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (t, a) {
|
||||
a(t(NaN), 0, "NaN");
|
||||
a(t(-343), 0, "Negative");
|
||||
a(t(232342), 232342, "Positive");
|
||||
a.throws(function () { t(1e23); }, TypeError, "Too large");
|
||||
};
|
||||
10
node_modules/timers-ext/valid-timeout.js
generated
vendored
Normal file
10
node_modules/timers-ext/valid-timeout.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
var toPosInt = require('es5-ext/number/to-pos-integer')
|
||||
, maxTimeout = require('./max-timeout');
|
||||
|
||||
module.exports = function (value) {
|
||||
value = toPosInt(value);
|
||||
if (value > maxTimeout) throw new TypeError(value + " exceeds maximum possible timeout");
|
||||
return value;
|
||||
};
|
||||
Reference in New Issue
Block a user