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

hysnappy

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hysnappy - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

35

hysnappy.js

@@ -20,7 +20,17 @@ /**

// WASM memory
/** @type {WebAssembly.Memory} */
if (memory.buffer.byteLength < input.byteLength + output.byteLength) {
// TODO: memory.grow(pagesToGrow)
throw new Error('memory buffer is too small')
// Input data is passed into wasm memory at inputStart
// Output data is expected to be written to wasm memory at outputStart
// clang uses some wasm memory, so we need to skip past that
const inputStart = 68000 // 68 kb
const outputStart = inputStart + input.byteLength
// WebAssembly memory
const totalSize = inputStart + input.byteLength + output.byteLength
if (memory.buffer.byteLength < totalSize) {
// Calculate the number of pages needed, rounding up
const pageSize = 64 * 1024 // 64KiB per page
const currentPages = memory.buffer.byteLength / pageSize
const requiredPages = Math.ceil(totalSize / pageSize)
const pagesToGrow = requiredPages - currentPages
memory.grow(pagesToGrow)
}

@@ -30,10 +40,15 @@

const byteArray = new Uint8Array(memory.buffer)
byteArray.set(input)
byteArray.set(input, inputStart)
// Call wasm uncompress function
const result = uncompress(0, input.byteLength, input.byteLength)
if (result !== 0) throw new Error(`failed to uncompress data ${result}`)
const result = uncompress(inputStart, input.byteLength, outputStart)
// Check for errors
if (result === -1) throw new Error('invalid snappy length header')
if (result === -2) throw new Error('missing eof marker')
if (result === -3) throw new Error('premature end of input')
if (result) throw new Error(`failed to uncompress data ${result}`)
// Get uncompressed data from WASM memory
const uncompressed = byteArray.slice(input.byteLength, input.byteLength + output.byteLength)
const uncompressed = byteArray.slice(outputStart, outputStart + output.byteLength)

@@ -60,2 +75,2 @@ // Copy the uncompressed data to the output buffer

// Base64 encoded hysnappy.wasm
const wasm64 = 'AGFzbQEAAAABLQhgAABgA39/fwF/YAJ/fwBgAn9/AX9gAX8AYAF/AX9gB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Go2AgAMAQsgACABNgIEC0EBIQcLIAcLC6gEAQBBgAgLoAQAAAAA/wAAAP//AAD///8A/////wAAAAAAAAAAAAAAAAEABAgBEAEgAgAFCAIQAiADAAYIAxADIAQABwgEEAQgBQAICAUQBSAGAAkIBhAGIAcACggHEAcgCAALCAgQCCAJAAQJCRAJIAoABQkKEAogCwAGCQsQCyAMAAcJDBAMIA0ACAkNEA0gDgAJCQ4QDiAPAAoJDxAPIBAACwkQEBAgEQAEChEQESASAAUKEhASIBMABgoTEBMgFAAHChQQFCAVAAgKFRAVIBYACQoWEBYgFwAKChcQFyAYAAsKGBAYIBkABAsZEBkgGgAFCxoQGiAbAAYLGxAbIBwABwscEBwgHQAICx0QHSAeAAkLHhAeIB8ACgsfEB8gIAALCyAQICAhAAQMIRAhICIABQwiECIgIwAGDCMQIyAkAAcMJBAkICUACAwlECUgJgAJDCYQJiAnAAoMJxAnICgACwwoECggKQAEDSkQKSAqAAUNKhAqICsABg0rECsgLAAHDSwQLCAtAAgNLRAtIC4ACQ0uEC4gLwAKDS8QLyAwAAsNMBAwIDEABA4xEDEgMgAFDjIQMiAzAAYOMxAzIDQABw40EDQgNQAIDjUQNSA2AAkONhA2IDcACg43EDcgOAALDjgQOCA5AAQPORA5IDoABQ86EDogOwAGDzsQOyA8AAcPPBA8IAEICA89ED0gARAJDz4QPiABGAoPPxA/IAEgCw9AEEAgAGQEbmFtZQE9BQARX193YXNtX2NhbGxfY3RvcnMBBm1lbWNweQIHbWVtbW92ZQMKdW5jb21wcmVzcwQKcmVmaWxsX3RhZwcSAQAPX19zdGFja19wb2ludGVyCQoBAAcucm9kYXRhADIJcHJvZHVjZXJzAQxwcm9jZXNzZWQtYnkBDFVidW50dSBjbGFuZwsxNi4wLjYgKDE1KQAsD3RhcmdldF9mZWF0dXJlcwIrD211dGFibGUtZ2xvYmFscysIc2lnbi1leHQ='
{
"name": "hysnappy",
"version": "0.1.1",
"version": "0.1.2",
"description": "snappy decompressor for wasm",

@@ -34,8 +34,9 @@ "keywords": [

"@types/node": "20.11.19",
"@vitest/coverage-v8": "1.3.0",
"@vitest/coverage-v8": "1.3.1",
"eslint": "8.56.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsdoc": "48.1.0",
"vitest": "1.3.0"
"snappyjs": "0.7.0",
"vitest": "1.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