caterpillar
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -333,45 +333,25 @@ /* eslint class-methods-use-this:0 */ | ||
// Parse our lines | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
for (var index = 0; index < lines.length; index++) { | ||
var line = lines[index]; | ||
if (line.indexOf(__dirname) !== -1 || line.indexOf(' at ') === -1) { | ||
continue; | ||
} | ||
try { | ||
for (var _iterator = lines[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var line = _step.value; | ||
if (offset !== 0) { | ||
--offset; | ||
continue; | ||
} | ||
if (line.indexOf(__dirname) !== -1 || line.indexOf(' at ') === -1) { | ||
continue; | ||
var parts = line.split(':'); | ||
if (parts.length >= 2) { | ||
if (parts[0].indexOf('(') === -1) { | ||
result.method = 'unknown'; | ||
result.file = parts[0].replace(/^.+?\s+at\s+/, ''); | ||
} else { | ||
result.method = parts[0].replace(/^.+?\s+at\s+/, '').replace(/\s+\(.+$/, ''); | ||
result.file = parts[0].replace(/^.+?\(/, ''); | ||
} | ||
if (offset !== 0) { | ||
--offset; | ||
continue; | ||
} | ||
var parts = line.split(':'); | ||
if (parts.length >= 2) { | ||
if (parts[0].indexOf('(') === -1) { | ||
result.method = 'unknown'; | ||
result.file = parts[0].replace(/^.+?\s+at\s+/, ''); | ||
} else { | ||
result.method = parts[0].replace(/^.+?\s+at\s+/, '').replace(/\s+\(.+$/, ''); | ||
result.file = parts[0].replace(/^.+?\(/, ''); | ||
} | ||
result.line = Number(parts[1]); | ||
break; | ||
} | ||
result.line = Number(parts[1]); | ||
break; | ||
} | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator.return) { | ||
_iterator.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
} | ||
} | ||
@@ -378,0 +358,0 @@ } catch (err) { |
# History | ||
## v3.1.1 2018 August 19 | ||
- Readded support for node 0.10 | ||
## v3.1.0 2018 August 17 | ||
@@ -4,0 +7,0 @@ - Now uses [rfc-log-levels](https://github.com/bevry/log-levels) for the initial log levels |
{ | ||
"title": "Caterpillar", | ||
"name": "caterpillar", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Caterpillar is the ultimate logging system for Node.js, based on transform streams you can log to it and pipe the output off to different locations, including some pre-made ones. Caterpillar also supports log levels according to the RFC standard, as well as line, method, and file fetching for messages. You can even use it in web browsers with caterpillar-browser.", | ||
@@ -59,3 +59,3 @@ "homepage": "https://github.com/bevry/caterpillar", | ||
"engines": { | ||
"node": ">=0.12" | ||
"node": ">=0.10" | ||
}, | ||
@@ -91,4 +91,4 @@ "editions": [ | ||
{ | ||
"description": "esnext compiled for node.js >=0.12 with require for modules", | ||
"directory": "edition:node:0.12", | ||
"description": "esnext compiled for node.js >=0.10 with require for modules", | ||
"directory": "edition:node:0.10", | ||
"entry": "index.js", | ||
@@ -100,3 +100,3 @@ "syntaxes": [ | ||
"engines": { | ||
"node": ">=0.12", | ||
"node": ">=0.10", | ||
"browsers": false | ||
@@ -117,4 +117,4 @@ } | ||
"babel-preset-env": "^1.7.0", | ||
"documentation": "^8.1.0", | ||
"eslint": "^5.3.0", | ||
"documentation": "^8.1.1", | ||
"eslint": "^5.4.0", | ||
"joe": "^2.0.2", | ||
@@ -130,4 +130,4 @@ "joe-reporter-console": "^2.0.2", | ||
"our:compile:edition:browsers": "env BABEL_ENV=edition:browsers babel --out-dir ./edition:browsers ./source", | ||
"our:compile:edition:node": "npm run our:compile:edition:node:0.12", | ||
"our:compile:edition:node:0.12": "env BABEL_ENV=edition:node:0.12 babel --out-dir ./edition:node:0.12 ./source", | ||
"our:compile:edition:node": "npm run our:compile:edition:node:0.10", | ||
"our:compile:edition:node:0.10": "env BABEL_ENV=edition:node:0.10 babel --out-dir ./edition:node:0.10 ./source", | ||
"our:deploy": "echo no need for this project", | ||
@@ -164,3 +164,3 @@ "our:meta": "npm run our:meta:docs && npm run our:meta:projectz", | ||
}, | ||
"edition:node:0.12": { | ||
"edition:node:0.10": { | ||
"presets": [ | ||
@@ -171,3 +171,3 @@ [ | ||
"targets": { | ||
"node": "0.12" | ||
"node": "0.10" | ||
} | ||
@@ -174,0 +174,0 @@ } |
@@ -40,3 +40,3 @@ <!-- TITLE/ --> | ||
<li>Module: <code>require('caterpillar')</code></li> | ||
<li>CDN URL: <code>//wzrd.in/bundle/caterpillar@3.1.0</code></li></ul> | ||
<li>CDN URL: <code>//wzrd.in/bundle/caterpillar@3.1.1</code></li></ul> | ||
@@ -54,3 +54,3 @@ <a href="http://enderjs.com" title="Ender is a full featured package manager for your browser"><h3>Ender</h3></a><ul> | ||
<li><code>caterpillar/edition:browsers/index.js</code> is esnext compiled for browsers with require for modules</li> | ||
<li><code>caterpillar/edition:node:0.12/index.js</code> is esnext compiled for node.js >=0.12 with require for modules</li></ul> | ||
<li><code>caterpillar/edition:node:0.10/index.js</code> is esnext compiled for node.js >=0.10 with require for modules</li></ul> | ||
@@ -57,0 +57,0 @@ <!-- /INSTALL --> |
@@ -270,3 +270,4 @@ /* eslint class-methods-use-this:0 */ | ||
// Parse our lines | ||
for (const line of lines) { | ||
for (let index = 0; index < lines.length; index++) { | ||
const line = lines[index] | ||
if (line.indexOf(__dirname) !== -1 || line.indexOf(' at ') === -1) { | ||
@@ -273,0 +274,0 @@ continue |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
73781
1593