New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@gulujs/decode-uri-component

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gulujs/decode-uri-component

fast and safe decodeURIComponent

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

@gulujs/decode-uri-component

Code points

  • Code points range: 0x0000 - 0x10FFFF
  • Hight surrogate area: 0xD800 - 0xDBFF
  • Low surrogate area: 0xDC00 - 0xDFFF

Ranges

  • 00..7F
UnicodeBinaryHex
From0x00000000000x00
To0x7F011111110x7F
  • C2..DF 80..BF
UnicodeBinaryHex
From0x008011000010 100000000xC2 0x80
To0x07FF11011111 101111110xDF 0xBF
  • E0..E0 A0..BF 80..BF
UnicodeBinaryHex
From0x080011100000 10100000 100000000xE0 0xA0 0x80
To0x0FFF11100000 10111111 101111110xE0 0xBF 0xBF
  • E1..EC 80..BF 80..BF
UnicodeBinaryHex
From0x100011100001 10000000 100000000xE1 0x80 0x80
To0xCFFF11101100 10111111 101111110xEC 0xBF 0xBF
  • ED..ED 80..9F 80..BF
UnicodeBinaryHex
From0xD00011101101 10000000 100000000xED 0x80 0x80
To0xD7FF11101101 10011111 101111110xED 0x9F 0xBF
  • EE..EF 80..BF 80..BF
UnicodeBinaryHex
From0xE00011101110 10000000 100000000xEE 0x80 0x80
To0xFFFF11101111 10111111 101111110xEF 0xBF 0xBF
  • F0..F0 90..BF 80..BF 80..BF
UnicodeBinaryHex
From0x1000011110000 10010000 10000000 100000000xF0 0x90 0x80 0x80
To0x3FFFF11110000 10111111 10111111 101111110xF0 0xBF 0xBF 0xBF
  • F1..F3 80..BF 80..BF 80..BF
UnicodeBinaryHex
From0x4000011110001 10000000 10000000 100000000xF1 0x80 0x80 0x80
To0xFFFFF11110011 10111111 10111111 101111110xF3 0xBF 0xBF 0xBF
  • F4..F4 80..8F 80..BF 80..BF
UnicodeBinaryHex
From0x10000011110100 10000000 10000000 100000000xF4 0x80 0x80 0x80
To0x10FFFF11110100 10001111 10111111 101111110xF4 0x8F 0xBF 0xBF

DFA with range transitions

DFA with range transitions

type

bytestype
00..7F0
80..8F1
90..9F2
A0..BF3
C0..C14
C2..DF5
E0..E06
E1..EC7
ED..ED8
EE..EF7
F0..F09
F1..F310
F4..F411
F5..FF4

DFA with class transitions

DFA with class transitions

state

  • ACCEPT: 0

  • REJECT: 12

  • 00..7F

    0  1  2  3  4  5  6  7  8  9

0   0
1         12
  • C2..DF 80..BF
    0  1  2  3  4  5  6  7  8  9

0   0  12 12 12 12 13
1         12 12 0  0  0  12 12 12
2   12 12 12 12 12 12
  • E0..E0 A0..BF 80..BF
    0  1  2  3  4  5  6  7  8  9

0   0  12 12 12 12 13 26
1         12 12 0  0  0  12 12 12
2   12 12 12 12 12 12 12 12 12 13
3   12 12 12 12 12 12 12 12 12
  • E1..EC 80..BF 80..BF
  • EE..EF 80..BF 80..BF
    0  1  2  3  4  5  6  7  8  9

0   0  12 12 12 12 13 26 39
1         12 12 0  0  0  12 12 12
2   12 12 12 12 12 12 12 12 12 13
3   12 12 12 12 12 12 12 12 12 12
4   13 13 13 12 12 12 12 12 12 12
5   12 12
  • ED..ED 80..9F 80..BF
    0  1  2  3  4  5  6  7  8  9

0   0  12 12 12 12 13 26 39 52
1         12 12 0  0  0  12 12 12
2   12 12 12 12 12 12 12 12 12 13
3   12 12 12 12 12 12 12 12 12 12
4   13 13 13 12 12 12 12 12 12 12
5   12 12 12 13 13 12 12 12 12 12
6   12 12 12 12 12
  • F0..F0 90..BF 80..BF 80..BF
    0  1  2  3  4  5  6  7  8  9

0   0  12 12 12 12 13 26 39 52 65
1         12 12 0  0  0  12 12 12
2   12 12 12 12 12 12 12 12 12 13
3   12 12 12 12 12 12 12 12 12 12
4   13 13 13 12 12 12 12 12 12 12
5   12 12 12 13 13 12 12 12 12 12
6   12 12 12 12 12 12 12 39 39 12
7   12 12 12 12 12 12 12 12
  • F1..F3 80..BF 80..BF 80..BF
    0  1  2  3  4  5  6  7  8  9

0   0  12 12 12 12 13 26 39 52 65
1   78    12 12 0  0  0  12 12 12
2   12 12 12 12 12 12 12 12 12 13
3   12 12 12 12 12 12 12 12 12 12
4   13 13 13 12 12 12 12 12 12 12
5   12 12 12 13 13 12 12 12 12 12
6   12 12 12 12 12 12 12 39 39 12
7   12 12 12 12 12 12 12 12 12 39
8   39 39 12 12 12 12 12 12 12 12
9   12
  • F4..F4 80..8F 80..BF 80..BF
    0  1  2  3  4  5  6  7  8  9

0   0  12 12 12 12 13 26 39 52 65
1   78 91 12 12 0  0  0  12 12 12
2   12 12 12 12 12 12 12 12 12 13
3   12 12 12 12 12 12 12 12 12 12
4   13 13 13 12 12 12 12 12 12 12
5   12 12 12 13 13 12 12 12 12 12
6   12 12 12 12 12 12 12 39 39 12
7   12 12 12 12 12 12 12 12 12 39
8   39 39 12 12 12 12 12 12 12 12
9   12 12 39 12 12 12 12 12 12 12
10  12 12 12 12

Acknowledgements

  • delvedor/fast-decode-uri-component
  • jridgewell/safe-decode-uri-component
  • Flexible and Economical UTF-8 Decoder

License

MIT

Keywords

decodeURIComponent

FAQs

Package last updated on 26 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts