@tryghost/mg-substack 1.1.0 → 1.2.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 +4 -3
  2. package/package.json +3 -4
package/lib/process.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {promises as fs} from 'node:fs';
2
2
  import {join, basename} from 'node:path';
3
3
  import url from 'node:url';
4
- import {domUtils} from '@tryghost/mg-utils';
4
+ import {domUtils, stringUtils} from '@tryghost/mg-utils';
5
5
  import errors from '@tryghost/errors';
6
6
  import SimpleDom from 'simple-dom';
7
7
  import imageCard from '@tryghost/kg-default-cards/lib/cards/image.js';
@@ -13,10 +13,11 @@ import {decode} from 'html-entities';
13
13
  import {parseSrcset} from 'srcset';
14
14
  import {_base as debugFactory} from '@tryghost/debug';
15
15
  import {slugify} from '@tryghost/string';
16
- import _ from 'lodash';
17
16
 
18
17
  const {parseFragment, serializeChildren, replaceWith, insertBefore, insertAfter, attr, parents} = domUtils;
19
18
 
19
+ const {startCase} = stringUtils;
20
+
20
21
  const serializer = new SimpleDom.HTMLSerializer(SimpleDom.voidMap);
21
22
  const debug = debugFactory('migrate:substack:process');
22
23
 
@@ -784,7 +785,7 @@ const processPost = (post, siteUrl, options) => {
784
785
  url: `${siteUrl}/tag/${typeSlugSlugify}`,
785
786
  data: {
786
787
  slug: typeSlugSlugify,
787
- name: _.startCase(typeSlug)
788
+ name: startCase(typeSlug)
788
789
  }
789
790
  });
790
791
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-substack",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/TryGhost/migrate.git",
@@ -27,11 +27,10 @@
27
27
  "@tryghost/string": "0.3.1",
28
28
  "he": "1.2.0",
29
29
  "html-entities": "2.6.0",
30
- "lodash": "4.18.1",
31
30
  "simple-dom": "1.4.0",
32
31
  "srcset": "5.0.3",
33
- "@tryghost/mg-fs-utils": "0.21.0",
34
- "@tryghost/mg-utils": "0.6.0"
32
+ "@tryghost/mg-utils": "0.7.0",
33
+ "@tryghost/mg-fs-utils": "0.22.0"
35
34
  },
36
35
  "scripts": {
37
36
  "dev": "echo \"Implement me!\"",