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.13 to 1.1.14

dist/all_timezone_lists.json

2

dist/index.d.ts
export declare function getCurrentTime(timezone: string): string;
export declare function getAllZones(): string;
export declare function getAllZones(): string[];

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

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

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

function getAllZones() {
const actualPath = path.resolve(__dirname, '../all_timezone_lists.json');
const data = fs.readFileSync(actualPath, 'utf-8');
return data;
return zones;
}

@@ -25,3 +25,3 @@ const fs = require('fs');

function getAllZones() {
const actualPath = path.resolve(__dirname, './all_timezone_lists.json');
const actualPath = path.resolve(__dirname, './src/all_timezone_lists.json');
const data = fs.readFileSync(actualPath, 'utf-8');

@@ -28,0 +28,0 @@ return data;

{
"name": "timezone-js-ts",
"version": "1.1.13",
"version": "1.1.14",
"description": "",

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

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

import * as path from "path";
import * as fs from "fs";
import * as zones from './all_timezone_lists.json';

@@ -20,5 +19,3 @@

export function getAllZones() {
const actualPath = path.resolve(__dirname, '../all_timezone_lists.json');
const data = fs.readFileSync(actualPath, 'utf-8');
return data;
return 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