New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fetchbook

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetchbook - npm Package Compare versions

Comparing version 1.1.0-beta.2 to 1.1.0-beta.3

4

cli.ts

@@ -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>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc