Socket
Socket
Sign inDemoInstall

dji_srt_parser

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dji_srt_parser - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

8

index.js

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

const geoTz = require('geo-tz');
const tzlookup = require('tz-lookup');
const moment = require('moment-timezone');

@@ -153,6 +153,6 @@

if (sample) {
const tzs = geoTz(sample.GPS.LATITUDE, sample.GPS.LONGITUDE);
if (tzs.length) {
const tz = tzlookup(sample.GPS.LATITUDE, sample.GPS.LONGITUDE);
if (tz) {
let d = moment(sample.DATE);
offset = (d.utcOffset() - d.tz(tzs[0]).utcOffset()) * 60 * 1000;
offset = (d.utcOffset() - d.tz(tz).utcOffset()) * 60 * 1000;
}

@@ -159,0 +159,0 @@ }

@@ -9,3 +9,3 @@ {

},
"version": "1.2.1",
"version": "1.2.2",
"description": "Parses and interprets DJI's drones SRT metadata",

@@ -52,4 +52,4 @@ "main": "index.js",

"dependencies": {
"geo-tz": "^6.0.1",
"moment-timezone": "^0.5.32"
"moment-timezone": "^0.5.32",
"tz-lookup": "^6.1.25"
},

@@ -56,0 +56,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