Comparing version 1.1.0-beta.2 to 1.1.0-beta.3
@@ -22,4 +22,4 @@ import { program } from "commander"; | ||
body: await serialize(await request.blob()), | ||
}) | ||
) | ||
}), | ||
), | ||
); | ||
@@ -26,0 +26,0 @@ } else { |
@@ -10,3 +10,3 @@ import colorizer from "json-colorizer"; | ||
import(path.resolve(storyFilePath)).then( | ||
(mod) => mod.default as RequestStory | ||
(mod) => mod.default as RequestStory, | ||
); | ||
@@ -18,3 +18,5 @@ | ||
} else { | ||
const storyFiles = await glob(`${process.cwd()}/**/*.fetch.ts`); | ||
const storyFiles = await glob("**/*.fetch.ts", { | ||
ignore: ["node_modules"], | ||
}); | ||
if (storyFiles.length === 0) { | ||
@@ -38,3 +40,3 @@ console.log("No story files (*.fetch.ts) found"); | ||
story: RequestStory, | ||
visitor: (request: Request, story: RequestStory) => Promise<void> | ||
visitor: (request: Request, story: RequestStory) => Promise<void>, | ||
) => { | ||
@@ -61,3 +63,3 @@ for (const beforeStory of story.before ?? []) { | ||
story: RequestStory, | ||
options: { dryRun?: boolean; verbose?: boolean } | ||
options: { dryRun?: boolean; verbose?: boolean }, | ||
) => { | ||
@@ -72,3 +74,3 @@ visit(story, async (request, story) => { | ||
story.name, | ||
response?.status ?? picocolors.yellow("Dry run") | ||
response?.status ?? picocolors.yellow("Dry run"), | ||
); | ||
@@ -92,3 +94,3 @@ if (options.verbose) { | ||
: undefined, | ||
}) | ||
}), | ||
); | ||
@@ -95,0 +97,0 @@ } |
{ | ||
"name": "fetchbook", | ||
"version": "1.1.0-beta.2", | ||
"version": "1.1.0-beta.3", | ||
"description": "Manage your HTTP requests", | ||
@@ -5,0 +5,0 @@ "author": "Alejandro Tardín <alejandro@tardin.com>", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7076
199
1