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.14 to 1.1.0-beta.15

14

lib/run.ts

@@ -13,5 +13,5 @@ import { FetchStory } from "..";

if (!options.dryRun) {
response = await fetch(request.clone());
if (story.expect) {
try {
try {
response = await fetch(request.clone());
if (story.expect) {
expect({

@@ -22,7 +22,7 @@ status: response.status,

}).toMatchObject(story.expect);
} catch (err: any) {
console.log(picocolors.red("✘"), story.name, response.status);
console.error(err.message);
process.exit(1);
}
} catch (err: any) {
console.log(picocolors.red("✘"), story.name, response?.status ?? "");
console.error(response ? err.message : err);
process.exit(1);
}

@@ -29,0 +29,0 @@ }

{
"name": "fetchbook",
"version": "1.1.0-beta.14",
"version": "1.1.0-beta.15",
"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