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

angular-breakpoints

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-breakpoints - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

index.ts

6

index.js

@@ -40,2 +40,3 @@ "use strict";

}
// Unsubscribe to the resize event
BreakpointsService.prototype.unsubscribe = function () {

@@ -47,2 +48,3 @@ if (this.subscription) {

};
// Subscribe to the resize event
BreakpointsService.prototype.subscribe = function () {

@@ -58,2 +60,3 @@ var _this = this;

};
// Sets the customized breakpoints
BreakpointsService.prototype.setBreakpoints = function (breakpoints) {

@@ -64,2 +67,3 @@ if (breakpoints) {

};
// Returns a breakpoint event, with the fallback breakpoint if none were found
BreakpointsService.prototype.getBreakpointEvent = function (name) {

@@ -73,5 +77,7 @@ if (!name) {

};
// Returns the current window size
BreakpointsService.prototype.getWindowSize = function () {
return { width: window.innerWidth, height: window.innerHeight };
};
// Returns the first breakpoint that match the current size
BreakpointsService.prototype.getBreakpoint = function (currentSize) {

@@ -78,0 +84,0 @@ var keys = Object.keys(this.breakpoints);

2

package.json
{
"name": "angular-breakpoints",
"version": "1.0.0",
"version": "1.0.1",
"description": "Angular 2 service to programmatically listen to breakpoints",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -0,3 +1,6 @@

[![NPM Version](https://img.shields.io/npm/v/angular-breakpoints.svg)](https://npmjs.com/package/angular-breakpoints)
# angular-breakpoints
`angular-breakpoints` is a little angular service to listen programmatically to breakpoints.

@@ -4,0 +7,0 @@

@@ -17,2 +17,2 @@ {

]
}
}

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