code-error-fragment
Advanced tools
Comparing version 0.0.1 to 0.0.2
42
build.js
@@ -7,21 +7,3 @@ (function (global, factory) { | ||
var babelHelpers = {}; | ||
babelHelpers._extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
'use strict'; | ||
var padStart = function (string, targetLength, padString) { | ||
var padStart = (function (string, targetLength, padString) { | ||
if (String.prototype.padStart) { | ||
@@ -43,6 +25,18 @@ return string.padStart(targetLength, padString); | ||
} | ||
}); | ||
var _extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
'use strict'; | ||
function printLine(line, position, maxNumLength, settings) { | ||
@@ -66,4 +60,4 @@ var num = String(position); | ||
var index = function (input, linePos, columnPos, settings) { | ||
settings = babelHelpers._extends({}, defaultSettings, settings); | ||
var index = (function (input, linePos, columnPos, settings) { | ||
settings = _extends({}, defaultSettings, settings); | ||
@@ -80,3 +74,3 @@ var lines = input.split(/\r\n?|\n|\f/); | ||
return [prevLines, cursorLine, nextLines].filter(Boolean).join('\n'); | ||
}; | ||
}); | ||
@@ -83,0 +77,0 @@ return index; |
{ | ||
"name": "code-error-fragment", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"author": "Vlad Trushin", | ||
"homepage": "https://github.com/vtrushin/code-error-fragment", | ||
"description": "Shows code error fragment of input file", | ||
"repository": "vtrushin/pretty-code-errors", | ||
"repository": "vtrushin/code-error-fragment", | ||
"maintainers": [ | ||
@@ -16,21 +16,21 @@ { | ||
"main": "build.js", | ||
"jsnext:main": "index", | ||
"devDependencies": { | ||
"babel-core": "^6.26.0", | ||
"babel-helpers": "^6.24.1", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-stage-3": "^6.24.1", | ||
"coveralls": "^3.0.0", | ||
"mocha": "^4.0.1", | ||
"rollup": "^0.50.0", | ||
"rollup-plugin-babel": "^1.0.0" | ||
"rollup-plugin-babel": "^3.0.2" | ||
}, | ||
"scripts": { | ||
"test": "mocha", | ||
"build": "rollup --config rollup.config.js", | ||
"watch": "rollup --config rollup.config.js --watch", | ||
"build": "rollup -c", | ||
"watch": "rollup -c -w", | ||
"prepublish": "npm run build" | ||
}, | ||
"files": [ | ||
"build.js", | ||
"LICENSE", | ||
"readme.md" | ||
], | ||
"license": "MIT" | ||
} |
@@ -1,2 +0,2 @@ | ||
# Pretty code errors | ||
# Code error fragment | ||
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
13815
13
394
9
3
1