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

timezone-js-ts

Package Overview
Dependencies
Maintainers
0
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timezone-js-ts - npm Package Compare versions

Comparing version 1.1.27 to 1.1.28

13

dist/index.js

@@ -46,3 +46,14 @@ "use strict";

};
return new Intl.DateTimeFormat(localeIdentifier ? localeIdentifier : 'en-GB', configOptions).format(date);
let result = new Intl.DateTimeFormat(localeIdentifier ? localeIdentifier : 'en-GB', configOptions).format(date);
const findTz = result.find((z) => z.type === 'timeZoneName');
var str = findTz.value;
let arr = [];
for (var i = 0; i < str.length; i++) {
if (str.charAt(i) === str.charAt(i).toUpperCase()) {
if (str.charAt(i) !== " ") {
arr.push(str.charAt(i));
}
}
}
return `${result} ${arr.join("")}`;
}

@@ -49,0 +60,0 @@ function getAllZones() {

8

package.json
{
"name": "timezone-js-ts",
"version": "1.1.27",
"version": "1.1.28",
"description": "",

@@ -17,3 +17,7 @@ "main": "./dist/index.js",

],
"author": "",
"files": [
"dist",
"package.json"
],
"author": "Ragul Jayakanthan",
"license": "MIT",

@@ -20,0 +24,0 @@ "devDependencies": {

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