New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

timezone-js-ts

Package Overview
Dependencies
Maintainers
1
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.0 to 1.1.1

assets/all_timezone_lists.json

2

index.js

@@ -24,5 +24,5 @@ const fs = require('fs');

function getAllTimezones() {
return fs.readFileSync('./all_timezone_lists.json').toLocaleString();
return fs.readFileSync('./assets/all_timezone_lists.json').toLocaleString();
}
module.exports = { getCurrentTime, getAllTimezones };
{
"name": "timezone-js-ts",
"version": "1.1.0",
"version": "1.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -0,1 +1,3 @@

import * as AllTimezones from '../assets/all_timezone_lists.json';
export function getCurrentTime(timezone: string) {

@@ -13,2 +15,6 @@ const date = new Date();

return new Intl.DateTimeFormat('en-US', configOptions).format(date);
}
export function getAllTimezones() {
return AllTimezones.toLocaleString();
}

@@ -7,3 +7,4 @@ {

"outDir": "./dist",
"strict": true
"strict": true,
"resolveJsonModule": true
},

@@ -10,0 +11,0 @@ "include": ["src/**/*"]

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