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

encode-utf8

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

encode-utf8 - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

10

index.js
'use strict'
module.exports = function encodeUtf8 (input) {
const result = []
const size = input.length
var result = []
var size = input.length
for (let index = 0; index < size; index++) {
let point = input.charCodeAt(index)
for (var index = 0; index < size; index++) {
var point = input.charCodeAt(index)
if (point >= 0xD800 && point <= 0xDBFF && size > index + 1) {
const second = input.charCodeAt(index + 1)
var second = input.charCodeAt(index + 1)

@@ -13,0 +13,0 @@ if (second >= 0xDC00 && second <= 0xDFFF) {

{
"name": "encode-utf8",
"version": "1.0.2",
"version": "1.0.3",
"license": "MIT",

@@ -10,5 +10,5 @@ "repository": "LinusU/encode-utf8",

"devDependencies": {
"mocha": "^4.0.1",
"standard": "^10.0.3"
"mocha": "^6.2.2",
"standard": "^14.3.1"
}
}
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