Update checked-in dependencies
This commit is contained in:
parent
75e4d9f140
commit
4154eaf0e9
55 changed files with 1717 additions and 1934 deletions
62
node_modules/tmp-promise/index.test-d.ts
generated
vendored
62
node_modules/tmp-promise/index.test-d.ts
generated
vendored
|
|
@ -1,31 +1,31 @@
|
|||
import { file, withFile, dir, withDir, tmpName } from ".";
|
||||
|
||||
async function fileExample() {
|
||||
const { path, fd, cleanup } = await file({ discardDescriptor: true });
|
||||
await cleanup();
|
||||
|
||||
await withFile(
|
||||
async ({ path, fd, cleanup }) => {
|
||||
console.log(fd);
|
||||
await cleanup();
|
||||
},
|
||||
{ discardDescriptor: true }
|
||||
);
|
||||
}
|
||||
|
||||
async function dirExample() {
|
||||
const { path, cleanup } = await dir({ unsafeCleanup: true });
|
||||
await cleanup();
|
||||
|
||||
await withDir(
|
||||
async ({ path, cleanup }) => {
|
||||
console.log(path);
|
||||
await cleanup();
|
||||
},
|
||||
{ unsafeCleanup: true }
|
||||
);
|
||||
}
|
||||
|
||||
async function tmpNameExample() {
|
||||
const name = await tmpName({ tries: 3 });
|
||||
}
|
||||
import { file, withFile, dir, withDir, tmpName } from ".";
|
||||
|
||||
async function fileExample() {
|
||||
const { path, fd, cleanup } = await file({ discardDescriptor: true });
|
||||
await cleanup();
|
||||
|
||||
await withFile(
|
||||
async ({ path, fd, cleanup }) => {
|
||||
console.log(fd);
|
||||
await cleanup();
|
||||
},
|
||||
{ discardDescriptor: true }
|
||||
);
|
||||
}
|
||||
|
||||
async function dirExample() {
|
||||
const { path, cleanup } = await dir({ unsafeCleanup: true });
|
||||
await cleanup();
|
||||
|
||||
await withDir(
|
||||
async ({ path, cleanup }) => {
|
||||
console.log(path);
|
||||
await cleanup();
|
||||
},
|
||||
{ unsafeCleanup: true }
|
||||
);
|
||||
}
|
||||
|
||||
async function tmpNameExample() {
|
||||
const name = await tmpName({ tries: 3 });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue