Skip to content

Commit 13031a7

Browse files
authored
Merge pull request #2783 from uProxy/dborkan-uparams
Change uparams to no longer use ES6 imports
2 parents 9727f44 + 2d7b4e9 commit 13031a7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/generic_ui/scripts/ui.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ import * as network_options from '../../generic/network-options';
2828
import * as model from './model';
2929
import * as dialogs from './dialogs';
3030
import * as jsurl from 'jsurl';
31-
import uparams from 'uparams';
31+
// TODO: remove uparams as it doesn't work with ES6 imports and TypeScript,
32+
// see https://github.com/uProxy/uproxy/issues/2782
33+
import uparams = require('uparams');
3234
import * as crypto from 'crypto';
3335
import * as jdenticon from 'jdenticon';
3436

third_party/generic/uparams.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// Type definitions for the uparams module
2+
// TODO: remove uparams as it doesn't work with ES6 imports and TypeScript,
3+
// see https://github.com/uProxy/uproxy/issues/2782
24

35
declare module 'uparams' {
46
// The uparams module is itself a function, rather than an object with
57
// member functions.
68
function uparams(s:string) : any;
7-
export default uparams;
9+
export = uparams;
810
}

0 commit comments

Comments
 (0)