@tolgee/cli 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -279,6 +279,10 @@ export default createMachine({
279
279
  actions: 'markPropertyAsDynamic',
280
280
  cond: (ctx) => ctx.jsxDepth === 0,
281
281
  },
282
+ {
283
+ actions: 'decrementDoubleJsxDepth',
284
+ cond: (_ctx, e) => e.token === '/>',
285
+ },
282
286
  {
283
287
  actions: 'decrementJsxDepth',
284
288
  },
@@ -360,6 +364,9 @@ export default createMachine({
360
364
  incrementJsxDepth: assign({
361
365
  jsxDepth: (ctx, _evt) => ctx.jsxDepth + 2,
362
366
  }),
367
+ decrementDoubleJsxDepth: assign({
368
+ jsxDepth: (ctx, _evt) => ctx.jsxDepth - 2,
369
+ }),
363
370
  decrementJsxDepth: assign({
364
371
  jsxDepth: (ctx, _evt) => ctx.jsxDepth - 1,
365
372
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolgee/cli",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "type": "module",
5
5
  "description": "A tool to interact with the Tolgee Platform through CLI",
6
6
  "repository": {