You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@datadog/js-instrumentation-wasm

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datadog/js-instrumentation-wasm - npm Package Compare versions

Comparing version

to
0.9.5

55

dist/types/index.d.ts

@@ -29,31 +29,42 @@ declare module '@datadog/js-instrumentation-wasm' {

}
export type PrivacyHelperSource = {
/**
* Declare the helper using the given JavaScript expression.
*
* Example: `{ code: '(v) => console.log(v)' }` will produce output like:
* ```js
* const $ = (v) => console.log(v);
* ```
*/
/**
* Declare the helper using the given JavaScript expression.
*
* Example: `{ code: '(v) => console.log(v)' }` will produce output like:
* ```js
* const $ = (v) => console.log(v);
* ```
*/
export type ExpressionPrivacyHelperSource = {
expression: {
code: string;
};
} | {
/**
* Declare the helper by importing the given function from the given module.
*
* Example: `{ module: 'custom/helpers', func: 'foo' }` will produce output like:
* ```js
* import { foo as $ } from 'custom/helpers';
* ```
*
* If the input is an ES module, `import` will be used; for CommonJS modules,
* `require()` will be used.
*/
};
/**
* Declare the helper by importing the given function from the given module.
*
* Example:
* ```js
* {
* cjsModule: 'custom/helpers.cjs',
* esmModule: 'custom/helpers.mjs',
* func: 'foo'
* }
* ```
* will produce output like:
* ```js
* import { foo as $ } from 'custom/helpers.mjs';
* ```
*
* If the input is an ES module, `import` will be used to import `esmModule`;
* likewise, for CommonJS modules, `require()` will be used to import `cjsModule`.
*/
export type ImportPrivacyHelperSource = {
import: {
module: string;
cjsModule: string;
esmModule: string;
func: string;
};
};
export type PrivacyHelperSource = ExpressionPrivacyHelperSource | ImportPrivacyHelperSource;
export interface PrivacyOptions {

@@ -60,0 +71,0 @@ /** The source for the helper function used to add strings to the dictionary. */

2

package.json
{
"name": "@datadog/js-instrumentation-wasm",
"type": "module",
"version": "0.9.4",
"version": "0.9.5",
"license": "MIT",

@@ -6,0 +6,0 @@ "description": "A library for adding Datadog instrumentation to JavaScript and TypeScript code",

Sorry, the diff of this file is not supported yet

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.