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.6 to 3.0.0-next.8

11

cjs/fetchers/index.js

@@ -11,11 +11,10 @@ "use strict";

};
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchPage = void 0;
// Check if `fetch` is available in global scope (nodejs 18+) or in window (browser)
// If not, use cross-fetch polyfill
// Check if `fetch` is available in global scope (nodejs 18+) or in window (browser). If not, use cross-fetch polyfill.
const cross_fetch_1 = require("cross-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;
const fetchSafe = (typeof fetch === 'function' && fetch) || // ServiceWorker fetch (Cloud Functions + Chrome extension)
(typeof global === 'object' && global.fetch) || // Node.js 18+ fetch
(typeof window !== 'undefined' && window.fetch) || // Browser fetch
cross_fetch_1.fetch; // Polyfill fetch
const USER_AGENTS = [

@@ -22,0 +21,0 @@ 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36',

@@ -10,9 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
var _a;
// Check if `fetch` is available in global scope (nodejs 18+) or in window (browser)
// If not, use cross-fetch polyfill
// Check if `fetch` is available in global scope (nodejs 18+) or in window (browser). If not, use cross-fetch polyfill.
import { fetch as crossFetch } from 'cross-fetch';
const fetchSafe = (_a = ((typeof fetch === 'function' && fetch) ||
(typeof global === 'object' && global.fetch) ||
(typeof window !== 'undefined' && window.fetch))) !== null && _a !== void 0 ? _a : crossFetch;
const fetchSafe = (typeof fetch === 'function' && fetch) || // ServiceWorker fetch (Cloud Functions + Chrome extension)
(typeof global === 'object' && global.fetch) || // Node.js 18+ fetch
(typeof window !== 'undefined' && window.fetch) || // Browser fetch
crossFetch; // Polyfill fetch
const USER_AGENTS = [

@@ -19,0 +18,0 @@ 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36',

{
"name": "node-csfd-api",
"version": "3.0.0-next.6",
"version": "3.0.0-next.8",
"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