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

@biesbjerg/ng2-translate-extract

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@biesbjerg/ng2-translate-extract - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

26

dist/cli/extract.js
"use strict";
var extractor_1 = require("../utils/extractor");
var pipe_parser_1 = require("../parsers/pipe.parser");
var directive_parser_1 = require("../parsers/directive.parser");
var service_parser_1 = require("../parsers/service.parser");
var json_compiler_1 = require("../compilers/json.compiler");
var po_compiler_1 = require("../compilers/po.compiler");
var fs = require("fs");
var path = require("path");
var cli = require("cli");
var extractor_1 = require('../utils/extractor');
var pipe_parser_1 = require('../parsers/pipe.parser');
var directive_parser_1 = require('../parsers/directive.parser');
var service_parser_1 = require('../parsers/service.parser');
var json_compiler_1 = require('../compilers/json.compiler');
var po_compiler_1 = require('../compilers/po.compiler');
var fs = require('fs');
var path = require('path');
var cli = require('cli');
var options = cli.parse({

@@ -15,4 +15,4 @@ dir: ['d', 'Directory path you would like to extract strings from', 'dir', process.env.PWD],

format: ['f', 'Output format', ['json', 'pot'], 'json'],
replace: ['r', 'Replace the contents of output file if it exists (merging by default)', 'boolean', false],
clean: ['c', 'Remove unused keys when merging', 'boolean', false]
replace: ['r', 'Replace the contents of output file if it exists (Merges by default)', 'boolean', false],
clean: ['c', 'Remove obsolete strings when merging', 'boolean', false]
});

@@ -50,3 +50,3 @@ [options.dir, options.output].forEach(function (dir) {

collection = extracted.union(existing);
cli.ok("* Merged " + existing.count() + " existing strings");
cli.ok("* Merged with " + existing.count() + " existing strings");
}

@@ -58,3 +58,3 @@ if (options.clean) {

if (removeCount > 0) {
cli.ok("* Removed " + removeCount + " unused strings");
cli.ok("* Removed " + removeCount + " obsolete strings");
}

@@ -61,0 +61,0 @@ }

"use strict";
var translation_collection_1 = require("../utils/translation.collection");
var translation_collection_1 = require('../utils/translation.collection');
var JsonCompiler = (function () {

@@ -4,0 +4,0 @@ function JsonCompiler() {

"use strict";
var translation_collection_1 = require("../utils/translation.collection");
var gettext = require("gettext-parser");
var translation_collection_1 = require('../utils/translation.collection');
var gettext = require('gettext-parser');
var PoCompiler = (function () {

@@ -24,3 +24,4 @@ function PoCompiler() {

}, {}),
_a)
_a
)
};

@@ -27,0 +28,0 @@ return gettext.po.compile(data, 'utf-8');

@@ -5,10 +5,10 @@ "use strict";

}
__export(require("./extractor"));
__export(require("./utils/translation.collection"));
__export(require("./parsers/abstract-template.parser"));
__export(require("./parsers/directive.parser"));
__export(require("./parsers/pipe.parser"));
__export(require("./parsers/service.parser"));
__export(require("./compilers/json.compiler"));
__export(require("./compilers/po.compiler"));
__export(require('./extractor'));
__export(require('./utils/translation.collection'));
__export(require('./parsers/abstract-template.parser'));
__export(require('./parsers/directive.parser'));
__export(require('./parsers/pipe.parser'));
__export(require('./parsers/service.parser'));
__export(require('./compilers/json.compiler'));
__export(require('./compilers/po.compiler'));
//# sourceMappingURL=index.js.map

@@ -7,9 +7,9 @@ "use strict";

};
var abstract_template_parser_1 = require("./abstract-template.parser");
var translation_collection_1 = require("../utils/translation.collection");
var $ = require("cheerio");
var abstract_template_parser_1 = require('./abstract-template.parser');
var translation_collection_1 = require('../utils/translation.collection');
var $ = require('cheerio');
var DirectiveParser = (function (_super) {
__extends(DirectiveParser, _super);
function DirectiveParser() {
return _super.apply(this, arguments) || this;
_super.apply(this, arguments);
}

@@ -16,0 +16,0 @@ DirectiveParser.prototype.extract = function (contents, path) {

@@ -7,8 +7,8 @@ "use strict";

};
var abstract_template_parser_1 = require("./abstract-template.parser");
var translation_collection_1 = require("../utils/translation.collection");
var abstract_template_parser_1 = require('./abstract-template.parser');
var translation_collection_1 = require('../utils/translation.collection');
var PipeParser = (function (_super) {
__extends(PipeParser, _super);
function PipeParser() {
return _super.apply(this, arguments) || this;
_super.apply(this, arguments);
}

@@ -15,0 +15,0 @@ PipeParser.prototype.extract = function (contents, path) {

"use strict";
var translation_collection_1 = require("../utils/translation.collection");
var translation_collection_1 = require('../utils/translation.collection');
var ServiceParser = (function () {

@@ -4,0 +4,0 @@ function ServiceParser() {

"use strict";
var translation_collection_1 = require("./translation.collection");
var glob = require("glob");
var fs = require("fs");
var translation_collection_1 = require('./translation.collection');
var glob = require('glob');
var fs = require('fs');
var Extractor = (function () {

@@ -6,0 +6,0 @@ function Extractor(parsers, patterns) {

{
"name": "@biesbjerg/ng2-translate-extract",
"version": "0.3.0",
"version": "0.3.1",
"description": "Extract strings from projects using ng2-translate",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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