Socket
Socket
Sign inDemoInstall

@entur/icons

Package Overview
Dependencies
Maintainers
13
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@entur/icons - npm Package Compare versions

Comparing version 0.4.5 to 0.5.0

dist/index.esm.js

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [0.5.0](https://bitbucket.org/enturas/design-system/compare/@entur/icons@0.4.5...@entur/icons@0.5.0) (2020-01-14)
### Bug Fixes
- **icons:** fix inline icon styles ([a454c62](https://bitbucket.org/enturas/design-system/commits/a454c621e87a807efa5b39605d16cc0578d49e38))
- include the "native" folder in the npm package ([02f398c](https://bitbucket.org/enturas/design-system/commits/02f398c2a4a489b79a2002cb745ae1fda077201a))
### Features
- **icons:** add react-native icons ([962f1a5](https://bitbucket.org/enturas/design-system/commits/962f1a543567f5a0a7b76d6b0c53f48c81343e69))
## [0.4.5](https://bitbucket.org/enturas/design-system/compare/@entur/icons@0.4.4...@entur/icons@0.4.5) (2020-01-13)

@@ -8,0 +19,0 @@

31

package.json
{
"name": "@entur/icons",
"version": "0.4.5",
"version": "0.5.0",
"license": "EUPL-1.2",
"main": "dist/index.js",
"module": "dist/icons.esm.js",
"module": "dist/index.esm.js",
"typings": "types/index.d.ts",
"files": [
"dist",
"native",
"types"

@@ -21,8 +22,5 @@ ],

"scripts": {
"prebuild": "rimraf dist",
"build": "yarn build:index && yarn build:tsdx",
"build:index": "ts-node -O '{\"module\": \"commonjs\"}' bin/build-index.ts",
"build:tsdx": "tsdx build",
"test": "tsdx test --env=jsdom",
"lint": "tsdx lint"
"prebuild": "rimraf dist native tmp ",
"build": "node bin/build.js && rollup -c",
"postbuild": "rimraf tmp"
},

@@ -34,14 +32,21 @@ "peerDependencies": {

"devDependencies": {
"@svgr/rollup": "^5.0.1",
"@babel/core": "^7.7.7",
"@babel/preset-env": "^7.7.7",
"@babel/preset-react": "^7.7.4",
"@rollup/plugin-node-resolve": "^7.0.0",
"@svgr/core": "^5.0.1",
"@svgr/plugin-jsx": "^5.0.1",
"@svgr/plugin-prettier": "^5.0.1",
"@svgr/plugin-svgo": "^5.0.1",
"@types/fs-extra": "^8.0.0",
"case": "^1.6.2",
"fs-extra": "^8.1.0",
"jsdom": "^15.1.1",
"rimraf": "^3.0.0",
"ts-node": "^8.4.1"
"rollup": "^1.29.0",
"rollup-plugin-babel": "^4.3.3"
},
"dependencies": {
"@entur/utils": "^0.2.0"
"@entur/utils": "^0.2.1"
},
"gitHead": "af54ee3149f8b3867555d5fdd68699821d5b8fae"
"gitHead": "424f5b8ed5df86c1332f683d13a3ef59efc977ba"
}

@@ -18,5 +18,5 @@ # Icons

```js
import { AddIcon } from "@entur/icons"; //Import specific icon
import { AddIcon } from '@entur/icons'; // Import specific icon
<AddIcon/>
<AddIcon />;
```

@@ -30,6 +30,6 @@

If you're adding an icon, please add the SVG file to the appropriate `svg/` folder. Make sure you give it a unique name.
If you're adding an icon, please add the SVG file to the appropriate `svg/` folder. Make sure you give it a unique name, and make sure it looks correct in a browser after exporting it.
If you're changing an existing icon, just update the existing SVG file with the new source code.
Once you're done, run `yarn build` to generate the new components. This process will take ~10-60 seconds, depending on your computer and cache status.
Unlike most other packages in our design system, this one doesn't use TSDX or TypeScript. This is because TSDX doesn't support the tools we need to optimize our SVG files. Instead, we've opted for configuring Rollup directly.

Sorry, the diff of this file is too big to display

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