Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

commonplace

Package Overview
Dependencies
Maintainers
2
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commonplace - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

10

lib/commonplace.js

@@ -260,6 +260,14 @@ var fs = require('fs');

var locale = match[1].split('_');
// `ES` should be `es`.
locale[0] = locale[0].toLowerCase();
if (locale[1] && locale[1].length == 2) {
// `pt-br` should be `pt-BR`.
locale[1] = locale[1].toUpperCase();
} else {
// `sr-latn` should be `sr-Latn`.
locale[1] = locale[1][0].toUpperCase() + locale[1].substr(1).toLowerCase();
}
locale[0] = locale[0].toLowerCase();
locale = locale.join('-');

@@ -266,0 +274,0 @@ process_file(filepath, locale, path.resolve(langpacks_path, locale + '.js'));

2

package.json
{
"name": "commonplace",
"version": "0.1.13",
"version": "0.1.14",
"repository": {

@@ -5,0 +5,0 @@ "url": "git://github.com/mozilla/commonplace.git",

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