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

tz

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tz - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

18

index.js

@@ -30,2 +30,20 @@ var tz = require('./tz')

var datestroffset = /\((.*?)\)/.exec('' + new Date())
if(datestroffset) {
datestroffset = datestroffset[1]
for(var i = 0, len = list.length; i < len; ++i) {
if(list[i].abbr === datestroffset) {
return {
'name': list[i].name
, 'loc': list[i].loc
, 'abbr': list[i].abbr
, 'offset': fmt
}
}
}
}
if(!is_north)

@@ -32,0 +50,0 @@ list = list.reverse()

2

package.json
{
"name": "tz",
"version": "0.0.5",
"version": "0.1.0",
"author": "Chris Dickinson <chris@neversaw.us>",

@@ -5,0 +5,0 @@ "description": "sniff for timezone info using pure JS",

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