@griddo/cx 10.2.3 → 10.2.5
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/build/index.js +1 -1
- package/package.json +3 -3
- package/src/services/store.ts +0 -5
- package/src/services/integrations.ts +0 -37
package/build/index.js
CHANGED
|
@@ -25,7 +25,7 @@ GFS4: `),console.error(e)});z[Z]||(ws=global[Z]||[],xs(z,ws),z.close=function(e)
|
|
|
25
25
|
\u2502 Access credentials failure \u2502
|
|
26
26
|
\u2502 Check that the login details are correct in your .env file \u2502
|
|
27
27
|
\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F
|
|
28
|
-
`)),process.exit(1)}}},Ar=new Kn;var el=K(Yn()),tl=K(gt()),rl=K(Gt());var yp=K(gt()),Vu=K(Gt()),gp=K(gn()),Yu=K(Wu());var Ju="10.2.
|
|
28
|
+
`)),process.exit(1)}}},Ar=new Kn;var el=K(Yn()),tl=K(gt()),rl=K(Gt());var yp=K(gt()),Vu=K(Gt()),gp=K(gn()),Yu=K(Wu());var Ju="10.2.5";Vu.default.config();var vp=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS);function Ku(e){let t=e.length,r=e.length+2,n=" ".repeat(Math.floor((r-t)/2)),i=`\u256D${"\u2500".repeat(r)}\u256E
|
|
29
29
|
`,s=`
|
|
30
30
|
\u2570${"\u2500".repeat(r)}\u256F`,o=`\u2502${n}${e}${n}\u2502`;console.log(`${i}${o}${s}`)}function fi(e){vp&&console.info(e.replace(/(\s)\s+/g,"$1"))}function Xu(e){return new Promise(t=>setTimeout(t,e))}function Dr(e,t=3){return(e/1e3).toFixed(t)}function hi(e){return"site"in e&&e.site?e?.site:void 0}function di(...e){let t=performance.now();return e.forEach(r=>r()),Dr(performance.now()-t)}function Qu(){let e=`
|
|
31
31
|
\xB7\xB7
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/cx",
|
|
3
3
|
"description": "Griddo SSG based on Gatsby",
|
|
4
|
-
"version": "10.2.
|
|
4
|
+
"version": "10.2.5",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"react-helmet": "^6.0.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@griddo/eslint-config-back": "^10.2.
|
|
71
|
+
"@griddo/eslint-config-back": "^10.2.5",
|
|
72
72
|
"@types/babel__core": "^7.20.0",
|
|
73
73
|
"@types/babel__preset-env": "^7.9.2",
|
|
74
74
|
"@types/csvtojson": "^2.0.0",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"publishConfig": {
|
|
117
117
|
"access": "public"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "d81fc9ca21d4e56b2b6c155447055110ce4c7540"
|
|
120
120
|
}
|
package/src/services/store.ts
CHANGED
|
@@ -17,7 +17,6 @@ import fsx from "fs-extra";
|
|
|
17
17
|
import pLimit from "p-limit";
|
|
18
18
|
|
|
19
19
|
import { DistributorService } from "./distributors";
|
|
20
|
-
import { IntegrationsService } from "./integrations";
|
|
21
20
|
import { NavigationService } from "./navigation";
|
|
22
21
|
import { RobotsService } from "./robots";
|
|
23
22
|
import { SettingsService } from "./settings";
|
|
@@ -244,10 +243,6 @@ class StoreService {
|
|
|
244
243
|
cacheKey: RENDER_ID,
|
|
245
244
|
});
|
|
246
245
|
|
|
247
|
-
page.integrations = await IntegrationsService.getPageIntegrations(
|
|
248
|
-
pageId
|
|
249
|
-
);
|
|
250
|
-
|
|
251
246
|
// MultiPage Query
|
|
252
247
|
// Where the pair `hasGriddoMultiPage:true` prop exists, this function
|
|
253
248
|
// will process the schema and return a multiPageElemtens array to use
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { Core } from "@griddo/core";
|
|
2
|
-
|
|
3
|
-
import { get } from "../utils/api";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Integrations Service
|
|
7
|
-
*/
|
|
8
|
-
class IntegrationsService {
|
|
9
|
-
private baseURL?: string;
|
|
10
|
-
private ENDPOINTS: { pageIntegrations: string[] };
|
|
11
|
-
|
|
12
|
-
constructor() {
|
|
13
|
-
this.baseURL = process.env.API_URL;
|
|
14
|
-
this.ENDPOINTS = {
|
|
15
|
-
pageIntegrations: [`${this.baseURL}/page/`, `/integrations`],
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Get settings for a full domain render.
|
|
21
|
-
*/
|
|
22
|
-
async getPageIntegrations(pageId: number) {
|
|
23
|
-
const {
|
|
24
|
-
pageIntegrations: [prefix, suffix],
|
|
25
|
-
} = this.ENDPOINTS;
|
|
26
|
-
|
|
27
|
-
const response = await get<Core.PageIntegration[]>({
|
|
28
|
-
endpoint: `${prefix}${pageId}${suffix}`,
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
return response;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
const integrationsService = new IntegrationsService();
|
|
36
|
-
|
|
37
|
-
export { integrationsService as IntegrationsService };
|