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
29
node_modules/@protobuf-ts/runtime/build/es2015/json-format-contract.js
generated
vendored
Normal file
29
node_modules/@protobuf-ts/runtime/build/es2015/json-format-contract.js
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
const defaultsWrite = {
|
||||
emitDefaultValues: false,
|
||||
enumAsInteger: false,
|
||||
useProtoFieldName: false,
|
||||
prettySpaces: 0,
|
||||
}, defaultsRead = {
|
||||
ignoreUnknownFields: false,
|
||||
};
|
||||
/**
|
||||
* Make options for reading JSON data from partial options.
|
||||
*/
|
||||
export function jsonReadOptions(options) {
|
||||
return options ? Object.assign(Object.assign({}, defaultsRead), options) : defaultsRead;
|
||||
}
|
||||
/**
|
||||
* Make options for writing JSON data from partial options.
|
||||
*/
|
||||
export function jsonWriteOptions(options) {
|
||||
return options ? Object.assign(Object.assign({}, defaultsWrite), options) : defaultsWrite;
|
||||
}
|
||||
/**
|
||||
* Merges JSON write or read options. Later values override earlier values. Type registries are merged.
|
||||
*/
|
||||
export function mergeJsonOptions(a, b) {
|
||||
var _a, _b;
|
||||
let c = Object.assign(Object.assign({}, a), b);
|
||||
c.typeRegistry = [...((_a = a === null || a === void 0 ? void 0 : a.typeRegistry) !== null && _a !== void 0 ? _a : []), ...((_b = b === null || b === void 0 ? void 0 : b.typeRegistry) !== null && _b !== void 0 ? _b : [])];
|
||||
return c;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue