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

@tramvai/safe-strings

Package Overview
Dependencies
Maintainers
0
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tramvai/safe-strings - npm Package Compare versions

Comparing version 0.7.3 to 0.7.4

2

lib/encodeForURLContext.es.js

@@ -9,3 +9,3 @@ /** Mainly inspired by https://github.com/braintree/sanitize-url/tree/main */

function isRelativeUrlWithoutProtocol(url) {
return relativeFirstCharacters.includes(url[0]);
return !url.startsWith('//') && relativeFirstCharacters.includes(url[0]);
}

@@ -12,0 +12,0 @@ function decodeControlCharacters(str) {

@@ -13,3 +13,3 @@ 'use strict';

function isRelativeUrlWithoutProtocol(url) {
return relativeFirstCharacters.includes(url[0]);
return !url.startsWith('//') && relativeFirstCharacters.includes(url[0]);
}

@@ -16,0 +16,0 @@ function decodeControlCharacters(str) {

{
"name": "@tramvai/safe-strings",
"version": "0.7.3",
"version": "0.7.4",
"description": "",

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