gatsby-attainlabs-cms 1.0.18 → 1.0.19

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.
@@ -4,7 +4,7 @@ import { CMS_COMPONENTS } from "./map";
4
4
  export default function SliceWrapper({ sliceContext, data, }) {
5
5
  const { componentPath, ...props } = sliceContext;
6
6
  const pathFormatted = componentPath
7
- .replace("src/cms/components//", "")
7
+ .replace("src/cms/components/", "")
8
8
  .replace(/^.\//, "")
9
9
  .replace(/\.tsx$/, "");
10
10
  const Component = CMS_COMPONENTS[pathFormatted];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-attainlabs-cms",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@ export default function SliceWrapper({
18
18
  }: SliceWrapperProps) {
19
19
  const { componentPath, ...props } = sliceContext;
20
20
  const pathFormatted = componentPath
21
- .replace("src/cms/components//", "")
21
+ .replace("src/cms/components/", "")
22
22
  .replace(/^.\//, "")
23
23
  .replace(/\.tsx$/, "");
24
24
  const Component = CMS_COMPONENTS[pathFormatted];