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.21 to 1.1.22

8

dist/index.d.ts
export declare function getCurrentTime(timezone: string): string;
export declare function getAllZones(): {
zones: {
id: number;
name: string;
}[];
};
id: number;
name: string;
}[];

@@ -38,3 +38,3 @@ "use strict";

exports.getAllZones = getAllZones;
const zones = __importStar(require("./all_timezone_lists.json"));
const zoneData = __importStar(require("./all_timezone_lists.json"));
function getCurrentTime(timezone) {

@@ -54,3 +54,3 @@ const date = new Date();

function getAllZones() {
return zones;
return zoneData.zones;
}

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

const data = fs.readFileSync(actualPath, 'utf-8');
return JSON.parse(data);
return JSON.parse(data).zones;
}
module.exports = { getCurrentTime, getAllZones };
{
"name": "timezone-js-ts",
"version": "1.1.21",
"version": "1.1.22",
"description": "",

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

@@ -1,2 +0,2 @@

import * as zones from './all_timezone_lists.json';
import * as zoneData from './all_timezone_lists.json';

@@ -19,3 +19,3 @@

export function getAllZones() {
return zones;
return zoneData.zones;
}
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