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

@kenjiuno/msgreader

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kenjiuno/msgreader - npm Package Compare versions

Comparing version 1.17.0-alpha.2 to 1.17.0-alpha.3

6

lib/TZDEFINITIONParser.d.ts

@@ -20,3 +20,3 @@ import DataStream from "./DataStream";

*/
start: string;
start: string | null;
/**

@@ -37,7 +37,7 @@ * The offset from Greenwich Mean Time (GMT).

*/
standardDate: string;
standardDate: string | null;
/**
* The time to switch to daylight saving time.
*/
daylightDate: string;
daylightDate: string | null;
}

@@ -44,0 +44,0 @@ /**

@@ -56,8 +56,8 @@ "use strict";

flags: wFlags_1,
start: stStart.toUTCString(),
start: (stStart === null || stStart === void 0 ? void 0 : stStart.toUTCString()) || null,
bias: lBias,
standardBias: lStandardBias,
daylightBias: lDaylightBias,
standardDate: stStandardDate.toUTCString(),
daylightDate: stDaylightDate.toUTCString(),
standardDate: (stStandardDate === null || stStandardDate === void 0 ? void 0 : stStandardDate.toUTCString()) || null,
daylightDate: (stDaylightDate === null || stDaylightDate === void 0 ? void 0 : stDaylightDate.toUTCString()) || null,
});

@@ -64,0 +64,0 @@ tz.rules.push(rule);

@@ -37,3 +37,3 @@ import DataStream from "./DataStream";

*/
standardDate: string;
standardDate: string | null;
/**

@@ -46,4 +46,4 @@ * matches the stDaylightDate's wYear field

*/
daylightDate: string;
daylightDate: string | null;
}
export declare function parse(ds: DataStream): TzReg | null;

@@ -21,5 +21,5 @@ "use strict";

standardYear: wStandardYear,
standardDate: stStandardDate.toUTCString(),
standardDate: (stStandardDate === null || stStandardDate === void 0 ? void 0 : stStandardDate.toUTCString()) || null,
daylightYear: wDaylightYear,
daylightDate: stDaylightDate.toUTCString(),
daylightDate: (stDaylightDate === null || stDaylightDate === void 0 ? void 0 : stDaylightDate.toUTCString()) || null,
});

@@ -26,0 +26,0 @@ }

@@ -50,2 +50,2 @@ import DataStream from "./DataStream";

*/
export declare function readSystemTime(ds: DataStream): Date;
export declare function readSystemTime(ds: DataStream): Date | null;

@@ -132,2 +132,8 @@ "use strict";

*/
function padNumber(value, maxLen) {
return ("" + value).padStart(maxLen, '0');
}
/**
* @internal
*/
function readSystemTime(ds) {

@@ -144,4 +150,10 @@ // SYSTEMTIME structure (minwinbase.h)

var wMilliseconds = ds.readUint16();
return new Date(wYear, wMonth - 1, wDay, wHour, wMinute, wSecond, wMilliseconds);
var text = "".concat(padNumber(wYear, 4), "-").concat(padNumber(wMonth, 2), "-").concat(padNumber(wDay, 2), "T").concat(padNumber(wHour, 2), ":").concat(padNumber(wMinute, 2), ":").concat(padNumber(wSecond, 2), "Z");
if (text === '0000-00-00T00:00:00Z') {
return null;
}
else {
return new Date(text);
}
}
exports.readSystemTime = readSystemTime;
{
"name": "@kenjiuno/msgreader",
"version": "1.17.0-alpha.2",
"version": "1.17.0-alpha.3",
"description": "Outlook Item File (.msg) reader in JavaScript Npm Module",

@@ -5,0 +5,0 @@ "main": "lib/index.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