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

level-js

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

level-js - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

23

index.js

@@ -64,7 +64,9 @@ module.exports = Level

var op
, i
, copiedOp
, modified = []
var i
var k
var copiedOp
var currentOp
var modified = []
for (i=0; i < array.length; i++) {
for (i = 0; i < array.length; i++) {
copiedOp = {}

@@ -115,14 +117,1 @@ currentOp = array[i]

}
function ArrayBufferToString(buf) {
return String.fromCharCode.apply(null, new Uint16Array(buf))
}
function StringToArrayBuffer(str) {
var buf = new ArrayBuffer(str.length * 2) // 2 bytes for each char
var bufView = new Uint16Array(buf)
for (var i = 0, strLen = str.length; i < strLen; i++) {
bufView[i] = str.charCodeAt(i)
}
return buf
}
{
"name": "level-js",
"version": "1.1.1",
"version": "1.1.2",
"description": "leveldown/leveldb library for browsers using IndexedDB",

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

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