fast-mhtml-maa
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -1,1 +0,1 @@ | ||
{"processes":{"1224c5ed-9d3c-4c0a-8b2c-f78d5fb6a42d":{"parent":null,"children":["90ee094f-c0bf-45ea-b959-10b26e64fc59"]},"90ee094f-c0bf-45ea-b959-10b26e64fc59":{"parent":"1224c5ed-9d3c-4c0a-8b2c-f78d5fb6a42d","children":[]}},"files":{"c:\\njs\\Projects\\mhtml-parser\\src\\decoder.js":["90ee094f-c0bf-45ea-b959-10b26e64fc59"],"c:\\njs\\Projects\\mhtml-parser\\src\\link-replacer.js":["90ee094f-c0bf-45ea-b959-10b26e64fc59"],"c:\\njs\\Projects\\mhtml-parser\\src\\dom-link-renamer.js":["90ee094f-c0bf-45ea-b959-10b26e64fc59"],"c:\\njs\\Projects\\mhtml-parser\\src\\parser.js":["90ee094f-c0bf-45ea-b959-10b26e64fc59"]},"externalIds":{}} | ||
{"processes":{"09443f99-67fb-4165-818e-2b8b11b5f0f5":{"parent":"7fcba723-c104-407c-9277-0b9c4714540e","children":[]},"7fcba723-c104-407c-9277-0b9c4714540e":{"parent":null,"children":["09443f99-67fb-4165-818e-2b8b11b5f0f5"]}},"files":{"c:\\njs\\Projects\\mhtml-parser\\src\\decoder.js":["09443f99-67fb-4165-818e-2b8b11b5f0f5"],"c:\\njs\\Projects\\mhtml-parser\\src\\link-replacer.js":["09443f99-67fb-4165-818e-2b8b11b5f0f5"],"c:\\njs\\Projects\\mhtml-parser\\src\\dom-link-renamer.js":["09443f99-67fb-4165-818e-2b8b11b5f0f5"],"c:\\njs\\Projects\\mhtml-parser\\src\\parser.js":["09443f99-67fb-4165-818e-2b8b11b5f0f5"]},"externalIds":{}} |
{ | ||
"name": "fast-mhtml-maa", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "Parses mhtml files", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -81,6 +81,6 @@ const filenamify = require('filenamify'); | ||
.filter(part => part.location) | ||
.map(part => [part.location.trim(), this.rewriteFn(part.location).trim()]); | ||
.map(part => [part.location.trim(), this.rewriteFn(part.location, part).trim()]); | ||
const rewriteMap = new Map(entries); | ||
for (const part of this.parts.filter(x => x.id)) { | ||
rewriteMap.set(`cid:${part.id}`, this.rewriteFn(part.location || part.id.trim())); | ||
rewriteMap.set(`cid:${part.id}`, this.rewriteFn(part.location || part.id.trim(), part)); | ||
} | ||
@@ -100,3 +100,3 @@ for (const part of this.parts) { | ||
return this.parts.map(part => ({ | ||
filename: this.rewriteFn(part.location || part.id), | ||
filename: this.rewriteFn(part.location || part.id, part), | ||
content: this.gotString ? part.body.toString() : part.body, | ||
@@ -103,0 +103,0 @@ type: part.type, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
267307