🐛 Fixed converter bug that stopped some snippets being migrated for the editor beta

no issue

- if the converted mobiledoc started with a card and contained any text content we would hit a "can not read .length of undefined" error which could prevent snippets from being migrated when opening the beta editor and result in copy/paste from old editor to new not working
- bumped `@tryghost/kg-converters` to a fixed version
This commit is contained in:
Kevin Ansfield 2023-06-07 18:48:19 +01:00
parent 85896287e3
commit 0c24c009d2
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -45,7 +45,7 @@
"@tryghost/ember-promise-modals": "2.0.1",
"@tryghost/helpers": "1.1.77",
"@tryghost/kg-clean-basic-html": "3.0.17",
"@tryghost/kg-converters": "0.0.6",
"@tryghost/kg-converters": "0.0.7",
"@tryghost/kg-parser-plugins": "3.0.18",
"@tryghost/kg-simplemde": "1.11.2",
"@tryghost/limit-service": "1.2.6",

View File

@ -6877,10 +6877,10 @@
resolved "https://registry.yarnpkg.com/@tryghost/kg-clean-basic-html/-/kg-clean-basic-html-3.0.17.tgz#7b3ac455f739c550346c79b0dfdf67bc67d18977"
integrity sha512-Mr/7dQILSzP5ggxkGNAfbAyNUOWpqJ8AuhY6EwwC8xvFwVPM9QKdRtC+ZumstOWaClnWxikxumLsZbX3LjRhCw==
"@tryghost/kg-converters@0.0.6":
version "0.0.6"
resolved "https://registry.yarnpkg.com/@tryghost/kg-converters/-/kg-converters-0.0.6.tgz#44e96c1907b9dc59ead2f5ea42ce612f3ded1a2d"
integrity sha512-Q/wm7PKl+G2PG+Sfw1NaVOMebfI/zrYnB3FH3W4GSF4JsyanmBGhfL09k2zIN4VQpP5LOxOhAII7g26jwWiBPg==
"@tryghost/kg-converters@0.0.7":
version "0.0.7"
resolved "https://registry.yarnpkg.com/@tryghost/kg-converters/-/kg-converters-0.0.7.tgz#22ddd4166d1603ffaa28173ec9ad781a430423a2"
integrity sha512-mIFbfcK7PpSpZk52d67yJ3PsuQhsBq5XSDGO9hAOFWluGBIqtViDcvCOnk/XaN4nHbq/rRtklt2bxYBAUmsu2g==
dependencies:
lodash "^4.17.21"