Bump artifact dependencies if CODEQL_ACTION_ARTIFACT_V2_UPGRADE enabled (#2482)
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com> Co-authored-by: Henry Mercer <henrymercer@github.com>
This commit is contained in:
parent
cf5b0a9041
commit
a196a714b8
5388 changed files with 2176737 additions and 71701 deletions
31
node_modules/ts-poet/build/is-plain-object.js
generated
vendored
Normal file
31
node_modules/ts-poet/build/is-plain-object.js
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
"use strict";
|
||||
/*!
|
||||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||||
*
|
||||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isPlainObject = void 0;
|
||||
function isPlainObject(o) {
|
||||
if (o === null || o === undefined)
|
||||
return false;
|
||||
if (!isObject(o))
|
||||
return false;
|
||||
// If has modified constructor
|
||||
const ctor = o.constructor;
|
||||
if (ctor === undefined)
|
||||
return true;
|
||||
// If has modified prototype
|
||||
if (!isObject(ctor.prototype))
|
||||
return false;
|
||||
// If constructor does not have an Object-specific method
|
||||
if (!ctor.prototype.hasOwnProperty('isPrototypeOf'))
|
||||
return false;
|
||||
// Most likely a plain Object
|
||||
return true;
|
||||
}
|
||||
exports.isPlainObject = isPlainObject;
|
||||
function isObject(o) {
|
||||
return Object.prototype.toString.call(o) === '[object Object]';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue