Socket
Socket
Sign inDemoInstall

@aller/external-id

Package Overview
Dependencies
Maintainers
8
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aller/external-id - npm Package Compare versions

Comparing version 5.2.5 to 5.2.7

9

lib/helpers/get-host.js

@@ -15,3 +15,3 @@ "use strict";

'.blogspot.com', '.wordpress.com'];
var DAGBLADET_SUBDOMAINS = ['borsen', 'dinside', 'oppskrift'];
var DAGBLADET_SUBDOMAINS = ['borsen', 'dinside', 'oppskrift', 'trondheim', 'bergen'];
/**

@@ -28,2 +28,4 @@ * Cleans the hostname so we only have domain and TLD, except for blogspot URLs.

hostname = hostname.replace('www.', '');
hostname = hostname.replace('stage.', '');
hostname = hostname.replace('stage-beta.', '');
var splitHost = hostname.split('.');

@@ -36,2 +38,7 @@

if (isDagbladetSubDomain(splitHost[0], hostname)) {
if ((0, _includes["default"])(hostname, 'trondheim') || (0, _includes["default"])(hostname, 'bergen')) {
// for trondheim and bergen we don't want to remove dagbladet from the url
return "".concat(splitHost[0], ".").concat(splitHost[1], ".").concat(splitHost[splitHost.length - 1]);
}
return "".concat(splitHost[0], ".").concat(splitHost[splitHost.length - 1]);

@@ -38,0 +45,0 @@ }

2

package.json
{
"name": "@aller/external-id",
"version": "5.2.5",
"version": "5.2.7",
"description": "Library for creating an ID from an URL. ",

@@ -5,0 +5,0 @@ "main": "lib/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