Socket
Socket
Sign inDemoInstall

@lingui/macro

Package Overview
Dependencies
3
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-18 to 3.0.0-20

5

index.d.ts
import type { ComponentType, ReactNode } from "react"
import type { MessageDescriptor } from "@lingui/core"
import type { TransRenderType } from "@lingui/react"
import type { TransRenderType, TransRenderProps } from "@lingui/react"

@@ -32,3 +32,4 @@ export function t(

comment?: string
render?: TransRenderType
component?: TransRenderType
render?: (opts: TransRenderProps) => TransRenderType
}

@@ -35,0 +36,0 @@

3

macroJsx.js

@@ -54,3 +54,4 @@ "use strict";

return text.replace(stripAroundTagsRe, "$1").replace(keepSpaceRe, " ") // keep escaped newlines
.replace(/\\n/g, "\n").replace(/\\s/g, " ").trim();
.replace(/\\n/g, "\n").replace(/\\s/g, " ") // we remove trailing whitespace inside Plural
.replace(/(\s+})/gm, "}").trim();
}

@@ -57,0 +58,0 @@

{
"name": "@lingui/macro",
"version": "3.0.0-18",
"version": "3.0.0-20",
"description": "Macro for generating messages in ICU MessageFormat syntax",

@@ -32,3 +32,3 @@ "main": "index.ts",

"@babel/runtime": "^7.11.2",
"@lingui/conf": "3.0.0-18",
"@lingui/conf": "3.0.0-20",
"ramda": "^0.27.1"

@@ -35,0 +35,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc