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

@datadog/native-iast-rewriter

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datadog/native-iast-rewriter - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

wasm/snippets/native-iast-rewriter-fb996d68f4d30dba/tracer_logger.js

2

package.json
{
"name": "@datadog/native-iast-rewriter",
"homepage": "https://github.com/DataDog/dd-native-iast-rewriter-js/blob/main/README.md",
"version": "2.3.0",
"version": "2.3.1",
"description": "Datadog IAST instrumentation addon for NodeJS",

@@ -6,0 +6,0 @@ "main": "main.js",

let imports = {};
imports['__wbindgen_placeholder__'] = module.exports;
let wasm;
const { log, setLogger } = require(String.raw`./snippets/native-iast-rewriter-2355e0e54b275e2c/tracer_logger.js`);
const { log, setLogger } = require(String.raw`./snippets/native-iast-rewriter-fb996d68f4d30dba/tracer_logger.js`);
const { readFileSync } = require(`fs`);
const { dirname } = require(`path`);
const { TextDecoder, TextEncoder } = require(`util`);
const { TextEncoder, TextDecoder } = require(`util`);

@@ -29,6 +29,4 @@ const heap = new Array(128).fill(undefined);

let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
let WASM_VECTOR_LEN = 0;
cachedTextDecoder.decode();
let cachedUint8Memory0 = null;

@@ -43,18 +41,2 @@

function getStringFromWasm0(ptr, len) {
ptr = ptr >>> 0;
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];
heap[idx] = obj;
return idx;
}
let WASM_VECTOR_LEN = 0;
let cachedTextEncoder = new TextEncoder('utf-8');

@@ -126,2 +108,20 @@

let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();
function getStringFromWasm0(ptr, len) {
ptr = ptr >>> 0;
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];
heap[idx] = obj;
return idx;
}
let cachedFloat64Memory0 = null;

@@ -315,12 +315,2 @@

module.exports.__wbindgen_is_string = function(arg0) {
const ret = typeof(getObject(arg0)) === 'string';
return ret;
};
module.exports.__wbindgen_error_new = function(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
module.exports.__wbindgen_boolean_get = function(arg0) {

@@ -357,2 +347,7 @@ const v = getObject(arg0);

module.exports.__wbindgen_error_new = function(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
module.exports.__wbindgen_string_new = function(arg0, arg1) {

@@ -363,3 +358,3 @@ const ret = getStringFromWasm0(arg0, arg1);

module.exports.__wbg_log_b732d979dc629bf9 = function() { return handleError(function (arg0, arg1) {
module.exports.__wbg_log_f8529bc2883b9417 = function() { return handleError(function (arg0, arg1) {
const ret = log(getObject(arg0), getObject(arg1));

@@ -369,17 +364,22 @@ return addHeapObject(ret);

module.exports.__wbg_readFileSync_ec1356933b166584 = function() { return handleError(function (arg0, arg1) {
const ret = readFileSync(getStringFromWasm0(arg0, arg1));
module.exports.__wbg_setLogger_3aec7659c14c44de = function() { return handleError(function (arg0) {
const ret = setLogger(getObject(arg0));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_dirname_ee2f614163ee26b5 = function() { return handleError(function (arg0, arg1) {
const ret = dirname(getStringFromWasm0(arg0, arg1));
module.exports.__wbg_readFileSync_35c746f38a8cb547 = function() { return handleError(function (arg0, arg1) {
const ret = readFileSync(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_setLogger_e79faaa41aae0349 = function() { return handleError(function (arg0) {
const ret = setLogger(getObject(arg0));
module.exports.__wbg_dirname_f8dde220510da900 = function() { return handleError(function (arg0, arg1) {
const ret = dirname(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbindgen_is_string = function(arg0) {
const ret = typeof(getObject(arg0)) === 'string';
return ret;
};
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {

@@ -386,0 +386,0 @@ const ret = getObject(arg0) == getObject(arg1);

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