snapsaver-downloader 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/utils.js +1 -1
  2. package/package.json +1 -1
package/dist/utils.js CHANGED
@@ -6,7 +6,7 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.detectPlatformFromURL = exports.fixThumbnail = exports.normalizeURL = exports.twitterRegex = exports.youtubeRegex = exports.tiktokRegex = exports.instagramRegex = exports.facebookRegex = void 0;
8
8
  // Facebook URLs including watch, reels, videos, posts and fb.watch short links
9
- exports.facebookRegex = /^https?:\/\/(?:www\.|web\.|m\.)?facebook\.com\/(watch(\?v=|\/\?v=)[0-9]+(?!\/)|reel\/[0-9]+|[a-zA-Z0-9.\-_]+\/(videos|posts)\/[0-9]+|[0-9]+\/(videos|posts)\/[0-9]+|[a-zA-Z0-9]+\/(videos|posts)\/[0-9]+|share\/(v|r)\/[a-zA-Z0-9]+\/?)([^/?#&]+).*$|^https:\/\/fb\.watch\/[a-zA-Z0-9]+$/;
9
+ exports.facebookRegex = /^https?:\/\/(?:www\.|web\.|m\.)?facebook\.com\/(?:(?:watch(?:\?v=|\/\?v=)[0-9]+(?!\/))|(?:reel\/[0-9]+)|(?:[a-zA-Z0-9.\-_]+\/(?:videos|posts)\/[0-9]+)|(?:[0-9]+\/(?:videos|posts)\/[0-9]+)|(?:share\/(?:v|r)\/[a-zA-Z0-9\-_]+\/?)|(?:[a-zA-Z0-9.\-_]+))(?:[^/?#&]+)?.*$|^https:\/\/fb\.watch\/[a-zA-Z0-9\-_]+$/;
10
10
  // Instagram URLs for posts, reels, stories, tv and share links
11
11
  exports.instagramRegex = /^https?:\/\/(?:www\.)?instagram\.com\/(?:p|reel|reels|tv|stories|share)\/([^/?#&]+).*/;
12
12
  // TikTok URLs for various formats including user videos, photos and short links
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snapsaver-downloader",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "An Unofficial Package to Download From Facebook, TikTok and Instagram. Relais on SnapSave",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",