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

prg-projectator

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prg-projectator - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

3

package.json
{
"name": "prg-projectator",
"version": "0.2.2",
"version": "0.2.3",
"description": "project-development boost utility",

@@ -20,2 +20,3 @@ "bin": {

"handlebars": "^4.0.6",
"lodash": "^4.17.4",
"mongodb": "^2.2.24",

@@ -22,0 +23,0 @@ "protagonist": "^1.6.5"

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

const translationMatcher = /#\.\s*(\{.+?\})(?:\n|.)+?msgstr "(.+?)"\n/im;
const translationMatcher = /#\.\s*(\{.+?\})(?:\n|.)+?msgstr "(.*?)"\n/im;

@@ -17,3 +17,4 @@ const items = poContent.match(new RegExp(translationMatcher, 'g'))

return { text, intent, entities };
});
})
.filter(item => !!item.text);

@@ -20,0 +21,0 @@ const trainingContent = {

@@ -9,3 +9,14 @@ 'use strict';

const map = {};
const pot = json.rasa_nlu_data.common_examples
.reduce((prev, item) => {
if (!map[item.text]) {
map[item.text] = true;
prev.push(item);
} else {
console.error('DUPLICATION DETECTED:', item.text);
}
return prev;
}, [])
.map(item => `

@@ -16,3 +27,4 @@ #. ${JSON.stringify({ intent: item.intent, entities: item.entities })}

`.replace(/\n\s+/g, '\n'))
.join('\n');
.join('\n')
.replace(/\n\n\n/g, '\n\n');

@@ -19,0 +31,0 @@ fs.writeFileSync(targetPath, pot, 'utf8');

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