@lingui/macro
Advanced tools
Comparing version 3.0.0-12 to 3.0.0-13
@@ -27,6 +27,6 @@ "use strict"; | ||
}).filter(Boolean).reduce(function (props, message) { | ||
return _objectSpread({}, message, { | ||
return _objectSpread(_objectSpread({}, message), {}, { | ||
message: props.message + message.message, | ||
values: _objectSpread({}, props.values, {}, message.values), | ||
jsxElements: _objectSpread({}, props.jsxElements, {}, message.jsxElements) | ||
values: _objectSpread(_objectSpread({}, props.values), message.values), | ||
jsxElements: _objectSpread(_objectSpread({}, props.jsxElements), message.jsxElements) | ||
}); | ||
@@ -33,0 +33,0 @@ }, { |
@@ -1,4 +0,4 @@ | ||
import { ComponentType, ReactNode } from "react" | ||
import { MessageDescriptor } from "@lingui/core" | ||
import { TransRenderType } from "@lingui/react" | ||
import type { ComponentType, ReactNode } from "react" | ||
import type { MessageDescriptor } from "@lingui/core" | ||
import type { TransRenderType } from "@lingui/react" | ||
@@ -10,3 +10,3 @@ export function t( | ||
export interface ChoiceOptions<T = string> { | ||
export type ChoiceOptions<T = string> = { | ||
offset?: number | ||
@@ -30,3 +30,3 @@ zero?: T | ||
export interface TransProps { | ||
export type TransProps = { | ||
id?: string | ||
@@ -37,10 +37,11 @@ comment?: string | ||
export interface ChoiceProps extends TransProps, ChoiceOptions<ReactNode> { | ||
export type ChoiceProps = { | ||
value?: string | number | ||
} | ||
} & TransProps & | ||
ChoiceOptions<ReactNode> | ||
export interface SelectProps extends TransProps { | ||
export type SelectProps = { | ||
value?: string | ||
other?: ReactNode | ||
} | ||
} & TransProps | ||
@@ -47,0 +48,0 @@ export const Trans: ComponentType<TransProps> |
@@ -26,3 +26,3 @@ "use strict"; | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
@@ -218,3 +218,3 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
var token = _objectSpread({}, _this.tokenizeExpression(node.arguments[0]), { | ||
var token = _objectSpread(_objectSpread({}, _this.tokenizeExpression(node.arguments[0])), {}, { | ||
format: format, | ||
@@ -221,0 +221,0 @@ options: { |
@@ -28,3 +28,3 @@ "use strict"; | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
@@ -31,0 +31,0 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } |
{ | ||
"name": "@lingui/macro", | ||
"version": "3.0.0-12", | ||
"version": "3.0.0-13", | ||
"description": "Macro for generating messages in ICU MessageFormat syntax", | ||
@@ -31,4 +31,4 @@ "main": "index.ts", | ||
"dependencies": { | ||
"@babel/runtime": "^7.9.2", | ||
"@lingui/conf": "3.0.0-12", | ||
"@babel/runtime": "^7.9.6", | ||
"@lingui/conf": "3.0.0-13", | ||
"ramda": "^0.27.0" | ||
@@ -35,0 +35,0 @@ }, |
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
40476
826
+ Added@jest/types@26.6.2(transitive)
+ Added@lingui/conf@3.0.0-13(transitive)
+ Added@types/istanbul-reports@3.0.4(transitive)
+ Added@types/node@22.7.4(transitive)
+ Addedcamelcase@6.3.0(transitive)
+ Addedjest-get-type@26.3.0(transitive)
+ Addedjest-validate@26.6.2(transitive)
+ Addedpretty-format@26.6.2(transitive)
+ Addedreact-is@17.0.2(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removed@jest/types@25.5.0(transitive)
- Removed@lingui/conf@3.0.0-12(transitive)
- Removed@types/istanbul-reports@1.1.2(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedchalk@3.0.0(transitive)
- Removedjest-get-type@25.2.6(transitive)
- Removedjest-validate@25.5.0(transitive)
- Removedpretty-format@25.5.0(transitive)
- Removedreact-is@16.13.1(transitive)
Updated@babel/runtime@^7.9.6
Updated@lingui/conf@3.0.0-13