@tryghost/mg-substack 0.4.0 → 0.4.2

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 +3 -3
package/lib/process.js CHANGED
@@ -102,11 +102,11 @@ const processContent = (post, siteUrl, options) => {
102
102
  const prependString = 'https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/';
103
103
 
104
104
  if (href) {
105
- $(el).attr('href', `${prependString}${href.replace($(el).attr('href'), encodeURI(href))}`);
105
+ $(el).attr('href', `${prependString}${encodeURI(href)}`);
106
106
  }
107
107
 
108
108
  if (src) {
109
- $(el).attr('src', `${prependString}${src.replace($(el).attr('src'), encodeURI(src))}`);
109
+ $(el).attr('src', `${prependString}${encodeURI(src)}`);
110
110
  }
111
111
  });
112
112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-substack",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-substack",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  "@tryghost/debug": "0.1.27",
29
29
  "@tryghost/errors": "1.3.0",
30
30
  "@tryghost/kg-default-cards": "9.1.9",
31
- "@tryghost/mg-fs-utils": "^0.12.22",
31
+ "@tryghost/mg-fs-utils": "^0.13.0",
32
32
  "@tryghost/string": "0.2.11",
33
33
  "cheerio": "1.0.0-rc.12",
34
34
  "date-fns": "2.30.0",
@@ -37,5 +37,5 @@
37
37
  "simple-dom": "1.4.0",
38
38
  "srcset": "5.0.0"
39
39
  },
40
- "gitHead": "eff0d7d7ba1a0ce1d89dd15a0671b23ea4ef9307"
40
+ "gitHead": "1e250c8bacc23b674d5e9c42e2529bf07ff0aba0"
41
41
  }