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

a-frame-components

Package Overview
Dependencies
Maintainers
1
Versions
321
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a-frame-components - npm Package Compare versions

Comparing version 1.0.338 to 1.0.339

8

dist/react/useEventListenerOn.js

@@ -175,2 +175,9 @@ import { useEffect, useState, useRef } from 'react';

raiseCustomEvent('frame-update-attribute', { name: name, value: value }, el, { bubbles: false });
var handle_1 = function (evt) {
evt.preventDefault();
evt.stopPropagation(); // Stop the event from bubbling up
raiseCustomEvent('frame-update-attribute', { name: name, value: value }, el, { bubbles: false });
el.removeEventListener('frame-update-init', handle_1);
};
el.addEventListener('frame-update-init', handle_1);
}

@@ -186,2 +193,3 @@ }

});
raiseCustomEvent('frame-update-init', {}, undefined);
}

@@ -188,0 +196,0 @@ export function findFrameElement(props) {

2

package.json
{
"name": "a-frame-components",
"version": "1.0.338",
"version": "1.0.339",
"description": "",

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

@@ -205,2 +205,9 @@ import { useEffect, useState, useRef } from 'react';

raiseCustomEvent('frame-update-attribute', { name, value }, el, { bubbles: false });
const handle = (evt: any) => {
evt.preventDefault();
evt.stopPropagation(); // Stop the event from bubbling up
raiseCustomEvent('frame-update-attribute', { name, value }, el, { bubbles: false });
el.removeEventListener('frame-update-init', handle);
};
el.addEventListener('frame-update-init', handle)
}

@@ -219,2 +226,3 @@ }

})
raiseCustomEvent('frame-update-init', {}, undefined)
}

@@ -221,0 +229,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