Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@amplitude/babel-plugin-autocapture-transformer

Latest version: v0.2.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: curtisbliu, daniel-graham-amplitude, eric_amplitude, jjwang123, kelson.warner, sdk.dev
181 Stars
70 Forks
7 Versions
10.9K Downloads
TypeScript Repo language

Scan summary

@amplitude/babel-plugin-autocapture-transformer was last scanned on 23 Nov 2026 at version 0.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 4 were published within 6 days (18–23 Nov 2026).
  • Findings: No rules fired in version 0.2.0.
  • Downloads: 10,939 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.0 LATEST 23 Nov 2026 No rules fired
0.1.3-cursorvideo-click-cell-9eb2.0 20 Nov 2026 No rules fired
0.1.3-cursorpage-x-y-plus-click-cell-9eb2.0 19 Nov 2026 No rules fired
0.1.3-video-analytics-plus-page-x-y.0 18 Nov 2026 Not shown
0.1.3-claudeconfident-mccarthy-373nfy.0 10 Nov 2026 Not shown

No rules fired in 0.2.0

Findings

Findings for v0.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@amplitude/babel-plugin-autocapture-transformer

A Babel plugin that wraps React Native interaction handlers with Amplitude's ampCapture helper at compile time, so element clicks and other UI events can be autocaptured without changing your source JSX by hand.

Install

npm install --save-dev @amplitude/babel-plugin-autocapture-transformer

This plugin expects @amplitude/analytics-react-native to be installed in your app (it auto-imports ampCapture from that package).

Example

In

function HomeScreen() {
  return (
    <Button
      accessibilityLabel="Online test label"
      testID="12345"
      title="Online test"
      onPress={func}
    />
  );
}

Out

import { ampCapture } from '@amplitude/analytics-react-native';

function HomeScreen() {
  return (
    <Button
      accessibilityLabel="Online test label"
      testID="12345"
      title="Online test"
      onPress={ampCapture(func, {
        action: 'Press',
        accessibilityLabel: 'Online test label',
        testID: '12345',
        element: 'Button',
        component: 'HomeScreen',
      })}
    />
  );
}

When a file already imports from @amplitude/analytics-react-native, the plugin adds ampCapture to that import instead of inserting a second one.

Usage

.babelrc / babel.config.json
{
  "plugins": ["@amplitude/babel-plugin-autocapture-transformer"]
}
babel.config.js (Expo / React Native)
module.exports = function (api) {
  api.cache(true);
  return {
    presets: ['babel-preset-expo'],
    plugins: ['@amplitude/babel-plugin-autocapture-transformer'],
  };
};
With options
{
  "plugins": [
    [
      "@amplitude/babel-plugin-autocapture-transformer",
      {
        "pressableElements": ["CustomButton"],
        "valueChangeElements": ["Toggle"],
        "textChangeElements": ["SearchField"]
      }
    ]
  ]
}

What gets transformed

The plugin only rewrites known interactive JSX elements that already have an expression handler (for example onPress={handler}). String handlers and elements without handlers are left alone.

Category Default elements Attributes → action
Pressable Button, TouchableOpacity, TouchableHighlight, TouchableWithoutFeedback, Pressable, Touchable, TouchableNativeFeedback, Link onPress → Press, onLongPress → LongPress
Value change Switch, Slider, Picker onValueChange → ValueChange
Text change TextInput onChangeText → ChangeText, onSubmitEditing → SubmitEditing

If the element also has accessibilityLabel and/or testID, those values are copied into the ampCapture properties object. The plugin also adds:

  • element — the JSX tag name (for example Button)
  • component — the enclosing React component or function name when it can be resolved (for example HomeScreen)

Options

Name Type Default Description
pressableElements string[] [] Additional JSX component names treated as pressable (onPress / onLongPress). Merged with the built-in defaults.
valueChangeElements string[] [] Additional JSX component names treated as value-change elements (onValueChange). Merged with the built-in defaults.
textChangeElements string[] [] Additional JSX component names treated as text-change elements (onChangeText / onSubmitEditing). Merged with the built-in defaults.

Limitations

  • Only plain JSX identifiers are transformed (<Button />). Member expressions like <RN.Button /> are ignored and need to be included in the options array.
  • Custom components are not transformed unless you list them in the matching options array.
  • Spread attributes (for example {...props}) are not inspected for accessibilityLabel / testID; only attributes written directly on the element are collected.
  • component is omitted when the enclosing function is anonymous (for example export default () => …).

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @amplitude/babel-plugin-autocapture-transformer

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229