Socket
Book a DemoInstallSign in
Socket

svelte-gamepad-virtual-joystick

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-gamepad-virtual-joystick - npm Package Compare versions

Comparing version

to
1.0.4

1

dist/state/components.svelte.d.ts

@@ -10,3 +10,4 @@ import InputComponent from "../input_handling/InputComponent.js";

};
export declare const addActiveComponent: (component: InputComponent) => void;
export declare const registerComponent: (context: string[], component: InputComponent) => void;
export declare const unregisterComponent: (context: string[], component: InputComponent) => void;

9

dist/state/components.svelte.js

@@ -9,2 +9,7 @@ import InputComponent from "../input_handling/InputComponent.js";

});
export const addActiveComponent = (component) => {
if (!component_state.activeComponents.includes(component)) {
component_state.activeComponents.push(component);
}
};
export const registerComponent = (context, component) => {

@@ -21,3 +26,3 @@ context.forEach((ctx) => {

if (!component.requiresFocus && context.includes('default')) {
component_state.activeComponents.push(component);
addActiveComponent(component);
}

@@ -27,3 +32,3 @@ if (component.focusElement && component.requiresFocus) {

if (context.includes(component_state.context)) {
component_state.activeComponents.push(component);
addActiveComponent(component);
}

@@ -30,0 +35,0 @@ });

@@ -5,3 +5,3 @@ {

"license": "BSD-3-Clause",
"version": "1.0.3",
"version": "1.0.4",
"publishConfig": {

@@ -8,0 +8,0 @@ "access": "public"

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.