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

@ulu/frontend

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ulu/frontend - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

19

js/helpers/css-breakpoint.js

@@ -47,2 +47,3 @@ /**

this.breakpoints = {};
this.onChangeCallbacks = [];
this.order.forEach(n => this.breakpoints[n] = new Breakpoint(n, this));

@@ -54,2 +55,18 @@ log(this, this);

/**
* Add a callback for everytime a breakpoint changes
* - Not recommended, possibly use to watch for changes, etc
* - For more control use intance.at(name) with breakpoint methods
* @param {Function} callback Function to call, passed one argument current instance which can be used to get information about breakpoints
*/
onChange(callback) {
this.onChangeCallbacks.push(callback);
}
/**
* Remove change callback
* @param {Function} callback Function to remove
*/
removeOnChange(callback) {
removeArrayElement(this.onChangeCallbacks, callback);
}
/**
* Get breakpoint from a psuedo element

@@ -122,2 +139,4 @@ */

}
this.onChangeCallbacks.forEach(cb => cb(this));
}

@@ -124,0 +143,0 @@ /**

2

package.json
{
"name": "@ulu/frontend",
"version": "0.0.15",
"version": "0.0.16",
"description": "Theming library",

@@ -5,0 +5,0 @@ "browser": "js/index.js",

@@ -37,3 +37,16 @@ /**

breakpoints: {};
onChangeCallbacks: any[];
/**
* Add a callback for everytime a breakpoint changes
* - Not recommended, possibly use to watch for changes, etc
* - For more control use intance.at(name) with breakpoint methods
* @param {Function} callback Function to call, passed one argument current instance which can be used to get information about breakpoints
*/
onChange(callback: Function): void;
/**
* Remove change callback
* @param {Function} callback Function to remove
*/
removeOnChange(callback: Function): void;
/**
* Get breakpoint from a psuedo element

@@ -40,0 +53,0 @@ */

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