Skip to content

Commit ac1561a

Browse files
committed
Fix broken imports
1 parent a95bceb commit ac1561a

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [6.0.1] - 2018-01-22
11+
12+
* Fixed some imports broken during the TypeScript rewrite
13+
14+
If you were previously seeing errors involving a `default` property,
15+
this should make those go away.
16+
1017
## [6.0.0] - 2018-01-11
1118

1219
### Removed

src/util/bytelength.web.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export { default as byteLength } from "utf8-length";
1+
export const byteLength = require("utf8-length") as (
2+
string: string | Buffer
3+
) => number;

src/util/multipart.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
import Multipart from "multi-part";
21
import { Readable } from "stream";
32

3+
declare class MultiPart {
4+
append(key: string, value: Readable | Buffer | string): void;
5+
getBoundary(): string;
6+
getStream(): Readable;
7+
}
8+
9+
const Multipart = require("multi-part") as typeof MultiPart;
10+
411
export type Fields = {
512
[key: string]: any;
613
};

src/vendor/es6-error.d.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/vendor/multi-part.d.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/vendor/utf8-length.d.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)