Socket
Socket
Sign inDemoInstall

@equinor/fusion-wc-icon

Package Overview
Dependencies
5
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

11

CHANGELOG.md

@@ -6,4 +6,15 @@ # Change Log

## [1.0.2](https://github.com/equinor/fusion-web-components/compare/@equinor/fusion-wc-icon@1.0.1...@equinor/fusion-wc-icon@1.0.2) (2021-03-30)
### Bug Fixes
* update package deps ([24f71cd](https://github.com/equinor/fusion-web-components/commit/24f71cdb8f2ce709dcd7be534e3ddaea6496311f))
## 1.0.1 (2021-03-26)
**Note:** Version bump only for package @equinor/fusion-wc-icon

5

lib/utils/create-icon.d.ts

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

import { SVGTemplateResult } from 'lit-element';
import * as edsIcons from '@equinor/eds-icons';

@@ -8,4 +9,4 @@ import { IconData } from '@equinor/eds-icons';

}
export declare const createSvg: ({ height, width, svgPathData }: IconData) => import("lit-element").SVGTemplateResult;
export declare const createIcon: (name: IconName, type?: IconType) => import("lit-element").SVGTemplateResult;
export declare const createSvg: ({ height, width, svgPathData }: IconData) => SVGTemplateResult;
export declare const createIcon: (name: IconName, type?: IconType) => SVGTemplateResult;
export default createIcon;

12

package.json
{
"name": "@equinor/fusion-wc-icon",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -15,12 +15,10 @@ "main": "lib/index.js",

"@equinor/eds-icons": "^0.6.2",
"@equinor/fusion-wc-core": "^1.0.1"
"@equinor/fusion-wc-core": "^1.0.1",
"lit-element": "^2.4.0"
},
"devDependencies": {
"@equinor/fusion-wc-builder": "^1.0.1",
"lit-element": "^2.4.0",
"lit-html": "^1.3.0"
"@equinor/fusion-wc-builder": "^1.0.1"
},
"peerDependencies": {
"lit-element": "^2.x",
"lit-html": "^1.x",
"typescript": "^4.x"

@@ -36,3 +34,3 @@ },

},
"gitHead": "11f038604de70bde31a11d8a4032e163d50be2f9"
"gitHead": "244ab4075452091476bcb40a8ac90165f3bcad46"
}

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

import { svg } from 'lit-element';
import { svg, SVGTemplateResult } from 'lit-element';

@@ -14,3 +14,3 @@ import * as edsIcons from '@equinor/eds-icons';

export const createSvg = ({ height, width, svgPathData }: IconData) => svg`
export const createSvg = ({ height, width, svgPathData }: IconData): SVGTemplateResult => svg`
<svg height="${height}" width="${width}" viewBox="0 0 ${width} ${height}">

@@ -21,3 +21,3 @@ <path fill-rule="evenodd" clip-rule="evenodd" d="${svgPathData}"></path>

export const createIcon = (name: IconName, type: IconType = IconType.EDS) => {
export const createIcon = (name: IconName, type: IconType = IconType.EDS): SVGTemplateResult => {
switch (type) {

@@ -24,0 +24,0 @@ case IconType.EDS:

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc