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
7
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.17.0 to 0.18.0

2

lib/file-size.umd.js

@@ -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=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,o){return e&&r(t.prototype,e),o&&r(t,o),t}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 e||(e=t.slice(0)),t.raw=e,t}function s(){var t=i(['\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 "]);return s=function(){return t},t}function a(){var t=i(['\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 "]);return a=function(){return t},t}var l=function(t){var r,o;function i(){return t.apply(this,arguments)||this}o=t,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var l,p,c=i.prototype;return c.textChangeHandler=function(t){var e=t.currentTarget;this.tooltip=this.tooltip||this.text||e.assignedNodes()[0].data},c.render=function(){return this.noTooltip?e.html(a(),this.text):e.html(s(),this.tooltip||this.text,this.textChangeHandler,this.text)},l=i,p=[{key:"styles",get:function(){return[e.TSElement.styles,e.unsafeCSS(":host{display:block;line-height:20px;line-height:var(--ts-unit);min-width:0;color:#0f151a;color:var(--ts-color-black)}.text-wrapper{font-size:14px;font-size:var(--ts-font-size-default)}: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{font-size:12px;font-size:var(--ts-fontsize-mini);color:#506b77;color:var(--ts-color-slate-lightest)}:host([variant=semi-bold]) .text-wrapper{font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([no-wrap]) .text-wrapper{position:relative;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}: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(l.prototype,null),p&&n(l,p),i}(e.TSElement);e.customElementDefineHelper("ts-typography",l);function p(){var t,e,r=(t=['\n\t\t\t<ts-typography text="','" variant="','" type="','"></ts-typography>\n\t\t'],e||(e=t.slice(0)),t.raw=e,t);return p=function(){return r},r}var c=function(t){var r,n;function i(){var e=t.call(this)||this;return e.size=0,e.decimalPoint=2,e.variant="subtitle",e.type="default",e}return n=t,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o(i,null,[{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}}}}]),i.prototype.render=function(){return e.html(p(),this.formatFileSize,this.variant,this.type)},o(i,[{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]}}]),i}(e.TSElement);e.customElementDefineHelper("ts-file-size",c),t.TSFileSize=c,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=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,o){return e&&r(t.prototype,e),o&&r(t,o),t}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 e||(e=t.slice(0)),t.raw=e,t}function s(){var t=i(['\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 "]);return s=function(){return t},t}function a(){var t=i(['\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 "]);return a=function(){return t},t}var l=function(t){var r,o;function i(){return t.apply(this,arguments)||this}o=t,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var l,p,c=i.prototype;return c.textChangeHandler=function(t){var e=t.currentTarget;this.tooltip=this.tooltip||this.text||e.assignedNodes()[0].data},c.render=function(){return this.noTooltip?e.html(a(),this.text):e.html(s(),this.tooltip||this.text,this.textChangeHandler,this.text)},l=i,p=[{key:"styles",get:function(){return[e.TSElement.styles,e.unsafeCSS(":host{display:block;line-height:20px;line-height:var(--ts-unit);font-size:14px;font-size:var(--ts-font-size-default);min-width:0;color:#0f151a;color:var(--ts-color-black)}: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{font-size:12px;font-size:var(--ts-fontsize-mini);color:#506b77;color:var(--ts-color-slate-lightest)}:host([variant=semi-bold]) .text-wrapper{font-weight:600;font-weight:var(--ts-fontweight-semibold)}:host([no-wrap]) .text-wrapper{position:relative;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}: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(l.prototype,null),p&&n(l,p),i}(e.TSElement);e.customElementDefineHelper("ts-typography",l);function p(){var t,e,r=(t=['\n\t\t\t<ts-typography text="','" variant="','" type="','"></ts-typography>\n\t\t'],e||(e=t.slice(0)),t.raw=e,t);return p=function(){return r},r}var c=function(t){var r,n;function i(){var e=t.call(this)||this;return e.size=0,e.decimalPoint=2,e.variant="subtitle",e.type="default",e}return n=t,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o(i,null,[{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}}}}]),i.prototype.render=function(){return e.html(p(),this.formatFileSize,this.variant,this.type)},o(i,[{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]}}]),i}(e.TSElement);e.customElementDefineHelper("ts-file-size",c),t.TSFileSize=c,Object.defineProperty(t,"__esModule",{value:!0})}));
{
"name": "@tradeshift/elements.file-size",
"version": "0.17.0",
"version": "0.18.0",
"src": "src/file-size.js",

@@ -14,4 +14,4 @@ "main": "lib/file-size.umd.js",

"dependencies": {
"@tradeshift/elements": "^0.17.0",
"@tradeshift/elements.typography": "^0.17.0"
"@tradeshift/elements": "^0.18.0",
"@tradeshift/elements.typography": "^0.18.0"
},

@@ -23,3 +23,3 @@ "repository": {

},
"gitHead": "840f67159bef177ed0f3174bc97a2288422cac0e"
"gitHead": "cbef3a40ec294c4ce6f23943d68b3875d43973cf"
}

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