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.4 to 3.0.0-next.5

7

cjs/fetchers/index.js
"use strict";
// import fetch from 'cross-fetch';
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -12,4 +11,10 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
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
const cross_fetch_1 = require("cross-fetch");
const fetch = (_a = ((typeof global === 'object' && global.fetch) ||
(typeof window !== 'undefined' && window.fetch))) !== null && _a !== void 0 ? _a : cross_fetch_1.fetch;
const USER_AGENTS = [

@@ -16,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',

@@ -1,2 +0,1 @@

// import fetch from 'cross-fetch';
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -11,2 +10,8 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
var _a;
// 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 fetch = (_a = ((typeof global === 'object' && global.fetch) ||
(typeof window !== 'undefined' && window.fetch))) !== null && _a !== void 0 ? _a : crossFetch;
const USER_AGENTS = [

@@ -13,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',

4

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

@@ -18,3 +18,3 @@ "main": "./cjs/index.js",

"fix-paths": "yarn json -I -f ./dist/package.json -e \"this.module='./esm/index.js';this.main='./cjs/index.js';this.types='./types/index.d.ts'\"",
"publish:next": "yarn && yarn build && yarn test --coverage true && cd dist && npm publish --tag beta",
"publish:next": "yarn && yarn build && yarn test --coverage true && cd dist && npm publish --tag next",
"postversion": "git push && git push --follow-tags",

@@ -21,0 +21,0 @@ "release:beta": "npm version preminor --preid=beta -m \"chore(update): prelease %s β\"",

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