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.1 to 2.4.0-pre-001

wasm/snippets/native-iast-rewriter-982d5e485c5d83af/tracer_logger.js

1

index.d.ts

@@ -10,2 +10,3 @@ /* tslint:disable */

operator?: boolean
allowedWithoutCallee?: boolean
}

@@ -12,0 +13,0 @@ export interface RewriterConfig {

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.1",
"version": "2.4.0-pre-001",
"description": "Datadog IAST instrumentation addon for NodeJS",

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

@@ -9,6 +9,6 @@ /* tslint:disable */

export function rewriter_setLogger(a: number, b: number, c: number, d: number, e: number): void;
export function __wbindgen_malloc(a: number): number;
export function __wbindgen_realloc(a: number, b: number, c: number): number;
export function __wbindgen_malloc(a: number, b: number): number;
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
export function __wbindgen_exn_store(a: number): void;
export function __wbindgen_add_to_stack_pointer(a: number): number;
export function __wbindgen_free(a: number, b: number): void;
export function __wbindgen_free(a: number, b: number, c: number): void;
let imports = {};
imports['__wbindgen_placeholder__'] = module.exports;
let wasm;
const { log, setLogger } = require(String.raw`./snippets/native-iast-rewriter-fb996d68f4d30dba/tracer_logger.js`);
const { log, setLogger } = require(String.raw`./snippets/native-iast-rewriter-982d5e485c5d83af/tracer_logger.js`);
const { readFileSync } = require(`fs`);

@@ -59,3 +59,3 @@ const { dirname } = require(`path`);

const buf = cachedTextEncoder.encode(arg);
const ptr = malloc(buf.length) >>> 0;
const ptr = malloc(buf.length, 1) >>> 0;
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);

@@ -67,3 +67,3 @@ WASM_VECTOR_LEN = buf.length;

let len = arg.length;
let ptr = malloc(len) >>> 0;
let ptr = malloc(len, 1) >>> 0;

@@ -84,3 +84,3 @@ const mem = getUint8Memory0();

}
ptr = realloc(ptr, len, len = offset + arg.length * 3) >>> 0;
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);

@@ -90,2 +90,3 @@ const ret = encodeString(arg, view);

offset += ret.written;
ptr = realloc(ptr, len, offset, 1) >>> 0;
}

@@ -217,2 +218,6 @@

}
const RewriterFinalization = (typeof FinalizationRegistry === 'undefined')
? { register: () => {}, unregister: () => {} }
: new FinalizationRegistry(ptr => wasm.__wbg_rewriter_free(ptr >>> 0));
/**

@@ -222,14 +227,6 @@ */

static __wrap(ptr) {
ptr = ptr >>> 0;
const obj = Object.create(Rewriter.prototype);
obj.__wbg_ptr = ptr;
return obj;
}
__destroy_into_raw() {
const ptr = this.__wbg_ptr;
this.__wbg_ptr = 0;
RewriterFinalization.unregister(this);
return ptr;

@@ -247,3 +244,4 @@ }

const ret = wasm.rewriter_new(addHeapObject(config_js));
return Rewriter.__wrap(ret);
this.__wbg_ptr = ret >>> 0;
return this;
}

@@ -334,2 +332,12 @@ /**

module.exports.__wbg_readFileSync_e81bd843f54909b7 = function() { return handleError(function (arg0, arg1) {
const ret = readFileSync(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_dirname_77bd38b1a7287e38 = function() { return handleError(function (arg0, arg1) {
const ret = dirname(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbindgen_is_object = function(arg0) {

@@ -356,2 +364,7 @@ const val = getObject(arg0);

module.exports.__wbindgen_is_string = function(arg0) {
const ret = typeof(getObject(arg0)) === 'string';
return ret;
};
module.exports.__wbindgen_string_new = function(arg0, arg1) {

@@ -362,3 +375,3 @@ const ret = getStringFromWasm0(arg0, arg1);

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

@@ -368,3 +381,3 @@ return addHeapObject(ret);

module.exports.__wbg_setLogger_3aec7659c14c44de = function() { return handleError(function (arg0) {
module.exports.__wbg_setLogger_269583007cfee856 = function() { return handleError(function (arg0) {
const ret = setLogger(getObject(arg0));

@@ -374,17 +387,2 @@ return addHeapObject(ret);

module.exports.__wbg_readFileSync_35c746f38a8cb547 = function() { return handleError(function (arg0, arg1) {
const ret = readFileSync(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments) };
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) {

@@ -455,3 +453,3 @@ const ret = getObject(arg0) == getObject(arg1);

} finally {
wasm.__wbindgen_free(deferred0_0, deferred0_1);
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
}

@@ -538,3 +536,3 @@ };

result = getObject(arg0) instanceof ArrayBuffer;
} catch {
} catch (_) {
result = false;

@@ -579,3 +577,3 @@ }

result = getObject(arg0) instanceof Uint8Array;
} catch {
} catch (_) {
result = false;

@@ -582,0 +580,0 @@ }

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