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

social-links

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

social-links - npm Package Compare versions

Comparing version 1.10.0 to 1.10.1

4

lib/profiles/linkedin.js

@@ -9,7 +9,7 @@ "use strict";

{
match: '(https?://)?(www.)?linkedin.com/in/({PROFILE_ID})/?', group: 3, type: types_1.TYPE_DESKTOP,
match: '(https?://)?([a-z]{2,3}.)?linkedin.com/in/({PROFILE_ID})/?', group: 3, type: types_1.TYPE_DESKTOP,
pattern: 'https://linkedin.com/in/{PROFILE_ID}'
},
{
match: '(https?://)?(www.)?linkedin.com/mwlite/in/({PROFILE_ID})/?', group: 3, type: types_1.TYPE_MOBILE,
match: '(https?://)?([a-z]{2,3}.)?linkedin.com/mwlite/in/({PROFILE_ID})/?', group: 3, type: types_1.TYPE_MOBILE,
pattern: 'https://linkedin.com/mwlite/in/{PROFILE_ID}'

@@ -16,0 +16,0 @@ },

@@ -38,3 +38,10 @@ "use strict";

});
it('should accept localized urls', function () {
var profile = 'linkedin';
expect(sl.isValid(profile, 'https://de.linkedin.com/in/anton-begehr/')).toBeTruthy();
expect(sl.isValid(profile, 'https://de.linkedin.com/mwlite/in/anton-begehr/')).toBeTruthy();
expect(sl.sanitize(profile, 'https://de.linkedin.com/in/anton-begehr/')).toBe('https://linkedin.com/in/anton-begehr');
expect(sl.sanitize(profile, 'https://de.linkedin.com/mwlite/in/anton-begehr/', main_1.TYPE_MOBILE)).toBe('https://linkedin.com/mwlite/in/anton-begehr');
});
});
//# sourceMappingURL=linkedin.spec.js.map
{
"name": "social-links",
"version": "1.10.0",
"version": "1.10.1",
"description": "Validate & sanitize social links",

@@ -5,0 +5,0 @@ "main": "lib/main.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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