(path)
| 118 | } |
| 119 | |
| 120 | function patchServer(path) { |
| 121 | let source = readSource(path); |
| 122 | |
| 123 | source = replaceRequired(source, SERVER_ONDATA_TYPE_OLD, SERVER_ONDATA_TYPE_NEW); |
| 124 | source = replaceRequired(source, SERVER_SPAWN_ENV_OLD, SERVER_SPAWN_ENV_NEW); |
| 125 | source = replaceRequired(source, SERVER_ONDATA_OLD, SERVER_ONDATA_NEW); |
| 126 | |
| 127 | assertServerPatched(source); |
| 128 | writeSource(path, source); |
| 129 | } |
| 130 | |
| 131 | function patchIndex(path) { |
| 132 | let source = readSource(path); |
no test coverage detected