Comparing version 0.3.0 to 0.3.1
@@ -176,10 +176,8 @@ // Generated by CoffeeScript 2.7.0 | ||
}; | ||
return readdirp({ | ||
root: dir, | ||
return readdirp.promise(dir, { | ||
fileFilter: exts | ||
}, function(err, res) { | ||
if (err) { | ||
return done(err); | ||
} | ||
return async.mapLimit(filterFiles(res.files), 1000, processFile, done); | ||
}).then(function(files) { | ||
return async.mapLimit(filterFiles(files), 1000, processFile, done); | ||
}).catch(function(err) { | ||
return done(err); | ||
}); | ||
@@ -186,0 +184,0 @@ }; |
@@ -49,2 +49,3 @@ // Generated by CoffeeScript 2.7.0 | ||
case "pl": | ||
case "prql": | ||
case "yaml": | ||
@@ -466,3 +467,3 @@ case "hr": | ||
extensions = ["agda", "asm", "brs", "c", "cc", "clj", "cljs", "cls", "coffee", "cpp", "cr", "cs", "css", "cxx", "dart", "erl", "f90", "f95", "f03", "f08", "f18", "fs", "fsi", "fsx", "go", "groovy", "gs", "h", "handlebars", "hbs", "hpp", "hr", "hs", "html", "htm", "hx", "hxx", "hy", "iced", "ily", "ino", "jade", "java", "jl", "js", "jsx", "mjs", "kt", "kts", "latex", "less", "ly", "lua", "ls", "ml", "mli", "mochi", "monkey", "mustache", "nix", "nim", "nut", "php", "php5", "pl", "py", "r", "rb", "rkt", "rpy", "rs", "sass", "scala", "scss", "sty", "styl", "svg", "sql", "swift", "tex", "ts", "tsx", "vb", "vue", "xml", "yaml", "m", "mm", "bsl"]; | ||
extensions = ["agda", "asm", "brs", "c", "cc", "clj", "cljs", "cls", "coffee", "cpp", "cr", "cs", "css", "cxx", "dart", "erl", "f90", "f95", "f03", "f08", "f18", "fs", "fsi", "fsx", "go", "groovy", "gs", "h", "handlebars", "hbs", "hpp", "hr", "hs", "html", "htm", "hx", "hxx", "hy", "iced", "ily", "ino", "jade", "java", "jl", "js", "jsx", "mjs", "kt", "kts", "latex", "less", "ly", "lua", "ls", "ml", "mli", "mochi", "monkey", "mustache", "nix", "nim", "nut", "php", "php5", "pl", "prql", "py", "r", "rb", "rkt", "rpy", "rs", "sass", "scala", "scss", "sty", "styl", "svg", "sql", "swift", "tex", "ts", "tsx", "vb", "vue", "xml", "yaml", "m", "mm", "bsl"]; | ||
@@ -469,0 +470,0 @@ slocModule.extensions = extensions; |
The MIT License | ||
Copyright (c) 2012-2018 Markus Kohlhase (mail@markus-kohlhase.de) | ||
Copyright (c) 2012-2024 Markus Kohlhase (mail@markus-kohlhase.de) | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "sloc", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"main": "lib/sloc", | ||
@@ -32,4 +32,4 @@ "bin": "bin/sloc", | ||
"devDependencies": { | ||
"@coffeelint/cli": "^5.2.11", | ||
"chai": "^4.3.8", | ||
"@coffeelint/cli": "^5.2.11", | ||
"coffeescript": "^2.7.0", | ||
@@ -36,0 +36,0 @@ "mocha": "^10.2.0" |
@@ -16,3 +16,2 @@ # sloc | ||
[![NPM version](https://badge.fury.io/js/sloc.svg)](http://badge.fury.io/js/sloc) | ||
[![Bower version](https://img.shields.io/bower/v/sloc.svg)](https://github.com/flosse/sloc) | ||
[![License](https://img.shields.io/npm/l/sloc.svg)](https://github.com/flosse/sloc/blob/master/LICENCE.txt) | ||
@@ -53,16 +52,2 @@ [![Minified size](http://img.shields.io/badge/size-6,1K-blue.svg)](https://github.com/flosse/sloc) | ||
sloc is also available via [bower](https://github.com/bower/): | ||
```shell | ||
bower install sloc | ||
``` | ||
**Note**: | ||
You need to compile the coffee-script files yourself. | ||
If you want to use a pre-compiled bower package, you can run | ||
```shell | ||
bower install sloc-bower | ||
``` | ||
## Usage | ||
@@ -247,2 +232,3 @@ | ||
- PHP | ||
- PRQL | ||
- Pug | ||
@@ -249,0 +235,0 @@ - Python |
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
35193
909
266