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

fill-pot-po

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fill-pot-po - npm Package Compare versions

Comparing version

to
2.0.2

2

package.json
{
"name": "fill-pot-po",
"version": "2.0.1",
"version": "2.0.2",
"description": "Create pre-filled PO files from POT file, using previous PO files.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -126,4 +126,4 @@ 'use strict';

options.poSources = options.poSources
.map(v => (typeof v === 'string' ? v.trim() : v))
.filter(v => (typeof v === 'string' && v.length > 0))
.map(v => v.trim())
.filter(v => (v.length > 0))
;

@@ -130,0 +130,0 @@ }

@@ -116,6 +116,6 @@ 'use strict';

// no line number first
if ((!a_line || '' === a_line) && b_line.length) return -1;
if ((!b_line || '' === b_line) && a_line.length) return +1;
if ((!a_line || '' === a_line) && b_line && b_line.length) return -1;
if ((!b_line || '' === b_line) && a_line && a_line.length) return +1;
if (a_line.length && b_line.length) {
if (a_line && a_line.length && b_line && b_line.length) {
return (parseInt(a_line) - parseInt(b_line));

@@ -122,0 +122,0 @@ }