Skip to content

Commit

Permalink
Merge pull request #23 from Pisyukaev/21-formatting-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Pisyukaev authored Nov 23, 2023
2 parents b76c387 + 157eedd commit 38de269
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
7 changes: 7 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @xml-locales/cli

## 0.0.6

### Patch Changes

- Updated dependencies
- [email protected]

## 0.0.5

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xml-locales/cli",
"version": "0.0.5",
"version": "0.0.6",
"type": "module",
"bin": {
"xml-locales": "./dist/bin.js"
Expand Down Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"@inquirer/prompts": "3.3.0",
"@types/yargs": "17.0.32",
"xml-locales": "workspace:0.0.3",
"xml-locales": "workspace:0.0.4",
"yargs": "17.7.2"
}
}
6 changes: 6 additions & 0 deletions packages/xml-locales/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# xml-locales

## 0.0.4

### Patch Changes

- fix default options for xml parser and builder

## 0.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/xml-locales/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "xml-locales",
"description": "Tool for locales in xml files",
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"keywords": [
"xml-locales",
Expand Down
5 changes: 3 additions & 2 deletions packages/xml-locales/src/utils/xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface XmlConstructor {
}

const defaultParserOptions: X2jOptionsOptional = {
trimValues: true,
trimValues: false,
ignoreDeclaration: true,
attributeNamePrefix: 'key_',
alwaysCreateTextNode: true,
Expand All @@ -24,7 +24,8 @@ const defaultParserOptions: X2jOptionsOptional = {

const defaultBuilderOptions: XmlBuilderOptionsOptional = {
ignoreAttributes: false,
attributeNamePrefix: 'key_'
attributeNamePrefix: 'key_',
processEntities: false
};

const defaultFormatterOptions: XMLFormatterOptions = {
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 38de269

Please sign in to comment.