New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

deshortify

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deshortify - npm Package Compare versions

Comparing version 0.6.0 to 1.0.0

bin/deshortify.js

5

package.json
{
"name": "deshortify",
"version": "0.6.0",
"version": "1.0.0",
"description": "Turns short URLs into long, meaningful, crap-less URLs.",

@@ -32,3 +32,4 @@ "main": "dist/deshortify.js",

"rollup-plugin-buble": "^0.18.0"
}
},
"bin": "bin/deshortify.js"
}

3

src/deshortify.js

@@ -171,2 +171,4 @@ const http = require("http");

name.match(/_kwd$/) ||
name.match(/_brand$/) ||
name.match(/_social-type$/) ||
name === "utm_cid" ||

@@ -282,2 +284,3 @@ name === "cm_mmc" ||

url.match(/gdpr/) || // Potential "GDPR consent" interstitial
url.match(/\/users\/sign_in/) || // Login page, e.g. gitlab
(host === "www.bloomberg.com" && pathname.match(/^\/tosv2.html/)) // GPDR interstitial

@@ -284,0 +287,0 @@ );

@@ -29,3 +29,8 @@

deshortifier.deshortify('https://www.nature.com/articles/s41598-019-44557-w');
// deshortifier.deshortify('https://www.nature.com/articles/s41598-019-44557-w');
var u = deshortifier.deshortify('http://zpr.io/gkR6r');
u.then(v=>{console.log(v)});
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