Socket
Socket
Sign inDemoInstall

@heroku/ember-malibu-icon

Package Overview
Dependencies
291
Maintainers
287
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1-beta.4 to 1.3.1

27

addon/helpers/malibu-icon.js

@@ -28,22 +28,8 @@ /**

const parameters = (hash === undefined) ? params : hash;
const { title, size, height, width, iconClass, name, role } = parameters;
const { title, size, height, width, iconClass, name } = parameters;
const iconWidth = width || size;
const iconHeight = height || size;
const labelID = guidFor(this);
const attrs = [
'data-invocation-file-name',
'data-invocation-line',
'data-invocation-column',
'data-root-invocation-file-name',
'data-root-invocation-line',
'data-root-invocation-column',
];
const role = parameters.role || 'img';
const locationAttributes = attrs.reduce((attrStrings, attr) => {
if (parameters[attr]) {
attrStrings.push(`${attr}="${parameters[attr]}"`);
}
return attrStrings;
}, []).join(' ');
warn(

@@ -58,13 +44,8 @@ `Please set a title for the ${name} icon ` +

data-test-target="malibu-icon" data-test-icon-name="${escape(name)}"
data-component-source="@heroku/ember-malibu-icon/components/malibu-icon"
data-source-file-name="@heroku/ember-malibu-icon/helpers/malibu-icon"
data-source-line="0"
data-source-column="0"
class="icon malibu-icon ${escape(iconClass)}"
role="${escape(role || 'img')}"
role="${escape(role)}"
aria-labelledby="${escape(title ? labelID : '')}"
${locationAttributes}
>
<title id="${escape(title ? labelID : '')}">${escape(title)}</title>
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#${escape(name)}">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#${escape(name)}" role="${escape(role)}">
</use>

@@ -71,0 +52,0 @@ </svg>

@@ -5,5 +5,2 @@ 'use strict';

name: require('./package').name,
isDevelopingAddon() {
return true
},

@@ -10,0 +7,0 @@ contentFor(type, config) {

15

package.json
{
"name": "@heroku/ember-malibu-icon",
"version": "1.3.1-beta.4",
"version": "1.3.1",
"description": "Ember Malibu Icons",

@@ -23,6 +23,3 @@ "keywords": [

"dependencies": {
"ember-auto-import": "^1.5.3",
"ember-cli-babel": "^7.19.0",
"ember-cli-htmlbars": "^5.0.0",
"sanitize-html": "^1.24.0"
"ember-cli-babel": "^7.7.3"
},

@@ -32,8 +29,10 @@ "devDependencies": {

"broccoli-asset-rev": "^3.0.0",
"ember-cli": "^3.15.1",
"ember-cli-chai": "^0.5.0",
"ember-cli": "~3.10.1",
"ember-cli-chai": "^0.4.3",
"ember-cli-dependency-checker": "^3.1.0",
"ember-cli-eslint": "^5.1.0",
"ember-cli-htmlbars": "^3.0.1",
"ember-cli-htmlbars-inline-precompile": "^2.1.0",
"ember-cli-inject-live-reload": "^1.8.2",
"ember-cli-mocha": "^0.15.0",
"ember-cli-sass": "^10.0.0",

@@ -43,3 +42,3 @@ "ember-cli-template-lint": "^1.0.0-beta.1",

"ember-load-initializers": "^2.0.0",
"ember-mocha": "^0.16.0",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-resolver": "^5.0.1",

@@ -46,0 +45,0 @@ "ember-source": "~3.10.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc