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

exiftool-vendored

Package Overview
Dependencies
Maintainers
1
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exiftool-vendored - npm Package Compare versions

Comparing version 22.2.1 to 22.2.2

dist/OnlyZerosRE.d.ts

4

CHANGELOG.md

@@ -29,2 +29,6 @@ # Changelog/Versioning

### v22.2.2
- 🐞 Apply the v22.2.1 bugfix wider: we now reject parsing any date-ish or time-ish value that matches `/^0+$/`.
### v22.2.1

@@ -31,0 +35,0 @@

6

dist/ExifTime.js

@@ -7,6 +7,2 @@ "use strict";

const String_1 = require("./String");
// Reject times whose raw value is "0" or "00". TODO: We may want to reject
// "00:00", but midnight is a valid time--we'd have to reject 00:00 only if we
// could be certain this photo wasn't taken exactly at midnight.
const onlyZerosRE = /^0+$/;
/**

@@ -18,3 +14,3 @@ * Encodes an ExifTime (which may not have a timezone offset)

text = (0, String_1.toS)(text).trim();
if ((0, String_1.blank)(text) || onlyZerosRE.test(text))
if ((0, String_1.blank)(text))
return;

@@ -21,0 +17,0 @@ return (0, Maybe_1.first)(["HH:mm:ss.uZZ", "HH:mm:ssZZ", "HH:mm:ss.u", "HH:mm:ss"], (fmt) => (0, Maybe_1.map)(luxon_1.DateTime.fromFormat(text, fmt), (dt) => this.fromDateTime(dt, text)));

@@ -5,6 +5,6 @@ import { ExifToolTask } from "./ExifToolTask";

export declare const DefaultReadTaskOptions: {
readonly includeImageDataMD5: boolean | undefined;
readonly imageHashType: false | "MD5" | "SHA256" | "SHA512";
readonly useMWG: boolean;
readonly numericTags: string[];
readonly imageHashType: false | "MD5" | "SHA256" | "SHA512";
readonly includeImageDataMD5: boolean | undefined;
readonly defaultVideosToUTC: boolean;

@@ -11,0 +11,0 @@ readonly backfillTimezones: boolean;

@@ -48,2 +48,3 @@ "use strict";

const Number_1 = require("./Number");
const OnlyZerosRE_1 = require("./OnlyZerosRE");
const Pick_1 = require("./Pick");

@@ -327,3 +328,6 @@ const String_1 = require("./String");

return b;
if (MaybeDateOrTimeRe.test(tagName)) {
if (MaybeDateOrTimeRe.test(tagName) &&
// Reject date/time keys that are "0" or "00" (found in Canon
// SubSecTime values)
!OnlyZerosRE_1.OnlyZerosRE.test(value)) {
const utc_tz_override = isUtcTagName(tagName) || __classPrivateFieldGet(this, _ReadTask_instances, "m", _ReadTask_defaultToUTC).call(this);

@@ -330,0 +334,0 @@ const tz = utc_tz_override ? "UTC" : this.tz;

{
"name": "exiftool-vendored",
"version": "22.2.1",
"version": "22.2.2",
"description": "Efficient, cross-platform access to ExifTool",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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