Move cloneObject into utilities and export it.
This commit is contained in:
parent
19a1da54d1
commit
7be3a64c02
6 changed files with 12 additions and 11 deletions
4
lib/util.js
generated
4
lib/util.js
generated
|
|
@ -66,6 +66,7 @@ exports.getErrorMessage = getErrorMessage;
|
|||
exports.prettyPrintPack = prettyPrintPack;
|
||||
exports.checkDiskUsage = checkDiskUsage;
|
||||
exports.checkActionVersion = checkActionVersion;
|
||||
exports.cloneObject = cloneObject;
|
||||
const fs = __importStar(require("fs"));
|
||||
const os = __importStar(require("os"));
|
||||
const path = __importStar(require("path"));
|
||||
|
|
@ -858,4 +859,7 @@ var BuildMode;
|
|||
/** The database will be created by building the source root using manually specified build steps. */
|
||||
BuildMode["Manual"] = "manual";
|
||||
})(BuildMode || (exports.BuildMode = BuildMode = {}));
|
||||
function cloneObject(obj) {
|
||||
return JSON.parse(JSON.stringify(obj));
|
||||
}
|
||||
//# sourceMappingURL=util.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue