@adobe/helix-md2docx 1.2.2 → 1.2.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.2.3](https://github.com/adobe/helix-md2docx/compare/v1.2.2...v1.2.3) (2022-01-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * avoid dirname_esm ([#14](https://github.com/adobe/helix-md2docx/issues/14)) ([f5eda2f](https://github.com/adobe/helix-md2docx/commit/f5eda2f41ce0ccec0f1ac9e30780140a8def6435))
7
+
1
8
  ## [1.2.2](https://github.com/adobe/helix-md2docx/compare/v1.2.1...v1.2.2) (2022-01-24)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-md2docx",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Helix Service that converts markdown to word documents",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -31,7 +31,6 @@
31
31
  "@adobe/helix-markdown-support": "3.1.2",
32
32
  "@adobe/helix-shared-process-queue": "1.1.0",
33
33
  "@adobe/helix-docx2md": "1.0.6",
34
- "dirname-filename-esm": "1.1.1",
35
34
  "docx": "7.3.0",
36
35
  "hast-util-is-element": "2.1.2",
37
36
  "hast-util-to-mdast": "8.3.0",
@@ -61,7 +60,7 @@
61
60
  "lint-staged": "12.2.2",
62
61
  "mocha": "9.1.4",
63
62
  "mocha-multi-reporters": "1.5.1",
64
- "semantic-release": "18.0.1",
63
+ "semantic-release": "19.0.2",
65
64
  "unist-util-inspect": "7.0.0"
66
65
  },
67
66
  "lint-staged": {
@@ -10,8 +10,8 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
  import { readFile } from 'fs/promises';
13
+ import url from 'url';
13
14
  import path from 'path';
14
- import { dirname } from 'dirname-filename-esm';
15
15
  import docx from 'docx';
16
16
 
17
17
  import all from './all.js';
@@ -25,7 +25,7 @@ import downloadImages from './mdast-download-images.js';
25
25
  const { Document, Packer } = docx;
26
26
 
27
27
  // eslint-disable-next-line no-underscore-dangle
28
- const __dirname = dirname(import.meta);
28
+ const __dirname = url.fileURLToPath ? path.dirname(url.fileURLToPath(import.meta.url)) : './';
29
29
 
30
30
  export default async function mdast2docx(mdast, log = console) {
31
31
  const ctx = {