Skip to content

Commit

Permalink
chore: update remaining dependencies (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Sep 9, 2023
1 parent 77310a6 commit 9557f5b
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 20 deletions.
5 changes: 2 additions & 3 deletions lib/temp-directory.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { join } from 'path';
import { promises as fs } from 'fs';
import { randomUUID } from 'crypto';

import osenv from 'osenv';
import { tmpdir } from 'os';

export async function create(context) {
if (context.options && context.options.tmpDir) {
context.path = join(context.options.tmpDir, randomUUID());
} else {
context.path = join(osenv.tmpdir(), randomUUID());
context.path = join(tmpdir(), randomUUID());
}
context.emit(
'data',
Expand Down
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"license": "MIT",
"dependencies": {
"async": "^3.2.2",
"async": "^3.2.4",
"bl": "^6.0.7",
"chalk": "^5.3.0",
"columnify": "^1.6.0",
Expand All @@ -39,33 +39,32 @@
"normalize-git-url": "^3.0.2",
"npm-package-arg": "^11.0.1",
"npm-which": "^3.0.1",
"osenv": "^0.1.5",
"read-package-json": "^7.0.0",
"root-check": "^2.0.0",
"semver": "^7.5.4",
"strip-ansi": "^7.0.1",
"supports-color": "^9.2.1",
"strip-ansi": "^7.1.0",
"supports-color": "^9.4.0",
"tar": "^6.2.0",
"uid-number": "0.0.6",
"undici": "^5.5.1",
"undici": "^5.24.0",
"which": "^4.0.0",
"winston": "^3.10.0",
"xml-sanitizer": "^1.1.11",
"xml-sanitizer": "^1.2.9",
"xmlbuilder": "^15.1.1",
"yargs": "^17.3.0",
"yargs": "^17.7.2",
"yarn": "^1.22.19"
},
"devDependencies": {
"ansi-regex": "^6.0.1",
"c8": "^8.0.1",
"eslint": "^8.48.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^3.0.3",
"string-to-stream": "^3.0.1",
"tap": "^16.3.8",
"tap-parser": "^11.0.1",
"xml2js": "^0.5.0"
"xml2js": "^0.6.2"
},
"prettier": {
"proseWrap": "always",
Expand Down
2 changes: 1 addition & 1 deletion test/npm/test-npm-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ test('npm-install: failed install', async (t) => {
}
});

test('npm-install: teardown', async () => {
tap.teardown(async () => {
await fs.rm(sandbox, {
recursive: true,
force: true,
Expand Down
2 changes: 1 addition & 1 deletion test/npm/test-npm-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ test('npm-test: tmpdir is redirected', async (t) => {
);
});

test('npm-test: teardown', async () => {
tap.teardown(async () => {
await fs.rm(sandbox, {
recursive: true,
force: true,
Expand Down
2 changes: 1 addition & 1 deletion test/reporter/test-reporter-junit.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ test('reporter.junit(): append to disk', (t) => {
t.end();
});

test('reporter.junit(): teardown', async () => {
tap.teardown(async () => {
await fs.rm(sandbox, {
recursive: true,
force: true,
Expand Down
2 changes: 1 addition & 1 deletion test/reporter/test-reporter-tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ test('reporter.tap(): append to disk when file does not exist', (t) => {
t.end();
});

test('reporter.tap(): teardown', async () => {
tap.teardown(async () => {
await fs.rm(sandbox, {
recursive: true,
force: true,
Expand Down
2 changes: 1 addition & 1 deletion test/test-grab-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ test('grab-project: timeout', async (t) => {
}
});

test('grab-project: teardown', async () => {
tap.teardown(async () => {
await fs.rm(sandbox, {
recursive: true,
force: true,
Expand Down
2 changes: 1 addition & 1 deletion test/yarn/test-yarn-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ test('yarn-install: failed install', async (t) => {
}
});

test('yarn-install: teardown', async () => {
tap.teardown(async () => {
await fs.rm(sandbox, {
recursive: true,
force: true,
Expand Down
4 changes: 2 additions & 2 deletions test/yarn/test-yarn-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { tmpdir } from 'os';
import { join, resolve, dirname } from 'path';
import { fileURLToPath } from 'url';

import { test } from 'tap';
import tap, { test } from 'tap';

import { npmContext } from '../helpers/make-context.js';
import { getPackageManagers } from '../../lib/package-manager/index.js';
Expand Down Expand Up @@ -180,7 +180,7 @@ test('yarn-test: tmpdir is redirected', async (t) => {
);
});

test('yarn-test: teardown', async () => {
tap.teardown(async () => {
await fs.rm(sandbox, {
recursive: true,
force: true,
Expand Down

0 comments on commit 9557f5b

Please sign in to comment.