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

code-error-fragment

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-error-fragment - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.editorconfig

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
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