convert to ESM

This commit is contained in:
Randall Schmidt
2021-07-05 14:17:21 -04:00
parent af1e977620
commit 45ca35f057
11 changed files with 52 additions and 48 deletions

View File

@ -1,7 +1,7 @@
const stream = require('stream');
const Headers = require('./headers.js');
import stream from 'stream';
import { Headers } from './headers.js';
class Response {
export class Response {
constructor(raw, ejectSelfFromCache, fromCache) {
Object.assign(this, raw);
this.ejectSelfFromCache = ejectSelfFromCache;
@ -43,5 +43,3 @@ class Response {
return this.ejectSelfFromCache();
}
}
module.exports = Response;