New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mpxjs/babel-plugin-inject-page-events

Package Overview
Dependencies
Maintainers
13
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mpxjs/babel-plugin-inject-page-events - npm Package Compare versions

Comparing version 2.8.28-beta.11 to 2.8.40-test.2

4

package.json
{
"name": "@mpxjs/babel-plugin-inject-page-events",
"version": "2.8.28-beta.11",
"version": "2.8.40-test.2",
"description": "babel plugin for inject page events in composition-api",

@@ -20,3 +20,3 @@ "license": "Apache-2.0",

},
"gitHead": "8c7fa579da9c3e71908eb9bfb5833a7d9477505d"
"gitHead": "7b1911025a2eb47eddc046775f17b6f1405fdd54"
}

@@ -44,3 +44,5 @@ module.exports = ({ parse }) => {

const code = `global.currentInject.pageEvents = {${pageEventsFun}};`
const newAst = parse(code)
const newAst = parse(code, {
filename: state.filename
})
path.unshiftContainer('body', newAst.program.body)

@@ -47,0 +49,0 @@ }

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