Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit fa36973

Browse files
Address a formating error across Node versions (#328)
1 parent 17be882 commit fa36973

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@types/semver": "^5.3.32",
3535
"@types/source-map": "^0.5.0",
3636
"changelog-maker": "^2.2.2",
37-
"clang-format": "^1.0.53",
37+
"clang-format": "^1.0.55",
3838
"closure-npc": "*",
3939
"coveralls": "^2.11.2",
4040
"del": "^2.2.2",

src/agent/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const ARG_LOCAL_LIMIT_MESSAGE_INDEX = 3;
4747
* @return an object with error and mirror fields.
4848
*/
4949
export function evaluate(expression: string, frame: v8Types.FrameMirror):
50-
{error: string | null, mirror?: v8Types.ValueMirror} {
50+
{error: string|null, mirror?: v8Types.ValueMirror} {
5151
// First validate the expression to make sure it doesn't mutate state
5252
const acorn = require('acorn');
5353
try {

src/agent/v8debugapi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ export function create(
107107
// Entries map breakpoint id to { enabled: <bool>, listener: <function> }
108108
// TODO: Determine if the listener type is correct
109109
const listeners:
110-
{[id: string]:
111-
{enabled: boolean; listener: (...args: any[]) => any;}} = {};
110+
{[id: string]: {enabled: boolean;
111+
listener: (...args: any[]) => any;}} = {};
112112
let numBreakpoints = 0;
113113
// Before V8 4.5, having a debug listener active disables optimization. To
114114
// deal with this we only activate the listener when there is a breakpoint

test/auth-request.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616
'use strict';
1717

1818
import * as request from 'request';
19-
import * as http from 'http';
2019

2120
// TODO: Make the type of `options` more precise
22-
export default function(options: any, callback: (err: Error, body: any, response: http.ServerResponse) => void) {
23-
request(options, function(err: Error, response: http.ServerResponse, body: any) {
21+
export default function(options: any, callback: (err: Error, body: any, response: request.RequestResponse) => void) {
22+
request(options, function(err: Error, response: request.RequestResponse, body: any) {
2423
callback(err, body, response);
2524
});
2625
};

0 commit comments

Comments
 (0)