Socket
Socket
Sign inDemoInstall

@tinypudding/puddy-lib

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinypudding/puddy-lib - npm Package Compare versions

Comparing version 1.1.14 to 1.1.15

17

http/getDomainURL.js
module.exports = function (domain, httpResult = 'https') {
// Domain Selected
let domainSelected = null;
// String
if (typeof domain === "string") {
domainSelected = domain;
}
// Nope
else {
domainSelected = require('./check_domain').get(domain);
}
// Domain
if (typeof domainSelected === "string") {
// Normal Domain
if (!domain.startsWith('localhost:')) { return `${httpResult}://${domain}`; }
if (!domainSelected.startsWith('localhost:')) { return `${httpResult}://${domainSelected}`; }
// Localhost
else { return `http://${domain}`; }
else { return `http://${domainSelected}`; }

@@ -12,0 +25,0 @@ }

2

package.json
{
"name": "@tinypudding/puddy-lib",
"version": "1.1.14",
"version": "1.1.15",
"description": "Essential codes to run the other repositories from the Tiny Pudding Account.",

@@ -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