()
| 63 | }, |
| 64 | |
| 65 | getConfigOptions () { |
| 66 | if (!frozenConfig) { |
| 67 | const copy = { ...options } |
| 68 | // Deep-clone + deep-freeze nested plain objects so the user's originals |
| 69 | // are not mutated as a side effect of calling getConfigOptions(). |
| 70 | for (const key of Object.keys(copy)) { |
| 71 | if (key !== 'server') { |
| 72 | copy[key] = deepFreezeObject(copy[key]) |
| 73 | } |
| 74 | } |
| 75 | frozenConfig = Object.freeze(copy) |
| 76 | } |
| 77 | return frozenConfig |
| 78 | }, |
| 79 | |
| 80 | handle, |
| 81 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…