i18next-parser
Advanced tools
Comparing version 6.0.0 to 6.0.1
#!/usr/bin/env node | ||
import { pathToFileURL } from 'url' | ||
import { promises as fsp } from 'fs' | ||
import { program } from 'commander' | ||
import colors from 'colors' | ||
import path from 'path' | ||
import program from 'commander' | ||
import sort from 'gulp-sort' | ||
@@ -51,3 +52,4 @@ import vfs from 'vinyl-fs' | ||
try { | ||
config = (await import(path.resolve(program.opts().config))).default | ||
config = (await import(pathToFileURL(path.resolve(program.opts().config)))) | ||
.default | ||
} catch (err) { | ||
@@ -54,0 +56,0 @@ if (err.code === 'MODULE_NOT_FOUND') { |
export { default as broccoli } from './broccoli.js'; | ||
export { default as parser } from './parser.js'; | ||
export { default as transform } from './transform.js'; | ||
export { default as gulp } from './transform.js'; | ||
export { default as gulp } from './transform.js'; | ||
// Lexers | ||
export { default as BaseLexer } from './lexers/base-lexer.js'; | ||
export { default as HandlebarsLexer } from './lexers/handlebars-lexer.js'; | ||
export { default as HTMLLexer } from './lexers/html-lexer.js'; | ||
export { default as JavascriptLexer } from './lexers/javascript-lexer.js'; | ||
export { default as JsxLexer } from './lexers/jsx-lexer.js'; | ||
export { default as VueLexer } from './lexers/vue-lexer.js'; |
@@ -64,3 +64,3 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";import _createClass from "@babel/runtime/helpers/createClass";import _inherits from "@babel/runtime/helpers/inherits";import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";function _createSuper(Derived) {var hasNativeReflectConstruct = _isNativeReflectConstruct();return function _createSuperInternal() {var Super = _getPrototypeOf(Derived),result;if (hasNativeReflectConstruct) {var NewTarget = _getPrototypeOf(this).constructor;result = Reflect.construct(Super, arguments, NewTarget);} else {result = Super.apply(this, arguments);}return _possibleConstructorReturn(this, result);};}function _isNativeReflectConstruct() {if (typeof Reflect === "undefined" || !Reflect.construct) return false;if (Reflect.construct.sham) return false;if (typeof Proxy === "function") return true;try {Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));return true;} catch (e) {return false;}}import JavascriptLexer from './javascript-lexer.js'; | ||
var getPropValue = function getPropValue(node, tagName) { | ||
var getPropValue = function getPropValue(node, tagName) {var _attribute$initialize; | ||
var attribute = node.attributes.properties.find( | ||
@@ -72,2 +72,11 @@ function (attr) {return attr.name.text === tagName;}); | ||
} | ||
if (((_attribute$initialize = attribute.initializer.expression) === null || _attribute$initialize === void 0 ? void 0 : _attribute$initialize.kind) === ts.SyntaxKind.Identifier) { | ||
_this3.emit( | ||
'warning', "Namespace is not a string literal: ".concat( | ||
attribute.initializer.expression.text)); | ||
return undefined; | ||
} | ||
return attribute.initializer.expression ? | ||
@@ -74,0 +83,0 @@ attribute.initializer.expression.text : |
{ | ||
"name": "i18next-parser", | ||
"description": "Command Line tool for i18next", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"type": "module", | ||
@@ -13,3 +13,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0 || >=18.0.0", | ||
"node": "^14.13.1 || >=16.0.0 || >=18.0.0", | ||
"npm": ">=6", | ||
@@ -33,3 +33,3 @@ "yarn": ">=1" | ||
"colors": "1.4.0", | ||
"commander": "~8.3.0", | ||
"commander": "~9.1.0", | ||
"concat-stream": "~2.0.0", | ||
@@ -61,3 +61,3 @@ "eol": "^0.9.1", | ||
"chai": "^4.1.2", | ||
"execa": "^5.1.1", | ||
"execa": "^6.1.0", | ||
"gulp": "^4.0.2", | ||
@@ -68,5 +68,5 @@ "husky": ">=7.0.2", | ||
"nyc": "^15.1.0", | ||
"p-event": "^4.2.0", | ||
"prettier": "2.4.1", | ||
"sinon": "^12.0.1" | ||
"p-event": "^5.0.1", | ||
"prettier": "2.6.1", | ||
"sinon": "^13.0.1" | ||
}, | ||
@@ -73,0 +73,0 @@ "repository": { |
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
96579
1510
+ Addedcommander@9.1.0(transitive)
- Removedcommander@8.3.0(transitive)
Updatedcommander@~9.1.0