diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-03-18 14:24:56 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-03-18 14:24:56 +0000 |
| commit | 800b14eed0c909c93a3271191ac93ad5a2d2057f (patch) | |
| tree | 97d326d84fd30c188377314bbdf23ca9fcb7a1db /lib/docx/relationships-reader.js | |
| parent | 45f302766a3a5ca99338fd8e5fef07dec42c0e56 (diff) | |
Move reading of actual docx files into docx-reader
Diffstat (limited to 'lib/docx/relationships-reader.js')
| -rw-r--r-- | lib/docx/relationships-reader.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/docx/relationships-reader.js b/lib/docx/relationships-reader.js index fe6c7f1..7cae534 100644 --- a/lib/docx/relationships-reader.js +++ b/lib/docx/relationships-reader.js @@ -1,15 +1,4 @@ -var readXmlFromZipFile = require("./office-xml-reader").readXmlFromZipFile; - - -exports.readRelationshipsFromZipFile = readRelationshipsFromZipFile; - - -function readRelationshipsFromZipFile(file) { - return readXmlFromZipFile(file, "word/_rels/document.xml.rels") - .then(function(relationshipsXml) { - return relationshipsXml ? readRelationships(relationshipsXml) : {}; - }); -} +exports.readRelationships = readRelationships; function readRelationships(relationshipsXml) { |
