initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
21
github/codeql-action-v1/node_modules/just-extend/LICENSE
generated
vendored
Normal file
21
github/codeql-action-v1/node_modules/just-extend/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 angus croll
|
||||
|
||||
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.
|
||||
36
github/codeql-action-v1/node_modules/just-extend/README.md
generated
vendored
Normal file
36
github/codeql-action-v1/node_modules/just-extend/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
## just-extend
|
||||
|
||||
Part of a [library](../../../../) of zero-dependency npm modules that do just do one thing.
|
||||
Guilt-free utilities for every occasion.
|
||||
|
||||
[Try it now](http://anguscroll.com/just/just-extend)
|
||||
|
||||
```js
|
||||
import extend from 'just-extend';
|
||||
|
||||
var obj = {a: 3, b: 5};
|
||||
extend(obj, {a: 4, c: 8}); // {a: 4, b: 5, c: 8}
|
||||
obj; // {a: 4, b: 5, c: 8}
|
||||
|
||||
var obj = {a: 3, b: 5};
|
||||
extend({}, obj, {a: 4, c: 8}); // {a: 4, b: 5, c: 8}
|
||||
obj; // {a: 3, b: 5}
|
||||
|
||||
var arr = [1, 2, 3];
|
||||
var obj = {a: 3, b: 5};
|
||||
extend(obj, {c: arr}); // {a: 3, b: 5, c: [1, 2, 3]}
|
||||
arr.push(4);
|
||||
obj; // {a: 3, b: 5, c: [1, 2, 3, 4]}
|
||||
|
||||
var arr = [1, 2, 3];
|
||||
var obj = {a: 3, b: 5};
|
||||
extend(true, obj, {c: arr}); // {a: 3, b: 5, c: [1, 2, 3]}
|
||||
arr.push(4);
|
||||
obj; // {a: 3, b: 5, c: [1, 2, 3]}
|
||||
|
||||
extend({a: 4, b: 5}); // {a: 4, b: 5}
|
||||
extend({a: 4, b: 5}, 3); {a: 4, b: 5}
|
||||
extend({a: 4, b: 5}, true); {a: 4, b: 5}
|
||||
extend('hello', {a: 4, b: 5}); // throws
|
||||
extend(3, {a: 4, b: 5}); // throws
|
||||
```
|
||||
4
github/codeql-action-v1/node_modules/just-extend/index.d.ts
generated
vendored
Normal file
4
github/codeql-action-v1/node_modules/just-extend/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// Definitions by: Peter Safranek <https://github.com/pe8ter>
|
||||
declare function extend(obj1: object, ...objn: any[]): object;
|
||||
declare function extend(deep: boolean, obj1: object, ...objn: any[]): object;
|
||||
export = extend;
|
||||
72
github/codeql-action-v1/node_modules/just-extend/index.js
generated
vendored
Normal file
72
github/codeql-action-v1/node_modules/just-extend/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
module.exports = extend;
|
||||
|
||||
/*
|
||||
var obj = {a: 3, b: 5};
|
||||
extend(obj, {a: 4, c: 8}); // {a: 4, b: 5, c: 8}
|
||||
obj; // {a: 4, b: 5, c: 8}
|
||||
|
||||
var obj = {a: 3, b: 5};
|
||||
extend({}, obj, {a: 4, c: 8}); // {a: 4, b: 5, c: 8}
|
||||
obj; // {a: 3, b: 5}
|
||||
|
||||
var arr = [1, 2, 3];
|
||||
var obj = {a: 3, b: 5};
|
||||
extend(obj, {c: arr}); // {a: 3, b: 5, c: [1, 2, 3]}
|
||||
arr.push(4);
|
||||
obj; // {a: 3, b: 5, c: [1, 2, 3, 4]}
|
||||
|
||||
var arr = [1, 2, 3];
|
||||
var obj = {a: 3, b: 5};
|
||||
extend(true, obj, {c: arr}); // {a: 3, b: 5, c: [1, 2, 3]}
|
||||
arr.push(4);
|
||||
obj; // {a: 3, b: 5, c: [1, 2, 3]}
|
||||
|
||||
extend({a: 4, b: 5}); // {a: 4, b: 5}
|
||||
extend({a: 4, b: 5}, 3); {a: 4, b: 5}
|
||||
extend({a: 4, b: 5}, true); {a: 4, b: 5}
|
||||
extend('hello', {a: 4, b: 5}); // throws
|
||||
extend(3, {a: 4, b: 5}); // throws
|
||||
*/
|
||||
|
||||
function extend(/* [deep], obj1, obj2, [objn] */) {
|
||||
var args = [].slice.call(arguments);
|
||||
var deep = false;
|
||||
if (typeof args[0] == 'boolean') {
|
||||
deep = args.shift();
|
||||
}
|
||||
var result = args[0];
|
||||
if (isUnextendable(result)) {
|
||||
throw new Error('extendee must be an object');
|
||||
}
|
||||
var extenders = args.slice(1);
|
||||
var len = extenders.length;
|
||||
for (var i = 0; i < len; i++) {
|
||||
var extender = extenders[i];
|
||||
for (var key in extender) {
|
||||
if (Object.prototype.hasOwnProperty.call(extender, key)) {
|
||||
var value = extender[key];
|
||||
if (deep && isCloneable(value)) {
|
||||
var base = Array.isArray(value) ? [] : {};
|
||||
result[key] = extend(
|
||||
true,
|
||||
Object.prototype.hasOwnProperty.call(result, key) && !isUnextendable(result[key])
|
||||
? result[key]
|
||||
: base,
|
||||
value
|
||||
);
|
||||
} else {
|
||||
result[key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
function isCloneable(obj) {
|
||||
return Array.isArray(obj) || {}.toString.call(obj) == '[object Object]';
|
||||
}
|
||||
|
||||
function isUnextendable(val) {
|
||||
return !val || (typeof val != 'object' && typeof val != 'function');
|
||||
}
|
||||
62
github/codeql-action-v1/node_modules/just-extend/index.tests.ts
generated
vendored
Normal file
62
github/codeql-action-v1/node_modules/just-extend/index.tests.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
import extend = require("./index");
|
||||
|
||||
// OK
|
||||
|
||||
// Pass single `object`.
|
||||
extend({});
|
||||
extend([]);
|
||||
extend(() => {});
|
||||
|
||||
// Pass single `object`, then `any`.
|
||||
extend({}, 0);
|
||||
extend({}, "");
|
||||
extend({}, false);
|
||||
extend({}, null);
|
||||
extend({}, undefined);
|
||||
extend({}, {});
|
||||
extend({}, []);
|
||||
extend({}, () => {});
|
||||
|
||||
// Pass variadic args.
|
||||
extend({}, 0, "", false, null, undefined, {}, [], () => {});
|
||||
|
||||
// Pass `boolean`, then single `object`.
|
||||
extend(true, {});
|
||||
extend(true, []);
|
||||
extend(true, () => {});
|
||||
|
||||
// Pass `boolean`, single `object`, then `any`.
|
||||
extend(true, {}, 0);
|
||||
extend(true, {}, "");
|
||||
extend(true, {}, false);
|
||||
extend(true, {}, null);
|
||||
extend(true, {}, undefined);
|
||||
extend(true, {}, {});
|
||||
extend(true, {}, []);
|
||||
extend(true, {}, () => {});
|
||||
|
||||
// Pass `boolean`, then variadic args.
|
||||
extend(true, {}, 0, "", false, null, undefined, {}, [], () => {});
|
||||
|
||||
// Not OK
|
||||
|
||||
// Incorrect extendee `object`.
|
||||
// @ts-expect-error
|
||||
extend();
|
||||
// @ts-expect-error
|
||||
extend(0);
|
||||
// @ts-expect-error
|
||||
extend("");
|
||||
// @ts-expect-error
|
||||
extend(false);
|
||||
// @ts-expect-error
|
||||
extend();
|
||||
|
||||
// @ts-expect-error
|
||||
extend(true, 0);
|
||||
// @ts-expect-error
|
||||
extend(true, "");
|
||||
// @ts-expect-error
|
||||
extend(true, false);
|
||||
// @ts-expect-error
|
||||
extend(true);
|
||||
27
github/codeql-action-v1/node_modules/just-extend/package.json
generated
vendored
Normal file
27
github/codeql-action-v1/node_modules/just-extend/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"name": "just-extend",
|
||||
"version": "4.2.1",
|
||||
"description": "extend an object",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": "https://github.com/angus-c/just",
|
||||
"keywords": [
|
||||
"object",
|
||||
"assign",
|
||||
"clone",
|
||||
"copy",
|
||||
"merge",
|
||||
"deep-copy",
|
||||
"extend",
|
||||
"no-dependencies",
|
||||
"just"
|
||||
],
|
||||
"author": "Angus Croll",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/angus-c/just/issues"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue