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.23 to 1.10.24

10

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

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

"peerDependencies": {
"@interactjs/modifiers": "1.10.23",
"@interactjs/utils": "1.10.23"
"@interactjs/modifiers": "1.10.24",
"@interactjs/utils": "1.10.24"
},
"optionalDependencies": {
"@interactjs/interact": "1.10.23"
"@interactjs/interact": "1.10.24"
},

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

"license": "MIT",
"gitHead": "9ba48631"
"gitHead": "86c64a3f"
}

@@ -1,6 +0,6 @@

import '@interactjs/dev-tools/visualizer/plugin';
import type Interaction from '@interactjs/core/Interaction';
import type { Plugin } from '@interactjs/core/scope';
import type { OptionMethod } from '@interactjs/core/types';
import visualizer from '@interactjs/dev-tools/visualizer/plugin';
import './visualizer/plugin';
import visualizer from './visualizer/plugin';
declare module '@interactjs/core/scope' {

@@ -7,0 +7,0 @@ interface Scope {

@@ -1,5 +0,1 @@

// eslint-disable-next-line import/no-extraneous-dependencies, import/no-duplicates
import "./visualizer/plugin.js";
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-duplicates
import visualizer from "./visualizer/plugin.js";
import domObjects from "../utils/domObjects.js";

@@ -12,10 +8,13 @@ import { parentNode } from "../utils/domUtils.js";

import * as win from "../utils/window.js";
var CheckName;
(function (CheckName) {
/* eslint-disable import/no-duplicates -- for typescript module augmentations */
import './visualizer/plugin';
import visualizer from './visualizer/plugin';
/* eslint-enable import/no-duplicates */
var CheckName = /*#__PURE__*/function (CheckName) {
CheckName["touchAction"] = "touchAction";
CheckName["boxSizing"] = "boxSizing";
CheckName["noListeners"] = "noListeners";
})(CheckName || (CheckName = {}));
return CheckName;
}(CheckName || {});
const prefix = '[interact.js] ';

@@ -25,6 +24,6 @@ const links = {

boxSizing: 'https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing'
}; // eslint-disable-next-line no-undef
};
// eslint-disable-next-line no-undef
const isProduction = "development" === 'production';
function install(scope, {

@@ -41,3 +40,2 @@ logger

};
Interactable.prototype.devTools = function (options) {

@@ -48,11 +46,9 @@ if (options) {

}
return this.options.devTools;
}; // can't set native events on non string targets without `addEventListener` prop
};
// 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) {

@@ -62,3 +58,2 @@ if (is.string(this.target) || this.target.addEventListener) {

}
if (is.object(typeArg) && !is.array(typeArg)) {

@@ -68,5 +63,3 @@ options = listenerArg;

}
const normalizedListeners = normalizeListeners(typeArg, listenerArg, filter);
for (const type in normalizedListeners) {

@@ -76,12 +69,8 @@ if (isNonNativeEvent(type, scope.actions)) continue;

}
return _onOff.call(this, method, normalizedListeners, options);
};
scope.usePlugin(visualizer);
}
const checks = [{
name: CheckName.touchAction,
perform({

@@ -92,3 +81,2 @@ element

},
getInfo({

@@ -99,7 +87,5 @@ element

},
text: 'Consider adding CSS "touch-action: none" to this element\n'
}, {
name: CheckName.boxSizing,
perform(interaction) {

@@ -111,5 +97,3 @@ const {

},
text: 'Consider adding CSS "box-sizing: border-box" to this resizable element',
getInfo({

@@ -120,9 +104,6 @@ element

}
}, {
name: CheckName.noListeners,
perform(interaction) {
var _interaction$interact;
const actionName = interaction.prepared.name;

@@ -132,10 +113,7 @@ const moveListeners = ((_interaction$interact = interaction.interactable) == null ? void 0 : _interaction$interact.events.types[`${actionName}move`]) || [];

},
getInfo(interaction) {
return [interaction.prepared.name, interaction.interactable];
},
text: 'There are no listeners set for this action'
}];
function hasStyle(element, prop, styleRe) {

@@ -145,6 +123,4 @@ const value = element.style[prop] || win.window.getComputedStyle(element)[prop];

}
function parentHasStyle(element, prop, styleRe) {
let parent = element;
while (is.element(parent)) {

@@ -154,9 +130,6 @@ if (hasStyle(parent, prop, styleRe)) {

}
parent = parentNode(parent);
}
return false;
}
const id = 'dev-tools';

@@ -175,3 +148,2 @@ const defaultExport = isProduction ? {

const options = interaction.interactable && interaction.interactable.options;
if (!(options && options.devTools && options.devTools.ignore[check.name]) && check.perform(interaction)) {

@@ -178,0 +150,0 @@ scope.logger.warn(prefix + check.text, ...check.getInfo(interaction));

@@ -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 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;
import o from"../utils/domObjects.prod.js";import{parentNode as i}from"../utils/domUtils.prod.js";import t from"../utils/extend.prod.js";import r from"../utils/is.prod.js";import s from"../utils/isNonNativeEvent.prod.js";import n from"../utils/normalizeListeners.prod.js";import*as m from"../utils/window.prod.js";import"./visualizer/plugin";import e from"./visualizer/plugin";var p=(o=>(o.touchAction="touchAction",o.boxSizing="boxSizing",o.noListeners="noListeners",o))(p||{});p.touchAction,p.boxSizing,p.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

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