Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

2ldcheck

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

2ldcheck - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

12

index.js

@@ -22,12 +22,4 @@ 'use strict';

const niamod = domain_name.split('.').reverse().splice(0, 2);
let found = false;
const sld = slds[niamod[0]];
if (sld !== undefined) {
const N = sld.length;
let i = 0;
do {
found = niamod[1] === sld[i++];
} while (!found && i < N);
}
return !!found;
};
return !!sld && sld.indexOf(niamod[1]) >= 0;
}

2

package.json
{
"name": "2ldcheck",
"version": "0.0.4",
"version": "0.0.5",
"description": "Check whether a domain (a string) is a second level domain",

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