@tryghost/mg-substack 0.6.0 → 0.6.1

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 +5 -2
  2. package/package.json +5 -5
package/lib/process.js CHANGED
@@ -36,7 +36,9 @@ const readFiles = async (files, postsDir) => {
36
36
  };
37
37
 
38
38
  const largeImageUrl = (src) => {
39
- return src.replace(/w_[0-9]{2,5},h_[0-9]{2,5}/, 'w_2000,h_2000');
39
+ src = src.replace(/w_[0-9]{2,5},h_[0-9]{2,5}/, 'w_2000,h_2000');
40
+ src = src.replace(',c_fill,', ',');
41
+ return src;
40
42
  };
41
43
 
42
44
  const getUnsizedImageName = (str) => {
@@ -722,5 +724,6 @@ export default async (input, ctx) => {
722
724
 
723
725
  export {
724
726
  processContent,
725
- getImageDimensions
727
+ getImageDimensions,
728
+ largeImageUrl
726
729
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-substack",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-substack",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@tryghost/debug": "0.1.27",
29
- "@tryghost/errors": "1.3.0",
30
- "@tryghost/kg-default-cards": "10.0.2",
31
- "@tryghost/mg-fs-utils": "^0.13.1",
29
+ "@tryghost/errors": "1.3.1",
30
+ "@tryghost/kg-default-cards": "10.0.3",
31
+ "@tryghost/mg-fs-utils": "^0.13.2",
32
32
  "@tryghost/string": "0.2.11",
33
33
  "cheerio": "1.0.0-rc.12",
34
34
  "date-fns": "2.30.0",
@@ -38,5 +38,5 @@
38
38
  "simple-dom": "1.4.0",
39
39
  "srcset": "5.0.1"
40
40
  },
41
- "gitHead": "11cc97db15efc3e19af16253cd53694cf72aa55d"
41
+ "gitHead": "6d66ced5547ace4095b32d0662b158b119a44fa9"
42
42
  }