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

os-locale

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

os-locale - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

17

index.js

@@ -25,2 +25,14 @@ 'use strict';

var getAppleLocale = function () {
childProcess.execFile('defaults', ['read', '-g', 'AppleLocale'], function (err, stdout) {
if (err) {
cb(err);
return;
}
cache = stdout.trim() || 'en_US';
cb(null, cache);
});
};
if (process.platform === 'win32') {

@@ -46,2 +58,7 @@ childProcess.execFile('wmic', ['os', 'get', 'locale'], function (err, stdout) {

if (!res && process.platform === 'darwin') {
getAppleLocale();
return;
}
cache = getLocale(res && res[1]);

@@ -48,0 +65,0 @@ cb(null, cache);

2

package.json
{
"name": "os-locale",
"version": "1.0.1",
"version": "1.1.0",
"description": "Get the system locale",

@@ -5,0 +5,0 @@ "license": "MIT",

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