This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from 'axios'; | |
| import MockAdapter from 'axios-mock-adapter'; | |
| const mock = new MockAdapter(axios); | |
| // this mocks a request which is always at 40% progress | |
| mock.onPost('/upload-1').reply((config) => { | |
| const total = 1024; // mocked file size | |
| const progress = 0.4; | |
| if (config.onUploadProgress) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { build, files, version } from '$service-worker'; | |
| // https://github.com/microsoft/TypeScript/issues/11781 - this is needed for TS and ESLint | |
| /// env serviceworker | |
| const globalThis = /** @type {unknown} */ (self); | |
| /// <reference no-default-lib="true"/> | |
| /// <reference lib="es2020" /> | |
| /// <reference lib="WebWorker" /> | |
| const sw = /** @type {ServiceWorkerGlobalScope & typeof globalThis} */ (globalThis); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://github.com/xvzc/SpoofDPI | |
| curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s darwin-amd64 | |
| export PATH=$PATH:~/.spoof-dpi/bin | |
| spoof-dpi # Safari only | |
| # disable | |
| # spoof-dpi --enable-doh --window-size 0 # |
OlderNewer