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

@interactjs/interact

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/interact - npm Package Compare versions

Comparing version 1.4.0-rc.1 to 1.4.0-rc.2

11

interact.d.ts

@@ -6,14 +6,5 @@ /** @module interact */

import * as utils from '@interactjs/utils';
export interface Plugin {
id?: string;
install(scope: Scope, options?: any): void;
[key: string]: any;
}
declare module '@interactjs/core/scope' {
interface Scope {
interact: InteractStatic;
_plugins: Plugin[];
_pluginMap: {
[id: string]: Plugin;
};
}

@@ -71,3 +62,3 @@ }

export declare const interact: InteractStatic;
declare function use(plugin: Plugin, options?: {
declare function use(plugin: Interact.Plugin, options?: {
[key: string]: any;

@@ -74,0 +65,0 @@ }): InteractStatic;

@@ -41,7 +41,2 @@ /** @module interact */

};
scope._plugins = [];
scope._pluginMap = {};
function pluginIsInstalled(plugin) {
return scope._pluginMap[plugin.id] || scope._plugins.indexOf(plugin) !== -1;
}
/**

@@ -58,10 +53,3 @@ * Use a plugin

function use(plugin, options) {
if (pluginIsInstalled(plugin)) {
return interact;
}
plugin.install(scope, options);
scope._plugins.push(plugin);
if (plugin.id) {
scope._pluginMap[plugin.id] = plugin;
}
scope.usePlugin(plugin, options);
return interact;

@@ -251,2 +239,2 @@ }

export default interact;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlcmFjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1QkFBdUI7QUFJdkIsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLHdCQUF3QixDQUFBO0FBQzlDLE9BQU8sS0FBSyxLQUFLLE1BQU0sbUJBQW1CLENBQUE7QUFDMUMsT0FBTyxPQUFPLE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0dXJuIGludGVyYWN0XG4gIH1cblxuICByZXR1cm4gc2NvcGUuaW50ZXJhY3Rpb25zLnBvaW50ZXJNb3ZlVG9sZXJhbmNlXG59XG5cbnNjb3BlLmludGVyYWN0YWJsZXMuc2lnbmFscy5vbigndW5zZXQnLCAoeyBpbnRlcmFjdGFibGUgfSkgPT4ge1xuICBzY29wZS5pbnRlcmFjdGFibGVzLmxpc3Quc3BsaWNlKHNjb3BlLmludGVyYWN0YWJsZXMubGlzdC5pbmRleE9mKGludGVyYWN0YWJsZSksIDEpXG5cbiAgLy8gU3RvcCByZWxhdGVkIGludGVyYWN0aW9ucyB3aGVuIGFuIEludGVyYWN0YWJsZSBpcyB1bnNldFxuICBmb3IgKGNvbnN0IGludGVyYWN0aW9uIG9mIHNjb3BlLmludGVyYWN0aW9ucy5saXN0KSB7XG4gICAgaWYgKGludGVyYWN0aW9uLmludGVyYWN0YWJsZSA9PT0gaW50ZXJhY3RhYmxlICYmIGludGVyYWN0aW9uLmludGVyYWN0aW5nKCkgJiYgaW50ZXJhY3Rpb24uX2VuZGluZykge1xuICAgICAgaW50ZXJhY3Rpb24uc3RvcCgpXG4gICAgfVxuICB9XG59KVxuXG5pbnRlcmFjdC5hZGREb2N1bWVudCA9IChkb2MsIG9wdGlvbnMpID0+IHNjb3BlLmFkZERvY3VtZW50KGRvYywgb3B0aW9ucylcbmludGVyYWN0LnJlbW92ZURvY3VtZW50ID0gKGRvYykgPT4gc2NvcGUucmVtb3ZlRG9jdW1lbnQoZG9jKVxuXG5zY29wZS5pbnRlcmFjdCA9IGludGVyYWN0XG5cbmV4cG9ydCB7IHNjb3BlIH1cbmV4cG9ydCBkZWZhdWx0IGludGVyYWN0XG4iXX0=

44

package.json
{
"name": "@interactjs/interact",
"version": "1.4.0-rc.1+sha.27a9693",
"version": "1.4.0-rc.2+sha.033f15b",
"peerDependencies": {
"@interactjs/actions": "1.4.0-rc.1+sha.27a9693",
"@interactjs/auto-scroll": "1.4.0-rc.1+sha.27a9693",
"@interactjs/auto-start": "1.4.0-rc.1+sha.27a9693",
"@interactjs/core": "1.4.0-rc.1+sha.27a9693",
"@interactjs/dev-tools": "1.4.0-rc.1+sha.27a9693",
"@interactjs/inertia": "1.4.0-rc.1+sha.27a9693",
"@interactjs/modifiers": "1.4.0-rc.1+sha.27a9693",
"@interactjs/pointer-events": "1.4.0-rc.1+sha.27a9693",
"@interactjs/reflow": "1.4.0-rc.1+sha.27a9693",
"@interactjs/utils": "1.4.0-rc.1+sha.27a9693"
"@interactjs/actions": "1.4.0-rc.2+sha.033f15b",
"@interactjs/auto-scroll": "1.4.0-rc.2+sha.033f15b",
"@interactjs/auto-start": "1.4.0-rc.2+sha.033f15b",
"@interactjs/core": "1.4.0-rc.2+sha.033f15b",
"@interactjs/dev-tools": "1.4.0-rc.2+sha.033f15b",
"@interactjs/inertia": "1.4.0-rc.2+sha.033f15b",
"@interactjs/modifiers": "1.4.0-rc.2+sha.033f15b",
"@interactjs/pointer-events": "1.4.0-rc.2+sha.033f15b",
"@interactjs/reflow": "1.4.0-rc.2+sha.033f15b",
"@interactjs/utils": "1.4.0-rc.2+sha.033f15b"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-rc.1+sha.27a9693",
"@interactjs/actions": "1.4.0-rc.1+sha.27a9693",
"@interactjs/auto-scroll": "1.4.0-rc.1+sha.27a9693",
"@interactjs/auto-start": "1.4.0-rc.1+sha.27a9693",
"@interactjs/core": "1.4.0-rc.1+sha.27a9693",
"@interactjs/dev-tools": "1.4.0-rc.1+sha.27a9693",
"@interactjs/inertia": "1.4.0-rc.1+sha.27a9693",
"@interactjs/modifiers": "1.4.0-rc.1+sha.27a9693",
"@interactjs/pointer-events": "1.4.0-rc.1+sha.27a9693",
"@interactjs/reflow": "1.4.0-rc.1+sha.27a9693",
"@interactjs/utils": "1.4.0-rc.1+sha.27a9693"
"@interactjs/_dev": "1.4.0-rc.2+sha.033f15b",
"@interactjs/actions": "1.4.0-rc.2+sha.033f15b",
"@interactjs/auto-scroll": "1.4.0-rc.2+sha.033f15b",
"@interactjs/auto-start": "1.4.0-rc.2+sha.033f15b",
"@interactjs/core": "1.4.0-rc.2+sha.033f15b",
"@interactjs/dev-tools": "1.4.0-rc.2+sha.033f15b",
"@interactjs/inertia": "1.4.0-rc.2+sha.033f15b",
"@interactjs/modifiers": "1.4.0-rc.2+sha.033f15b",
"@interactjs/pointer-events": "1.4.0-rc.2+sha.033f15b",
"@interactjs/reflow": "1.4.0-rc.2+sha.033f15b",
"@interactjs/utils": "1.4.0-rc.2+sha.033f15b"
},

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

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