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

minsky-base

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minsky-base

Base for minsky classes

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Base

Provide a solid base for most classes withing the MINSKY framework.

It extends Core.js by adding the BLManager. Base will be used most of the time, only a handful of classes will directly extend from Core.js. The BLManager will only be constructed the moment it is requested for use internally or externally thanks to the getter. Base.js delays the auto init process so it will force the code to run initialize at the end of the construction process automatically.

Class type: Manager

Dependencies

  • Core - 1.0.0

Getting started

Base is not intended to be constructed as is. Classes should use it as base to extend from, just like Core.js is supposed to be used.

// imports
import '$dep/Base';

// private statics


// class definition
export default class CustomClass extends Base {

	// constructor
	constructor (args, objectName = 'Custom Class') {

		// run super constructor
		super(args, objectName);
	}

	// methods
	destroy() {
		// super destroy
		super.destroy();
	}
}

// private or exported util methods

// private handlers

Constructor Parameters

… Core.js parameters

Options

… Core.js options

Properties

blm

Type: BLManager Default: instance

An instance of the BLManager to facilitate scope binding within the classes. It tries to closely match conventional Event scopes used in other languages.

… Core.js properties

Methods

… Core.js methods


To Do

  • none

FAQs

Package last updated on 28 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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