mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-22 23:02:10 +10:00
* first action!
This commit is contained in:
parent
8deacc95b1
commit
4e3aad3b7f
3750 changed files with 1155519 additions and 0 deletions
12
node_modules/got/source/utils/deep-freeze.js
generated
vendored
Normal file
12
node_modules/got/source/utils/deep-freeze.js
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
'use strict';
|
||||
const is = require('@sindresorhus/is');
|
||||
|
||||
module.exports = function deepFreeze(object) {
|
||||
for (const [key, value] of Object.entries(object)) {
|
||||
if (is.plainObject(value) || is.array(value)) {
|
||||
deepFreeze(object[key]);
|
||||
}
|
||||
}
|
||||
|
||||
return Object.freeze(object);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue