Skip to content

Commit

Permalink
Update import statements for child_process and path modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Illyism committed Mar 5, 2024
1 parent 6c9beec commit 80f35b2
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions end2end/tests/express-mongodb.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const t = require("tap");
const { spawn } = require("node:child_process");
const { resolve } = require("node:path");
const { spawn } = require("child_process");
const { resolve } = require("path");
const timeout = require("../timeout");

const pathToApp = resolve(
Expand Down
4 changes: 2 additions & 2 deletions end2end/tests/express-mongoose.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const t = require("tap");
const { spawn } = require("node:child_process");
const { resolve } = require("node:path");
const { spawn } = require("child_process");
const { resolve } = require("path");
const timeout = require("../timeout");

const pathToApp = resolve(
Expand Down
4 changes: 2 additions & 2 deletions end2end/tests/express-mysql.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const t = require("tap");
const { spawn } = require("node:child_process");
const { resolve } = require("node:path");
const { spawn } = require("child_process");
const { resolve } = require("path");
const timeout = require("../timeout");

const pathToApp = resolve(
Expand Down
4 changes: 2 additions & 2 deletions end2end/tests/express-mysql2.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const t = require("tap");
const { spawn } = require("node:child_process");
const { resolve } = require("node:path");
const { spawn } = require("child_process");
const { resolve } = require("path");
const timeout = require("../timeout");

const pathToApp = resolve(
Expand Down
4 changes: 2 additions & 2 deletions end2end/tests/express-postgres.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const t = require("tap");
const { spawn } = require("node:child_process");
const { resolve } = require("node:path");
const { spawn } = require("child_process");
const { resolve } = require("path");
const timeout = require("../timeout");

const pathToApp = resolve(
Expand Down
2 changes: 1 addition & 1 deletion library/src/agent/Agent.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { hostname, platform, release } from "node:os";
import { hostname, platform, release } from "os";
import * as t from "tap";
import { ip } from "../helpers/ipAddress";
import { Agent } from "./Agent";
Expand Down
2 changes: 1 addition & 1 deletion library/src/agent/Agent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable max-lines-per-function */
import { hostname, platform, release } from "node:os";
import { hostname, platform, release } from "os";
import { convertRequestBodyToString } from "../helpers/convertRequestBodyToString";
import { ip } from "../helpers/ipAddress";
import { isPlainObject } from "../helpers/isPlainObject";
Expand Down
2 changes: 1 addition & 1 deletion library/src/agent/Context.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncLocalStorage } from "node:async_hooks";
import { AsyncLocalStorage } from "async_hooks";
import type { ParsedQs } from "qs";

export type Context = {
Expand Down
4 changes: 2 additions & 2 deletions library/src/agent/api/APIFetch.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { request as requestHttp } from "node:http";
import { request as requestHttps } from "node:https";
import { request as requestHttp } from "http";
import { request as requestHttps } from "https";
import { API } from "./API";
import { Token } from "./Token";
import { Event } from "./Event";
Expand Down
2 changes: 1 addition & 1 deletion library/src/agent/applyHooks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join } from "node:path";
import { join } from "path";
import { wrap } from "shimmer";
import { getPackageVersion } from "../helpers/getPackageVersion";
import { satisfiesVersion } from "../helpers/satisfiesVersion";
Expand Down
2 changes: 1 addition & 1 deletion library/src/sources/Express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { NextFunction, Request, Response } from "express";
import { runWithContext } from "../agent/Context";
import { Hooks } from "../agent/hooks/Hooks";
import { Wrapper } from "../agent/Wrapper";
import { METHODS } from "node:http";
import { METHODS } from "http";

type Middleware = (req: Request, resp: Response, next: NextFunction) => void;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isDeepStrictEqual } from "node:util";
import { isDeepStrictEqual } from "util";
import { Context } from "../../agent/Context";
import { Source } from "../../agent/Source";
import { buildPathToPayload, PathPart } from "../../helpers/attackPath";
Expand Down

0 comments on commit 80f35b2

Please sign in to comment.