@datadog/native-iast-rewriter
Advanced tools
Comparing version 2.4.0-pre-001 to 2.4.0-pre-002
{ | ||
"name": "@datadog/native-iast-rewriter", | ||
"homepage": "https://github.com/DataDog/dd-native-iast-rewriter-js/blob/main/README.md", | ||
"version": "2.4.0-pre-001", | ||
"version": "2.4.0-pre-002", | ||
"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-982d5e485c5d83af/tracer_logger.js`); | ||
const { log, setLogger } = require(String.raw`./snippets/native-iast-rewriter-49cba6c9cd1a688b/tracer_logger.js`); | ||
const { readFileSync } = require(`fs`); | ||
@@ -215,2 +215,7 @@ const { dirname } = require(`path`); | ||
function getArrayU8FromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len); | ||
} | ||
const RewriterFinalization = (typeof FinalizationRegistry === 'undefined') | ||
@@ -311,8 +316,2 @@ ? { register: () => {}, unregister: () => {} } | ||
module.exports.__wbindgen_boolean_get = function(arg0) { | ||
const v = getObject(arg0); | ||
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_string_get = function(arg0, arg1) { | ||
@@ -327,3 +326,3 @@ const obj = getObject(arg1); | ||
module.exports.__wbg_readFileSync_e81bd843f54909b7 = function() { return handleError(function (arg0, arg1) { | ||
module.exports.__wbg_readFileSync_051275d980729f41 = function() { return handleError(function (arg0, arg1) { | ||
const ret = readFileSync(getStringFromWasm0(arg0, arg1)); | ||
@@ -333,3 +332,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_dirname_77bd38b1a7287e38 = function() { return handleError(function (arg0, arg1) { | ||
module.exports.__wbg_dirname_8a254a9919bbd625 = function() { return handleError(function (arg0, arg1) { | ||
const ret = dirname(getStringFromWasm0(arg0, arg1)); | ||
@@ -339,18 +338,2 @@ return addHeapObject(ret); | ||
module.exports.__wbindgen_is_object = function(arg0) { | ||
const val = getObject(arg0); | ||
const ret = typeof(val) === 'object' && val !== null; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
const ret = getObject(arg0) === undefined; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_in = function(arg0, arg1) { | ||
const ret = getObject(arg0) in getObject(arg1); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_error_new = function(arg0, arg1) { | ||
@@ -371,3 +354,3 @@ const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
module.exports.__wbg_log_9749ed96855e176a = function() { return handleError(function (arg0, arg1) { | ||
module.exports.__wbg_log_7599ed7a93ecb542 = function() { return handleError(function (arg0, arg1) { | ||
const ret = log(getObject(arg0), getObject(arg1)); | ||
@@ -377,3 +360,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_setLogger_269583007cfee856 = function() { return handleError(function (arg0) { | ||
module.exports.__wbg_setLogger_5f42def27a62eb6c = function() { return handleError(function (arg0) { | ||
const ret = setLogger(getObject(arg0)); | ||
@@ -383,2 +366,24 @@ return addHeapObject(ret); | ||
module.exports.__wbindgen_boolean_get = function(arg0) { | ||
const v = getObject(arg0); | ||
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_is_object = function(arg0) { | ||
const val = getObject(arg0); | ||
const ret = typeof(val) === 'object' && val !== null; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_is_undefined = function(arg0) { | ||
const ret = getObject(arg0) === undefined; | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_in = function(arg0, arg1) { | ||
const ret = getObject(arg0) in getObject(arg1); | ||
return ret; | ||
}; | ||
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) { | ||
@@ -453,2 +458,45 @@ const ret = getObject(arg0) == getObject(arg1); | ||
module.exports.__wbg_crypto_e1d53a1d73fb10b8 = function(arg0) { | ||
const ret = getObject(arg0).crypto; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_process_038c26bf42b093f8 = function(arg0) { | ||
const ret = getObject(arg0).process; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_versions_ab37218d2f0b24a8 = function(arg0) { | ||
const ret = getObject(arg0).versions; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_node_080f4b19d15bc1fe = function(arg0) { | ||
const ret = getObject(arg0).node; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_require_78a3dcfbdba9cbce = function() { return handleError(function () { | ||
const ret = module.require; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbindgen_is_function = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'function'; | ||
return ret; | ||
}; | ||
module.exports.__wbg_msCrypto_6e7d3e1f92610cbb = function(arg0) { | ||
const ret = getObject(arg0).msCrypto; | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_randomFillSync_6894564c2c334c42 = function() { return handleError(function (arg0, arg1, arg2) { | ||
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2)); | ||
}, arguments) }; | ||
module.exports.__wbg_getRandomValues_805f1c3d65988a5a = function() { return handleError(function (arg0, arg1) { | ||
getObject(arg0).getRandomValues(getObject(arg1)); | ||
}, arguments) }; | ||
module.exports.__wbg_get_7303ed2ef026b2f5 = function(arg0, arg1) { | ||
@@ -469,5 +517,5 @@ const ret = getObject(arg0)[arg1 >>> 0]; | ||
module.exports.__wbindgen_is_function = function(arg0) { | ||
const ret = typeof(getObject(arg0)) === 'function'; | ||
return ret; | ||
module.exports.__wbg_newnoargs_c9e6043b8ad84109 = function(arg0, arg1) { | ||
const ret = new Function(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
@@ -520,2 +568,22 @@ | ||
module.exports.__wbg_self_742dd6eab3e9211e = function() { return handleError(function () { | ||
const ret = self.self; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_window_c409e731db53a0e2 = function() { return handleError(function () { | ||
const ret = window.window; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_globalThis_b70c095388441f2d = function() { return handleError(function () { | ||
const ret = globalThis.globalThis; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_global_1c72617491ed7194 = function() { return handleError(function () { | ||
const ret = global.global; | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_set_b4da98d504ac6091 = function(arg0, arg1, arg2) { | ||
@@ -541,2 +609,7 @@ getObject(arg0)[arg1 >>> 0] = takeObject(arg2); | ||
module.exports.__wbg_call_587b30eea3e09332 = function() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); | ||
return addHeapObject(ret); | ||
}, arguments) }; | ||
module.exports.__wbg_set_da7be7bf0e037b14 = function(arg0, arg1, arg2) { | ||
@@ -547,7 +620,2 @@ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2)); | ||
module.exports.__wbg_now_c857fb0367c762cc = function() { | ||
const ret = Date.now(); | ||
return ret; | ||
}; | ||
module.exports.__wbg_buffer_55ba7a6b1b92e2ac = function(arg0) { | ||
@@ -583,2 +651,12 @@ const ret = getObject(arg0).buffer; | ||
module.exports.__wbg_newwithlength_89eeca401d8918c2 = function(arg0) { | ||
const ret = new Uint8Array(arg0 >>> 0); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_subarray_d82be056deb4ad27 = function(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_debug_string = function(arg0, arg1) { | ||
@@ -585,0 +663,0 @@ const ret = debugString(getObject(arg1)); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
2500909
1297
2