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

@tradeshift/elements.file-size

Package Overview
Dependencies
Maintainers
9
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tradeshift/elements.file-size - npm Package Compare versions

Comparing version 0.38.0 to 0.39.0

2

lib/file-size.esm.js

@@ -1,1 +0,1 @@

import{customElementDefineHelper as t,html as e,TSElement as r,unsafeCSS as i}from"@tradeshift/elements";import"@tradeshift/elements.typography";function o(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a,p=function(t){var p,s,u,y,l;function f(){var e=t.call(this)||this;return e.size=0,e.decimalPoint=2,e.variant="subtitle",e.type="default",e}return s=t,(p=f).prototype=Object.create(s.prototype),p.prototype.constructor=p,n(p,s),f.prototype.render=function(){return e(a||(t=['\n\t\t\t<ts-typography text="','" variant="','" type="','"></ts-typography>\n\t\t'],r||(r=t.slice(0)),t.raw=r,a=t),this.formatFileSize,this.variant,this.type);var t,r},u=f,l=[{key:"styles",get:function(){return[r.styles,i(":host{font-size:14px;font-size:var(--ts-font-size-default)}")]}},{key:"properties",get:function(){return{size:{type:Number},decimalPoint:{type:Number,attribute:"decimal-point"},variant:{type:String},type:{type:String}}}}],(y=[{key:"formatFileSize",get:function(){var t=this.size,e=this.decimalPoint;if(0===t)return"0 Bytes";var r=Math.floor(Math.log(t)/Math.log(1e3));return parseFloat((t/Math.pow(1e3,r)).toFixed(e))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}}])&&o(u.prototype,y),l&&o(u,l),f}(r);t("ts-file-size",p);export{p as TSFileSize};
import{customElementDefineHelper as t,html as e,TSElement as r,unsafeCSS as i}from"@tradeshift/elements";import"@tradeshift/elements.typography";function o(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function n(t,e){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},n(t,e)}var a,p=function(t){var p,s,y,u,f;function l(){var e;return(e=t.call(this)||this).size=0,e.decimalPoint=2,e.variant="subtitle",e.type="default",e}return s=t,(p=l).prototype=Object.create(s.prototype),p.prototype.constructor=p,n(p,s),l.prototype.render=function(){return e(a||(t=['\n\t\t\t<ts-typography text="','" variant="','" type="','"></ts-typography>\n\t\t'],r||(r=t.slice(0)),t.raw=r,a=t),this.formatFileSize,this.variant,this.type);var t,r},y=l,f=[{key:"styles",get:function(){return[r.styles,i(":host{font-size:14px;font-size:var(--ts-font-size-default)}")]}},{key:"properties",get:function(){return{size:{type:Number},decimalPoint:{type:Number,attribute:"decimal-point"},variant:{type:String},type:{type:String}}}}],(u=[{key:"formatFileSize",get:function(){var t=this.size,e=this.decimalPoint;if(0===t)return"0 Bytes";var r=Math.floor(Math.log(t)/Math.log(1e3));return parseFloat((t/Math.pow(1e3,r)).toFixed(e))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}}])&&o(y.prototype,u),f&&o(y,f),Object.defineProperty(y,"prototype",{writable:!1}),l}(r);t("ts-file-size",p);export{p as TSFileSize};

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@tradeshift/elements")):"function"==typeof define&&define.amd?define(["exports","@tradeshift/elements"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).ts=t.ts||{},t.ts.elements=t.ts.elements||{},t.ts.elements["file-size"]=t.ts.elements["file-size"]||{}),t.ts.elements)}(this,(function(t,e){"use strict";function r(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function n(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e){return e||(e=t.slice(0)),t.raw=e,t}var a,l,p=function(t){var r,o;function p(){return t.apply(this,arguments)||this}o=t,(r=p).prototype=Object.create(o.prototype),r.prototype.constructor=r,i(r,o);var c,f,u=p.prototype;return u.textChangeHandler=function(t){var e=t.currentTarget;this.tooltip=this.tooltip||this.text||e.assignedNodes()[0].data},u.render=function(){return this.noTooltip?e.html(a||(a=s(['\n\t\t\t\t\t<div class="text-wrapper">\n\t\t\t\t\t\t<slot>',"</slot>\n\t\t\t\t\t</div>\n\t\t\t "])),this.text):e.html(l||(l=s(['\n\t\t\t\t\t<div class="text-wrapper" title="','">\n\t\t\t\t\t\t<slot @slotchange="','">',"</slot>\n\t\t\t\t\t</div>\n\t\t\t "])),this.tooltip||this.text,this.textChangeHandler,this.text)},c=p,f=[{key:"styles",get:function(){return[e.TSElement.styles,e.unsafeCSS(":host{color:#0f151a;color:var(--ts-color-black);display:block;font-size:14px;font-size:var(--ts-font-size-default);line-height:20px;line-height:var(--ts-unit);min-width:0}:host([variant=title]) .text-wrapper{font-size:16px;font-size:var(--ts-fontsize-medium);font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([variant=subtitle]) .text-wrapper{color:#506b77;color:var(--ts-color-slate-lightest);font-size:12px;font-size:var(--ts-fontsize-mini)}:host([variant=semi-bold]) .text-wrapper{font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([no-wrap]) .text-wrapper{max-width:100%;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}:host([type=inverted]) .text-wrapper{color:#fff;color:var(--ts-color-white)}:host([type=warning]) .text-wrapper{color:#ff8c00;color:var(--ts-color-orange)}:host([type=danger]) .text-wrapper,:host([type=error]) .text-wrapper{color:#bd0000;color:var(--ts-color-red)}:host([type=action]) .text-wrapper,:host([type=primary]) .text-wrapper{color:#00aeff;color:var(--ts-color-blue)}:host([type=success]) .text-wrapper{color:#50c610;color:var(--ts-color-green)}:host([type=disabled]) .text-wrapper{color:#cbd7dc;color:var(--ts-color-gray-light)}:host([type=disabled-checked]) .text-wrapper{color:#9ab2bc;color:var(--ts-color-gray)}:host([type=slate-lightest]) .text-wrapper{color:#506b77;color:var(--ts-color-slate-lightest)}")]}},{key:"properties",get:function(){return{text:{type:String},tooltip:{type:String},variant:{type:String},type:{type:String},inline:{type:Boolean},noWrap:{type:Boolean,attribute:"no-wrap"},noTooltip:{type:Boolean,attribute:"no-tooltip"}}}}],null&&n(c.prototype,null),f&&n(c,f),p}(e.TSElement);e.customElementDefineHelper("ts-typography",p);var c,f=function(t){var n,i,s,a,l;function p(){var e=t.call(this)||this;return e.size=0,e.decimalPoint=2,e.variant="subtitle",e.type="default",e}return i=t,(n=p).prototype=Object.create(i.prototype),n.prototype.constructor=n,o(n,i),p.prototype.render=function(){return e.html(c||(t=['\n\t\t\t<ts-typography text="','" variant="','" type="','"></ts-typography>\n\t\t'],r||(r=t.slice(0)),t.raw=r,c=t),this.formatFileSize,this.variant,this.type);var t,r},s=p,l=[{key:"styles",get:function(){return[e.TSElement.styles,e.unsafeCSS(":host{font-size:14px;font-size:var(--ts-font-size-default)}")]}},{key:"properties",get:function(){return{size:{type:Number},decimalPoint:{type:Number,attribute:"decimal-point"},variant:{type:String},type:{type:String}}}}],(a=[{key:"formatFileSize",get:function(){var t=this.size,e=this.decimalPoint;if(0===t)return"0 Bytes";var r=Math.floor(Math.log(t)/Math.log(1e3));return parseFloat((t/Math.pow(1e3,r)).toFixed(e))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}}])&&r(s.prototype,a),l&&r(s,l),p}(e.TSElement);e.customElementDefineHelper("ts-file-size",f),t.TSFileSize=f,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@tradeshift/elements")):"function"==typeof define&&define.amd?define(["exports","@tradeshift/elements"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).ts=t.ts||{},t.ts.elements=t.ts.elements||{},t.ts.elements["file-size"]=t.ts.elements["file-size"]||{}),t.ts.elements)}(this,(function(t,e){"use strict";function r(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function n(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function s(t,e){return e||(e=t.slice(0)),t.raw=e,t}var a,l,p=function(t){var r,o;function p(){return t.apply(this,arguments)||this}o=t,(r=p).prototype=Object.create(o.prototype),r.prototype.constructor=r,i(r,o);var c,f,u=p.prototype;return u.textChangeHandler=function(t){var e=t.currentTarget;this.tooltip=this.tooltip||this.text||e.assignedNodes()[0].data},u.render=function(){return this.noTooltip?e.html(a||(a=s(['\n\t\t\t\t\t<div class="text-wrapper">\n\t\t\t\t\t\t<slot>',"</slot>\n\t\t\t\t\t</div>\n\t\t\t "])),this.text):e.html(l||(l=s(['\n\t\t\t\t\t<div class="text-wrapper" title="','">\n\t\t\t\t\t\t<slot @slotchange="','">',"</slot>\n\t\t\t\t\t</div>\n\t\t\t "])),this.tooltip||this.text,this.textChangeHandler,this.text)},c=p,f=[{key:"styles",get:function(){return[e.TSElement.styles,e.unsafeCSS(":host{color:#0f151a;color:var(--ts-color-black);display:block;font-size:14px;font-size:var(--ts-font-size-default);line-height:20px;line-height:var(--ts-unit);min-width:0}:host([variant=title]) .text-wrapper{font-size:16px;font-size:var(--ts-fontsize-medium);font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([variant=subtitle]) .text-wrapper{color:#506b77;color:var(--ts-color-slate-lightest);font-size:12px;font-size:var(--ts-fontsize-mini)}:host([variant=semi-bold]) .text-wrapper{font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([no-wrap]) .text-wrapper{max-width:100%;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}:host([type=inverted]) .text-wrapper{color:#fff;color:var(--ts-color-white)}:host([type=warning]) .text-wrapper{color:#ff8c00;color:var(--ts-color-orange)}:host([type=danger]) .text-wrapper,:host([type=error]) .text-wrapper{color:#bd0000;color:var(--ts-color-red)}:host([type=action]) .text-wrapper,:host([type=primary]) .text-wrapper{color:#00aeff;color:var(--ts-color-blue)}:host([type=success]) .text-wrapper{color:#50c610;color:var(--ts-color-green)}:host([type=disabled]) .text-wrapper{color:#cbd7dc;color:var(--ts-color-gray-light)}:host([type=disabled-checked]) .text-wrapper{color:#9ab2bc;color:var(--ts-color-gray)}:host([type=slate-lightest]) .text-wrapper{color:#506b77;color:var(--ts-color-slate-lightest)}")]}},{key:"properties",get:function(){return{text:{type:String},tooltip:{type:String},variant:{type:String},type:{type:String},inline:{type:Boolean},noWrap:{type:Boolean,attribute:"no-wrap"},noTooltip:{type:Boolean,attribute:"no-tooltip"}}}}],null&&n(c.prototype,null),f&&n(c,f),Object.defineProperty(c,"prototype",{writable:!1}),p}(e.TSElement);e.customElementDefineHelper("ts-typography",p);var c,f=function(t){var n,i,s,a,l;function p(){var e;return(e=t.call(this)||this).size=0,e.decimalPoint=2,e.variant="subtitle",e.type="default",e}return i=t,(n=p).prototype=Object.create(i.prototype),n.prototype.constructor=n,o(n,i),p.prototype.render=function(){return e.html(c||(t=['\n\t\t\t<ts-typography text="','" variant="','" type="','"></ts-typography>\n\t\t'],r||(r=t.slice(0)),t.raw=r,c=t),this.formatFileSize,this.variant,this.type);var t,r},s=p,a=[{key:"formatFileSize",get:function(){var t=this.size,e=this.decimalPoint;if(0===t)return"0 Bytes";var r=Math.floor(Math.log(t)/Math.log(1e3));return parseFloat((t/Math.pow(1e3,r)).toFixed(e))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}}],l=[{key:"styles",get:function(){return[e.TSElement.styles,e.unsafeCSS(":host{font-size:14px;font-size:var(--ts-font-size-default)}")]}},{key:"properties",get:function(){return{size:{type:Number},decimalPoint:{type:Number,attribute:"decimal-point"},variant:{type:String},type:{type:String}}}}],a&&r(s.prototype,a),l&&r(s,l),Object.defineProperty(s,"prototype",{writable:!1}),p}(e.TSElement);e.customElementDefineHelper("ts-file-size",f),t.TSFileSize=f,Object.defineProperty(t,"__esModule",{value:!0})}));
{
"name": "@tradeshift/elements.file-size",
"version": "0.38.0",
"version": "0.39.0",
"repository": {

@@ -18,7 +18,7 @@ "type": "git",

"dependencies": {
"@tradeshift/elements": "^0.38.0",
"@tradeshift/elements.typography": "^0.38.0"
"@tradeshift/elements": "^0.39.0",
"@tradeshift/elements.typography": "^0.39.0"
},
"src": "src/file-size.js",
"gitHead": "00b9d48acbe486496c432652e3ca7c489041b1d8"
"gitHead": "3553e0208b3f9a52c6ca850412507c39ca11e0b7"
}
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