@griddo/cx 11.10.4-rc.3 → 11.10.4

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
@@ -345,112 +345,6 @@ var SEARCH = `${GRIDDO_API_URL2}/search`;
345
345
  var SETTINGS = `${GRIDDO_API_URL2}/settings`;
346
346
  var SITE_URI = `${GRIDDO_API_URL2}/site/`;
347
347
 
348
- // package.json
349
- var package_default = {
350
- name: "@griddo/cx",
351
- description: "Griddo SSG based on Gatsby",
352
- version: "11.10.4-rc.3",
353
- authors: [
354
- "Hisco <francis.vega@griddo.io>"
355
- ],
356
- license: "UNLICENSED",
357
- homepage: "https://griddo.io",
358
- repository: {
359
- type: "git",
360
- url: "https://github.com/griddo/griddo"
361
- },
362
- bin: {
363
- "griddo-render": "cli.mjs"
364
- },
365
- exports: {
366
- ".": {
367
- import: "./build/index.js",
368
- require: "./build/index.js",
369
- types: "./build/index.d.ts"
370
- },
371
- "./react": {
372
- import: "./build/react/index.js",
373
- require: "./build/react/index.js",
374
- types: "./build/react/index.d.ts"
375
- }
376
- },
377
- scripts: {
378
- "// NPM": "",
379
- prepare: "yarn run build",
380
- "// BUILD": "",
381
- build: "rm -rf build && sh ./exporter/build.sh",
382
- "build:debug": "rm -rf build && sh ./exporter/build.sh --debug",
383
- "// TESTS": "",
384
- test: "npm run test:compile && npm run test:create-render-fixtures && node --env-file=.env --test ./build/__tests__/* && npm run test:remove-render-fixtures",
385
- "test-exporter": "npm run test:compile && node --env-file=.env --test ./build/__tests__exporter__/",
386
- "test:create-render-fixtures": "node --env-file=.env ./build/__tests__/utils/create-fixtures",
387
- "test:remove-render-fixtures": "node --env-file=.env ./build/__tests__/utils/remove-fixtures",
388
- "test:compile": "tsgo --project tsconfig.tests.json",
389
- "// INFRA SCRIPTS": "",
390
- "prepare-domains-render": "node ./build/commands/prepare-domains-render",
391
- "start-render": "node ./build/commands/start-render",
392
- "end-render": "node ./build/commands/end-render",
393
- "upload-search-content": "node ./build/commands/upload-search-content",
394
- "reset-render": "node ./build/commands/reset-render",
395
- "// ONLY LOCAL SCRIPTS": "",
396
- "prepare-assets-directory": "node ./build/commands/prepare-assets-directory",
397
- "create-rollback-copy": "rm -rf ../../exports-backup && cp -r ../../exports ../../exports-backup",
398
- render: "npm run build && node --env-file=.env cli.mjs render --root=../..",
399
- "// LINTER & FORMATTER": "",
400
- lint: "biome check --write",
401
- format: "biome format --write",
402
- flint: "npm run lint && npm run format",
403
- "ts-lint": "tsgo --noEmit",
404
- "watch:ts-lint": "tsc --noEmit --watch"
405
- },
406
- dependencies: {
407
- gatsby: "5.15.0"
408
- },
409
- devDependencies: {
410
- "@biomejs/biome": "2.3.4",
411
- "@types/node": "20.19.4",
412
- "@typescript/native-preview": "latest",
413
- cheerio: "1.1.2",
414
- esbuild: "0.25.12",
415
- "p-limit": "7.2.0",
416
- typescript: "5.9.3"
417
- },
418
- peerDependencies: {
419
- "@griddo/core": "11.9.16",
420
- react: ">=18 <19",
421
- "react-dom": ">=18 <19"
422
- },
423
- engines: {
424
- node: ">=20.19"
425
- },
426
- files: [
427
- "build",
428
- "exporter",
429
- "src",
430
- "gatsby-browser.tsx",
431
- "gatsby-config.ts",
432
- "gatsby-node.ts",
433
- "gatsby-ssr.tsx",
434
- "global.d.ts",
435
- "tsconfig.commands.json",
436
- "tsconfig.exporter.json",
437
- "tsconfig.json",
438
- "plugins",
439
- "cli.mjs"
440
- ],
441
- publishConfig: {
442
- access: "public"
443
- },
444
- gitHead: "bcd57d7f4aeeb8a1d939c464fd44ac26a5393103"
445
- };
446
-
447
- // exporter/shared/headers.ts
448
- var DEFAULT_HEADERS = {
449
- "x-application-id": "griddo-cx",
450
- "x-client-version": package_default.version,
451
- "x-client-name": "CX"
452
- };
453
-
454
348
  // exporter/services/auth.ts
455
349
  var AuthService = class {
456
350
  headers;
@@ -458,10 +352,7 @@ var AuthService = class {
458
352
  try {
459
353
  const response = await fetch(LOGIN, {
460
354
  method: "POST",
461
- headers: Object.assign({}, DEFAULT_HEADERS, {
462
- "Content-Type": "application/json",
463
- Connection: "close"
464
- }),
355
+ headers: { "Content-Type": "application/json", Connection: "close" },
465
356
  body: JSON.stringify({
466
357
  username: GRIDDO_BOT_USER,
467
358
  password: GRIDDO_BOT_PASSWORD
@@ -23,5 +23,4 @@ declare function composeAnalytics(siteScriptRaw?: string, dimensions?: Dimension
23
23
  analyticsScript: string;
24
24
  analyticsDimensions: string | null;
25
25
  };
26
- declare function extractScriptContent(rawInput?: unknown): string | null;
27
- export { composeAnalytics, extractScriptContent, filterBodyIntegrationFromPosition, filterHeadIntegrations, filterPositionIntegrations, };
26
+ export { composeAnalytics, filterBodyIntegrationFromPosition, filterHeadIntegrations, filterPositionIntegrations, };