code-excerpt
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -5,3 +5,3 @@ 'use strict'; | ||
function generateLineNumbers(line, around) { | ||
const generateLineNumbers = (line, around) => { | ||
const lineNumbers = []; | ||
@@ -17,3 +17,3 @@ | ||
return lineNumbers; | ||
} | ||
}; | ||
@@ -32,3 +32,3 @@ module.exports = (source, line, options) => { | ||
if (line > source.length) { | ||
throw new TypeError(`Line number \`${line}\` is bigger than a total number of lines (${source.length}).`); | ||
return null; | ||
} | ||
@@ -35,0 +35,0 @@ |
{ | ||
"name": "code-excerpt", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Extract code excerpts", | ||
"license": "MIT", | ||
"repository": "vdemedes/code-excerpt", | ||
"repository": "vadimdemedes/code-excerpt", | ||
"author": { | ||
"name": "vdemedes", | ||
"email": "vdemedes@gmail.com", | ||
"url": "github.com/vdemedes" | ||
"url": "github.com/vadimdemedes" | ||
}, | ||
@@ -12,0 +12,0 @@ "engines": { |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
3599