code-excerpt
Advanced tools
Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
const tabsToSpaces = require('convert-to-spaces'); | ||
const repeating = require('repeating'); | ||
@@ -26,3 +25,3 @@ function generateLineNumbers(line, around) { | ||
if (line.length < maxLength) { | ||
line += repeating(maxLength - line.length); | ||
line += ' '.repeat(maxLength - line.length); | ||
} | ||
@@ -29,0 +28,0 @@ |
{ | ||
"name": "code-excerpt", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Extract code excerpts", | ||
@@ -22,4 +22,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"convert-to-spaces": "^1.0.0", | ||
"repeating": "^3.0.0" | ||
"convert-to-spaces": "^1.0.1" | ||
}, | ||
@@ -26,0 +25,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
# code-excerpt [![Build Status](https://travis-ci.org/vdemedes/code-excerpt.svg?branch=master)](https://travis-ci.org/vdemedes/code-excerpt) [![Coverage Status](https://coveralls.io/repos/github/vdemedes/code-excerpt/badge.svg?branch=master)](https://coveralls.io/github/vdemedes/code-excerpt?branch=master) | ||
# code-excerpt [![Build Status](https://travis-ci.org/vdemedes/code-excerpt.svg?branch=master)](https://travis-ci.org/vdemedes/code-excerpt) | ||
@@ -3,0 +3,0 @@ > Extract code excerpts |
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
1
4224
41
- Removedrepeating@^3.0.0
- Removedrepeating@3.0.0(transitive)
Updatedconvert-to-spaces@^1.0.1