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
25
node_modules/@protobuf-ts/runtime/build/commonjs/json-typings.js
generated
vendored
Normal file
25
node_modules/@protobuf-ts/runtime/build/commonjs/json-typings.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isJsonObject = exports.typeofJsonValue = void 0;
|
||||
/**
|
||||
* Get the type of a JSON value.
|
||||
* Distinguishes between array, null and object.
|
||||
*/
|
||||
function typeofJsonValue(value) {
|
||||
let t = typeof value;
|
||||
if (t == "object") {
|
||||
if (Array.isArray(value))
|
||||
return "array";
|
||||
if (value === null)
|
||||
return "null";
|
||||
}
|
||||
return t;
|
||||
}
|
||||
exports.typeofJsonValue = typeofJsonValue;
|
||||
/**
|
||||
* Is this a JSON object (instead of an array or null)?
|
||||
*/
|
||||
function isJsonObject(value) {
|
||||
return value !== null && typeof value == "object" && !Array.isArray(value);
|
||||
}
|
||||
exports.isJsonObject = isJsonObject;
|
||||
Loading…
Add table
Add a link
Reference in a new issue