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.14 to 0.1.15

14

lib/commonplace.js

@@ -264,8 +264,10 @@ var fs = require('fs');

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();
if (locale[1]) {
if (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();
}
}

@@ -272,0 +274,0 @@

{
"name": "commonplace",
"version": "0.1.14",
"version": "0.1.15",
"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