Socket
Socket
Sign inDemoInstall

@wordpress/i18n

Package Overview
Dependencies
15
Maintainers
8
Versions
146
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.1 to 3.2.0

2

LICENSE.md
### WordPress - Web publishing software
Copyright 2011-2018 by the contributors
Copyright 2011-2019 by the contributors

@@ -5,0 +5,0 @@ This program is free software; you can redistribute it and/or modify

{
"name": "@wordpress/i18n",
"version": "3.1.1",
"version": "3.2.0",
"description": "WordPress internationalization (i18n) library.",

@@ -14,3 +14,4 @@ "author": "The WordPress Contributors",

"type": "git",
"url": "https://github.com/WordPress/gutenberg.git"
"url": "https://github.com/WordPress/gutenberg.git",
"directory": "packages/i18n"
},

@@ -27,5 +28,5 @@ "bugs": {

"dependencies": {
"@babel/runtime": "^7.0.0",
"@babel/runtime": "^7.3.1",
"gettext-parser": "^1.3.1",
"lodash": "^4.17.10",
"lodash": "^4.17.11",
"memize": "^1.0.5",

@@ -38,3 +39,3 @@ "sprintf-js": "^1.1.1",

},
"gitHead": "c59ef56fe16bdcc1fffd70b6e8a2fda4bf9c28fe"
"gitHead": "80d228669adadb8dfcd24b8421517fed3be2d474"
}

@@ -71,2 +71,4 @@ /**

it( 'absorbs errors', () => {
// Disable reason: Failing case is the purpose of the test.
// eslint-disable-next-line @wordpress/valid-sprintf
const result = sprintf( 'Hello %(placeholder-not-provided)s' );

@@ -73,0 +75,0 @@

@@ -56,13 +56,13 @@ #!/usr/bin/env node

if ( ! isEmpty( comments.extracted ) ) {
if ( ! isEmpty( comments.translator ) ) {
// All extracted comments are split by newlines, add a tab to line them up nicely.
const extracted = comments.extracted
const translator = comments.translator
.split( NEWLINE )
.join( NEWLINE + TAB + ' ' );
php += TAB + `/* ${ extracted } */${ NEWLINE }`;
php += TAB + `/* ${ translator } */${ NEWLINE }`;
}
if ( ! isEmpty( comments.translator ) ) {
php += TAB + `/* translators: ${ comments.translator } */${ NEWLINE }`;
if ( ! isEmpty( comments.extracted ) ) {
php += TAB + `/* translators: ${ comments.extracted } */${ NEWLINE }`;
}

@@ -69,0 +69,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc