@lingui/macro 4.0.0-next.5 → 4.0.0-next.7

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.
package/dist/index.cjs CHANGED
@@ -313,13 +313,6 @@ class MacroJs {
313
313
  return token;
314
314
  }
315
315
  tokenizeExpression(node) {
316
- if (this.isArg(node) && this.types.isCallExpression(node)) {
317
- return {
318
- type: "arg",
319
- name: node.arguments[0].value,
320
- value: void 0
321
- };
322
- }
323
316
  return {
324
317
  type: "arg",
325
318
  name: this.expressionToArgument(node),
@@ -392,9 +385,6 @@ class MacroJs {
392
385
  isDefineMessage(node) {
393
386
  return this.isLinguiIdentifier(node, "defineMessage") || this.isLinguiIdentifier(node, "msg");
394
387
  }
395
- isArg(node) {
396
- return this.types.isCallExpression(node) && this.isLinguiIdentifier(node.callee, "arg");
397
- }
398
388
  isI18nMethod(node) {
399
389
  return this.types.isTaggedTemplateExpression(node) && (this.isLinguiIdentifier(node.tag, "t") || this.types.isCallExpression(node.tag) && this.isLinguiIdentifier(node.tag.callee, "t"));
400
390
  }
package/dist/index.mjs CHANGED
@@ -311,13 +311,6 @@ class MacroJs {
311
311
  return token;
312
312
  }
313
313
  tokenizeExpression(node) {
314
- if (this.isArg(node) && this.types.isCallExpression(node)) {
315
- return {
316
- type: "arg",
317
- name: node.arguments[0].value,
318
- value: void 0
319
- };
320
- }
321
314
  return {
322
315
  type: "arg",
323
316
  name: this.expressionToArgument(node),
@@ -390,9 +383,6 @@ class MacroJs {
390
383
  isDefineMessage(node) {
391
384
  return this.isLinguiIdentifier(node, "defineMessage") || this.isLinguiIdentifier(node, "msg");
392
385
  }
393
- isArg(node) {
394
- return this.types.isCallExpression(node) && this.isLinguiIdentifier(node.callee, "arg");
395
- }
396
386
  isI18nMethod(node) {
397
387
  return this.types.isTaggedTemplateExpression(node) && (this.isLinguiIdentifier(node.tag, "t") || this.types.isCallExpression(node.tag) && this.isLinguiIdentifier(node.tag.callee, "t"));
398
388
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/macro",
3
- "version": "4.0.0-next.5",
3
+ "version": "4.0.0-next.7",
4
4
  "description": "Macro for generating messages in ICU MessageFormat syntax",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -39,6 +39,14 @@
39
39
  "types": "./index.d.ts",
40
40
  "default": "./dist/index.mjs"
41
41
  }
42
+ },
43
+ "./node": {
44
+ "require": {
45
+ "types": "./dist/index.d.ts"
46
+ },
47
+ "import": {
48
+ "types": "./dist/index.d.ts"
49
+ }
42
50
  }
43
51
  },
44
52
  "files": [
@@ -50,12 +58,12 @@
50
58
  "dependencies": {
51
59
  "@babel/runtime": "^7.20.13",
52
60
  "@babel/types": "^7.20.7",
53
- "@lingui/conf": "^4.0.0-next.5",
54
- "@lingui/core": "^4.0.0-next.5",
55
- "@lingui/message-utils": "^4.0.0-next.5"
61
+ "@lingui/conf": "^4.0.0-next.7",
62
+ "@lingui/core": "^4.0.0-next.7",
63
+ "@lingui/message-utils": "^4.0.0-next.7"
56
64
  },
57
65
  "peerDependencies": {
58
- "@lingui/react": "4.0.0-next.5",
66
+ "@lingui/react": "4.0.0-next.7",
59
67
  "babel-plugin-macros": "2 || 3"
60
68
  },
61
69
  "devDependencies": {
@@ -67,5 +75,5 @@
67
75
  "tsd": "^0.26.1",
68
76
  "unbuild": "^1.1.2"
69
77
  },
70
- "gitHead": "bdbd6cf310cbcf09e1fe288f20ef530c28de481d"
78
+ "gitHead": "b2765fdd43e707b33e0375942071e15b616bd842"
71
79
  }