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

chimi

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chimi - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

3

bin/bin.js

@@ -13,2 +13,3 @@ #!/usr/bin/env node

--help, -h Show help
--silent Prevent snippets from printing messages through the console
--version, -v, -V Show version

@@ -48,2 +49,2 @@

runner(config.dependencies, config.timeout, file)
runner(config.dependencies, config.timeout, file, cli.flags.silent)

@@ -107,4 +107,4 @@ const R = require('ramda')

// reportResults :: Spinner -> String -> ([FileResult] -> Cases)
const reportResults = (spinner, glob) => results => {
// reportResults :: Spinner -> String -> Boolean -> ([FileResult] -> Cases)
const reportResults = (spinner, glob, silent) => results => {
const cases = countCases(results)

@@ -126,3 +126,5 @@

listOutput(sortedResults)
if (!silent) {
listOutput(sortedResults)
}

@@ -129,0 +131,0 @@ if (cases.reject) {

const { taskOfSnippets } = require('./lib')
const { createSpinner, reportResults } = require('./reporter')
function runner(dependencies, timeout, glob) {
function runner(dependencies, timeout, glob, silent) {
const spinner = createSpinner()

@@ -10,3 +10,3 @@

return taskOfSnippets(dependencies, timeout, glob)
.map(reportResults(spinner, glob))
.map(reportResults(spinner, glob, silent))
.fork(

@@ -13,0 +13,0 @@ error => spinner.fail(error.message),

{
"name": "chimi",
"version": "0.0.6",
"version": "0.0.7",
"description": "Validate JavaScript code from your README",

@@ -5,0 +5,0 @@ "bin": {

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