Socket
Socket
Sign inDemoInstall

@nuxt/ufo

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxt/ufo - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.5.1](https://github.com/nuxt-contrib/ufo/compare/v0.5.0...v0.5.1) (2020-12-16)
### Bug Fixes
* update encodeQueryValue to match URL spec for space and plus ([9446d9c](https://github.com/nuxt-contrib/ufo/commit/9446d9c3f0decaa76754ab74954905375e3b0fc7))
## [0.5.0](https://github.com/nuxt-contrib/ufo/compare/v0.4.0...v0.5.0) (2020-12-16)

@@ -7,0 +14,0 @@

4

dist/index.js

@@ -97,3 +97,2 @@ 'use strict';

const IM_RE = /\?/g;
const PLUS_RE = /\+/g;
const ENC_BRACKET_OPEN_RE = /%5B/g;

@@ -106,3 +105,2 @@ const ENC_BRACKET_CLOSE_RE = /%5D/g;

const ENC_CURLY_CLOSE_RE = /%7D/g;
const ENC_SPACE_RE = /%20/g;
function encode(text) {

@@ -115,3 +113,3 @@ return encodeURI("" + text).replace(ENC_PIPE_RE, "|").replace(ENC_BRACKET_OPEN_RE, "[").replace(ENC_BRACKET_CLOSE_RE, "]");

function encodeQueryValue(text) {
return encode(text).replace(PLUS_RE, "%2B").replace(ENC_SPACE_RE, "+").replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CURLY_OPEN_RE, "{").replace(ENC_CURLY_CLOSE_RE, "}").replace(ENC_CARET_RE, "^");
return encode(text).replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CURLY_OPEN_RE, "{").replace(ENC_CURLY_CLOSE_RE, "}").replace(ENC_CARET_RE, "^");
}

@@ -118,0 +116,0 @@ function encodeQueryKey(text) {

{
"name": "@nuxt/ufo",
"version": "0.5.0",
"version": "0.5.1",
"description": "URL utils for humans",

@@ -5,0 +5,0 @@ "repository": "nuxt-contrib/ufo",

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