get-connpass-items
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -10,2 +10,6 @@ 'use strict'; | ||
var Spinner = require('cli-spinner').Spinner; | ||
var spinner = new Spinner('proccessing... %s'); | ||
spinner.setSpinnerString(18); | ||
var instance = axios.create({ | ||
@@ -24,2 +28,3 @@ baseURL: 'https://connpass.com/api/v1/', | ||
module.exports = function () { | ||
spinner.start(); | ||
instance.get('/event', { | ||
@@ -35,2 +40,4 @@ params: { | ||
}); | ||
}).then(function () { | ||
spinner.stop(); | ||
}).catch(function (err) { | ||
@@ -37,0 +44,0 @@ if (err.config.timeout === 10000) { |
{ | ||
"name": "get-connpass-items", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "get-connpass-items(csm) is a CLI application.", | ||
@@ -15,2 +15,3 @@ "license": "MIT", | ||
"chalk": "^2.4.1", | ||
"cli-spinner": "^0.2.8", | ||
"json-table": "^0.1.3", | ||
@@ -17,0 +18,0 @@ "node-alias": "^1.0.4", |
@@ -8,2 +8,6 @@ const yargs = require('yargs') | ||
const Spinner = require('cli-spinner').Spinner | ||
const spinner = new Spinner('proccessing... %s') | ||
spinner.setSpinnerString(18) | ||
const instance = axios.create({ | ||
@@ -22,2 +26,3 @@ baseURL: 'https://connpass.com/api/v1/', | ||
module.exports = () => { | ||
spinner.start() | ||
instance | ||
@@ -41,2 +46,5 @@ .get('/event', { | ||
}) | ||
.then(() => { | ||
spinner.stop() | ||
}) | ||
.catch((err) => { | ||
@@ -43,0 +51,0 @@ if (err.config.timeout === 10000) { |
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
11402
211
7
+ Addedcli-spinner@^0.2.8
+ Addedcli-spinner@0.2.10(transitive)