pst-extractor 1.8.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.
- package/dist/ColumnDescriptor.class.d.ts +26 -26
- package/dist/ColumnDescriptor.class.js +51 -48
- package/dist/DescriptorIndexNode.class.d.ts +25 -26
- package/dist/DescriptorIndexNode.class.js +53 -53
- package/dist/LZFu.class.d.ts +11 -12
- package/dist/LZFu.class.js +95 -95
- package/dist/NodeInfo.class.d.ts +33 -33
- package/dist/NodeInfo.class.js +52 -52
- package/dist/NodeMap.class.d.ts +35 -35
- package/dist/NodeMap.class.js +86 -83
- package/dist/OffsetIndexItem.class.d.ts +23 -24
- package/dist/OffsetIndexItem.class.js +45 -45
- package/dist/OutlookProperties.d.ts +275 -275
- package/dist/OutlookProperties.js +281 -281
- package/dist/PSTActivity.class.d.ts +103 -103
- package/dist/PSTActivity.class.js +144 -144
- package/dist/PSTAppointment.class.d.ts +270 -271
- package/dist/PSTAppointment.class.js +376 -376
- package/dist/PSTAttachment.class.d.ts +172 -172
- package/dist/PSTAttachment.class.js +317 -314
- package/dist/PSTContact.class.d.ts +884 -884
- package/dist/PSTContact.class.js +1227 -1227
- package/dist/PSTDescriptorItem.class.d.ts +45 -46
- package/dist/PSTDescriptorItem.class.js +99 -96
- package/dist/PSTFile.class.d.ts +215 -216
- package/dist/PSTFile.class.js +818 -792
- package/dist/PSTFolder.class.d.ts +129 -129
- package/dist/PSTFolder.class.js +318 -307
- package/dist/PSTMessage.class.d.ts +788 -789
- package/dist/PSTMessage.class.js +1321 -1318
- package/dist/PSTMessageStore.class.d.ts +13 -13
- package/dist/PSTMessageStore.class.js +17 -17
- package/dist/PSTNodeInputStream.class.d.ts +122 -123
- package/dist/PSTNodeInputStream.class.js +514 -488
- package/dist/PSTObject.class.d.ts +133 -134
- package/dist/PSTObject.class.js +326 -323
- package/dist/PSTRecipient.class.d.ts +65 -65
- package/dist/PSTRecipient.class.js +103 -103
- package/dist/PSTTable.class.d.ts +52 -52
- package/dist/PSTTable.class.js +175 -172
- package/dist/PSTTable7C.class.d.ts +45 -45
- package/dist/PSTTable7C.class.js +281 -278
- package/dist/PSTTableBC.class.d.ts +31 -31
- package/dist/PSTTableBC.class.js +111 -108
- package/dist/PSTTableItem.class.d.ts +47 -48
- package/dist/PSTTableItem.class.js +124 -121
- package/dist/PSTTask.class.d.ts +146 -146
- package/dist/PSTTask.class.js +205 -205
- package/dist/PSTUtil.class.d.ts +134 -135
- package/dist/PSTUtil.class.js +795 -790
- package/dist/RecurrencePattern.class.d.ts +49 -50
- package/dist/RecurrencePattern.class.js +120 -120
- package/dist/index.d.ts +6 -6
- package/dist/index.js +15 -15
- package/example/package.json +7 -7
- package/example/test-min.ts +31 -12
- package/example/{test-mem.ts → test.ts} +38 -30
- package/example/testdata/output.txt +278 -0
- package/example/testdata/outputBody.txt +3404 -0
- package/example/yarn.lock +112 -50
- package/junit.xml +36 -36
- package/package.json +28 -27
- package/readme.md +1 -3
- package/example/test-max.ts +0 -251
|
@@ -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
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*
|
|
23
|
-
* @param {
|
|
24
|
-
* @param {
|
|
25
|
-
* @
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
constructor(pstFile: PSTFile,
|
|
29
|
-
constructor(pstFile: PSTFile,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
*
|
|
33
|
-
* @
|
|
34
|
-
* @
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
*
|
|
40
|
-
* @
|
|
41
|
-
* @
|
|
42
|
-
* @
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*
|
|
48
|
-
* @
|
|
49
|
-
* @
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
*
|
|
55
|
-
* @
|
|
56
|
-
* @
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
*
|
|
62
|
-
* @
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* @
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* @
|
|
78
|
-
* @
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
*
|
|
84
|
-
* @param {
|
|
85
|
-
* @param {number}
|
|
86
|
-
* @
|
|
87
|
-
* @
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
*
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
*
|
|
98
|
-
* @
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
*
|
|
104
|
-
* @
|
|
105
|
-
* @
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
*
|
|
111
|
-
* @param {
|
|
112
|
-
* @
|
|
113
|
-
* @
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
*
|
|
119
|
-
* @
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
+
}
|