Socket
Socket
Sign inDemoInstall

@use-gesture/core

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@use-gesture/core - npm Package Compare versions

Comparing version 10.2.19 to 10.2.20

6

CHANGELOG.md
# @use-gesture/core
## 10.2.20
### Patch Changes
- de807fddc: fix: applying a new config to useGesture / Gesture shouldn't throw an error.
## 10.2.19

@@ -4,0 +10,0 @@

2

dist/declarations/src/config/resolver.d.ts

@@ -11,2 +11,2 @@ import { GestureKey, InternalConfig, UserGestureConfig } from '../types';

}>(config: Partial<T> | undefined, resolvers: ResolverMap): V;
export declare function parse(config: UserGestureConfig, gestureKey?: GestureKey): InternalConfig;
export declare function parse(newConfig: UserGestureConfig, gestureKey?: GestureKey, _config?: any): InternalConfig;

@@ -103,4 +103,4 @@ 'use strict';

}
function parse(config, gestureKey) {
const _ref = config,
function parse(newConfig, gestureKey, _config = {}) {
const _ref = newConfig,
{

@@ -115,11 +115,9 @@ target,

const _config = {
shared: resolveWith({
target,
eventOptions,
window,
enabled,
transform
}, sharedConfigResolver)
};
_config.shared = resolveWith({
target,
eventOptions,
window,
enabled,
transform
}, sharedConfigResolver);

@@ -260,3 +258,3 @@ if (gestureKey) {

applyConfig(config, gestureKey) {
this.config = parse(config, gestureKey);
this.config = parse(config, gestureKey, this.config);
}

@@ -263,0 +261,0 @@

@@ -100,4 +100,4 @@ 'use strict';

}
function parse(config, gestureKey) {
const _ref = config,
function parse(newConfig, gestureKey, _config = {}) {
const _ref = newConfig,
{

@@ -112,11 +112,9 @@ target,

const _config = {
shared: resolveWith({
target,
eventOptions,
window,
enabled,
transform
}, sharedConfigResolver)
};
_config.shared = resolveWith({
target,
eventOptions,
window,
enabled,
transform
}, sharedConfigResolver);

@@ -249,3 +247,3 @@ if (gestureKey) {

applyConfig(config, gestureKey) {
this.config = parse(config, gestureKey);
this.config = parse(config, gestureKey, this.config);
}

@@ -252,0 +250,0 @@

@@ -99,4 +99,4 @@ import { S as SUPPORT, C as ConfigResolverMap, _ as _objectSpread2, a as _defineProperty, t as toDomEventType, i as isTouch, b as touchIds, E as EngineMap, c as chain, p as parseProp, d as toHandlerProp } from './actions-aeda4790.esm.js';

}
function parse(config, gestureKey) {
const _ref = config,
function parse(newConfig, gestureKey, _config = {}) {
const _ref = newConfig,
{

@@ -111,11 +111,9 @@ target,

const _config = {
shared: resolveWith({
target,
eventOptions,
window,
enabled,
transform
}, sharedConfigResolver)
};
_config.shared = resolveWith({
target,
eventOptions,
window,
enabled,
transform
}, sharedConfigResolver);

@@ -256,3 +254,3 @@ if (gestureKey) {

applyConfig(config, gestureKey) {
this.config = parse(config, gestureKey);
this.config = parse(config, gestureKey, this.config);
}

@@ -259,0 +257,0 @@

{
"name": "@use-gesture/core",
"version": "10.2.19",
"version": "10.2.20",
"description": "Core engine for receiving gestures",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -37,8 +37,6 @@ import { sharedConfigResolver } from './sharedConfigResolver'

export function parse(config: UserGestureConfig, gestureKey?: GestureKey): InternalConfig {
const { target, eventOptions, window, enabled, transform, ...rest } = config as any
export function parse(newConfig: UserGestureConfig, gestureKey?: GestureKey, _config: any = {}): InternalConfig {
const { target, eventOptions, window, enabled, transform, ...rest } = newConfig as any
const _config: any = {
shared: resolveWith({ target, eventOptions, window, enabled, transform }, sharedConfigResolver)
}
_config.shared = resolveWith({ target, eventOptions, window, enabled, transform }, sharedConfigResolver)

@@ -45,0 +43,0 @@ if (gestureKey) {

@@ -69,3 +69,3 @@ import { EngineMap } from './actions'

applyConfig(config: UserGestureConfig, gestureKey?: GestureKey) {
this.config = parse(config, gestureKey)
this.config = parse(config, gestureKey, this.config)
}

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