Socket
Socket
Sign inDemoInstall

@crawlee/utils

Package Overview
Dependencies
Maintainers
1
Versions
1179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crawlee/utils - npm Package Compare versions

Comparing version 3.0.0-alpha.42 to 3.0.0-alpha.43

7

internals/social.js

@@ -170,9 +170,8 @@ "use strict";

// eslint-disable-next-line max-len
// eslint-disable-next-line max-len, quotes
const YOUTUBE_REGEX_STRING = '(?<!\\w)(?:https?:\\/\\/)?(?:youtu\\.be\\/|(?:www\\.|m\\.)?youtube\\.com(?:\\/(?:watch|v|embed|user|c(?:hannel)?)(?:\\.php)?)?(?:\\?[^ ]*v=|\\/))([a-zA-Z0-9\\-_]{2,100})';
// eslint-disable-next-line max-len, quotes
// eslint-disable-next-line max-len
const TIKTOK_REGEX_STRING = '(?<!\\w)(?:http(?:s)?:\\/\\/)?(?:(?:www|m)\\.)?(?:tiktok\\.com)\\/(((?:(?:v|embed|trending)(?:\\?shareId=|\\/))[0-9]{2,50}(?![0-9]))|(?:@)[a-z0-9\\-_\\.]+((?:\\/video\\/)[0-9]{2,50}(?![0-9]))?)(?:\\/)?';
// eslint-disable-next-line max-len, quotes
// eslint-disable-next-line max-len
const PINTEREST_REGEX_STRING = '(?<!\\w)(?:http(?:s)?:\\/\\/)?(?:(?:(?:(?:www\\.)?pinterest(?:\\.com|(?:\\.[a-z]{2}){1,2}))|(?:[a-z]{2})\\.pinterest\\.com)(?:\\/))((pin\\/[0-9]{2,50})|((?!pin)[a-z0-9\\-_\\.]+(\\/[a-z0-9\\-_\\.]+)?))(?:\\/)?';
// eslint-disable-next-line max-len, quotes
// eslint-disable-next-line max-len
const DISCORD_REGEX_STRING = '(?<!\\w)(?:https?:\\/\\/)?(?:www\\.)?((?:(?:(?:canary|ptb).)?(?:discord|discordapp)\\.com\\/channels(?:\\/)[0-9]{2,50}(\\/[0-9]{2,50})*)|(?:(?:(?:canary|ptb).)?(?:discord\\.(?:com|me|li|gg|io)|discordapp\\.com)(?:\\/invite)?)\\/(?!channels)[a-z0-9\\-_]{2,50})(?:\\/)?';

@@ -179,0 +178,0 @@ /**

{
"name": "@crawlee/utils",
"version": "3.0.0-alpha.42",
"version": "3.0.0-alpha.43",
"description": "A set of shared utilities that can be used by crawlers",

@@ -53,4 +53,4 @@ "engines": {

"ow": "^0.28.1",
"tslib": "^2.3.1"
"tslib": "^2.4.0"
}
}

@@ -21,2 +21,4 @@ # Crawlee: The scalable web crawling and scraping library for JavaScript

> Would you like to work with us on Apify SDK or similar projects? [We are hiring!](https://apify.com/jobs#senior-node.js-engineer)
## Motivation

@@ -23,0 +25,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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