Initial import with skill sheet working

This commit is contained in:
2024-12-04 00:11:23 +01:00
commit 9050c80ab4
4488 changed files with 671048 additions and 0 deletions

21
node_modules/last-run/LICENSE generated vendored Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2015-2017, 2021 Blaine Bublitz <blaine.bublitz@gmail.com> and Eric Schoffstall <yo@contra.io>
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.

65
node_modules/last-run/README.md generated vendored Normal file
View File

@ -0,0 +1,65 @@
<p align="center">
<a href="https://gulpjs.com">
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
</a>
</p>
# last-run
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]
Capture and retrieve the last time a function was run.
## Usage
```js
var lastRun = require('last-run');
function myFunc() {}
myFunc();
// capture the run after (or before) calling the function
lastRun.capture(myFunc);
// retrieve the last run time
lastRun(myFunc);
//-> outputs the Date.now() when capture was called
```
## API
### lastRun(fn, [timeResolution]) => [Timestamp]
Takes a function (`fn`) and returns a timestamp of the last time the function was captured.
Returns undefined if the function has not been captured.
The timestamp is always given in millisecond but the time resolution can be reduced (rounded down).
The use case is to be able to compare a build time to a file time attribute.
On some file systems, `fs.stat` time attributes like `mtime` might have one second precision.
### lastRun.capture(fn, [timestamp])
Takes a function (`fn`) and captures the current timestamp with `Date.now()`.
If passed the optional timestamp, captures that time instead of `Date.now()`.
The captured timestamp can then be retrieved using the `lastRun` function.
### lastRun.release(fn)
Takes a function (`fn`) and removes the last run timestamp for it.
## License
MIT
<!-- prettier-ignore-start -->
[downloads-image]: https://img.shields.io/npm/dm/last-run.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/last-run
[npm-image]: https://img.shields.io/npm/v/last-run.svg?style=flat-square
[ci-url]: https://github.com/gulpjs/last-run/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/last-run/dev?style=flat-square
[coveralls-url]: https://coveralls.io/r/gulpjs/last-run
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/last-run/master.svg?style=flat-square
<!-- prettier-ignore-end -->

42
node_modules/last-run/index.js generated vendored Normal file
View File

@ -0,0 +1,42 @@
'use strict';
var assert = require('assert');
var runtimes = new WeakMap();
function isFunction(fn) {
return typeof fn === 'function';
}
function lastRun(fn, timeResolution) {
assert(isFunction(fn), 'Only functions can check lastRun');
var time = runtimes.get(fn);
if (time == null) {
return;
}
var resolution = parseInt(timeResolution, 10) || 1;
return time - (time % resolution);
}
function capture(fn, timestamp) {
assert(isFunction(fn), 'Only functions can be captured');
timestamp = timestamp || Date.now();
runtimes.set(fn, timestamp);
}
function release(fn) {
assert(isFunction(fn), 'Only functions can be captured');
runtimes.delete(fn);
}
lastRun.capture = capture;
lastRun.release = release;
module.exports = lastRun;

47
node_modules/last-run/package.json generated vendored Normal file
View File

@ -0,0 +1,47 @@
{
"name": "last-run",
"version": "2.0.0",
"description": "Capture and retrieve the last time a function was run",
"author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",
"contributors": [
"Blaine Bublitz <blaine.bublitz@gmail.com>"
],
"repository": "gulpjs/last-run",
"license": "MIT",
"engines": {
"node": ">= 10.13.0"
},
"main": "index.js",
"files": [
"LICENSE",
"index.js"
],
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "nyc mocha --async-only"
},
"devDependencies": {
"eslint": "^7.32.0",
"eslint-config-gulp": "^5.0.1",
"eslint-plugin-node": "^11.1.0",
"expect": "^27.3.1",
"mocha": "^8.4.0",
"nyc": "^15.1.0"
},
"nyc": {
"reporter": [
"lcov",
"text-summary"
]
},
"prettier": {
"singleQuote": true
},
"keywords": [
"execution",
"function",
"last run",
"timing"
]
}