Package: libjs-autosize
Severity: grave
Version: 4.0.2~dfsg1-5
Control: affects -1 ruby-rails-assets-autosize,diaspora

I think during transition to babel7 something broke.

This causes diaspora ui to break,

Uncaught ReferenceError: module is not defined
at main-e074888ae8b7a9cd9ffd9335b56c44872cea8212be3599667e8dd56947c37546.js:3 at $.fn.charCount (main-e074888ae8b7a9cd9ffd9335b56c44872cea8212be3599667e8dd56947c37546.js:3) at main-e074888ae8b7a9cd9ffd9335b56c44872cea8212be3599667e8dd56947c37546.js:3

This leads to,

(t((t={exports:{}}).exports),e.autosize=t.exports)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";function n(a){function e(){var e=window.getComputedStyle(a,null);"vertical"===e.resize?a.style.resize="none":"both"===e.resize&&(a.style.resize="horizontal"),r="content-box"===e.boxSizing?-(parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)):parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),isNaN(r)&&(r=0),i()}function o(e){var t=a.style.width;a.style.width="0px",a.offsetWidth,a.style.width=t,a.style.overflowY=e}function n(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function s(){var e,t;0!==a.scrollHeight&&(e=n(a),t=document.documentElement&&document.documentElement.scrollTop,a.style.height="",a.style.height=a.scrollHeight+r+"px",l=a.clientWidth,e.forEach(function(e){e.node.scrollTop=e.scrollTop}),t&&(document.documentElement.scrollTop=t))}function i(){s();var e=Math.round(parseFloat(a.style.height)),t=window.getComputedStyle(a,null),n="content-box"===t.boxSizing?Math.round(parseFloat(t.height)):a.offsetHeight;if(n<e?"hidden"===t.overflowY&&(o("scroll"),s(),n="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(a,null).height)):a.offsetHeight):"hidden"!==t.overflowY&&(o("hidden"),s(),n="content-box"===t.boxSizing?Math.round(parseFloat(window.getComputedStyle(a,null).height)):a.offsetHeight),c!==n){c=n;n=m("autosize:resized");try{a.dispatchEvent(n)}catch(i){}}}var r,l,c,u,d;a&&a.nodeName&&"TEXTAREA"===a.nodeName&&!p.has(a)&&(c=l=r=null,u=function u(){a.clientWidth!==l&&i()},d=function(t){window.removeEventListener("resize",u,!1),a.removeEventListener("input",i,!1),a.removeEventListener("keyup",i,!1),a.removeEventListener("autosize:destroy",d,!1),a.removeEventListener("autosize:update",i,!1),Object.keys(t).forEach(function(e){a.style[e]=t[e]}),p["delete"](a)}.bind(a,{height:a.style.height,resize:a.style.resize,overflowY:a.style.overflowY,overflowX:a.style.overflowX,wordWrap:a.style.wordWrap}),a.addEventListener("autosize:destroy",d,!1),"onpropertychange"in a&&"oninput"in a&&a.addEventListener("keyup",i,!1),window.addEventListener("resize",u,!1),a.addEventListener("input",i,!1),a.addEventListener("autosize:update",i,!1),a.style.overflowX="hidden",a.style.wordWrap="break-word",p.set(a,{destroy:d,update:i}),e())}function t(e){e=p.get(e);e&&e.destroy()}function i(e){e=p.get(e);e&&e.update()}e["default"]=void 0;var a,o,p="function"==typeof Map?new Map:(a=[],o=[],{has:function r(e){return-1<a.indexOf(e)},get:function l(e){return o[a.indexOf(e)]},set:function c(e,t){-1===a.indexOf(e)&&(a.push(e),o.push(t))},"delete":function u(e){e=a.indexOf(e);-1<e&&(a.splice(e,1),o.splice(e,1))}}),m=function m(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(d){m=function m(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var s=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((s=function s(e){return e}).destroy=function(e){return e},s.update=function(e){return e}):((s=function s(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e,t)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],t),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e}),e["default"]=s,module.exports=exports["default"]}),$.fn.charCount=function(i)

--
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to