mail-parser-wasm 0.1.8 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/mail_parser_wasm.d.ts +12 -29
- package/mail_parser_wasm.js +2 -1
- package/mail_parser_wasm_bg.js +162 -162
- package/mail_parser_wasm_bg.wasm +0 -0
- package/package.json +3 -2
package/mail_parser_wasm.d.ts
CHANGED
@@ -1,44 +1,27 @@
|
|
1
1
|
/* tslint:disable */
|
2
2
|
/* eslint-disable */
|
3
|
-
/**
|
4
|
-
* @param {string} raw_message
|
5
|
-
* @returns {MessageResult}
|
6
|
-
*/
|
7
3
|
export function parse_message(raw_message: string): MessageResult;
|
8
|
-
/**
|
9
|
-
*/
|
10
4
|
export class AttachmentResult {
|
5
|
+
private constructor();
|
11
6
|
free(): void;
|
12
|
-
/**
|
13
|
-
*/
|
14
|
-
readonly content: Uint8Array;
|
15
|
-
/**
|
16
|
-
*/
|
17
7
|
readonly content_id: string;
|
18
|
-
/**
|
19
|
-
*/
|
20
8
|
readonly content_type: string;
|
21
|
-
/**
|
22
|
-
*/
|
23
9
|
readonly filename: string;
|
10
|
+
readonly content: Uint8Array;
|
11
|
+
}
|
12
|
+
export class MessageHeader {
|
13
|
+
private constructor();
|
14
|
+
free(): void;
|
15
|
+
readonly key: string;
|
16
|
+
readonly value: string;
|
24
17
|
}
|
25
|
-
/**
|
26
|
-
*/
|
27
18
|
export class MessageResult {
|
19
|
+
private constructor();
|
28
20
|
free(): void;
|
29
|
-
/**
|
30
|
-
*/
|
31
|
-
readonly attachments: (AttachmentResult)[];
|
32
|
-
/**
|
33
|
-
*/
|
34
|
-
readonly body_html: string;
|
35
|
-
/**
|
36
|
-
*/
|
37
21
|
readonly sender: string;
|
38
|
-
/**
|
39
|
-
*/
|
40
22
|
readonly subject: string;
|
41
|
-
|
42
|
-
|
23
|
+
readonly headers: (MessageHeader)[];
|
24
|
+
readonly body_html: string;
|
43
25
|
readonly text: string;
|
26
|
+
readonly attachments: (AttachmentResult)[];
|
44
27
|
}
|
package/mail_parser_wasm.js
CHANGED
package/mail_parser_wasm_bg.js
CHANGED
@@ -10,80 +10,42 @@ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true
|
|
10
10
|
|
11
11
|
cachedTextDecoder.decode();
|
12
12
|
|
13
|
-
let
|
13
|
+
let cachedUint8ArrayMemory0 = null;
|
14
14
|
|
15
|
-
function
|
16
|
-
if (
|
17
|
-
|
15
|
+
function getUint8ArrayMemory0() {
|
16
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
17
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
18
18
|
}
|
19
|
-
return
|
19
|
+
return cachedUint8ArrayMemory0;
|
20
20
|
}
|
21
21
|
|
22
22
|
function getStringFromWasm0(ptr, len) {
|
23
23
|
ptr = ptr >>> 0;
|
24
|
-
return cachedTextDecoder.decode(
|
25
|
-
}
|
26
|
-
|
27
|
-
const heap = new Array(128).fill(undefined);
|
28
|
-
|
29
|
-
heap.push(undefined, null, true, false);
|
30
|
-
|
31
|
-
let heap_next = heap.length;
|
32
|
-
|
33
|
-
function addHeapObject(obj) {
|
34
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
35
|
-
const idx = heap_next;
|
36
|
-
heap_next = heap[idx];
|
37
|
-
|
38
|
-
heap[idx] = obj;
|
39
|
-
return idx;
|
40
|
-
}
|
41
|
-
|
42
|
-
let cachedInt32Memory0 = null;
|
43
|
-
|
44
|
-
function getInt32Memory0() {
|
45
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
46
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
47
|
-
}
|
48
|
-
return cachedInt32Memory0;
|
24
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
49
25
|
}
|
50
26
|
|
51
27
|
function getArrayU8FromWasm0(ptr, len) {
|
52
28
|
ptr = ptr >>> 0;
|
53
|
-
return
|
29
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
54
30
|
}
|
55
31
|
|
56
|
-
let
|
32
|
+
let cachedDataViewMemory0 = null;
|
57
33
|
|
58
|
-
function
|
59
|
-
if (
|
60
|
-
|
34
|
+
function getDataViewMemory0() {
|
35
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
36
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
61
37
|
}
|
62
|
-
return
|
63
|
-
}
|
64
|
-
|
65
|
-
function getObject(idx) { return heap[idx]; }
|
66
|
-
|
67
|
-
function dropObject(idx) {
|
68
|
-
if (idx < 132) return;
|
69
|
-
heap[idx] = heap_next;
|
70
|
-
heap_next = idx;
|
71
|
-
}
|
72
|
-
|
73
|
-
function takeObject(idx) {
|
74
|
-
const ret = getObject(idx);
|
75
|
-
dropObject(idx);
|
76
|
-
return ret;
|
38
|
+
return cachedDataViewMemory0;
|
77
39
|
}
|
78
40
|
|
79
41
|
function getArrayJsValueFromWasm0(ptr, len) {
|
80
42
|
ptr = ptr >>> 0;
|
81
|
-
const mem =
|
82
|
-
const slice = mem.subarray(ptr / 4, ptr / 4 + len);
|
43
|
+
const mem = getDataViewMemory0();
|
83
44
|
const result = [];
|
84
|
-
for (let i =
|
85
|
-
result.push(
|
45
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
46
|
+
result.push(wasm.__wbindgen_export_0.get(mem.getUint32(i, true)));
|
86
47
|
}
|
48
|
+
wasm.__externref_drop_slice(ptr, len);
|
87
49
|
return result;
|
88
50
|
}
|
89
51
|
|
@@ -111,7 +73,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
111
73
|
if (realloc === undefined) {
|
112
74
|
const buf = cachedTextEncoder.encode(arg);
|
113
75
|
const ptr = malloc(buf.length, 1) >>> 0;
|
114
|
-
|
76
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
115
77
|
WASM_VECTOR_LEN = buf.length;
|
116
78
|
return ptr;
|
117
79
|
}
|
@@ -119,7 +81,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
119
81
|
let len = arg.length;
|
120
82
|
let ptr = malloc(len, 1) >>> 0;
|
121
83
|
|
122
|
-
const mem =
|
84
|
+
const mem = getUint8ArrayMemory0();
|
123
85
|
|
124
86
|
let offset = 0;
|
125
87
|
|
@@ -134,7 +96,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
134
96
|
arg = arg.slice(offset);
|
135
97
|
}
|
136
98
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
137
|
-
const view =
|
99
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
138
100
|
const ret = encodeString(arg, view);
|
139
101
|
|
140
102
|
offset += ret.written;
|
@@ -145,9 +107,9 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
145
107
|
return ptr;
|
146
108
|
}
|
147
109
|
/**
|
148
|
-
* @param {string} raw_message
|
149
|
-
* @returns {MessageResult}
|
150
|
-
*/
|
110
|
+
* @param {string} raw_message
|
111
|
+
* @returns {MessageResult}
|
112
|
+
*/
|
151
113
|
export function parse_message(raw_message) {
|
152
114
|
const ptr0 = passStringToWasm0(raw_message, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
153
115
|
const len0 = WASM_VECTOR_LEN;
|
@@ -157,9 +119,8 @@ export function parse_message(raw_message) {
|
|
157
119
|
|
158
120
|
const AttachmentResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
159
121
|
? { register: () => {}, unregister: () => {} }
|
160
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_attachmentresult_free(ptr >>> 0));
|
161
|
-
|
162
|
-
*/
|
122
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_attachmentresult_free(ptr >>> 0, 1));
|
123
|
+
|
163
124
|
export class AttachmentResult {
|
164
125
|
|
165
126
|
static __wrap(ptr) {
|
@@ -179,88 +140,125 @@ export class AttachmentResult {
|
|
179
140
|
|
180
141
|
free() {
|
181
142
|
const ptr = this.__destroy_into_raw();
|
182
|
-
wasm.__wbg_attachmentresult_free(ptr);
|
143
|
+
wasm.__wbg_attachmentresult_free(ptr, 0);
|
183
144
|
}
|
184
145
|
/**
|
185
|
-
|
186
|
-
|
146
|
+
* @returns {string}
|
147
|
+
*/
|
187
148
|
get content_id() {
|
188
149
|
let deferred1_0;
|
189
150
|
let deferred1_1;
|
190
151
|
try {
|
191
|
-
const
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
deferred1_0 = r0;
|
196
|
-
deferred1_1 = r1;
|
197
|
-
return getStringFromWasm0(r0, r1);
|
152
|
+
const ret = wasm.attachmentresult_content_id(this.__wbg_ptr);
|
153
|
+
deferred1_0 = ret[0];
|
154
|
+
deferred1_1 = ret[1];
|
155
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
198
156
|
} finally {
|
199
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
200
157
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
201
158
|
}
|
202
159
|
}
|
203
160
|
/**
|
204
|
-
|
205
|
-
|
161
|
+
* @returns {string}
|
162
|
+
*/
|
206
163
|
get content_type() {
|
207
164
|
let deferred1_0;
|
208
165
|
let deferred1_1;
|
209
166
|
try {
|
210
|
-
const
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
deferred1_0 = r0;
|
215
|
-
deferred1_1 = r1;
|
216
|
-
return getStringFromWasm0(r0, r1);
|
167
|
+
const ret = wasm.attachmentresult_content_type(this.__wbg_ptr);
|
168
|
+
deferred1_0 = ret[0];
|
169
|
+
deferred1_1 = ret[1];
|
170
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
217
171
|
} finally {
|
218
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
219
172
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
220
173
|
}
|
221
174
|
}
|
222
175
|
/**
|
223
|
-
|
224
|
-
|
176
|
+
* @returns {string}
|
177
|
+
*/
|
225
178
|
get filename() {
|
226
179
|
let deferred1_0;
|
227
180
|
let deferred1_1;
|
228
181
|
try {
|
229
|
-
const
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
deferred1_0 = r0;
|
234
|
-
deferred1_1 = r1;
|
235
|
-
return getStringFromWasm0(r0, r1);
|
182
|
+
const ret = wasm.attachmentresult_filename(this.__wbg_ptr);
|
183
|
+
deferred1_0 = ret[0];
|
184
|
+
deferred1_1 = ret[1];
|
185
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
236
186
|
} finally {
|
237
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
238
187
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
239
188
|
}
|
240
189
|
}
|
241
190
|
/**
|
242
|
-
|
243
|
-
|
191
|
+
* @returns {Uint8Array}
|
192
|
+
*/
|
244
193
|
get content() {
|
194
|
+
const ret = wasm.attachmentresult_content(this.__wbg_ptr);
|
195
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
196
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
197
|
+
return v1;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
const MessageHeaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
202
|
+
? { register: () => {}, unregister: () => {} }
|
203
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_messageheader_free(ptr >>> 0, 1));
|
204
|
+
|
205
|
+
export class MessageHeader {
|
206
|
+
|
207
|
+
static __wrap(ptr) {
|
208
|
+
ptr = ptr >>> 0;
|
209
|
+
const obj = Object.create(MessageHeader.prototype);
|
210
|
+
obj.__wbg_ptr = ptr;
|
211
|
+
MessageHeaderFinalization.register(obj, obj.__wbg_ptr, obj);
|
212
|
+
return obj;
|
213
|
+
}
|
214
|
+
|
215
|
+
__destroy_into_raw() {
|
216
|
+
const ptr = this.__wbg_ptr;
|
217
|
+
this.__wbg_ptr = 0;
|
218
|
+
MessageHeaderFinalization.unregister(this);
|
219
|
+
return ptr;
|
220
|
+
}
|
221
|
+
|
222
|
+
free() {
|
223
|
+
const ptr = this.__destroy_into_raw();
|
224
|
+
wasm.__wbg_messageheader_free(ptr, 0);
|
225
|
+
}
|
226
|
+
/**
|
227
|
+
* @returns {string}
|
228
|
+
*/
|
229
|
+
get key() {
|
230
|
+
let deferred1_0;
|
231
|
+
let deferred1_1;
|
232
|
+
try {
|
233
|
+
const ret = wasm.messageheader_key(this.__wbg_ptr);
|
234
|
+
deferred1_0 = ret[0];
|
235
|
+
deferred1_1 = ret[1];
|
236
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
237
|
+
} finally {
|
238
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
239
|
+
}
|
240
|
+
}
|
241
|
+
/**
|
242
|
+
* @returns {string}
|
243
|
+
*/
|
244
|
+
get value() {
|
245
|
+
let deferred1_0;
|
246
|
+
let deferred1_1;
|
245
247
|
try {
|
246
|
-
const
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
251
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
252
|
-
return v1;
|
248
|
+
const ret = wasm.messageheader_value(this.__wbg_ptr);
|
249
|
+
deferred1_0 = ret[0];
|
250
|
+
deferred1_1 = ret[1];
|
251
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
253
252
|
} finally {
|
254
|
-
wasm.
|
253
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
255
254
|
}
|
256
255
|
}
|
257
256
|
}
|
258
257
|
|
259
258
|
const MessageResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
260
259
|
? { register: () => {}, unregister: () => {} }
|
261
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_messageresult_free(ptr >>> 0));
|
262
|
-
|
263
|
-
*/
|
260
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_messageresult_free(ptr >>> 0, 1));
|
261
|
+
|
264
262
|
export class MessageResult {
|
265
263
|
|
266
264
|
static __wrap(ptr) {
|
@@ -280,105 +278,107 @@ export class MessageResult {
|
|
280
278
|
|
281
279
|
free() {
|
282
280
|
const ptr = this.__destroy_into_raw();
|
283
|
-
wasm.__wbg_messageresult_free(ptr);
|
281
|
+
wasm.__wbg_messageresult_free(ptr, 0);
|
284
282
|
}
|
285
283
|
/**
|
286
|
-
|
287
|
-
|
284
|
+
* @returns {string}
|
285
|
+
*/
|
288
286
|
get sender() {
|
289
287
|
let deferred1_0;
|
290
288
|
let deferred1_1;
|
291
289
|
try {
|
292
|
-
const
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
deferred1_0 = r0;
|
297
|
-
deferred1_1 = r1;
|
298
|
-
return getStringFromWasm0(r0, r1);
|
290
|
+
const ret = wasm.messageresult_sender(this.__wbg_ptr);
|
291
|
+
deferred1_0 = ret[0];
|
292
|
+
deferred1_1 = ret[1];
|
293
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
299
294
|
} finally {
|
300
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
301
295
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
302
296
|
}
|
303
297
|
}
|
304
298
|
/**
|
305
|
-
|
306
|
-
|
299
|
+
* @returns {string}
|
300
|
+
*/
|
307
301
|
get subject() {
|
308
302
|
let deferred1_0;
|
309
303
|
let deferred1_1;
|
310
304
|
try {
|
311
|
-
const
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
deferred1_0 = r0;
|
316
|
-
deferred1_1 = r1;
|
317
|
-
return getStringFromWasm0(r0, r1);
|
305
|
+
const ret = wasm.messageresult_subject(this.__wbg_ptr);
|
306
|
+
deferred1_0 = ret[0];
|
307
|
+
deferred1_1 = ret[1];
|
308
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
318
309
|
} finally {
|
319
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
320
310
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
321
311
|
}
|
322
312
|
}
|
323
313
|
/**
|
324
|
-
|
325
|
-
|
314
|
+
* @returns {(MessageHeader)[]}
|
315
|
+
*/
|
316
|
+
get headers() {
|
317
|
+
const ret = wasm.messageresult_headers(this.__wbg_ptr);
|
318
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
319
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
320
|
+
return v1;
|
321
|
+
}
|
322
|
+
/**
|
323
|
+
* @returns {string}
|
324
|
+
*/
|
326
325
|
get body_html() {
|
327
326
|
let deferred1_0;
|
328
327
|
let deferred1_1;
|
329
328
|
try {
|
330
|
-
const
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
deferred1_0 = r0;
|
335
|
-
deferred1_1 = r1;
|
336
|
-
return getStringFromWasm0(r0, r1);
|
329
|
+
const ret = wasm.messageresult_body_html(this.__wbg_ptr);
|
330
|
+
deferred1_0 = ret[0];
|
331
|
+
deferred1_1 = ret[1];
|
332
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
337
333
|
} finally {
|
338
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
339
334
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
340
335
|
}
|
341
336
|
}
|
342
337
|
/**
|
343
|
-
|
344
|
-
|
338
|
+
* @returns {string}
|
339
|
+
*/
|
345
340
|
get text() {
|
346
341
|
let deferred1_0;
|
347
342
|
let deferred1_1;
|
348
343
|
try {
|
349
|
-
const
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
deferred1_0 = r0;
|
354
|
-
deferred1_1 = r1;
|
355
|
-
return getStringFromWasm0(r0, r1);
|
344
|
+
const ret = wasm.messageresult_text(this.__wbg_ptr);
|
345
|
+
deferred1_0 = ret[0];
|
346
|
+
deferred1_1 = ret[1];
|
347
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
356
348
|
} finally {
|
357
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
358
349
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
359
350
|
}
|
360
351
|
}
|
361
352
|
/**
|
362
|
-
|
363
|
-
|
353
|
+
* @returns {(AttachmentResult)[]}
|
354
|
+
*/
|
364
355
|
get attachments() {
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
370
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
371
|
-
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
372
|
-
return v1;
|
373
|
-
} finally {
|
374
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
375
|
-
}
|
356
|
+
const ret = wasm.messageresult_attachments(this.__wbg_ptr);
|
357
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
358
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
359
|
+
return v1;
|
376
360
|
}
|
377
361
|
}
|
378
362
|
|
379
363
|
export function __wbg_attachmentresult_new(arg0) {
|
380
364
|
const ret = AttachmentResult.__wrap(arg0);
|
381
|
-
return
|
365
|
+
return ret;
|
366
|
+
};
|
367
|
+
|
368
|
+
export function __wbg_messageheader_new(arg0) {
|
369
|
+
const ret = MessageHeader.__wrap(arg0);
|
370
|
+
return ret;
|
371
|
+
};
|
372
|
+
|
373
|
+
export function __wbindgen_init_externref_table() {
|
374
|
+
const table = wasm.__wbindgen_export_0;
|
375
|
+
const offset = table.grow(4);
|
376
|
+
table.set(0, undefined);
|
377
|
+
table.set(offset + 0, undefined);
|
378
|
+
table.set(offset + 1, null);
|
379
|
+
table.set(offset + 2, true);
|
380
|
+
table.set(offset + 3, false);
|
381
|
+
;
|
382
382
|
};
|
383
383
|
|
384
384
|
export function __wbindgen_throw(arg0, arg1) {
|
package/mail_parser_wasm_bg.wasm
CHANGED
Binary file
|
package/package.json
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "mail-parser-wasm",
|
3
|
+
"type": "module",
|
3
4
|
"description": "A simple mail parser for wasm",
|
4
|
-
"version": "0.
|
5
|
+
"version": "0.2.0",
|
5
6
|
"license": "MIT",
|
6
7
|
"files": [
|
7
8
|
"mail_parser_wasm_bg.wasm",
|
@@ -9,7 +10,7 @@
|
|
9
10
|
"mail_parser_wasm_bg.js",
|
10
11
|
"mail_parser_wasm.d.ts"
|
11
12
|
],
|
12
|
-
"
|
13
|
+
"main": "mail_parser_wasm.js",
|
13
14
|
"types": "mail_parser_wasm.d.ts",
|
14
15
|
"sideEffects": [
|
15
16
|
"./mail_parser_wasm.js",
|