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.10.0-alpha.1 to 1.10.0-alpha.2

22

lib/const.d.ts

@@ -59,2 +59,4 @@ declare const _default: {

'3ffa': string;
'0039': string;
'0e06': string;
'3007': string;

@@ -84,7 +86,27 @@ '3008': string;

id: string;
dispid: string;
};
34176: {
id: string;
dispid: string;
};
};
"00062002-0000-0000-c000-000000000046": {
33293: {
id: string;
dispid: string;
};
33294: {
id: string;
dispid: string;
};
33333: {
id: string;
dispid: string;
};
33334: {
id: string;
dispid: string;
};
};
};

@@ -91,0 +113,0 @@ CLASS_MAPPING: {

16

lib/const.js

@@ -64,2 +64,4 @@ "use strict";

'3ffa': 'lastModifierName',
'0039': 'clientSubmitTime',
'0e06': 'messageDeliveryTime',
// attachment specific

@@ -85,7 +87,15 @@ '3007': 'creationTime',

PIDLID_MAPPING: {
// PSETID_Common
"00062008-0000-0000-c000-000000000046": {
0x00008520: { id: "PidLidVerbStream", },
0x00008524: { id: "PidLidVerbResponse", },
0x00008580: { id: "PidLidInternetAccountName", },
}
0x00008524: { id: "PidLidVerbResponse", dispid: "votingResponse", },
0x00008580: { id: "PidLidInternetAccountName", dispid: "inetAcctName", },
},
// PSETID_Appointment
"00062002-0000-0000-c000-000000000046": {
0x0000820D: { id: "PidLidAppointmentStartWhole", dispid: "apptStartWhole", },
0x0000820E: { id: "PidLidAppointmentEndWhole", dispid: "apptEndWhole", },
0x00008235: { id: "PidLidClipStart", dispid: "clipStart", },
0x00008236: { id: "PidLidClipEnd", dispid: "clipEnd", },
},
},

@@ -92,0 +102,0 @@ CLASS_MAPPING: {

@@ -378,2 +378,47 @@ export interface ParserConfig {

messageClass?: string;
/**
* Represents the date and time when an appointment begins.
*
* e.g. `Wed, 13 Oct 2021 09:30:00 GMT`
*
* Target {@link dataType} = 'msg'.
*
* @see https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidlidappointmentstartwhole-canonical-property
* @see https://github.com/HiraokaHyperTools/OXPROPS/blob/master/JSON/0000820D-PidLidAppointmentStartWhole.md
*/
apptStartWhole?: string;
/**
* Represents the date and time that an appointment ends.
*
* e.g. `Wed, 13 Oct 2021 10:00:00 GMT`
*
* Target {@link dataType} = 'msg'.
*
* @see https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidlidappointmentendwhole-canonical-property
* @see https://github.com/HiraokaHyperTools/OXPROPS/blob/master/JSON/0000820E-PidLidAppointmentEndWhole.md
*/
apptEndWhole?: string;
/**
* Specifies the start date and time of the event in Coordinated Universal Times (UTC) for single instance calendar objects,
* and specifies midnight on the date of the first instance in UTC for a recurring series.
*
* e.g. `Wed, 13 Oct 2021 09:30:00 GMT`
*
* Target {@link dataType} = 'msg'.
*
* @see https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidlidclipstart-canonical-property
* @see https://github.com/HiraokaHyperTools/OXPROPS/blob/master/JSON/00008235-PidLidClipStart.md
*/
clipStart?: string;
/**
* Specifies the end date and time of the event in Coordinated Universal Time (UTC) for single instance calendar objects.
*
* e.g. `Wed, 13 Oct 2021 09:30:00 GMT`
*
* Target {@link dataType} = 'msg'.
*
* @see https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidlidclipend-canonical-property
* @see https://github.com/HiraokaHyperTools/OXPROPS/blob/master/JSON/00008236-PidLidClipEnd.md
*/
clipEnd?: string;
}

@@ -380,0 +425,0 @@ export interface SomeParsedOxProps {

49

lib/MsgReader.js

@@ -77,4 +77,10 @@ "use strict";

if (prop !== undefined) {
key = prop.id;
keyType = KeyType.toSub;
if (prop.dispid !== undefined) {
key = prop.dispid; // e.g. `votingResponse`
keyType = KeyType.root;
}
else {
key = prop.id; // e.g. `PidLidVerbStream` listed in SomeParsedOxProps
keyType = KeyType.toSub;
}
}

@@ -113,16 +119,6 @@ }

else if (key === "PidLidVerbStream") {
value = (0, VerbStreamParser_1.parse)(ds);
}
else if (key === "PidLidVerbResponse") {
key = "votingResponse";
keyType = KeyType.root;
}
else if (key === "PidLidVerbStream") {
key = "votingOptions";
keyType = KeyType.root;
value = (0, VerbStreamParser_1.parse)(ds);
}
else if (key === "PidLidInternetAccountName") {
key = "inetAcctName";
keyType = KeyType.root;
}
else if (key === "recipType") {

@@ -319,24 +315,19 @@ var MAPI_TO = 1;

};
var names = {
0x0039: 'clientSubmitTime',
0x0E06: 'messageDeliveryTime',
0x3007: 'creationTime',
0x3008: 'lastModificationTime',
};
while (!propertiesDs.isEof()) {
var _loop_3 = function () {
var propertyTag = propertiesDs.readUint32();
if (propertyTag === 0) {
break;
return "break";
}
var flags = propertiesDs.readUint32();
var arr = propertiesDs.readUint8Array(8);
var dataView = new DataView(arr.buffer);
parserConfig.propertyObserver(fields, propertyTag, arr);
var typeConverter = typeConverters[propertyTag & 0xFFFF];
if (typeConverter) {
var name_1 = names[(propertyTag / 65536) & 0xFFFF];
if (name_1) {
fields[name_1] = typeConverter(dataView);
}
}
var fieldClass = (0, utils_1.toHex2)((propertyTag / 65536) & 0xFFFF);
var fieldType = (0, utils_1.toHex2)(propertyTag & 0xFFFF);
this_2.setDecodedFieldTo(parserConfig, fields, this_2.decodeField(fieldClass, fieldType, function () { return arr; }, true));
};
var this_2 = this;
while (!propertiesDs.isEof()) {
var state_1 = _loop_3();
if (state_1 === "break")
break;
}

@@ -343,0 +334,0 @@ };

{
"name": "@kenjiuno/msgreader",
"version": "1.10.0-alpha.1",
"version": "1.10.0-alpha.2",
"description": "",

@@ -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