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

@webassemblyjs/utf8

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webassemblyjs/utf8 - npm Package Compare versions

Comparing version 1.5.9 to 1.5.10

test/index.js

2

lib/decoder.js

@@ -21,3 +21,3 @@ "use strict";

function code(min, n) {
if (n < min || 0xd800 <= n && n < 0xe000 || n >= 0x110000) {
if (n < min || 0xd800 <= n && n < 0xe000 || n >= 0x10000) {
throw new Error("invalid UTF-8 encoding");

@@ -24,0 +24,0 @@ } else {

{
"name": "@webassemblyjs/utf8",
"version": "1.5.9",
"version": "1.5.10",
"description": "UTF8 encoder/decoder for WASM",

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

@@ -10,3 +10,3 @@ function con(b) {

function code(min, n) {
if (n < min || (0xd800 <= n && n < 0xe000) || n >= 0x110000) {
if (n < min || (0xd800 <= n && n < 0xe000) || n >= 0x10000) {
throw new Error("invalid UTF-8 encoding");

@@ -13,0 +13,0 @@ } else {

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