Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-csfd-api

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-csfd-api - npm Package Compare versions

Comparing version 3.0.0-next.5 to 3.0.0-next.6

5

cjs/fetchers/index.js

@@ -17,3 +17,4 @@ "use strict";

const cross_fetch_1 = require("cross-fetch");
const fetch = (_a = ((typeof global === 'object' && global.fetch) ||
const fetchSafe = (_a = ((typeof fetch === 'function' && fetch) ||
(typeof global === 'object' && global.fetch) ||
(typeof window !== 'undefined' && window.fetch))) !== null && _a !== void 0 ? _a : cross_fetch_1.fetch;

@@ -31,3 +32,3 @@ const USER_AGENTS = [

try {
const response = yield fetch(url, { headers });
const response = yield fetchSafe(url, { headers });
if (response.status >= 400 && response.status < 600) {

@@ -34,0 +35,0 @@ throw new Error(`node-csfd-api: Bad response ${response.status} for url: ${url}`);

@@ -14,3 +14,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

import { fetch as crossFetch } from 'cross-fetch';
const fetch = (_a = ((typeof global === 'object' && global.fetch) ||
const fetchSafe = (_a = ((typeof fetch === 'function' && fetch) ||
(typeof global === 'object' && global.fetch) ||
(typeof window !== 'undefined' && window.fetch))) !== null && _a !== void 0 ? _a : crossFetch;

@@ -28,3 +29,3 @@ const USER_AGENTS = [

try {
const response = yield fetch(url, { headers });
const response = yield fetchSafe(url, { headers });
if (response.status >= 400 && response.status < 600) {

@@ -31,0 +32,0 @@ throw new Error(`node-csfd-api: Bad response ${response.status} for url: ${url}`);

2

package.json
{
"name": "node-csfd-api",
"version": "3.0.0-next.5",
"version": "3.0.0-next.6",
"description": "ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)",

@@ -5,0 +5,0 @@ "main": "./cjs/index.js",

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