@tryghost/mg-blogger 0.9.0 → 0.11.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.
Files changed (2) hide show
  1. package/lib/process.js +2 -2
  2. package/package.json +5 -6
package/lib/process.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {basename} from 'node:path';
2
- import {domUtils} from '@tryghost/mg-utils';
2
+ import {domUtils, cardUtils} from '@tryghost/mg-utils';
3
3
  import autop from 'autop';
4
4
  import sanitizeHtml from 'sanitize-html';
5
5
  import {slugify} from '@tryghost/string';
6
6
  import errors from '@tryghost/errors';
7
7
  import SimpleDom from 'simple-dom';
8
- import imageCard from '@tryghost/kg-default-cards/lib/cards/image.js';
9
8
 
10
9
  const {serializeChildren, replaceWith, wrap} = domUtils;
11
10
 
12
11
  const serializer = new SimpleDom.HTMLSerializer(SimpleDom.voidMap);
12
+ const imageCard = cardUtils.getCard('image');
13
13
 
14
14
  const cleanExcerpt = (htmlContent) => {
15
15
  // Convert to text only
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-blogger",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/TryGhost/migrate.git",
@@ -21,14 +21,13 @@
21
21
  "eslint": "8.57.1"
22
22
  },
23
23
  "dependencies": {
24
- "@tryghost/errors": "3.0.3",
25
- "@tryghost/kg-default-cards": "10.2.10",
26
- "@tryghost/string": "0.3.1",
24
+ "@tryghost/errors": "3.2.4",
25
+ "@tryghost/string": "0.3.5",
27
26
  "autop": "1.0.1",
28
27
  "node-fetch": "3.3.2",
29
- "sanitize-html": "2.17.3",
28
+ "sanitize-html": "2.17.5",
30
29
  "simple-dom": "1.4.0",
31
- "@tryghost/mg-utils": "0.9.0"
30
+ "@tryghost/mg-utils": "0.11.0"
32
31
  },
33
32
  "scripts": {
34
33
  "dev": "echo \"Implement me!\"",