initial commit of actions

This commit is contained in:
Dominik Polakovics Polakovics 2026-01-31 18:56:04 +01:00
commit 949ece5785
44660 changed files with 12034344 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{
"bitwise": false,
"camelcase": true,
"curly": false,
"eqeqeq": true,
"forin": true,
"immed": true,
"indent": 4,
"latedef": "nofunc",
"newcap": true,
"noarg": true,
"nonew": true,
"plusplus": false,
"quotmark": false,
"regexp": false,
"undef": true,
"unused": true,
"strict": false,
"trailing": true,
"node": true,
"noempty": true,
"maxdepth": 4,
"maxparams": 4,
"newcap": false,
"globalstrict": true,
"shadow": "outer",
"globals": {
"console": true,
"Buffer": true,
"setTimeout": true,
"clearTimeout": true,
"setInterval": true,
"clearInterval": true
}
}

View file

@ -0,0 +1,7 @@
language: node_js
node_js:
- "0.8"
- "0.10"
- "0.11"
before_install: npm i npm@latest -g
script: npm run travis

19
github/codeql-action-v2/node_modules/is-error/LICENSE generated vendored Normal file
View file

@ -0,0 +1,19 @@
Copyright (c) 2015 is-error.
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.

View file

@ -0,0 +1,54 @@
# is-error
<!--
[![build status][build-png]][build]
[![Coverage Status][cover-png]][cover]
[![Davis Dependency status][dep-png]][dep]
-->
<!-- [![NPM][npm-png]][npm] -->
Detect whether a value is an error
## Example
```js
var isError = require("is-error");
console.log(isError(new Error('hi'))) // true
console.log(isError({ message: 'hi' })) // false
```
## Docs
### `var bool = isError(maybeErr)`
```hs
is-error := (maybeErr: Any) => Boolean
```
`isError` returns a boolean. it will detect whether the argument
is an error or not.
## Installation
`npm install is-error`
## Tests
`npm test`
## Contributors
- Raynos
## MIT Licensed
[build-png]: https://secure.travis-ci.org/Raynos/is-error.png
[build]: https://travis-ci.org/Raynos/is-error
[cover-png]: https://coveralls.io/repos/Raynos/is-error/badge.png
[cover]: https://coveralls.io/r/Raynos/is-error
[dep-png]: https://david-dm.org/Raynos/is-error.png
[dep]: https://david-dm.org/Raynos/is-error
[npm-png]: https://nodei.co/npm/is-error.png?stars&downloads
[npm]: https://nodei.co/npm/is-error

23
github/codeql-action-v2/node_modules/is-error/index.js generated vendored Normal file
View file

@ -0,0 +1,23 @@
'use strict';
var objectToString = Object.prototype.toString;
var getPrototypeOf = Object.getPrototypeOf;
var ERROR_TYPE = '[object Error]';
module.exports = function isError(err) {
if (typeof err !== 'object') {
return false;
}
if (err instanceof Error) {
// Accept `AssertionError`s from the `assert` module that ships
// with Node.js v6.1.0, compare issue #4.
return true;
}
while (err) {
if (objectToString.call(err) === ERROR_TYPE) {
return true;
}
err = getPrototypeOf(err);
}
return false;
};

View file

@ -0,0 +1,45 @@
{
"name": "is-error",
"version": "2.2.2",
"description": "Detect whether a value is an error",
"keywords": [],
"author": "Raynos <raynos2@gmail.com>",
"repository": "git://github.com/mk-pmb/is-error-js.git",
"main": "index",
"homepage": "https://github.com/mk-pmb/is-error-js",
"bugs": {
"url": "https://github.com/mk-pmb/is-error-js/issues"
},
"contributors": [
"Raynos",
"M.K. (https://github.com/mk-pmb)"
],
"dependencies": {},
"devDependencies": {
"coveralls": "^2.10.0",
"istanbul": "^0.3.5",
"lint-trap": "^1.0.0",
"opn": "^1.0.1",
"pre-commit": "0.0.11",
"tap-spec": "^2.1.1",
"tape": "^3.4.0"
},
"license": "MIT",
"scripts": {
"test": "npm run jshint -s && npm run cover -s",
"unit-test": "node test/index.js | tap-spec",
"jshint": "lint-trap .",
"cover": "istanbul cover --report html --print detail -- test/index.js && npm run check-cover -s",
"check-cover": "istanbul check-coverage --branches=100 --lines=100 --functions=100",
"view-cover": "opn ./coverage/index.html",
"travis": "npm run cover -s && istanbul report lcov && ((cat coverage/lcov.info | coveralls) || true)"
},
"engine": {
"node": ">= 0.8.x"
},
"pre-commit": [
"test"
],
"pre-commit.silent": true,
"ngen-version": "5.1.0"
}

View file

@ -0,0 +1,46 @@
'use strict';
var test = require('tape');
var vm = require('vm');
var isError = require('../index.js');
test('isError is a function', function t(assert) {
assert.equal(typeof isError, 'function');
assert.end();
});
test('returns true for error', function t(assert) {
assert.equal(isError(new Error('foo')), true);
assert.equal(isError(Error('foo')), true);
assert.end();
});
test('returns false for non-error', function t(assert) {
assert.equal(isError(null), false);
assert.equal(isError(undefined), false);
assert.equal(isError({message: 'hi'}), false);
assert.equal(isError(true), false);
assert.equal(isError(false), false);
assert.equal(isError(1), false);
assert.equal(isError('string'), false);
assert.end();
});
test('errors that inherit from Error', function t(assert) {
var error = Object.create(new Error());
assert.equal(isError(error), true);
assert.end();
});
test('errors from other contexts', function t(assert) {
var error = vm.runInNewContext('new Error()');
assert.equal(isError(error), true);
assert.end();
});
test('errors that inherit from Error in another context', function t(assert) {
var error = vm.runInNewContext('Object.create(new Error())');
assert.equal(isError(error), true);
assert.end();
});