@griddo/cx 1.75.205 → 1.75.206

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 CHANGED
@@ -25,7 +25,7 @@ GFS4: `),console.error(e)});G[Q]||(ea=global[Q]||[],ra(G,ea),G.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)}}},hr=new On;var Yu=Y(Rn()),Xu=Y(mt()),Ku=Y(Gt());var fp=Y(mt()),Uu=Y(Gt()),hp=Y(eu()),Gu=Y($u());var Hu="1.75.205";Uu.default.config();var dp=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS);function zu(...e){dp&&console.info(...e)}function Wu(e){return new Promise(t=>setTimeout(t,e))}function ai(e,t=3){return(e/1e3).toFixed(t)}function Ju(e){return"site"in e&&e.site?e?.site:void 0}function ci(...e){let t=performance.now();return e.forEach(r=>r()),ai(performance.now()-t)}function Vu(){let e=`
28
+ `)),process.exit(1)}}},hr=new On;var Yu=Y(Rn()),Xu=Y(mt()),Ku=Y(Gt());var fp=Y(mt()),Uu=Y(Gt()),hp=Y(eu()),Gu=Y($u());var Hu="1.75.206";Uu.default.config();var dp=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS);function zu(...e){dp&&console.info(...e)}function Wu(e){return new Promise(t=>setTimeout(t,e))}function ai(e,t=3){return(e/1e3).toFixed(t)}function Ju(e){return"site"in e&&e.site?e?.site:void 0}function ci(...e){let t=performance.now();return e.forEach(r=>r()),ai(performance.now()-t)}function Vu(){let e=`
29
29
  \xB7\xB7
30
30
  \xB7\xB7
31
31
  \xB7\xB7
package/gatsby-node.ts CHANGED
@@ -15,14 +15,13 @@ import { generateBuildReport, generateSitemaps } from "./src/utils/sites";
15
15
  dotenv.config();
16
16
 
17
17
  // Envs
18
- const GRIDDO_STORE_MODE = (process.env.GRIDDO_STORE_MODE ||
19
- "file") as StoreMode;
18
+ const GRIDDO_STORE_MODE = "memory"; // (process.env.GRIDDO_STORE_MODE || "file") as StoreMode;
20
19
 
21
20
  // Consts
22
21
  const PUBLIC_FOLDER = path.resolve(__dirname, "./public");
23
22
  const STORE_DIR_PATH = path.resolve(__dirname, "./.store/");
24
23
  const REPORT_FILE = path.resolve(PUBLIC_FOLDER, "__build-report__.json");
25
- const GRIDDO_SANITIZE_PAGES = true;
24
+ const GRIDDO_SANITIZE_PAGES = false;
26
25
  const envVars: Record<string, any> = {};
27
26
 
28
27
  // -----------------------------------------------------------------------------
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": "1.75.205",
4
+ "version": "1.75.206",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -33,7 +33,7 @@
33
33
  "@babel/preset-env": "^7.14.5",
34
34
  "@babel/preset-react": "^7.14.5",
35
35
  "@babel/preset-typescript": "^7.16.5",
36
- "@griddo/core": "^1.75.205",
36
+ "@griddo/core": "^1.75.206",
37
37
  "@svgr/webpack": "^5.5.0",
38
38
  "babel-loader": "^8.0.6",
39
39
  "babel-plugin-styled-components": "^1.10.7",
@@ -63,7 +63,7 @@
63
63
  "react-helmet": "^6.0.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@griddo/eslint-config-back": "^1.75.205",
66
+ "@griddo/eslint-config-back": "^1.75.206",
67
67
  "@types/babel__core": "^7.20.0",
68
68
  "@types/babel__preset-env": "^7.9.2",
69
69
  "@types/csvtojson": "^2.0.0",
@@ -111,5 +111,5 @@
111
111
  "publishConfig": {
112
112
  "access": "public"
113
113
  },
114
- "gitHead": "86c09d10a30ddc3ac1140d9678444a51932044f0"
114
+ "gitHead": "f87244a71fdcac372930a4ec62bcf8a987a14288"
115
115
  }
@@ -40,8 +40,9 @@ function generateFilenameWithHash(petition: Petition) {
40
40
  * @param data A string to create a sha256 based on.
41
41
  */
42
42
  function createSha256(data: string) {
43
+ const uniqueString = crypto.randomBytes(16).toString("hex");
43
44
  const hash = crypto.createHash("sha256");
44
- hash.update(data);
45
+ hash.update(`${data}${uniqueString}`);
45
46
 
46
47
  return hash.digest("hex");
47
48
  }