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

balena-cdsl

Package Overview
Dependencies
Maintainers
5
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

balena-cdsl - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

66

balena_cdsl_main.js
/* tslint:disable */
var wasm;
const slab = [{ obj: undefined }, { obj: null }, { obj: true }, { obj: false }];
const heap = new Array(32);
let slab_next = slab.length;
heap.fill(undefined);
function addHeapObject(obj) {
if (slab_next === slab.length) slab.push(slab.length + 1);
const idx = slab_next;
const next = slab[idx];
heap.push(undefined, null, true, false);
slab_next = next;
let heap_next = heap.length;
slab[idx] = { obj, cnt: 1 };
return idx << 1;
}
function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];
const stack = [];
function getObject(idx) {
if ((idx & 1) === 1) {
return stack[idx >> 1];
} else {
const val = slab[idx >> 1];
return val.obj;
}
heap[idx] = obj;
return idx;
}
function dropRef(idx) {
function getObject(idx) { return heap[idx]; }
idx = idx >> 1;
if (idx < 4) return;
let obj = slab[idx];
obj.cnt -= 1;
if (obj.cnt > 0) return;
// If we hit 0 then free up our space in the slab
slab[idx] = slab_next;
slab_next = idx;
function dropObject(idx) {
if (idx < 36) return;
heap[idx] = heap_next;
heap_next = idx;
}

@@ -48,3 +31,3 @@

const ret = getObject(idx);
dropRef(idx);
dropObject(idx);
return ret;

@@ -95,5 +78,3 @@ }

module.exports.__wbindgen_object_drop_ref = function(i) {
dropRef(i);
};
module.exports.__wbindgen_object_drop_ref = function(i) { dropObject(i); };

@@ -108,2 +89,4 @@ module.exports.__wbindgen_string_new = function(p, l) {

let WASM_VECTOR_LEN = 0;
function passStringToWasm(arg) {

@@ -114,3 +97,4 @@

getUint8Memory().set(buf, ptr);
return [ptr, buf.length];
WASM_VECTOR_LEN = buf.length;
return ptr;
}

@@ -129,4 +113,4 @@

if (typeof(obj) !== 'string') return 0;
const [ptr, len] = passStringToWasm(obj);
getUint32Memory()[len_ptr / 4] = len;
const ptr = passStringToWasm(obj);
getUint32Memory()[len_ptr / 4] = WASM_VECTOR_LEN;
return ptr;

@@ -140,5 +124,5 @@ };

module.exports.__wbindgen_json_serialize = function(idx, ptrptr) {
const [ptr, len] = passStringToWasm(JSON.stringify(getObject(idx)));
const ptr = passStringToWasm(JSON.stringify(getObject(idx)));
getUint32Memory()[ptrptr / 4] = ptr;
return len;
return WASM_VECTOR_LEN;
};

@@ -145,0 +129,0 @@

/* tslint:disable */
import * as wasm from './balena_cdsl_bg';
const slab = [{ obj: undefined }, { obj: null }, { obj: true }, { obj: false }];
const heap = new Array(32);
let slab_next = slab.length;
heap.fill(undefined);
function addHeapObject(obj) {
if (slab_next === slab.length) slab.push(slab.length + 1);
const idx = slab_next;
const next = slab[idx];
heap.push(undefined, null, true, false);
slab_next = next;
let heap_next = heap.length;
slab[idx] = { obj, cnt: 1 };
return idx << 1;
}
function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];
const stack = [];
function getObject(idx) {
if ((idx & 1) === 1) {
return stack[idx >> 1];
} else {
const val = slab[idx >> 1];
return val.obj;
}
heap[idx] = obj;
return idx;
}
function dropRef(idx) {
function getObject(idx) { return heap[idx]; }
idx = idx >> 1;
if (idx < 4) return;
let obj = slab[idx];
obj.cnt -= 1;
if (obj.cnt > 0) return;
// If we hit 0 then free up our space in the slab
slab[idx] = slab_next;
slab_next = idx;
function dropObject(idx) {
if (idx < 36) return;
heap[idx] = heap_next;
heap_next = idx;
}

@@ -48,3 +31,3 @@

const ret = getObject(idx);
dropRef(idx);
dropObject(idx);
return ret;

@@ -93,5 +76,3 @@ }

export function __wbindgen_object_drop_ref(i) {
dropRef(i);
}
export function __wbindgen_object_drop_ref(i) { dropObject(i); }

@@ -104,2 +85,4 @@ export function __wbindgen_string_new(p, l) {

let WASM_VECTOR_LEN = 0;
function passStringToWasm(arg) {

@@ -110,3 +93,4 @@

getUint8Memory().set(buf, ptr);
return [ptr, buf.length];
WASM_VECTOR_LEN = buf.length;
return ptr;
}

@@ -125,4 +109,4 @@

if (typeof(obj) !== 'string') return 0;
const [ptr, len] = passStringToWasm(obj);
getUint32Memory()[len_ptr / 4] = len;
const ptr = passStringToWasm(obj);
getUint32Memory()[len_ptr / 4] = WASM_VECTOR_LEN;
return ptr;

@@ -136,5 +120,5 @@ }

export function __wbindgen_json_serialize(idx, ptrptr) {
const [ptr, len] = passStringToWasm(JSON.stringify(getObject(idx)));
const ptr = passStringToWasm(JSON.stringify(getObject(idx)));
getUint32Memory()[ptrptr / 4] = ptr;
return len;
return WASM_VECTOR_LEN;
}

@@ -141,0 +125,0 @@

@@ -8,3 +8,3 @@ {

"description": "Configuration DSL",
"version": "0.2.7",
"version": "0.2.8",
"license": "Apache-2.0",

@@ -11,0 +11,0 @@ "repository": {

@@ -38,2 +38,3 @@ # balena cdsl

* [API documentation]
* [Changelog]

@@ -130,1 +131,2 @@ ## Usage

[NPM package]: https://www.npmjs.com/package/balena-cdsl
[Changelog]: https://github.com/balena-io-modules/balena-cdsl/blob/master/CHANGELOG.md

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