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

ink-spinner

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ink-spinner - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

build/index.js

70

package.json
{
"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 @@

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