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

lys

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lys - npm Package Compare versions

Comparing version 0.1.10-20191216035342.commit-c419e44 to 0.1.10-20191218194952.commit-3097495

1

dist/utils/execution.d.ts
export declare function readString(memory: ArrayBuffer, offset: number): string;
export declare function writeStringToHeap(instance: any, value: string): any;
export declare function readBytes(memory: ArrayBuffer, offset: number): number[];
export declare function hexDump(memory: ArrayBuffer, max?: number, start?: number): string;

@@ -20,2 +20,19 @@ "use strict";

exports.readString = readString;
function writeStringToHeap(instance, value) {
const allocatedString = instance.exports.malloc(4 + value.length);
// UCS16
const dv = new DataView(instance.exports.memory.buffer, allocatedString);
let len = value.length;
dv.setUint32(0, len, true);
let currentOffset = 4;
len += 4;
let i = 0;
while (currentOffset < len) {
dv.setUint16(currentOffset, value.charCodeAt(i), true);
currentOffset += 2;
i++;
}
return allocatedString;
}
exports.writeStringToHeap = writeStringToHeap;
function readBytes(memory, offset) {

@@ -22,0 +39,0 @@ const dv = new DataView(memory, offset);

2

package.json
{
"name": "lys",
"version": "0.1.10-20191216035342.commit-c419e44",
"version": "0.1.10-20191218194952.commit-3097495",
"description": "",

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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