Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@haxtheweb/simple-icon

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@haxtheweb/simple-icon - npm Package Compare versions

Comparing version 9.0.1 to 9.0.2

analysis.json

9

custom-elements.json

@@ -210,3 +210,3 @@ {

"name": "dir",
"description": "`dir` {`string`} - \n\nProperty: dir\n\nDefault: documentDir"
"description": "`dir` {`string`} - \n\nProperty: dir\n\nDefault: ltr"
}

@@ -238,7 +238,2 @@ ]

{
"name": "simple-iconset",
"description": "Properties:\n\n * `iconsets` - \n\n * `iconlist` {`never[]`} - \n\n * `manifest` - \n\n * `needsHydrated` {`never[]`} - ",
"attributes": []
},
{
"name": "simple-icon",

@@ -266,3 +261,3 @@ "description": "`simple-icon`\n`Render an SVG based icon`\n\nAttributes:\n\n * `contrast` {`number`} - \n\n * `src` {`string`} - \n\n * `icon` {`string`} - \n\n * `no-colorize` {`boolean`} - \n\n * `dir` {`string`} - \n\n * `accent-color` {`string`} - a selected accent-\"color\": grey, red, pink, purple, etc.\n\n * `dark` {`boolean`} - make the default theme dark?\n\nProperties:\n\n * `contrast` {`number`} - \n\n * `feFlood` {`UncompiledTemplateResult<2> | \"\"`} - \n\n * `src` {`string`} - \n\n * `icon` {`string`} - \n\n * `documentDir` {`string`} - \n\n * `useSafariPolyfill` {`boolean`} - \n\n * `safariMask` {`string`} - \n\n * `noColorize` {`boolean`} - \n\n * `dir` {`string`} - \n\n * `accentColor` {`string`} - a selected accent-\"color\": grey, red, pink, purple, etc.\n\n * `dark` {`boolean`} - make the default theme dark?\n\n * `colors` - ",

"name": "dir",
"description": "`dir` {`string`} - \n\nProperty: dir\n\nDefault: documentDir"
"description": "`dir` {`string`} - \n\nProperty: dir\n\nDefault: ltr"
},

@@ -269,0 +264,0 @@ {

@@ -113,13 +113,19 @@ /**

get documentDir() {
if (globalThis.document && globalThis.document.body) {
return (
globalThis.document.body.getAttribute("xml:dir") ||
globalThis.document.body.getAttribute("dir") ||
globalThis.document.documentElement.getAttribute("xml:dir") ||
globalThis.document.documentElement.getAttribute("dir") ||
"ltr"
);
}
return "ltr";
}
get useSafariPolyfill() {
return (
globalThis.document.body.getAttribute("xml:dir") ||
globalThis.document.body.getAttribute("dir") ||
globalThis.document.documentElement.getAttribute("xml:dir") ||
globalThis.document.documentElement.getAttribute("dir") ||
"ltr"
globalThis.navigator &&
globalThis.navigator.userAgent.indexOf("Safari") > -1
);
}
get useSafariPolyfill() {
return navigator.userAgent.indexOf("Safari") > -1;
}
get safariMask() {

@@ -126,0 +132,0 @@ return this.src && this.useSafariPolyfill

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

import { LitElement } from "lit";
/**

@@ -16,3 +17,3 @@ * Singleton to manage iconsets

*/
class SimpleIconset extends HTMLElement {
class SimpleIconset extends LitElement {
static get tag() {

@@ -115,3 +116,3 @@ return "simple-iconset";

customElements.define(SimpleIconset.tag, SimpleIconset);
globalThis.customElements.define(SimpleIconset.tag, SimpleIconset);

@@ -123,3 +124,7 @@ globalThis.SimpleIconset = globalThis.SimpleIconset || {};

globalThis.SimpleIconset.requestAvailability = () => {
if (globalThis.SimpleIconset.instance == null && globalThis.document) {
if (
globalThis.SimpleIconset.instance == null &&
globalThis.document &&
globalThis.document.body
) {
globalThis.SimpleIconset.instance =

@@ -126,0 +131,0 @@ globalThis.document.createElement("simple-iconset");

@@ -23,3 +23,3 @@ {

},
"version": "9.0.1",
"version": "9.0.2",
"description": "Render an SVG based icon",

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

"dependencies": {
"@haxtheweb/simple-colors": "^9.0.1",
"@haxtheweb/simple-colors": "^9.0.2",
"flag-icons": "6.6.4",

@@ -56,3 +56,3 @@ "lit": "^3.1.4"

"devDependencies": {
"@haxtheweb/deduping-fix": "^9.0.1",
"@haxtheweb/deduping-fix": "^9.0.2",
"@open-wc/testing": "4.0.0",

@@ -74,3 +74,3 @@ "@polymer/iron-component-page": "github:PolymerElements/iron-component-page",

],
"gitHead": "7f62cde6a6242afcb57715e1e2067ea767c777fd"
"gitHead": "f528e4aac8aeadf5350d9262fb515d14d208e376"
}

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