Socket
Socket
Sign inDemoInstall

@lingui/macro

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lingui/macro - npm Package Compare versions

Comparing version 3.0.0-12 to 3.0.0-13

6

icu.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc