Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spy-on-component

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spy-on-component - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

index.js

@@ -12,3 +12,2 @@

function wrap(base, method) {

@@ -26,5 +25,5 @@ var before = true;

return function wrappedLifecyclehook() {
before && method.apply(arguments)
base.apply(arguments)
!before && method.apply(arguments)
before && method.apply(this, arguments)
base.apply(this, arguments)
!before && method.apply(this, arguments)
}

@@ -36,2 +35,3 @@ }

for (var key in hooks) if (LIFECYCLE_HOOKS[key])

@@ -38,0 +38,0 @@ component[key] = wrap(

{
"name": "spy-on-component",
"version": "1.0.1",
"version": "1.0.2",
"description": "Subscribe to React component lifecycle hooks",

@@ -5,0 +5,0 @@ "main": "index.js",

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