@tryghost/mg-json 0.11.2 → 0.11.4

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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2013-2023 Ghost Foundation
3
+ Copyright (c) 2013-2025 Ghost Foundation
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -36,4 +36,4 @@ Follow the instructions for the top-level repo.
36
36
 
37
37
  # Copyright & License
38
38
 
39
- Copyright (c) 2013-2023 Ghost Foundation - Released under the [MIT license](LICENSE).
39
+ Copyright (c) 2013-2025 Ghost Foundation - Released under the [MIT license](LICENSE).
@@ -15,7 +15,6 @@ import Entities from 'html-entities';
15
15
  * - a name
16
16
  * - an email address
17
17
  */
18
-
19
18
  const fakeName = 'Example User';
20
19
  const fakeEmailDomain = `example.com`;
21
20
  const fakeEmail = (nameSlug, domain) => `${nameSlug}@${domain}`;
@@ -36,7 +35,7 @@ const hydrateUser = (input, options) => {
36
35
 
37
36
  // Handle the case where there is no email by generating one based on slug or name
38
37
  if (!input.email) {
39
- input.email = fakeEmail(input.slug || _.kebabCase(input.name), options.email || fakeEmailDomain);
38
+ input.email = fakeEmail(input.slug || _.kebabCase(input.name), options?.email || fakeEmailDomain);
40
39
  }
41
40
 
42
41
  // @TODO: log some sort of warning for things like this?
@@ -8,6 +8,7 @@ export default (json, ctx = null) => {
8
8
 
9
9
  // String length data from https://github.com/TryGhost/Ghost/blob/main/ghost/core/core/server/data/schema/schema.js
10
10
  let properties = {
11
+ title: 255,
11
12
  slug: 191,
12
13
  custom_excerpt: 300,
13
14
  og_title: 300,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-json",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-json",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -30,5 +30,5 @@
30
30
  "html-entities": "2.5.2",
31
31
  "lodash": "4.17.21"
32
32
  },
33
- "gitHead": "f824cede3d1123defe3e4575536dd579984f7fe2"
33
+ "gitHead": "fd2fdb1542c90de5caac0feaa76e8ea599ef202f"
34
34
  }