@tryghost/mg-blogger 0.1.27 → 0.1.28

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/fetch.js +3 -0
  2. package/package.json +3 -3
package/lib/fetch.js CHANGED
@@ -14,6 +14,9 @@ const getSiteContent = async (apiKey, blogID, type = 'posts') => {
14
14
  key: apiKey
15
15
  });
16
16
 
17
+ // Wait fot 500ms to prevent rate limiting
18
+ await new Promise(resolve => setTimeout(resolve, 500)); // eslint-disable-line no-promise-executor-return
19
+
17
20
  if (pageToken) {
18
21
  searchParams.set('pageToken', pageToken);
19
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-blogger",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-blogger",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -25,12 +25,12 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@tryghost/errors": "1.3.8",
28
- "@tryghost/kg-default-cards": "10.1.5",
28
+ "@tryghost/kg-default-cards": "10.2.0",
29
29
  "autop": "1.0.1",
30
30
  "cheerio": "1.0.0-rc.12",
31
31
  "node-fetch": "^3.3.1",
32
32
  "sanitize-html": "2.17.0",
33
33
  "simple-dom": "1.4.0"
34
34
  },
35
- "gitHead": "614571603585add8915fc853d0081208c2382a44"
35
+ "gitHead": "93b72e5f4374d9f097876b71e78fdc920af364ff"
36
36
  }