pst-extractor 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/ColumnDescriptor.class.d.ts +26 -26
  2. package/dist/ColumnDescriptor.class.js +51 -51
  3. package/dist/DescriptorIndexNode.class.d.ts +25 -26
  4. package/dist/DescriptorIndexNode.class.js +53 -53
  5. package/dist/LZFu.class.d.ts +11 -12
  6. package/dist/LZFu.class.js +95 -95
  7. package/dist/NodeInfo.class.d.ts +33 -33
  8. package/dist/NodeInfo.class.js +52 -52
  9. package/dist/NodeMap.class.d.ts +35 -35
  10. package/dist/NodeMap.class.js +86 -86
  11. package/dist/OffsetIndexItem.class.d.ts +23 -24
  12. package/dist/OffsetIndexItem.class.js +45 -45
  13. package/dist/OutlookProperties.d.ts +275 -275
  14. package/dist/OutlookProperties.js +281 -281
  15. package/dist/PSTActivity.class.d.ts +103 -103
  16. package/dist/PSTActivity.class.js +144 -144
  17. package/dist/PSTAppointment.class.d.ts +270 -271
  18. package/dist/PSTAppointment.class.js +376 -376
  19. package/dist/PSTAttachment.class.d.ts +172 -172
  20. package/dist/PSTAttachment.class.js +317 -317
  21. package/dist/PSTContact.class.d.ts +884 -884
  22. package/dist/PSTContact.class.js +1227 -1227
  23. package/dist/PSTDescriptorItem.class.d.ts +45 -46
  24. package/dist/PSTDescriptorItem.class.js +99 -99
  25. package/dist/PSTFile.class.d.ts +215 -216
  26. package/dist/PSTFile.class.js +818 -818
  27. package/dist/PSTFolder.class.d.ts +129 -129
  28. package/dist/PSTFolder.class.js +318 -310
  29. package/dist/PSTMessage.class.d.ts +788 -789
  30. package/dist/PSTMessage.class.js +1321 -1321
  31. package/dist/PSTMessageStore.class.d.ts +13 -13
  32. package/dist/PSTMessageStore.class.js +17 -17
  33. package/dist/PSTNodeInputStream.class.d.ts +122 -123
  34. package/dist/PSTNodeInputStream.class.js +514 -514
  35. package/dist/PSTObject.class.d.ts +133 -134
  36. package/dist/PSTObject.class.js +326 -326
  37. package/dist/PSTRecipient.class.d.ts +65 -65
  38. package/dist/PSTRecipient.class.js +103 -103
  39. package/dist/PSTTable.class.d.ts +52 -52
  40. package/dist/PSTTable.class.js +175 -175
  41. package/dist/PSTTable7C.class.d.ts +45 -45
  42. package/dist/PSTTable7C.class.js +281 -281
  43. package/dist/PSTTableBC.class.d.ts +31 -31
  44. package/dist/PSTTableBC.class.js +111 -111
  45. package/dist/PSTTableItem.class.d.ts +47 -48
  46. package/dist/PSTTableItem.class.js +124 -124
  47. package/dist/PSTTask.class.d.ts +146 -146
  48. package/dist/PSTTask.class.js +205 -205
  49. package/dist/PSTUtil.class.d.ts +134 -135
  50. package/dist/PSTUtil.class.js +795 -795
  51. package/dist/RecurrencePattern.class.d.ts +49 -50
  52. package/dist/RecurrencePattern.class.js +120 -120
  53. package/dist/index.d.ts +6 -6
  54. package/dist/index.js +15 -15
  55. package/example/package.json +6 -6
  56. package/example/yarn.lock +95 -44
  57. package/junit.xml +68 -68
  58. package/package.json +26 -26
  59. package/readme.md +1 -3
@@ -1,13 +1,13 @@
1
- import { DescriptorIndexNode } from './DescriptorIndexNode.class';
2
- import { PSTFile } from './PSTFile.class';
3
- import { PSTObject } from './PSTObject.class';
4
- export declare class PSTMessageStore extends PSTObject {
5
- /**
6
- * Creates an instance of PSTMessageStore.
7
- * Not much use other than to get the "name" of the PST file.
8
- * @param {PSTFile} pstFile
9
- * @param {DescriptorIndexNode} descriptorIndexNode
10
- * @memberof PSTMessageStore
11
- */
12
- constructor(pstFile: PSTFile, descriptorIndexNode: DescriptorIndexNode);
13
- }
1
+ import { DescriptorIndexNode } from './DescriptorIndexNode.class';
2
+ import { PSTFile } from './PSTFile.class';
3
+ import { PSTObject } from './PSTObject.class';
4
+ export declare class PSTMessageStore extends PSTObject {
5
+ /**
6
+ * Creates an instance of PSTMessageStore.
7
+ * Not much use other than to get the "name" of the PST file.
8
+ * @param {PSTFile} pstFile
9
+ * @param {DescriptorIndexNode} descriptorIndexNode
10
+ * @memberof PSTMessageStore
11
+ */
12
+ constructor(pstFile: PSTFile, descriptorIndexNode: DescriptorIndexNode);
13
+ }
@@ -1,17 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PSTMessageStore = void 0;
4
- const PSTObject_class_1 = require("./PSTObject.class");
5
- class PSTMessageStore extends PSTObject_class_1.PSTObject {
6
- /**
7
- * Creates an instance of PSTMessageStore.
8
- * Not much use other than to get the "name" of the PST file.
9
- * @param {PSTFile} pstFile
10
- * @param {DescriptorIndexNode} descriptorIndexNode
11
- * @memberof PSTMessageStore
12
- */
13
- constructor(pstFile, descriptorIndexNode) {
14
- super(pstFile, descriptorIndexNode);
15
- }
16
- }
17
- exports.PSTMessageStore = PSTMessageStore;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PSTMessageStore = void 0;
4
+ const PSTObject_class_1 = require("./PSTObject.class");
5
+ class PSTMessageStore extends PSTObject_class_1.PSTObject {
6
+ /**
7
+ * Creates an instance of PSTMessageStore.
8
+ * Not much use other than to get the "name" of the PST file.
9
+ * @param {PSTFile} pstFile
10
+ * @param {DescriptorIndexNode} descriptorIndexNode
11
+ * @memberof PSTMessageStore
12
+ */
13
+ constructor(pstFile, descriptorIndexNode) {
14
+ super(pstFile, descriptorIndexNode);
15
+ }
16
+ }
17
+ exports.PSTMessageStore = PSTMessageStore;
@@ -1,123 +1,122 @@
1
- /// <reference types="node" />
2
- import Long from 'long';
3
- import { PSTDescriptorItem } from './PSTDescriptorItem.class';
4
- import { OffsetIndexItem } from './OffsetIndexItem.class';
5
- import { PSTFile } from './PSTFile.class';
6
- export declare class PSTNodeInputStream {
7
- private skipPoints;
8
- private indexItems;
9
- private currentBlock;
10
- private allData;
11
- private isZlib;
12
- private _currentLocation;
13
- private get currentLocation();
14
- private set currentLocation(value);
15
- private _pstFile;
16
- get pstFile(): PSTFile;
17
- private _length;
18
- get length(): Long;
19
- private _encrypted;
20
- get encrypted(): boolean;
21
- /**
22
- * Creates an instance of PSTNodeInputStream.
23
- * @param {PSTFile} pstFile
24
- * @param {Buffer} attachmentData
25
- * @param {boolean} [encrypted]
26
- * @memberof PSTNodeInputStream
27
- */
28
- constructor(pstFile: PSTFile, attachmentData: Buffer, encrypted?: boolean);
29
- constructor(pstFile: PSTFile, descriptorItem: PSTDescriptorItem | undefined, encrypted?: boolean);
30
- constructor(pstFile: PSTFile, offsetItem: OffsetIndexItem, encrypted?: boolean);
31
- /**
32
- * Checks if the node is ZL compressed and unzips if so.
33
- * @private
34
- * @returns
35
- * @memberof PSTNodeInputStream
36
- */
37
- private detectZlib;
38
- /**
39
- * Load data from offset in file.
40
- * @private
41
- * @param {OffsetIndexItem} offsetItem
42
- * @returns
43
- * @memberof PSTNodeInputStream
44
- */
45
- private loadFromOffsetItem;
46
- /**
47
- * Get block skip points in file.
48
- * @private
49
- * @param {Buffer} data
50
- * @memberof PSTNodeInputStream
51
- */
52
- private getBlockSkipPoints;
53
- /**
54
- * Read from the stream.
55
- * @param {Buffer} [output]
56
- * @returns
57
- * @memberof PSTNodeInputStream
58
- */
59
- read(output?: Buffer): number;
60
- /**
61
- * Read a single byte from the input stream.
62
- * @returns {number}
63
- * @memberof PSTNodeInputStream
64
- */
65
- readSingleByte(): number;
66
- private totalLoopCount;
67
- /**
68
- * Read a block from the input stream, ensuring buffer is completely filled.
69
- * Recommended block size = 8176 (size used internally by PSTs)
70
- * @param {Buffer} target
71
- * @memberof PSTNodeInputStream
72
- */
73
- readCompletely(target: Buffer): void;
74
- /**
75
- * Read a block from the input stream.
76
- * Recommended block size = 8176 (size used internally by PSTs)
77
- * @param {Buffer} output
78
- * @returns {number}
79
- * @memberof PSTNodeInputStream
80
- */
81
- readBlock(output: Buffer): number;
82
- /**
83
- * Read from the offset.
84
- * @param {Buffer} output
85
- * @param {number} offset
86
- * @param {number} length
87
- * @returns {number}
88
- * @memberof PSTNodeInputStream
89
- */
90
- readFromOffset(output: Buffer, offset: number, length: number): number;
91
- /**
92
- * Reset the file pointer (internally).
93
- * @memberof PSTNodeInputStream
94
- */
95
- reset(): void;
96
- /**
97
- * Get the offsets (block positions) used in the array
98
- * @returns {long[]}
99
- * @memberof PSTNodeInputStream
100
- */
101
- getBlockOffsets(): Long[];
102
- /**
103
- * Seek within item.
104
- * @param {long} location
105
- * @returns
106
- * @memberof PSTNodeInputStream
107
- */
108
- seek(location: Long): void;
109
- /**
110
- * Seek within stream and read a long.
111
- * @param {long} location
112
- * @param {number} bytes
113
- * @returns {long}
114
- * @memberof PSTNodeInputStream
115
- */
116
- seekAndReadLong(location: Long, bytes: number): Long;
117
- /**
118
- * JSON the object, large buffers excluded.
119
- * @returns {*}
120
- * @memberof PSTNodeInputStream
121
- */
122
- toJSON(): any;
123
- }
1
+ import Long from 'long';
2
+ import { PSTDescriptorItem } from './PSTDescriptorItem.class';
3
+ import { OffsetIndexItem } from './OffsetIndexItem.class';
4
+ import { PSTFile } from './PSTFile.class';
5
+ export declare class PSTNodeInputStream {
6
+ private skipPoints;
7
+ private indexItems;
8
+ private currentBlock;
9
+ private allData;
10
+ private isZlib;
11
+ private _currentLocation;
12
+ private get currentLocation();
13
+ private set currentLocation(value);
14
+ private _pstFile;
15
+ get pstFile(): PSTFile;
16
+ private _length;
17
+ get length(): Long;
18
+ private _encrypted;
19
+ get encrypted(): boolean;
20
+ /**
21
+ * Creates an instance of PSTNodeInputStream.
22
+ * @param {PSTFile} pstFile
23
+ * @param {Buffer} attachmentData
24
+ * @param {boolean} [encrypted]
25
+ * @memberof PSTNodeInputStream
26
+ */
27
+ constructor(pstFile: PSTFile, attachmentData: Buffer, encrypted?: boolean);
28
+ constructor(pstFile: PSTFile, descriptorItem: PSTDescriptorItem | undefined, encrypted?: boolean);
29
+ constructor(pstFile: PSTFile, offsetItem: OffsetIndexItem, encrypted?: boolean);
30
+ /**
31
+ * Checks if the node is ZL compressed and unzips if so.
32
+ * @private
33
+ * @returns
34
+ * @memberof PSTNodeInputStream
35
+ */
36
+ private detectZlib;
37
+ /**
38
+ * Load data from offset in file.
39
+ * @private
40
+ * @param {OffsetIndexItem} offsetItem
41
+ * @returns
42
+ * @memberof PSTNodeInputStream
43
+ */
44
+ private loadFromOffsetItem;
45
+ /**
46
+ * Get block skip points in file.
47
+ * @private
48
+ * @param {Buffer} data
49
+ * @memberof PSTNodeInputStream
50
+ */
51
+ private getBlockSkipPoints;
52
+ /**
53
+ * Read from the stream.
54
+ * @param {Buffer} [output]
55
+ * @returns
56
+ * @memberof PSTNodeInputStream
57
+ */
58
+ read(output?: Buffer): number;
59
+ /**
60
+ * Read a single byte from the input stream.
61
+ * @returns {number}
62
+ * @memberof PSTNodeInputStream
63
+ */
64
+ readSingleByte(): number;
65
+ private totalLoopCount;
66
+ /**
67
+ * Read a block from the input stream, ensuring buffer is completely filled.
68
+ * Recommended block size = 8176 (size used internally by PSTs)
69
+ * @param {Buffer} target
70
+ * @memberof PSTNodeInputStream
71
+ */
72
+ readCompletely(target: Buffer): void;
73
+ /**
74
+ * Read a block from the input stream.
75
+ * Recommended block size = 8176 (size used internally by PSTs)
76
+ * @param {Buffer} output
77
+ * @returns {number}
78
+ * @memberof PSTNodeInputStream
79
+ */
80
+ readBlock(output: Buffer): number;
81
+ /**
82
+ * Read from the offset.
83
+ * @param {Buffer} output
84
+ * @param {number} offset
85
+ * @param {number} length
86
+ * @returns {number}
87
+ * @memberof PSTNodeInputStream
88
+ */
89
+ readFromOffset(output: Buffer, offset: number, length: number): number;
90
+ /**
91
+ * Reset the file pointer (internally).
92
+ * @memberof PSTNodeInputStream
93
+ */
94
+ reset(): void;
95
+ /**
96
+ * Get the offsets (block positions) used in the array
97
+ * @returns {long[]}
98
+ * @memberof PSTNodeInputStream
99
+ */
100
+ getBlockOffsets(): Long[];
101
+ /**
102
+ * Seek within item.
103
+ * @param {long} location
104
+ * @returns
105
+ * @memberof PSTNodeInputStream
106
+ */
107
+ seek(location: Long): void;
108
+ /**
109
+ * Seek within stream and read a long.
110
+ * @param {long} location
111
+ * @param {number} bytes
112
+ * @returns {long}
113
+ * @memberof PSTNodeInputStream
114
+ */
115
+ seekAndReadLong(location: Long, bytes: number): Long;
116
+ /**
117
+ * JSON the object, large buffers excluded.
118
+ * @returns {*}
119
+ * @memberof PSTNodeInputStream
120
+ */
121
+ toJSON(): any;
122
+ }