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

inhabit-module-base

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inhabit-module-base - npm Package Compare versions

Comparing version 1.3.5 to 1.3.6

2

build/InhabitModuleBase.js

@@ -73,3 +73,3 @@ "use strict";

this.searchEngineService = dependencies.searchEngineService;
this.events = dependencies.events || InhabitModuleEvents;
this.events = dependencies.events || new InhabitModuleEvents();
this.resourcesRoot = dependencies.resourcesRoot || "build/resources";

@@ -76,0 +76,0 @@ return this;

{
"name": "inhabit-module-base",
"version": "1.3.5",
"version": "1.3.6",
"description": "A Base Module class for InHabit.",

@@ -5,0 +5,0 @@ "main": "build/InhabitModuleBase.js",

@@ -73,3 +73,3 @@ "use strict";

this.searchEngineService = dependencies.searchEngineService;
this.events = dependencies.events || InhabitModuleEvents;
this.events = dependencies.events || new InhabitModuleEvents();
this.resourcesRoot = dependencies.resourcesRoot || "build/resources";

@@ -76,0 +76,0 @@ return this;

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

"use strict";
/**
* Created by WMTS on 10/24/2016.
*/
module.exsports = {
function InhabitModuleEvents() {
}
InhabitModuleEvents.prototype =
{
/**

@@ -9,3 +14,3 @@ * Fire this event when interactive module loaded all required resources and ready to be displayed to user

*/
ready: this.interfaceMethod,
ready: undefined.interfaceMethod,
/**

@@ -15,20 +20,21 @@ * In case of any error happens inside interactive, fire this event, this will trigger sequence that will hide current

*/
error: this.interfaceMethod,
error: undefined.interfaceMethod,
/**
* Fire this event when user started his interaction with you module. This event should be triggered once per lifetime
*/
interactionStart:this.interfaceMethod,
interactionStart: undefined.interfaceMethod,
/**
* Trigger this event when user starts new sequence in your module.
*/
cycleStart:this.interfaceMethod,
cycleStart: undefined.interfaceMethod,
/**
* Trigger this event when users completes cycle and about to start new one
*/
cycleEnd:this.interfaceMethod,
cycleEnd: undefined.interfaceMethod,
interfaceMethod: function () {
interfaceMethod: function interfaceMethod() {
console.log("this is interface method would be implemented later through the core");
}
};
};
module.exports = InhabitModuleEvents;

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