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

@equinor/eds-tokens

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/eds-tokens - npm Package Compare versions

Comparing version 0.0.1-alpha.6 to 0.0.1-alpha.7

commonjs/package.json

6

CHANGELOG.md

@@ -8,2 +8,8 @@ # Changelog

## [0.0.1-alpha.7] - 2020-01-22
### Changed
- Better support for using as commonjs or esm modules in different node versions
## [0.0.1-alpha.6] - 2020-01-20

@@ -10,0 +16,0 @@

15

package.json
{
"name": "@equinor/eds-tokens",
"version": "0.0.1-alpha.6",
"main": "dist/tokens.cjs.js",
"version": "0.0.1-alpha.7",
"type": "module",
"main": "dist/tokens.esm.js",
"module": "dist/tokens.esm.js",

@@ -11,3 +12,4 @@ "browser": "dist/tokens.umd.js",

"files": [
"dist/*"
"dist/*",
"commonjs/*"
],

@@ -35,6 +37,7 @@ "description": "Design tokens for the Equinor Design System",

],
"dependencies": {
"@rollup/plugin-commonjs": "^11.0.1",
"devDependencies": {
"@rollup/plugin-node-resolve": "^7.0.0",
"rollup": "^1.29.0"
}
},
"dependencies": {}
}

14

README.md

@@ -38,4 +38,16 @@ # @equinor/eds-tokens

React storybook example:
#### Use as ESM Module
Add `"type":"module" ` to your apps `package.json`
```javascript
import { tokens } from "@equinor/eds-tokens"
```
#### Use as CommonJS Module
CommonJS will have a separate package path
```javascript
import { tokens } from "@equinor/eds-tokens/commonjs"
```
#### React storybook example
```js

@@ -42,0 +54,0 @@ import React from 'react'

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