Skip to content

Commit

Permalink
[7.17] Bump decode-uri-component from v0.2.0 to v0.2.2 (#148809) (#14…
Browse files Browse the repository at this point in the history
…8878)

# Backport

This will backport the following commits from `main` to `7.17`:
- [Bump decode-uri-component from v0.2.0 to v0.2.2
(#148809)](#148809)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Thomas
Watson","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-01-13T10:47:32Z","message":"Bump
decode-uri-component from v0.2.0 to v0.2.2
(#148809)","sha":"22ed93e4e10f61d342f082ad0fdcea9c75b48972","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","v8.7.0"],"number":148809,"url":"https://github.com/elastic/kibana/pull/148809","mergeCommit":{"message":"Bump
decode-uri-component from v0.2.0 to v0.2.2
(#148809)","sha":"22ed93e4e10f61d342f082ad0fdcea9c75b48972"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/148809","number":148809,"mergeCommit":{"message":"Bump
decode-uri-component from v0.2.0 to v0.2.2
(#148809)","sha":"22ed93e4e10f61d342f082ad0fdcea9c75b48972"}}]}]
BACKPORT-->

Co-authored-by: Thomas Watson <[email protected]>
  • Loading branch information
kibanamachine and Thomas Watson authored Jan 13, 2023
1 parent 7bb982c commit ee0d177
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions packages/kbn-pm/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80307,13 +80307,13 @@ module.exports = customDecodeUriComponent
"use strict";

var token = '%[a-f0-9]{2}';
var singleMatcher = new RegExp(token, 'gi');
var singleMatcher = new RegExp('(' + token + ')|([^%]+?)', 'gi');
var multiMatcher = new RegExp('(' + token + ')+', 'gi');

function decodeComponents(components, split) {
try {
// Try to decode the entire string first
return decodeURIComponent(components.join(''));
return [decodeURIComponent(components.join(''))];
} catch (err) {
// Do nothing
}
Expand All @@ -80335,12 +80335,12 @@ function decode(input) {
try {
return decodeURIComponent(input);
} catch (err) {
var tokens = input.match(singleMatcher);
var tokens = input.match(singleMatcher) || [];

for (var i = 1; i < tokens.length; i++) {
input = decodeComponents(tokens, i).join('');

tokens = input.match(singleMatcher);
tokens = input.match(singleMatcher) || [];
}

return input;
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11325,9 +11325,9 @@ decimal.js@^10.2.0:
integrity sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw==

decode-uri-component@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545"
integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=
version "0.2.2"
resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9"
integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==

decompress-response@^3.3.0:
version "3.3.0"
Expand Down

0 comments on commit ee0d177

Please sign in to comment.