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
1.0.2

6

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

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

"lint:fix": "eslint --fix src/*.js test/*.js",
"test": "jest",
"preversion": "npm run lint && npm test",
"postversion": "git push && git push --tags"
"test": "jest"
},

@@ -14,0 +12,0 @@ "keywords": [

@@ -0,0 +0,0 @@ # fill-pot-po

@@ -119,5 +119,7 @@ 'use strict';

.replaceAll(/\/+/g, '/') // remove duplicate slashes
.replaceAll(/(?<!\.)\.\//g, '') // remove current dirs
.replaceAll(/^\//g, '') // remove leading slash
;
}
//TO-REMOVE
if (options.destDir) {

@@ -129,2 +131,3 @@ // NOTE: all paths starting with a slash are considered absolute paths

.replaceAll(/\/+/g, '/') // remove duplicate slashes
.replaceAll(/(?<!\.)\.\//g, '') // remove current dirs
.replaceAll(/^\//g, '') // remove leading slash

@@ -131,0 +134,0 @@ ;

@@ -57,3 +57,3 @@ 'use strict';

// use: https://github.com/gulpjs/glob-parent
// options.srcSearchSubdirectories = true/false
// options.srcSearchRecursive = true/false

@@ -73,3 +73,3 @@ // TODO?

// TODO?
// const sub_dirs = options.srcSearchSubdirectories ? '**/': '';
// const sub_dirs = options.srcSearchRecursive ? '**/': '';
// po_files_glob.push(`${po_dir}${sub_dirs}${domain_glob}${locale_glob}.po`);

@@ -100,4 +100,4 @@ }

* @return {array} [
* New PO filepath
* New PO compiled content
* {string} New PO filepath
* {Buffer} New PO compiled content
* ]

@@ -104,0 +104,0 @@ */