New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

breakwrap

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

breakwrap - npm Package Compare versions

Comparing version 0.0.6 to 1.0.0

23

dist/index.js

@@ -1,2 +0,2 @@

var ConsolePos, exports, splitString,
var ConsolePos, ansiRegex, exports, splitString, stringLength,
__slice = [].slice;

@@ -6,4 +6,8 @@

stringLength = require('string-length');
ansiRegex = require('ansi-regex')();
splitString = function(str, length, offset, endsInNL) {
var first, head, min, rest, tail, tmp, _ref;
var escapeArray, first, head, min, rest, tail, tmp, _ref;
if (endsInNL === void 0) {

@@ -14,3 +18,3 @@ endsInNL = str[str.length - 1] === '\n';

rest = tmp.join("\n");
if (first.length < length - offset) {
if (stringLength(first) < length - offset) {
if (rest.length === 0) {

@@ -26,3 +30,14 @@ if (endsInNL) {

} else {
min = Math.min(first.length, length - offset);
min = Math.min(stringLength(first), length - offset);
escapeArray = str.match(ansiRegex);
if (escapeArray !== null) {
escapeArray.forEach(function(escape) {
var end, start;
start = str.indexOf(escape);
end = escape.length;
if (min > start && min < end) {
return min += end;
}
});
}
head = first.substring(0, min);

@@ -29,0 +44,0 @@ tail = first.substring(min, first.length);

6

package.json
{
"name": "breakwrap",
"version": "0.0.6",
"version": "1.0.0",
"author": "Mike Groseclose",

@@ -34,3 +34,5 @@ "email": "mike.groseclose@gmail.com",

"dependencies": {
"console-pos": "0.0.3"
"console-pos": "1.0.0",
"string-length": "1.0.0",
"ansi-regex": "1.1.0"
},

@@ -37,0 +39,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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