@tryghost/mg-substack 0.6.5 → 0.6.6

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/read-zip.js +4 -4
  2. package/package.json +3 -3
package/lib/read-zip.js CHANGED
@@ -26,16 +26,16 @@ export default (zipPath) => {
26
26
  // - 5678.another-slug.html
27
27
 
28
28
  fsUtils.zip.read(zipPath, (entryName, zipEntry) => {
29
- // Catch all HTML files inside `profile/`
30
- if (/^posts\/.*\.html$/.test(entryName)) {
29
+ // Catch all HTML files inside `post/`
30
+ if (/^posts\/.*\.html$/.test(entryName) || /\/posts\/.*\.html$/.test(entryName)) {
31
31
  debug(`Found post HTML file ${entryName}`);
32
32
  content.posts.push({
33
33
  name: entryName.replace('posts/', ''),
34
34
  html: zipEntry.getData().toString('utf8')
35
35
  });
36
36
 
37
- // Skip if not matched above
38
- } else if (entryName === 'posts.csv') {
37
+ // Get the posts.csv
38
+ } else if (entryName === 'posts.csv' || entryName.endsWith('/posts.csv')) {
39
39
  debug(`Found posts CSV file ${entryName}`);
40
40
  content.csv = zipEntry.getData().toString('utf8');
41
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-substack",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-substack",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -25,7 +25,7 @@
25
25
  "jest-extended": "4.0.2"
26
26
  },
27
27
  "dependencies": {
28
- "@tryghost/debug": "0.1.32",
28
+ "@tryghost/debug": "0.1.33",
29
29
  "@tryghost/errors": "1.3.5",
30
30
  "@tryghost/kg-default-cards": "10.0.9",
31
31
  "@tryghost/mg-fs-utils": "0.15.0",
@@ -37,5 +37,5 @@
37
37
  "simple-dom": "1.4.0",
38
38
  "srcset": "5.0.1"
39
39
  },
40
- "gitHead": "c1d13ccea270adcaf60dfc9d1e371ef25dfad31e"
40
+ "gitHead": "9994cb30b1c2c72b2c66ab5b532a0fa7dcedec3c"
41
41
  }