New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular2-elastic

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

angular2-elastic - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

7

CHANGELOG.md

@@ -7,2 +7,6 @@ # Change Log

[0.10.1] - 2016-10-15
### Added
- Responds to window resize event.
[0.10.0] - 2016-10-14

@@ -15,1 +19,4 @@ ### Changed

- Initial commit of elastic directive.
[0.10.1]: https://github.com/fiznool/angular2-elastic/compare/v0.10.0...v0.10.1
[0.10.0]: https://github.com/fiznool/angular2-elastic/compare/v0.9.0...v0.10.0

2

package.json
{
"name": "angular2-elastic",
"version": "0.10.0",
"version": "0.10.1",
"description": "Angular 2 directive to auto expand textareas according to their contents.",

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

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

var core_1 = require('@angular/core');
var Rx_1 = require('rxjs/Rx');
var ElasticDirective = (function () {

@@ -21,2 +22,3 @@ function ElasticDirective(element) {

ElasticDirective.prototype.setupTextarea = function (textareaEl) {
var _this = this;
this.textareaEl = textareaEl;

@@ -26,2 +28,6 @@ var style = this.textareaEl.style;

style.resize = 'none';
Rx_1.Observable.fromEvent(window, 'resize')
.debounceTime(250)
.distinctUntilChanged(function (evt) { return evt.timeStamp; })
.subscribe(function () { return _this.adjust(); });
};

@@ -67,2 +73,2 @@ ElasticDirective.prototype.ngAfterContentInit = function () {

exports.ElasticDirective = ElasticDirective;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxhc3RpYy5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJlbGFzdGljLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBQW1ELGVBQWUsQ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ID0gdGhpcy50ZXh0YXJlYUVsLnNjcm9sbEhlaWdodCArIFwicHhcIjtcbiAgfVxufVxuIl19
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