This commit is contained in:
2023-03-07 10:52:05 +07:00
commit 772f105c65
1032 changed files with 260918 additions and 0 deletions

12
node_modules/got/dist/source/utils/deep-freeze.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const is_1 = require("@sindresorhus/is");
function deepFreeze(object) {
for (const value of Object.values(object)) {
if (is_1.default.plainObject(value) || is_1.default.array(value)) {
deepFreeze(value);
}
}
return Object.freeze(object);
}
exports.default = deepFreeze;