ink-spinner
Advanced tools
Comparing version 2.0.0 to 3.0.0
{ | ||
"name": "ink-spinner", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Spinner component for Ink", | ||
@@ -12,5 +12,5 @@ "license": "MIT", | ||
}, | ||
"main": "dist/index.js", | ||
"main": "build/index.js", | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=8" | ||
}, | ||
@@ -20,7 +20,7 @@ "scripts": { | ||
"test": "xo && ava", | ||
"build": "babel src --out-dir=dist", | ||
"prepublish": "npm run build" | ||
"build": "babel src --out-dir=build", | ||
"prepare": "npm run build" | ||
}, | ||
"files": [ | ||
"dist" | ||
"build" | ||
], | ||
@@ -37,60 +37,36 @@ "keywords": [ | ||
], | ||
"peerDependencies": { | ||
"ink": "^0.5.0" | ||
}, | ||
"dependencies": { | ||
"cli-spinners": "^1.0.0", | ||
"object.omit": "^2.0.1", | ||
"prop-types": "^15.5.10" | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.20.0", | ||
"babel-cli": "^6.24.1", | ||
"babel-plugin-transform-react-jsx": "^6.24.1", | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.3.3", | ||
"@babel/plugin-proposal-class-properties": "^7.3.3", | ||
"@babel/preset-react": "^7.0.0", | ||
"ava": "*", | ||
"babel-eslint": "^10.0.1", | ||
"delay": "^4.1.0", | ||
"eslint-config-xo-react": "^0.13.0", | ||
"eslint-plugin-react": "^7.1.0", | ||
"ink": "^0.5.0", | ||
"ink": "^2.0.0", | ||
"react": "^16.8.2", | ||
"sinon": "^2.3.6", | ||
"xo": "^0.18.2" | ||
"xo": "*" | ||
}, | ||
"babel": { | ||
"plugins": [ | ||
[ | ||
"transform-react-jsx", | ||
{ | ||
"pragma": "h", | ||
"useBuiltIns": true | ||
} | ||
] | ||
"@babel/plugin-proposal-class-properties" | ||
], | ||
"presets": [ | ||
"@ava/stage-4", | ||
"@babel/preset-react" | ||
] | ||
}, | ||
"ava": { | ||
"babel": { | ||
"presets": [ | ||
"@ava/stage-4" | ||
], | ||
"plugins": [ | ||
[ | ||
"transform-react-jsx", | ||
{ | ||
"pragma": "h", | ||
"useBuiltIns": true | ||
} | ||
] | ||
] | ||
} | ||
}, | ||
"xo": { | ||
"parser": "babel-eslint", | ||
"extends": [ | ||
"xo-react" | ||
], | ||
"rules": { | ||
"react/no-unused-prop-types": 1 | ||
}, | ||
"settings": { | ||
"react": { | ||
"pragma": "h" | ||
} | ||
} | ||
] | ||
} | ||
} |
@@ -16,9 +16,10 @@ # ink-spinner [![Build Status](https://travis-ci.org/vadimdemedes/ink-spinner.svg?branch=master)](https://travis-ci.org/vadimdemedes/ink-spinner) | ||
```js | ||
const {h, render} = require('ink'); | ||
const Spinner = require('ink-spinner'); | ||
import React from 'react'; | ||
import {render, Color} from 'ink'; | ||
import Spinner from 'ink-spinner'; | ||
render(( | ||
<div> | ||
<Spinner green/> Loading | ||
</div> | ||
<Color green> | ||
<Spinner green/>{' '}Loading | ||
</Color> | ||
)); | ||
@@ -32,4 +33,2 @@ ``` | ||
All props except the own ones listed below are passed as-is to `<Color>`, which means you can easily apply any color, without wrapping `<Spinner>` in `<Color>` manually. | ||
### type | ||
@@ -36,0 +35,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5423
2
52
13
43
- Removedobject.omit@^2.0.1
- Removedansi-escapes@3.2.0(transitive)
- Removedansi-regex@3.0.1(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedarrify@1.0.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcli-cursor@2.1.0(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfor-own@0.1.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedindent-string@3.2.0(transitive)
- Removedink@0.5.1(transitive)
- Removedis-equal-shallow@0.1.3(transitive)
- Removedis-extendable@0.1.1(transitive)
- Removedis-fullwidth-code-point@2.0.0(transitive)
- Removedis-primitive@2.0.0(transitive)
- Removedlodash.flattendeep@4.4.0(transitive)
- Removedlog-update@2.3.0(transitive)
- Removedmimic-fn@1.2.0(transitive)
- Removedobject.omit@2.0.1(transitive)
- Removedonetime@2.0.1(transitive)
- Removedrestore-cursor@2.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstring-width@2.1.1(transitive)
- Removedstrip-ansi@4.0.0(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedwrap-ansi@3.0.1(transitive)