Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 1, 2019
1 parent cb042ac commit e98f2a1
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 26 deletions.
25 changes: 10 additions & 15 deletions package.json
Expand Up @@ -42,19 +42,19 @@
"@types/cacheable-request": "^6.0.1",
"@types/tough-cookie": "^2.3.5",
"cacheable-lookup": "^0.2.1",
"cacheable-request": "^6.1.0",
"cacheable-request": "^7.0.0",
"decompress-response": "^4.2.0",
"duplexer3": "^0.1.4",
"get-stream": "^5.0.0",
"lowercase-keys": "^2.0.0",
"mimic-response": "^2.0.0",
"p-cancelable": "^2.0.0",
"responselike": "^1.0.2",
"responselike": "^2.0.0",
"to-readable-stream": "^2.0.0",
"type-fest": "^0.8.0"
},
"devDependencies": {
"@sindresorhus/tsconfig": "^0.4.0",
"@sindresorhus/tsconfig": "^0.5.0",
"@types/duplexer3": "^0.1.0",
"@types/node": "^12.7.5",
"@types/sinon": "^7.0.13",
Expand All @@ -65,11 +65,11 @@
"create-test-server": "^3.0.1",
"del-cli": "^3.0.0",
"delay": "^4.3.0",
"eslint-config-xo-typescript": "^0.18.0",
"eslint-config-xo-typescript": "^0.19.0",
"form-data": "^2.5.1",
"get-port": "^5.0.0",
"keyv": "^3.1.0",
"lolex": "^4.2.0",
"lolex": "^5.1.1",
"nock": "^11.3.4",
"np": "^5.0.3",
"nyc": "^14.0.0",
Expand All @@ -80,8 +80,8 @@
"tempy": "^0.3.0",
"tough-cookie": "^3.0.0",
"ts-node": "^8.4.1",
"typescript": "3.6.3",
"xo": "^0.24.0"
"typescript": "^3.6.4",
"xo": "^0.25.3"
},
"types": "dist/source",
"browser": {
Expand Down Expand Up @@ -114,15 +114,10 @@
"ts"
],
"rules": {
"import/named": "off",
"import/no-unresolved": "off",
"import/first": "off",
"import/newline-after-import": "off",
"ava/no-import-test-files": "off",
"ava/no-ignored-test-files": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/promise-function-async": "off"
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-unnecessary-condition": "off"
},
"ignores": [
"documentation/examples/*"
Expand Down
4 changes: 2 additions & 2 deletions source/as-promise.ts
Expand Up @@ -38,8 +38,8 @@ export default function asPromise(options: NormalizedOptions): CancelableRequest
}

reject(error);
} catch (error2) {
reject(error2);
} catch (error_) {
reject(error_);
}
};

Expand Down
4 changes: 2 additions & 2 deletions source/as-stream.ts
Expand Up @@ -35,8 +35,8 @@ export default function asStream(options: NormalizedOptions): ProxyStream {
}

proxy.emit('error', error);
} catch (error2) {
proxy.emit('error', error2);
} catch (error_) {
proxy.emit('error', error_);
}
};

Expand Down
12 changes: 6 additions & 6 deletions source/request-as-event-emitter.ts
Expand Up @@ -57,8 +57,8 @@ export default (options: NormalizedOptions, input?: TransformStream) => {
}

emitter.emit('error', error);
} catch (error2) {
emitter.emit('error', error2);
} catch (error_) {
emitter.emit('error', error_);
}
};

Expand Down Expand Up @@ -285,8 +285,8 @@ export default (options: NormalizedOptions, input?: TransformStream) => {
computedValue: 0
})
});
} catch (error2) {
emitError(error2);
} catch (error_) {
emitError(error_);
return false;
}

Expand All @@ -299,8 +299,8 @@ export default (options: NormalizedOptions, input?: TransformStream) => {
}

await get(options);
} catch (error) {
emitError(error);
} catch (error_) {
emitError(error_);
}
};

Expand Down
2 changes: 1 addition & 1 deletion test/cache.ts
Expand Up @@ -129,7 +129,7 @@ test('doesn\'t cache response when received HTTP error', withServer, async (t, s

const {statusCode, body} = await got({cache, throwHttpErrors: false});
t.is(statusCode, 200);
t.deepEqual(body, 'ok');
t.is(body, 'ok');
});

test('DNS cache works', withServer, async (t, _server, got) => {
Expand Down

0 comments on commit e98f2a1

Please sign in to comment.