@compilacion/colleciones-clientos 2.0.12 → 2.0.14

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.
@@ -18,7 +18,7 @@ var collecionesClientos = (function () {
18
18
  if (configObject[constants.config.sourceName] === constants.config.selfHostedValue) {
19
19
  cdn = data.trackerConfig.jsLibSource_selfHostedUrl;
20
20
  } else if (data.trackerConfig.jsLibSource === constants.config.unpkgHostedValue) {
21
- cdn = "https://unpkg.com/@compilacion/colleciones-clientos@latest/dist/browser.gtm.min.js";
21
+ cdn = "https://unpkg.com/@compilacion/colleciones-clientos@latest/dist/browser.domainModel.gtm.js";
22
22
  }
23
23
  if (cdn) {
24
24
  injectScript(cdn, () => {
@@ -1 +1 @@
1
- {"version":3,"file":"browser.domainModel.gtm.sandbox.js","sources":["../src/browser.domainModel.gtm.constants.js","../src/browser.domainModel.gtm.sandbox.js"],"sourcesContent":["var constants = {\n 'sharedWindowObjectNames': {\n 'queue': 'compilacionCollecionesClientosGtmQueue',\n 'collecionesObject': 'compilacionCollecionesClientosGtm',\n 'configVariable': 'compilacionCollecionesClientosGtmTypeCastConfig'\n },\n 'config': {\n 'sourceName': 'jsLibSource',\n 'selfHostedValue': 'SELF',\n 'unpkgHostedValue': 'UNPKG',\n 'flushInterval': 'flushInterval',\n 'flushSize': 'flushSize',\n 'trackerName': 'trackerName',\n 'appName': 'appName',\n 'emitterEndpoint': 'emitterEndpoint',\n },\n 'typeCastGtmVariableConfig': 'compilacionCollecionesClientosGtmTypeCastConfig'\n};\n\nexport default constants;","import constants from './browser.domainModel.gtm.constants.js';\n\nfunction init(configObject) { \n var config = copyFromWindow(constants.sharedWindowObjectNames.configVariable);\n if (config === undefined) {\n setInWindow(constants.sharedWindowObjectNames.configVariable, configObject);\n var cdn = false;\n if (configObject[constants.config.sourceName] === constants.config.selfHostedValue) {\n cdn = data.trackerConfig.jsLibSource_selfHostedUrl;\n } else if (data.trackerConfig.jsLibSource === constants.config.unpkgHostedValue) {\n cdn = \"https://unpkg.com/@compilacion/colleciones-clientos@latest/dist/browser.gtm.min.js\";\n }\n if (cdn) {\n injectScript(cdn, () => {\n logToConsole('Colleciones GTM library loaded from ' + cdn);\n });\n } else {\n logToConsole('self hosted URL for Colleciones GTM library not provided, and unpkg source not selected. Please check the configuration object.');\n }\n }\n var queue = createQueue(nameSpaces.sharedWindowObjectNames.queue);\n return queue;\n}\n// init(configObject).push(o);\nexport default init;\n\n\n\n"],"names":[],"mappings":";;;IAAA,IAAI,SAAS,GAAG;IAChB,IAAI,yBAAyB,EAAE;IAC/B,QAEQ,gBAAgB,EAAE;IAC1B,KAAK;IACL,IAAI,QAAQ,EAAE;IACd,QAAQ,YAAY,EAAE,aAAa;IACnC,QAAQ,iBAAiB,EAAE,MAAM;IACjC,QAAQ,kBAAkB,EAAE,OAMxB,CAEJ,CAAC;;ICfD,SAAS,IAAI,CAAC,YAAY,EAAE;IAC5B,IAAI,IAAI,MAAM,GAAG,cAAc,CAAC,SAAS,CAAC,uBAAuB,CAAC,cAAc,CAAC;IACjF,IAAI,IAAI,MAAM,KAAK,SAAS,EAAE;IAC9B,QAAQ,WAAW,CAAC,SAAS,CAAC,uBAAuB,CAAC,cAAc,EAAE,YAAY,CAAC;IACnF,QAAQ,IAAI,GAAG,GAAG,KAAK;IACvB,QAAQ,IAAI,YAAY,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,SAAS,CAAC,MAAM,CAAC,eAAe,EAAE;IAC5F,YAAY,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC,yBAAyB;IAC9D,SAAS,MAAM,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,KAAK,SAAS,CAAC,MAAM,CAAC,gBAAgB,EAAE;IACzF,YAAY,GAAG,GAAG,oFAAoF;IACtG;IACA,QAAQ,IAAI,GAAG,EAAE;IACjB,YAAY,YAAY,CAAC,GAAG,EAAE,MAAM;IACpC,gBAAgB,YAAY,CAAC,sCAAsC,GAAG,GAAG,CAAC;IAC1E,aAAa,CAAC;IACd,SAAS,MAAM;IACf,YAAY,YAAY,CAAC,iIAAiI,CAAC;IAC3J;IACA;IACA,IAAI,IAAI,KAAK,GAAG,WAAW,CAAC,UAAU,CAAC,uBAAuB,CAAC,KAAK,CAAC;IACrE,IAAI,OAAO,KAAK;IAChB;;;;;;;;"}
1
+ {"version":3,"file":"browser.domainModel.gtm.sandbox.js","sources":["../src/browser.domainModel.gtm.constants.js","../src/browser.domainModel.gtm.sandbox.js"],"sourcesContent":["var constants = {\n 'sharedWindowObjectNames': {\n 'queue': 'compilacionCollecionesClientosGtmQueue',\n 'collecionesObject': 'compilacionCollecionesClientosGtm',\n 'configVariable': 'compilacionCollecionesClientosGtmTypeCastConfig'\n },\n 'config': {\n 'sourceName': 'jsLibSource',\n 'selfHostedValue': 'SELF',\n 'unpkgHostedValue': 'UNPKG',\n 'flushInterval': 'flushInterval',\n 'flushSize': 'flushSize',\n 'trackerName': 'trackerName',\n 'appName': 'appName',\n 'emitterEndpoint': 'emitterEndpoint',\n },\n 'typeCastGtmVariableConfig': 'compilacionCollecionesClientosGtmTypeCastConfig'\n};\n\nexport default constants;","import constants from './browser.domainModel.gtm.constants.js';\n\nfunction init(configObject) { \n var config = copyFromWindow(constants.sharedWindowObjectNames.configVariable);\n if (config === undefined) {\n setInWindow(constants.sharedWindowObjectNames.configVariable, configObject);\n var cdn = false;\n if (configObject[constants.config.sourceName] === constants.config.selfHostedValue) {\n cdn = data.trackerConfig.jsLibSource_selfHostedUrl;\n } else if (data.trackerConfig.jsLibSource === constants.config.unpkgHostedValue) {\n cdn = \"https://unpkg.com/@compilacion/colleciones-clientos@latest/dist/browser.domainModel.gtm.js\";\n }\n if (cdn) {\n injectScript(cdn, () => {\n logToConsole('Colleciones GTM library loaded from ' + cdn);\n });\n } else {\n logToConsole('self hosted URL for Colleciones GTM library not provided, and unpkg source not selected. Please check the configuration object.');\n }\n }\n var queue = createQueue(nameSpaces.sharedWindowObj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
1
1
  {
2
2
  "requiredLibrary": [
3
+ "copyFromWindow",
4
+ "createQueue",
5
+ "injectScript",
3
6
  "logToConsole",
4
- "createQueue"
7
+ "setInWindow"
5
8
  ]
6
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilacion/colleciones-clientos",
3
- "version": "2.0.12",
3
+ "version": "2.0.14",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "exports": {