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

inhabit-module-base

Package Overview
Dependencies
Maintainers
1
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 2.0.1 to 2.0.2-alpha.0

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="2.0.2-alpha.0"></a>
## [2.0.2-alpha.0](https://github.com/ArkadiumInc/node-inhabit-module-base/compare/v2.0.1...v2.0.2-alpha.0) (2019-03-11)
### Bug Fixes
* **API:** Add betting-module ([a7247aa](https://github.com/ArkadiumInc/node-inhabit-module-base/commit/a7247aa))
<a name="2.0.1"></a>

@@ -7,0 +17,0 @@ ## [2.0.1](https://github.com/ArkadiumInc/node-inhabit-module-base/compare/v2.0.0...v2.0.1) (2018-12-14)

2

package.json
{
"name": "inhabit-module-base",
"version": "2.0.1",
"version": "2.0.2-alpha.0",
"description": "A Base Module class for InHabit.",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -7,3 +7,4 @@ // Generated by dts-bundle v0.7.3

export class BettingModule implements IBettingModule {
render(container: HTMLElement, config: IBettingConfig): void;
initialize(container: HTMLElement, config: IBettingConfig): void;
show(): Promise<void>;
}

@@ -16,12 +17,16 @@ }

debug: boolean;
maxWidth: number;
locale: string;
assetsUrl: string;
teams: string[];
colors: ITeamColor[];
teams: ITeam[];
analytics: IAnalytics;
preferredBookmakers: IBookmaker[];
}
export interface ITeamColor {
teamId: string;
export interface ITeam {
id: string;
colors: string[];
}
export interface IBookmaker {
id: string;
referId: string;
}
}

@@ -32,3 +37,4 @@

export interface IBettingModule {
render(container: HTMLElement, config: IBettingConfig): void;
initialize(container: HTMLElement, config: IBettingConfig): void;
show(): Promise<void>;
}

@@ -35,0 +41,0 @@ }

@@ -6,6 +6,9 @@ type SecondArgument<T> = T extends (arg1: any, arg2: infer U, ...args: any[]) => any ? U : any;

import { BettingModule } from "betting";
type BettingRender = typeof BettingModule.prototype.render;
type Options<T> = T extends { initialize: (arg1: any, arg2: infer U) => any } ? U : never;
type BettingOpts = Options<BettingModule>;
type BettingInit = typeof BettingModule.prototype.initialize;
export interface IExtensions {
betting(cfg: SecondArgument<BettingRender>): void;
betting(cfg: Options<BettingModule>): Promise<BettingModule>;
}
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