@tryghost/mg-linkfixer 0.16.7 → 0.16.8-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/LinkFixer.js +3 -0
  2. package/package.json +4 -4
package/lib/LinkFixer.js CHANGED
@@ -218,6 +218,9 @@ export default class LinkFixer {
218
218
  }
219
219
 
220
220
  for (const field of lexicalFields) {
221
+ if (post.schema?.shape && !(field in post.schema.shape)) {
222
+ continue;
223
+ }
221
224
  const value = post.get(field);
222
225
  if (!value) {
223
226
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-linkfixer",
3
- "version": "0.16.7",
3
+ "version": "0.16.8-0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/TryGhost/migrate.git",
@@ -18,11 +18,11 @@
18
18
  "access": "public"
19
19
  },
20
20
  "devDependencies": {
21
- "@tryghost/listr-smart-renderer": "0.15.7",
22
- "@tryghost/mg-json": "0.22.7"
21
+ "@tryghost/listr-smart-renderer": "0.15.8-0",
22
+ "@tryghost/mg-json": "0.22.8-0"
23
23
  },
24
24
  "dependencies": {
25
- "@tryghost/mg-utils": "0.11.7",
25
+ "@tryghost/mg-utils": "0.11.8-0",
26
26
  "escape-string-regexp": "5.0.0"
27
27
  },
28
28
  "scripts": {