Socket
Socket
Sign inDemoInstall

@interactjs/dev-tools

Package Overview
Dependencies
Maintainers
2
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interactjs/dev-tools - npm Package Compare versions

Comparing version 1.10.21 to 1.10.22

10

package.json
{
"name": "@interactjs/dev-tools",
"version": "1.10.21",
"version": "1.10.22",
"main": "index",

@@ -13,7 +13,7 @@ "module": "index",

"peerDependencies": {
"@interactjs/modifiers": "1.10.21",
"@interactjs/utils": "1.10.21"
"@interactjs/modifiers": "1.10.22",
"@interactjs/utils": "1.10.22"
},
"optionalDependencies": {
"@interactjs/interact": "1.10.21"
"@interactjs/interact": "1.10.22"
},

@@ -31,3 +31,3 @@ "devDependencies": {

"license": "MIT",
"gitHead": "2b800f06"
"gitHead": "aa616cc5"
}

@@ -9,2 +9,4 @@ // eslint-disable-next-line import/no-extraneous-dependencies, import/no-duplicates

import is from "../utils/is.js";
import isNonNativeEvent from "../utils/isNonNativeEvent.js";
import normalizeListeners from "../utils/normalizeListeners.js";
import * as win from "../utils/window.js";

@@ -46,2 +48,27 @@ var CheckName;

return this.options.devTools;
}; // can't set native events on non string targets without `addEventListener` prop
const {
_onOff
} = Interactable.prototype;
Interactable.prototype._onOff = function (method, typeArg, listenerArg, options, filter) {
if (is.string(this.target) || this.target.addEventListener) {
return _onOff.call(this, method, typeArg, listenerArg, options, filter);
}
if (is.object(typeArg) && !is.array(typeArg)) {
options = listenerArg;
listenerArg = null;
}
const normalizedListeners = normalizeListeners(typeArg, listenerArg, filter);
for (const type in normalizedListeners) {
if (isNonNativeEvent(type, scope.actions)) continue;
scope.logger.warn(prefix + `Can't add native "${type}" event listener to target without \`addEventListener(type, listener, options)\` prop.`);
}
return _onOff.call(this, method, normalizedListeners, options);
};

@@ -48,0 +75,0 @@

@@ -1,2 +0,2 @@

import"./visualizer/plugin.prod.js";import o from"./visualizer/plugin.prod.js";import i from"../utils/domObjects.prod.js";import{parentNode as t}from"../utils/domUtils.prod.js";import r from"../utils/extend.prod.js";import s from"../utils/is.prod.js";import*as n from"../utils/window.prod.js";var p;(o=>{o.touchAction="touchAction",o.boxSizing="boxSizing",o.noListeners="noListeners"})(p||(p={}));p.touchAction,p.boxSizing,p.noListeners;const m={id:"dev-tools",install(){}};export default m;
import"./visualizer/plugin.prod.js";import o from"./visualizer/plugin.prod.js";import i from"../utils/domObjects.prod.js";import{parentNode as t}from"../utils/domUtils.prod.js";import r from"../utils/extend.prod.js";import s from"../utils/is.prod.js";import n from"../utils/isNonNativeEvent.prod.js";import p from"../utils/normalizeListeners.prod.js";import*as m from"../utils/window.prod.js";var e;(o=>{o.touchAction="touchAction",o.boxSizing="boxSizing",o.noListeners="noListeners"})(e||(e={}));e.touchAction,e.boxSizing,e.noListeners;const l={id:"dev-tools",install(){}};export default l;
//# sourceMappingURL=plugin.prod.js.map

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