@compilacion/colleciones-clientos 2.0.13 → 2.0.15

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.
@@ -3,6 +3,7 @@ var collecionesClientos = (function () {
3
3
 
4
4
  var constants = {
5
5
  'sharedWindowObjectNames': {
6
+ 'queue': 'compilacionCollecionesClientosGtmQueue',
6
7
  'configVariable': 'compilacionCollecionesClientosGtmTypeCastConfig'
7
8
  },
8
9
  'config': {
@@ -18,7 +19,7 @@ var collecionesClientos = (function () {
18
19
  if (configObject[constants.config.sourceName] === constants.config.selfHostedValue) {
19
20
  cdn = data.trackerConfig.jsLibSource_selfHostedUrl;
20
21
  } else if (data.trackerConfig.jsLibSource === constants.config.unpkgHostedValue) {
21
- cdn = "https://unpkg.com/@compilacion/colleciones-clientos@latest/dist/browser.gtm.min.js";
22
+ cdn = "https://unpkg.com/@compilacion/colleciones-clientos@latest/dist/browser.domainModel.gtm.js";
22
23
  }
23
24
  if (cdn) {
24
25
  injectScript(cdn, () => {
@@ -28,7 +29,7 @@ var collecionesClientos = (function () {
28
29
  logToConsole('self hosted URL for Colleciones GTM library not provided, and unpkg source not selected. Please check the configuration object.');
29
30
  }
30
31
  }
31
- var queue = createQueue(nameSpaces.sharedWindowObjectNames.queue);
32
+ var queue = createQueue(constants.sharedWindowObjectNames.queue);
32
33
  return queue;
33
34
  }
34
35
 
@@ -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(constants.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,QAAQ,OAAO,EAAE,wCAAwC;IACzD,QACQ,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,4FAA4F;IAC9G;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,SAAS,CAAC,uBAAuB,CAAC,KAAK,CAAC;IACpE,IAAI,OAAO,KAAK;IAChB;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilacion/colleciones-clientos",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "exports": {