@content-island/gatsby-source-plugin 0.6.0 → 0.7.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/dist/index.js +5 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -9,9 +9,9 @@ const l = {
9
9
  level: "ERROR",
10
10
  category: "THIRD_PARTY"
11
11
  }
12
- }, E = "ContentIsland", g = {
12
+ }, E = "ContentIsland", w = {
13
13
  markdown: "text/markdown"
14
- }, w = (e, t) => e.isArray ? {
14
+ }, g = (e, t) => e.isArray ? {
15
15
  name: e.name,
16
16
  gatsbyNodeType: t,
17
17
  values: e.value,
@@ -21,7 +21,7 @@ const l = {
21
21
  gatsbyNodeType: t,
22
22
  value: e.value,
23
23
  isArray: e.isArray
24
- }, i = (e, t, o) => Array.isArray(e) ? e.filter((n) => n.type === o).map((n) => w(n, t)) : [], c = (e, t, o) => {
24
+ }, i = (e, t, o) => Array.isArray(e) ? e.filter((n) => n.type === o).map((n) => g(n, t)) : [], c = (e, t, o) => {
25
25
  const n = `${E}${e.contentType.name}`, s = t ? e.fields.filter((y) => y.language === o) : e.fields, { id: a, ...f } = C.mapContentToModel({ ...e, fields: s });
26
26
  return {
27
27
  gatsbyNodeType: n,
@@ -47,7 +47,7 @@ const m = async (e) => {
47
47
  if (r.length === 0) {
48
48
  const t = u(e), o = await $(t);
49
49
  for (const n of o) {
50
- const s = await t.getContentList({ contentType: n.name });
50
+ const s = await t.getRawContentList({ contentType: n.name });
51
51
  r = [...r, ...F(s)];
52
52
  }
53
53
  }
@@ -105,7 +105,7 @@ const m = async (e) => {
105
105
  internal: {
106
106
  type: p(t),
107
107
  // mediaType will allow remark plugin to transform plain text into markdown node
108
- mediaType: g.markdown,
108
+ mediaType: w.markdown,
109
109
  content: t.value,
110
110
  contentDigest: e.createContentDigest(t.value)
111
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@content-island/gatsby-source-plugin",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Content Island - B2B Gatsby Source Plugin",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -30,7 +30,7 @@
30
30
  "build:dev": "vite build --mode development"
31
31
  },
32
32
  "dependencies": {
33
- "@content-island/api-client": "^0.7.0"
33
+ "@content-island/api-client": "^0.8.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "gatsby": "^5.14.1",