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

@interactjs/core

Package Overview
Dependencies
Maintainers
2
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interactjs/core - npm Package Compare versions

Comparing version 1.8.0-alpha.0 to 1.8.0-alpha.1

19

Interactable.js

@@ -81,6 +81,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

for (const optionName in options) {
for (const optionName_ in options) {
const optionName = optionName_;
const actionOptions = this.options[actionName];
const optionValue = options[optionName];
const isArray = is.array(optionValue); // remove old event listeners and add new ones
const optionValue = options[optionName]; // remove old event listeners and add new ones

@@ -92,6 +92,6 @@ if (optionName === 'listeners') {

if (isArray) {
if (is.array(optionValue)) {
actionOptions[optionName] = arr.from(optionValue);
} // if the option value is an object
else if (!isArray && is.plainObject(optionValue)) {
else if (is.plainObject(optionValue)) {
// copy the object

@@ -343,3 +343,4 @@ actionOptions[optionName] = extend(actionOptions[optionName] || {}, clone(optionValue)); // set anabled field to true if it exists in the defaults

for (const actionName in this._actions.methodDict) {
for (const actionName_ in this._actions.methodDict) {
const actionName = actionName_;
const methodName = this._actions.methodDict[actionName];

@@ -378,7 +379,3 @@ this.options[actionName] = {};

delegated.contexts.splice(0, 1);
delegated.listeners.splice(0, 1); // remove the arrays if they are empty
if (!delegated.selectors.length) {
delegated[type] = null;
}
delegated.listeners.splice(0, 1);
}

@@ -385,0 +382,0 @@

@@ -13,2 +13,4 @@ import * as dom from "../utils/domUtils.js";

}
return null;
},

@@ -15,0 +17,0 @@

{
"name": "@interactjs/core",
"version": "1.8.0-alpha.0",
"version": "1.8.0-alpha.1",
"license": "MIT",
"peerDependencies": {
"@interactjs/dev-tools": "1.8.0-alpha.0",
"@interactjs/utils": "1.8.0-alpha.0"
"@interactjs/dev-tools": "1.8.0-alpha.1",
"@interactjs/utils": "1.8.0-alpha.1"
},
"devDependencies": {
"@interactjs/actions": "1.8.0-alpha.0",
"@interactjs/auto-start": "1.8.0-alpha.0"
"@interactjs/actions": "1.8.0-alpha.1",
"@interactjs/auto-start": "1.8.0-alpha.1"
},

@@ -13,0 +13,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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