@adobe/alloy 2.20.0-beta.0 → 2.20.0-beta.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.
Files changed (450) hide show
  1. package/libEs5/components/ActivityCollector/attachClickActivityCollector.js +2 -2
  2. package/libEs5/components/ActivityCollector/configValidators.js +5 -5
  3. package/libEs5/components/ActivityCollector/getLinkName.js +1 -1
  4. package/libEs5/components/ActivityCollector/getLinkRegion.js +3 -3
  5. package/libEs5/components/ActivityCollector/index.js +7 -7
  6. package/libEs5/components/Audiences/index.js +5 -5
  7. package/libEs5/components/Audiences/injectProcessDestinations.js +2 -2
  8. package/libEs5/components/Context/createComponent.js +2 -2
  9. package/libEs5/components/Context/implementationDetails.js +4 -4
  10. package/libEs5/components/Context/index.js +11 -11
  11. package/libEs5/components/Context/injectDevice.js +5 -5
  12. package/libEs5/components/Context/injectEnvironment.js +4 -4
  13. package/libEs5/components/Context/injectHighEntropyUserAgentHints.js +5 -5
  14. package/libEs5/components/Context/injectPlaceContext.js +4 -4
  15. package/libEs5/components/Context/injectTimestamp.js +2 -2
  16. package/libEs5/components/Context/injectWeb.js +2 -2
  17. package/libEs5/components/DataCollector/index.js +5 -5
  18. package/libEs5/components/DataCollector/validateApplyResponse.js +11 -11
  19. package/libEs5/components/DataCollector/validateUserEventOptions.js +22 -22
  20. package/libEs5/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +2 -2
  21. package/libEs5/components/DecisioningEngine/createConsequenceAdapter.js +2 -2
  22. package/libEs5/components/DecisioningEngine/createContextProvider.js +4 -4
  23. package/libEs5/components/DecisioningEngine/createDecisionHistory.js +1 -1
  24. package/libEs5/components/DecisioningEngine/createDecisionProvider.js +3 -3
  25. package/libEs5/components/DecisioningEngine/createEvaluableRulesetPayload.js +5 -5
  26. package/libEs5/components/DecisioningEngine/createEvaluateRulesetsCommand.js +5 -5
  27. package/libEs5/components/DecisioningEngine/createEventRegistry.js +3 -3
  28. package/libEs5/components/DecisioningEngine/createOnResponseHandler.js +2 -2
  29. package/libEs5/components/DecisioningEngine/createSubscribeRulesetItems.js +9 -9
  30. package/libEs5/components/DecisioningEngine/index.js +18 -18
  31. package/libEs5/components/EventMerge/createEventMergeId.js +2 -2
  32. package/libEs5/components/EventMerge/index.js +2 -2
  33. package/libEs5/components/Identity/addEcidQueryToPayload.js +1 -1
  34. package/libEs5/components/Identity/addEcidToPayload.js +1 -1
  35. package/libEs5/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +5 -5
  36. package/libEs5/components/Identity/configValidators.js +4 -4
  37. package/libEs5/components/Identity/createComponent.js +4 -4
  38. package/libEs5/components/Identity/getEcidFromResponse.js +3 -3
  39. package/libEs5/components/Identity/getIdentity/createGetIdentity.js +2 -2
  40. package/libEs5/components/Identity/getIdentity/createIdentityRequest.js +2 -2
  41. package/libEs5/components/Identity/getIdentity/createIdentityRequestPayload.js +4 -4
  42. package/libEs5/components/Identity/getIdentity/getIdentityOptionsValidator.js +5 -5
  43. package/libEs5/components/Identity/index.js +24 -24
  44. package/libEs5/components/Identity/injectAddLegacyEcidToPayload.js +1 -1
  45. package/libEs5/components/Identity/injectAddQueryStringIdentityToPayload.js +4 -4
  46. package/libEs5/components/Identity/injectProcessIdSyncs.js +2 -2
  47. package/libEs5/components/Identity/injectSetDomainForInitialIdentityPayload.js +1 -1
  48. package/libEs5/components/Identity/visitorService/awaitVisitorOptIn.js +2 -2
  49. package/libEs5/components/Identity/visitorService/getVisitor.js +2 -2
  50. package/libEs5/components/Identity/visitorService/injectGetEcidFromVisitor.js +1 -1
  51. package/libEs5/components/LegacyMediaAnalytics/createGetInstance.js +16 -17
  52. package/libEs5/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +4 -4
  53. package/libEs5/components/LegacyMediaAnalytics/createMediaHelper.js +28 -28
  54. package/libEs5/components/LegacyMediaAnalytics/index.js +9 -9
  55. package/libEs5/components/LibraryInfo/index.js +2 -2
  56. package/libEs5/components/MachineLearning/index.js +1 -1
  57. package/libEs5/components/Personalization/createActionsProvider.js +3 -3
  58. package/libEs5/components/Personalization/createApplyPropositions.js +7 -7
  59. package/libEs5/components/Personalization/createCollect.js +4 -4
  60. package/libEs5/components/Personalization/createComponent.js +9 -9
  61. package/libEs5/components/Personalization/createFetchDataHandler.js +2 -2
  62. package/libEs5/components/Personalization/createHandleConsentFlicker.js +1 -1
  63. package/libEs5/components/Personalization/createNotificationHandler.js +2 -2
  64. package/libEs5/components/Personalization/createOnClickHandler.js +5 -5
  65. package/libEs5/components/Personalization/createPersonalizationDetails.js +11 -11
  66. package/libEs5/components/Personalization/createPreprocessors.js +3 -3
  67. package/libEs5/components/Personalization/createSetTargetMigration.js +2 -2
  68. package/libEs5/components/Personalization/createViewCacheManager.js +6 -6
  69. package/libEs5/components/Personalization/dom-actions/action.js +18 -18
  70. package/libEs5/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +7 -7
  71. package/libEs5/components/Personalization/dom-actions/appendHtml.js +8 -8
  72. package/libEs5/components/Personalization/dom-actions/clicks/collectClicks.js +3 -3
  73. package/libEs5/components/Personalization/dom-actions/createPreprocess.js +2 -2
  74. package/libEs5/components/Personalization/dom-actions/createRedirect.js +1 -3
  75. package/libEs5/components/Personalization/dom-actions/dom/createFragment.js +3 -3
  76. package/libEs5/components/Personalization/dom-actions/dom/getChildNodes.js +2 -2
  77. package/libEs5/components/Personalization/dom-actions/dom/getChildren.js +2 -2
  78. package/libEs5/components/Personalization/dom-actions/dom/helperForEq.js +2 -2
  79. package/libEs5/components/Personalization/dom-actions/dom/index.js +14 -14
  80. package/libEs5/components/Personalization/dom-actions/dom/insertAfter.js +2 -2
  81. package/libEs5/components/Personalization/dom-actions/dom/insertBefore.js +1 -1
  82. package/libEs5/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +4 -4
  83. package/libEs5/components/Personalization/dom-actions/dom/selectNodesWithEq.js +4 -4
  84. package/libEs5/components/Personalization/dom-actions/images.js +7 -7
  85. package/libEs5/components/Personalization/dom-actions/index.js +1 -1
  86. package/libEs5/components/Personalization/dom-actions/initDomActionsModules.js +3 -3
  87. package/libEs5/components/Personalization/dom-actions/insertHtmlAfter.js +7 -7
  88. package/libEs5/components/Personalization/dom-actions/insertHtmlBefore.js +7 -7
  89. package/libEs5/components/Personalization/dom-actions/prependHtml.js +10 -10
  90. package/libEs5/components/Personalization/dom-actions/rearrangeChildren.js +4 -4
  91. package/libEs5/components/Personalization/dom-actions/remapCustomCodeOffers.js +2 -2
  92. package/libEs5/components/Personalization/dom-actions/remapHeadOffers.js +10 -10
  93. package/libEs5/components/Personalization/dom-actions/replaceHtml.js +3 -3
  94. package/libEs5/components/Personalization/dom-actions/scripts.js +11 -11
  95. package/libEs5/components/Personalization/dom-actions/setAttributes.js +2 -2
  96. package/libEs5/components/Personalization/dom-actions/setHtml.js +5 -5
  97. package/libEs5/components/Personalization/dom-actions/setStyles.js +3 -3
  98. package/libEs5/components/Personalization/dom-actions/swapImage.js +5 -5
  99. package/libEs5/components/Personalization/event.js +1 -1
  100. package/libEs5/components/Personalization/flicker/index.js +13 -13
  101. package/libEs5/components/Personalization/handlers/createProcessInAppMessage.js +1 -1
  102. package/libEs5/components/Personalization/handlers/injectCreateProposition.js +2 -2
  103. package/libEs5/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +23 -21
  104. package/libEs5/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +1 -1
  105. package/libEs5/components/Personalization/in-app-message-actions/utils.js +7 -7
  106. package/libEs5/components/Personalization/index.js +43 -43
  107. package/libEs5/components/Personalization/utils/addRenderAttemptedToDecisions.js +2 -2
  108. package/libEs5/components/Personalization/utils/surfaceUtils.js +11 -9
  109. package/libEs5/components/Personalization/validateApplyPropositionsOptions.js +5 -5
  110. package/libEs5/components/Privacy/computeConsentHash.js +2 -2
  111. package/libEs5/components/Privacy/createComponent.js +1 -1
  112. package/libEs5/components/Privacy/createConsentHashStore.js +2 -2
  113. package/libEs5/components/Privacy/createConsentRequest.js +2 -2
  114. package/libEs5/components/Privacy/createConsentRequestPayload.js +2 -2
  115. package/libEs5/components/Privacy/createStoredConsent.js +3 -3
  116. package/libEs5/components/Privacy/index.js +13 -13
  117. package/libEs5/components/Privacy/injectSendSetConsentRequest.js +4 -4
  118. package/libEs5/components/Privacy/validateSetConsentOptions.js +6 -6
  119. package/libEs5/components/StreamingMedia/configValidators.js +8 -8
  120. package/libEs5/components/StreamingMedia/createMediaEventManager.js +6 -6
  121. package/libEs5/components/StreamingMedia/createMediaRequest.js +2 -2
  122. package/libEs5/components/StreamingMedia/createMediaResponseHandler.js +5 -5
  123. package/libEs5/components/StreamingMedia/createMediaSessionCacheManager.js +1 -1
  124. package/libEs5/components/StreamingMedia/createStreamingMediaComponent.js +4 -4
  125. package/libEs5/components/StreamingMedia/createTrackMediaEvent.js +1 -1
  126. package/libEs5/components/StreamingMedia/createTrackMediaSession.js +1 -1
  127. package/libEs5/components/StreamingMedia/index.js +8 -8
  128. package/libEs5/components/StreamingMedia/validateMediaEventOptions.js +13 -13
  129. package/libEs5/components/StreamingMedia/validateMediaSessionOptions.js +12 -12
  130. package/libEs5/constants/libraryVersion.js +1 -1
  131. package/libEs5/constants/propositionEventType.js +1 -1
  132. package/libEs5/core/buildAndValidateConfig.js +2 -2
  133. package/libEs5/core/componentCreators.js +14 -14
  134. package/libEs5/core/config/createConfig.js +2 -2
  135. package/libEs5/core/config/createCoreConfigs.js +15 -15
  136. package/libEs5/core/consent/createConsent.js +3 -3
  137. package/libEs5/core/consent/createConsentStateMachine.js +2 -2
  138. package/libEs5/core/createComponentRegistry.js +4 -4
  139. package/libEs5/core/createCookieTransfer.js +2 -2
  140. package/libEs5/core/createEvent.js +12 -12
  141. package/libEs5/core/createEventManager.js +9 -9
  142. package/libEs5/core/createLogController.js +4 -4
  143. package/libEs5/core/createLogger.js +2 -2
  144. package/libEs5/core/edgeNetwork/injectApplyResponse.js +7 -7
  145. package/libEs5/core/edgeNetwork/injectGetLocationHint.js +4 -4
  146. package/libEs5/core/edgeNetwork/injectProcessWarningsAndErrors.js +1 -1
  147. package/libEs5/core/edgeNetwork/injectSendEdgeNetworkRequest.js +9 -9
  148. package/libEs5/core/edgeNetwork/mergeLifecycleResponses.js +2 -2
  149. package/libEs5/core/index.js +44 -44
  150. package/libEs5/core/initializeComponents.js +2 -2
  151. package/libEs5/core/injectCreateResponse.js +3 -3
  152. package/libEs5/core/injectExecuteCommand.js +4 -4
  153. package/libEs5/core/injectHandleError.js +4 -4
  154. package/libEs5/core/injectShouldTransferCookie.js +3 -3
  155. package/libEs5/core/network/getRequestRetryDelay.js +3 -3
  156. package/libEs5/core/network/injectSendNetworkRequest.js +2 -2
  157. package/libEs5/core/network/isRequestRetryable.js +3 -3
  158. package/libEs5/index.js +10 -10
  159. package/libEs5/utils/areThirdPartyCookiesSupportedByDefault.js +2 -2
  160. package/libEs5/utils/assignConcatArrayValues.js +2 -2
  161. package/libEs5/utils/assignIf.js +1 -1
  162. package/libEs5/utils/createMerger.js +1 -1
  163. package/libEs5/utils/createSubscription.js +1 -1
  164. package/libEs5/utils/deepAssign.js +2 -2
  165. package/libEs5/utils/dom/awaitSelector.js +3 -3
  166. package/libEs5/utils/dom/createNode.js +2 -2
  167. package/libEs5/utils/dom/index.js +8 -8
  168. package/libEs5/utils/dom/isShadowSelector.js +1 -1
  169. package/libEs5/utils/dom/querySelectorAll.js +1 -1
  170. package/libEs5/utils/dom/selectNodes.js +3 -3
  171. package/libEs5/utils/dom/selectNodesWithShadow.js +3 -3
  172. package/libEs5/utils/filterObject.js +3 -3
  173. package/libEs5/utils/fireImage.js +2 -2
  174. package/libEs5/utils/getApexDomain.js +2 -2
  175. package/libEs5/utils/getBrowser.js +2 -2
  176. package/libEs5/utils/getNamespacedCookieName.js +2 -2
  177. package/libEs5/utils/index.js +58 -58
  178. package/libEs5/utils/injectDoesIdentityCookieExist.js +3 -3
  179. package/libEs5/utils/injectFireReferrerHideableImage.js +6 -6
  180. package/libEs5/utils/injectStorage.js +2 -2
  181. package/libEs5/utils/intersection.js +1 -1
  182. package/libEs5/utils/isBlankString.js +1 -1
  183. package/libEs5/utils/isEmptyObject.js +1 -1
  184. package/libEs5/utils/isInteger.js +1 -1
  185. package/libEs5/utils/isNamespacedCookieName.js +2 -2
  186. package/libEs5/utils/isNonEmptyString.js +1 -1
  187. package/libEs5/utils/isObject.js +1 -1
  188. package/libEs5/utils/isValidRegExp.js +1 -1
  189. package/libEs5/utils/parseUrl.js +1 -1
  190. package/libEs5/utils/prepareConfigOverridesForEdge.js +7 -7
  191. package/libEs5/utils/request/createDataCollectionRequest.js +1 -1
  192. package/libEs5/utils/request/createDataCollectionRequestPayload.js +3 -3
  193. package/libEs5/utils/request/createGetAssuranceValidationTokenParams.js +1 -1
  194. package/libEs5/utils/request/createRequest.js +2 -2
  195. package/libEs5/utils/request/createRequestParams.js +1 -1
  196. package/libEs5/utils/request/createRequestPayload.js +6 -6
  197. package/libEs5/utils/request/index.js +8 -8
  198. package/libEs5/utils/stackError.js +2 -2
  199. package/libEs5/utils/stringToBoolean.js +1 -1
  200. package/libEs5/utils/toISOStringLocal.js +2 -2
  201. package/libEs5/utils/toInteger.js +2 -2
  202. package/libEs5/utils/uuid.js +2 -2
  203. package/libEs5/utils/validateConfigOverride.js +2 -2
  204. package/libEs5/utils/validateIdentityMap.js +2 -2
  205. package/libEs5/utils/validation/booleanValidator.js +2 -2
  206. package/libEs5/utils/validation/callbackValidator.js +2 -2
  207. package/libEs5/utils/validation/createAnyOfValidator.js +2 -2
  208. package/libEs5/utils/validation/createArrayOfValidator.js +1 -1
  209. package/libEs5/utils/validation/createDeprecatedValidator.js +3 -3
  210. package/libEs5/utils/validation/createLiteralValidator.js +1 -1
  211. package/libEs5/utils/validation/createMapOfValuesValidator.js +2 -2
  212. package/libEs5/utils/validation/createMaximumValidator.js +1 -1
  213. package/libEs5/utils/validation/createMinimumValidator.js +1 -1
  214. package/libEs5/utils/validation/createNonEmptyValidator.js +3 -3
  215. package/libEs5/utils/validation/createObjectOfValidator.js +2 -2
  216. package/libEs5/utils/validation/createUniqueItemsValidator.js +2 -2
  217. package/libEs5/utils/validation/createUniqueValidator.js +1 -1
  218. package/libEs5/utils/validation/domainValidator.js +1 -1
  219. package/libEs5/utils/validation/index.js +23 -23
  220. package/libEs5/utils/validation/integerValidator.js +2 -2
  221. package/libEs5/utils/validation/matchesRegexpValidator.js +1 -1
  222. package/libEs5/utils/validation/numberValidator.js +2 -2
  223. package/libEs5/utils/validation/regexpValidator.js +2 -2
  224. package/libEs5/utils/validation/stringValidator.js +2 -2
  225. package/libEs5/utils/validation/utils.js +1 -1
  226. package/libEs6/components/ActivityCollector/attachClickActivityCollector.js +1 -1
  227. package/libEs6/components/ActivityCollector/configValidators.js +1 -1
  228. package/libEs6/components/ActivityCollector/getLinkName.js +1 -1
  229. package/libEs6/components/ActivityCollector/getLinkRegion.js +2 -2
  230. package/libEs6/components/ActivityCollector/index.js +7 -7
  231. package/libEs6/components/Audiences/index.js +3 -3
  232. package/libEs6/components/Audiences/injectProcessDestinations.js +1 -1
  233. package/libEs6/components/Context/createComponent.js +1 -1
  234. package/libEs6/components/Context/implementationDetails.js +3 -3
  235. package/libEs6/components/Context/index.js +9 -9
  236. package/libEs6/components/Context/injectDevice.js +1 -1
  237. package/libEs6/components/Context/injectEnvironment.js +1 -1
  238. package/libEs6/components/Context/injectHighEntropyUserAgentHints.js +2 -2
  239. package/libEs6/components/Context/injectPlaceContext.js +1 -1
  240. package/libEs6/components/Context/injectTimestamp.js +1 -1
  241. package/libEs6/components/Context/injectWeb.js +1 -1
  242. package/libEs6/components/DataCollector/index.js +3 -3
  243. package/libEs6/components/DataCollector/validateApplyResponse.js +1 -1
  244. package/libEs6/components/DataCollector/validateUserEventOptions.js +2 -2
  245. package/libEs6/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +2 -2
  246. package/libEs6/components/DecisioningEngine/createConsequenceAdapter.js +2 -2
  247. package/libEs6/components/DecisioningEngine/createContextProvider.js +4 -4
  248. package/libEs6/components/DecisioningEngine/createDecisionHistory.js +1 -1
  249. package/libEs6/components/DecisioningEngine/createDecisionProvider.js +3 -3
  250. package/libEs6/components/DecisioningEngine/createEvaluableRulesetPayload.js +5 -5
  251. package/libEs6/components/DecisioningEngine/createEvaluateRulesetsCommand.js +1 -1
  252. package/libEs6/components/DecisioningEngine/createEventRegistry.js +3 -3
  253. package/libEs6/components/DecisioningEngine/createOnResponseHandler.js +2 -2
  254. package/libEs6/components/DecisioningEngine/createSubscribeRulesetItems.js +3 -3
  255. package/libEs6/components/DecisioningEngine/index.js +11 -11
  256. package/libEs6/components/EventMerge/createEventMergeId.js +1 -1
  257. package/libEs6/components/EventMerge/index.js +2 -2
  258. package/libEs6/components/Identity/addEcidQueryToPayload.js +1 -1
  259. package/libEs6/components/Identity/addEcidToPayload.js +1 -1
  260. package/libEs6/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +2 -2
  261. package/libEs6/components/Identity/configValidators.js +1 -1
  262. package/libEs6/components/Identity/createComponent.js +3 -3
  263. package/libEs6/components/Identity/getEcidFromResponse.js +2 -2
  264. package/libEs6/components/Identity/getIdentity/createGetIdentity.js +1 -1
  265. package/libEs6/components/Identity/getIdentity/createIdentityRequest.js +1 -1
  266. package/libEs6/components/Identity/getIdentity/createIdentityRequestPayload.js +1 -1
  267. package/libEs6/components/Identity/getIdentity/getIdentityOptionsValidator.js +2 -2
  268. package/libEs6/components/Identity/index.js +20 -20
  269. package/libEs6/components/Identity/injectAddLegacyEcidToPayload.js +1 -1
  270. package/libEs6/components/Identity/injectAddQueryStringIdentityToPayload.js +3 -3
  271. package/libEs6/components/Identity/injectProcessIdSyncs.js +1 -1
  272. package/libEs6/components/Identity/injectSetDomainForInitialIdentityPayload.js +1 -1
  273. package/libEs6/components/Identity/visitorService/awaitVisitorOptIn.js +1 -1
  274. package/libEs6/components/Identity/visitorService/getVisitor.js +1 -1
  275. package/libEs6/components/Identity/visitorService/injectGetEcidFromVisitor.js +1 -1
  276. package/libEs6/components/LegacyMediaAnalytics/createGetInstance.js +12 -13
  277. package/libEs6/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +2 -2
  278. package/libEs6/components/LegacyMediaAnalytics/createMediaHelper.js +2 -2
  279. package/libEs6/components/LegacyMediaAnalytics/index.js +9 -9
  280. package/libEs6/components/LibraryInfo/index.js +2 -2
  281. package/libEs6/components/MachineLearning/index.js +1 -1
  282. package/libEs6/components/Personalization/createActionsProvider.js +2 -2
  283. package/libEs6/components/Personalization/createApplyPropositions.js +3 -3
  284. package/libEs6/components/Personalization/createCollect.js +3 -3
  285. package/libEs6/components/Personalization/createComponent.js +5 -5
  286. package/libEs6/components/Personalization/createFetchDataHandler.js +1 -1
  287. package/libEs6/components/Personalization/createHandleConsentFlicker.js +1 -1
  288. package/libEs6/components/Personalization/createNotificationHandler.js +1 -1
  289. package/libEs6/components/Personalization/createOnClickHandler.js +3 -3
  290. package/libEs6/components/Personalization/createPersonalizationDetails.js +4 -4
  291. package/libEs6/components/Personalization/createPreprocessors.js +3 -3
  292. package/libEs6/components/Personalization/createSetTargetMigration.js +1 -1
  293. package/libEs6/components/Personalization/createViewCacheManager.js +4 -4
  294. package/libEs6/components/Personalization/dom-actions/action.js +14 -14
  295. package/libEs6/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +4 -4
  296. package/libEs6/components/Personalization/dom-actions/appendHtml.js +5 -5
  297. package/libEs6/components/Personalization/dom-actions/clicks/collectClicks.js +2 -2
  298. package/libEs6/components/Personalization/dom-actions/createPreprocess.js +1 -1
  299. package/libEs6/components/Personalization/dom-actions/createRedirect.js +1 -1
  300. package/libEs6/components/Personalization/dom-actions/dom/createFragment.js +2 -2
  301. package/libEs6/components/Personalization/dom-actions/dom/getChildNodes.js +1 -1
  302. package/libEs6/components/Personalization/dom-actions/dom/getChildren.js +1 -1
  303. package/libEs6/components/Personalization/dom-actions/dom/helperForEq.js +1 -1
  304. package/libEs6/components/Personalization/dom-actions/dom/index.js +14 -14
  305. package/libEs6/components/Personalization/dom-actions/dom/insertAfter.js +2 -2
  306. package/libEs6/components/Personalization/dom-actions/dom/insertBefore.js +1 -1
  307. package/libEs6/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +3 -3
  308. package/libEs6/components/Personalization/dom-actions/dom/selectNodesWithEq.js +2 -2
  309. package/libEs6/components/Personalization/dom-actions/images.js +4 -4
  310. package/libEs6/components/Personalization/dom-actions/index.js +1 -1
  311. package/libEs6/components/Personalization/dom-actions/initDomActionsModules.js +2 -2
  312. package/libEs6/components/Personalization/dom-actions/insertHtmlAfter.js +4 -4
  313. package/libEs6/components/Personalization/dom-actions/insertHtmlBefore.js +4 -4
  314. package/libEs6/components/Personalization/dom-actions/prependHtml.js +5 -5
  315. package/libEs6/components/Personalization/dom-actions/rearrangeChildren.js +1 -1
  316. package/libEs6/components/Personalization/dom-actions/remapCustomCodeOffers.js +1 -1
  317. package/libEs6/components/Personalization/dom-actions/remapHeadOffers.js +6 -6
  318. package/libEs6/components/Personalization/dom-actions/replaceHtml.js +2 -2
  319. package/libEs6/components/Personalization/dom-actions/scripts.js +4 -4
  320. package/libEs6/components/Personalization/dom-actions/setAttributes.js +1 -1
  321. package/libEs6/components/Personalization/dom-actions/setHtml.js +3 -3
  322. package/libEs6/components/Personalization/dom-actions/setStyles.js +1 -1
  323. package/libEs6/components/Personalization/dom-actions/swapImage.js +3 -3
  324. package/libEs6/components/Personalization/event.js +1 -1
  325. package/libEs6/components/Personalization/flicker/index.js +3 -3
  326. package/libEs6/components/Personalization/handlers/createProcessInAppMessage.js +1 -1
  327. package/libEs6/components/Personalization/handlers/injectCreateProposition.js +2 -2
  328. package/libEs6/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +11 -9
  329. package/libEs6/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +1 -1
  330. package/libEs6/components/Personalization/in-app-message-actions/utils.js +2 -2
  331. package/libEs6/components/Personalization/index.js +35 -35
  332. package/libEs6/components/Personalization/utils/addRenderAttemptedToDecisions.js +1 -1
  333. package/libEs6/components/Personalization/utils/surfaceUtils.js +4 -2
  334. package/libEs6/components/Personalization/validateApplyPropositionsOptions.js +1 -1
  335. package/libEs6/components/Privacy/computeConsentHash.js +1 -1
  336. package/libEs6/components/Privacy/createComponent.js +1 -1
  337. package/libEs6/components/Privacy/createConsentHashStore.js +1 -1
  338. package/libEs6/components/Privacy/createConsentRequest.js +1 -1
  339. package/libEs6/components/Privacy/createConsentRequestPayload.js +1 -1
  340. package/libEs6/components/Privacy/createStoredConsent.js +2 -2
  341. package/libEs6/components/Privacy/index.js +9 -9
  342. package/libEs6/components/Privacy/injectSendSetConsentRequest.js +2 -2
  343. package/libEs6/components/Privacy/validateSetConsentOptions.js +2 -2
  344. package/libEs6/components/StreamingMedia/configValidators.js +1 -1
  345. package/libEs6/components/StreamingMedia/createMediaEventManager.js +4 -4
  346. package/libEs6/components/StreamingMedia/createMediaRequest.js +1 -1
  347. package/libEs6/components/StreamingMedia/createMediaResponseHandler.js +4 -4
  348. package/libEs6/components/StreamingMedia/createMediaSessionCacheManager.js +1 -1
  349. package/libEs6/components/StreamingMedia/createStreamingMediaComponent.js +3 -3
  350. package/libEs6/components/StreamingMedia/createTrackMediaEvent.js +1 -1
  351. package/libEs6/components/StreamingMedia/createTrackMediaSession.js +1 -1
  352. package/libEs6/components/StreamingMedia/index.js +8 -8
  353. package/libEs6/components/StreamingMedia/validateMediaEventOptions.js +2 -2
  354. package/libEs6/components/StreamingMedia/validateMediaSessionOptions.js +1 -1
  355. package/libEs6/constants/libraryVersion.js +1 -1
  356. package/libEs6/constants/propositionEventType.js +1 -1
  357. package/libEs6/core/buildAndValidateConfig.js +1 -1
  358. package/libEs6/core/componentCreators.js +13 -13
  359. package/libEs6/core/config/createConfig.js +1 -1
  360. package/libEs6/core/config/createCoreConfigs.js +5 -5
  361. package/libEs6/core/consent/createConsent.js +3 -3
  362. package/libEs6/core/consent/createConsentStateMachine.js +1 -1
  363. package/libEs6/core/createComponentRegistry.js +1 -1
  364. package/libEs6/core/createCookieTransfer.js +1 -1
  365. package/libEs6/core/createEvent.js +1 -1
  366. package/libEs6/core/createEventManager.js +3 -3
  367. package/libEs6/core/createLogController.js +2 -2
  368. package/libEs6/core/createLogger.js +1 -1
  369. package/libEs6/core/edgeNetwork/injectApplyResponse.js +3 -3
  370. package/libEs6/core/edgeNetwork/injectGetLocationHint.js +3 -3
  371. package/libEs6/core/edgeNetwork/injectProcessWarningsAndErrors.js +1 -1
  372. package/libEs6/core/edgeNetwork/injectSendEdgeNetworkRequest.js +5 -5
  373. package/libEs6/core/edgeNetwork/mergeLifecycleResponses.js +1 -1
  374. package/libEs6/core/index.js +33 -33
  375. package/libEs6/core/initializeComponents.js +1 -1
  376. package/libEs6/core/injectCreateResponse.js +2 -2
  377. package/libEs6/core/injectExecuteCommand.js +2 -2
  378. package/libEs6/core/injectHandleError.js +2 -2
  379. package/libEs6/core/injectShouldTransferCookie.js +2 -2
  380. package/libEs6/core/network/getRequestRetryDelay.js +2 -2
  381. package/libEs6/core/network/injectSendNetworkRequest.js +1 -1
  382. package/libEs6/core/network/isRequestRetryable.js +2 -2
  383. package/libEs6/index.js +5 -5
  384. package/libEs6/utils/areThirdPartyCookiesSupportedByDefault.js +2 -2
  385. package/libEs6/utils/assignConcatArrayValues.js +2 -2
  386. package/libEs6/utils/assignIf.js +1 -1
  387. package/libEs6/utils/createMerger.js +1 -1
  388. package/libEs6/utils/createSubscription.js +1 -1
  389. package/libEs6/utils/deepAssign.js +2 -2
  390. package/libEs6/utils/dom/awaitSelector.js +3 -3
  391. package/libEs6/utils/dom/createNode.js +2 -2
  392. package/libEs6/utils/dom/index.js +8 -8
  393. package/libEs6/utils/dom/isShadowSelector.js +1 -1
  394. package/libEs6/utils/dom/querySelectorAll.js +1 -1
  395. package/libEs6/utils/dom/selectNodes.js +3 -3
  396. package/libEs6/utils/dom/selectNodesWithShadow.js +3 -3
  397. package/libEs6/utils/filterObject.js +3 -3
  398. package/libEs6/utils/fireImage.js +2 -2
  399. package/libEs6/utils/getApexDomain.js +2 -2
  400. package/libEs6/utils/getBrowser.js +2 -2
  401. package/libEs6/utils/getNamespacedCookieName.js +2 -2
  402. package/libEs6/utils/index.js +58 -58
  403. package/libEs6/utils/injectDoesIdentityCookieExist.js +3 -3
  404. package/libEs6/utils/injectFireReferrerHideableImage.js +3 -3
  405. package/libEs6/utils/injectStorage.js +2 -2
  406. package/libEs6/utils/intersection.js +1 -1
  407. package/libEs6/utils/isBlankString.js +1 -1
  408. package/libEs6/utils/isEmptyObject.js +1 -1
  409. package/libEs6/utils/isInteger.js +1 -1
  410. package/libEs6/utils/isNamespacedCookieName.js +2 -2
  411. package/libEs6/utils/isNonEmptyString.js +1 -1
  412. package/libEs6/utils/isObject.js +1 -1
  413. package/libEs6/utils/isValidRegExp.js +1 -1
  414. package/libEs6/utils/parseUrl.js +1 -1
  415. package/libEs6/utils/prepareConfigOverridesForEdge.js +7 -7
  416. package/libEs6/utils/request/createDataCollectionRequest.js +1 -1
  417. package/libEs6/utils/request/createDataCollectionRequestPayload.js +3 -3
  418. package/libEs6/utils/request/createGetAssuranceValidationTokenParams.js +1 -1
  419. package/libEs6/utils/request/createRequest.js +1 -1
  420. package/libEs6/utils/request/createRequestPayload.js +1 -1
  421. package/libEs6/utils/request/index.js +8 -8
  422. package/libEs6/utils/stackError.js +2 -2
  423. package/libEs6/utils/stringToBoolean.js +1 -1
  424. package/libEs6/utils/toISOStringLocal.js +2 -2
  425. package/libEs6/utils/toInteger.js +2 -2
  426. package/libEs6/utils/uuid.js +2 -2
  427. package/libEs6/utils/validateConfigOverride.js +1 -1
  428. package/libEs6/utils/validateIdentityMap.js +2 -2
  429. package/libEs6/utils/validation/booleanValidator.js +2 -2
  430. package/libEs6/utils/validation/callbackValidator.js +2 -2
  431. package/libEs6/utils/validation/createAnyOfValidator.js +2 -2
  432. package/libEs6/utils/validation/createArrayOfValidator.js +1 -1
  433. package/libEs6/utils/validation/createDeprecatedValidator.js +2 -2
  434. package/libEs6/utils/validation/createLiteralValidator.js +1 -1
  435. package/libEs6/utils/validation/createMapOfValuesValidator.js +2 -2
  436. package/libEs6/utils/validation/createMaximumValidator.js +1 -1
  437. package/libEs6/utils/validation/createMinimumValidator.js +1 -1
  438. package/libEs6/utils/validation/createNonEmptyValidator.js +3 -3
  439. package/libEs6/utils/validation/createObjectOfValidator.js +2 -2
  440. package/libEs6/utils/validation/createUniqueItemsValidator.js +2 -2
  441. package/libEs6/utils/validation/createUniqueValidator.js +1 -1
  442. package/libEs6/utils/validation/domainValidator.js +1 -1
  443. package/libEs6/utils/validation/index.js +23 -23
  444. package/libEs6/utils/validation/integerValidator.js +2 -2
  445. package/libEs6/utils/validation/matchesRegexpValidator.js +1 -1
  446. package/libEs6/utils/validation/numberValidator.js +2 -2
  447. package/libEs6/utils/validation/regexpValidator.js +2 -2
  448. package/libEs6/utils/validation/stringValidator.js +2 -2
  449. package/libEs6/utils/validation/utils.js +1 -1
  450. package/package.json +68 -65
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { createMerger, prepareConfigOverridesForEdge } from "..";
13
+ import { createMerger, prepareConfigOverridesForEdge } from "../index.js";
14
14
 
15
15
  // This provides the base functionality that all types of
16
16
  // request payloads share.
@@ -10,11 +10,11 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- export { default as createAddIdentity } from "./createAddIdentity";
14
- export { default as createDataCollectionRequest } from "./createDataCollectionRequest";
15
- export { default as createDataCollectionRequestPayload } from "./createDataCollectionRequestPayload";
16
- export { default as createHasIdentity } from "./createHasIdentity";
17
- export { default as createRequest } from "./createRequest";
18
- export { default as createRequestParams } from "./createRequestParams";
19
- export { default as createRequestPayload } from "./createRequestPayload";
20
- export { default as createGetAssuranceValidationTokenParams } from "./createGetAssuranceValidationTokenParams";
13
+ export { default as createAddIdentity } from "./createAddIdentity.js";
14
+ export { default as createDataCollectionRequest } from "./createDataCollectionRequest.js";
15
+ export { default as createDataCollectionRequestPayload } from "./createDataCollectionRequestPayload.js";
16
+ export { default as createHasIdentity } from "./createHasIdentity.js";
17
+ export { default as createRequest } from "./createRequest.js";
18
+ export { default as createRequestParams } from "./createRequestParams.js";
19
+ export { default as createRequestPayload } from "./createRequestPayload.js";
20
+ export { default as createGetAssuranceValidationTokenParams } from "./createGetAssuranceValidationTokenParams.js";
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import toError from "./toError";
14
- import updateErrorMessage from "./updateErrorMessage";
13
+ import toError from "./toError.js";
14
+ import updateErrorMessage from "./updateErrorMessage.js";
15
15
 
16
16
  /**
17
17
  * Augments an error's message with additional context as it bubbles up the call stack.
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import isString from "./isString";
12
+ import isString from "./isString.js";
13
13
  export default (str => {
14
14
  return isString(str) && str.toLowerCase() === "true";
15
15
  });
@@ -9,8 +9,8 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import padStart from "./padStart";
13
- import toInteger from "./toInteger";
12
+ import padStart from "./padStart.js";
13
+ import toInteger from "./toInteger.js";
14
14
 
15
15
  /**
16
16
  * Formats the date into an ISO date-time string in the local timezone
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import isNumber from "./isNumber";
14
- import isString from "./isString";
13
+ import isNumber from "./isNumber.js";
14
+ import isString from "./isString.js";
15
15
 
16
16
  /*
17
17
  * coerce `value` to a number or return `defaultValue` if it cannot be.
@@ -10,5 +10,5 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import uuid from "uuid/v4";
14
- export default uuid;
13
+ import { v4 as uuidv4 } from "uuid";
14
+ export default uuidv4;
@@ -10,5 +10,5 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { objectOf } from "./validation";
13
+ import { objectOf } from "./validation/index.js";
14
14
  export default objectOf({});
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { string, objectOf, boolean, arrayOf, enumOf, mapOfValues } from "./validation/index";
14
- import { AMBIGUOUS, AUTHENTICATED, LOGGED_OUT } from "../constants/identityMapAuthenticatedState";
13
+ import { string, objectOf, boolean, arrayOf, enumOf, mapOfValues } from "./validation/index.js";
14
+ import { AMBIGUOUS, AUTHENTICATED, LOGGED_OUT } from "../constants/identityMapAuthenticatedState.js";
15
15
  export default mapOfValues(arrayOf(objectOf({
16
16
  authenticatedState: enumOf(AMBIGUOUS, AUTHENTICATED, LOGGED_OUT),
17
17
  id: string(),
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import isBoolean from "../isBoolean";
14
- import { assertValid } from "./utils";
13
+ import isBoolean from "../isBoolean.js";
14
+ import { assertValid } from "./utils.js";
15
15
  export default ((value, path) => {
16
16
  assertValid(isBoolean(value), value, path, "true or false");
17
17
  return value;
@@ -9,8 +9,8 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import isFunction from "../isFunction";
13
- import { assertValid } from "./utils";
12
+ import isFunction from "../isFunction.js";
13
+ import { assertValid } from "./utils.js";
14
14
  export default ((value, path) => {
15
15
  assertValid(isFunction(value), value, path, "a function");
16
16
  return value;
@@ -9,8 +9,8 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { assertValid } from "./utils";
13
- import find from "../find";
12
+ import { assertValid } from "./utils.js";
13
+ import find from "../find.js";
14
14
  export default ((validators, message) => function anyOf(value, path) {
15
15
  let newValue;
16
16
  const valid = find(validators, validator => {
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { assertValid } from "./utils";
12
+ import { assertValid } from "./utils.js";
13
13
  export default (elementValidator => function arrayOf(value, path) {
14
14
  assertValid(Array.isArray(value), value, path, "an array");
15
15
  const errors = [];
@@ -9,8 +9,8 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import isObject from "../isObject";
13
- import { assertValid } from "./utils";
12
+ import isObject from "../isObject.js";
13
+ import { assertValid } from "./utils.js";
14
14
  export default ((oldField, oldSchema, newField) => function deprecated(value, path) {
15
15
  assertValid(isObject(value), value, path, "an object");
16
16
  const {
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { assertValid } from "./utils";
12
+ import { assertValid } from "./utils.js";
13
13
  export default (literalValue => (value, path) => {
14
14
  assertValid(value === literalValue, value, path, `${literalValue}`);
15
15
  return value;
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import isObject from "../isObject";
14
- import { assertValid } from "./utils";
13
+ import isObject from "../isObject.js";
14
+ import { assertValid } from "./utils.js";
15
15
  export default (valueValidator => function mapOfValues(value, path) {
16
16
  assertValid(isObject(value), value, path, "an object");
17
17
  const errors = [];
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { assertValid } from "./utils";
12
+ import { assertValid } from "./utils.js";
13
13
  export default ((typeName, maximum) => (value, path) => {
14
14
  assertValid(value <= maximum, value, path, `${typeName} less than or equal to ${maximum}`);
15
15
  return value;
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { assertValid } from "./utils";
12
+ import { assertValid } from "./utils.js";
13
13
  export default ((typeName, minimum) => (value, path) => {
14
14
  assertValid(value >= minimum, value, path, `${typeName} greater than or equal to ${minimum}`);
15
15
  return value;
@@ -10,9 +10,9 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { assertValid } from "./utils";
14
- import isObject from "../isObject";
15
- import isEmptyObject from "../isEmptyObject";
13
+ import { assertValid } from "./utils.js";
14
+ import isObject from "../isObject.js";
15
+ import isEmptyObject from "../isEmptyObject.js";
16
16
  export default (message => (value, path) => {
17
17
  if (isObject(value)) {
18
18
  assertValid(!isEmptyObject(value), value, path, message);
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import isObject from "../isObject";
14
- import { assertValid } from "./utils";
13
+ import isObject from "../isObject.js";
14
+ import { assertValid } from "./utils.js";
15
15
  export default (schema => function objectOf(value, path) {
16
16
  assertValid(isObject(value), value, path, "an object");
17
17
  const errors = [];
@@ -9,8 +9,8 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { assertValid } from "./utils";
13
- import isUnique from "../isUnique";
12
+ import { assertValid } from "./utils.js";
13
+ import isUnique from "../isUnique.js";
14
14
  export default (() => {
15
15
  return (value, path) => {
16
16
  assertValid(isUnique(value), value, path, "array values to be unique");
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { assertValid } from "./utils";
13
+ import { assertValid } from "./utils.js";
14
14
  export default (() => {
15
15
  const values = [];
16
16
  return (value, path) => {
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import { assertValid } from "./utils";
12
+ import { assertValid } from "./utils.js";
13
13
  const DOMAIN_REGEX = /^[a-z0-9.-]{1,}$/i;
14
14
  export default ((value, path) => {
15
15
  assertValid(DOMAIN_REGEX.test(value), value, path, "a valid domain");
@@ -68,29 +68,29 @@ governing permissions and limitations under the License.
68
68
  * nullSafeChain allows you to chain a validator in a null-safe way.
69
69
  */
70
70
 
71
- import { chain, nullSafeChain, reverseNullSafeChainJoinErrors } from "./utils";
72
- import booleanValidator from "./booleanValidator";
73
- import callbackValidator from "./callbackValidator";
74
- import createArrayOfValidator from "./createArrayOfValidator";
75
- import createDefaultValidator from "./createDefaultValidator";
76
- import createDeprecatedValidator from "./createDeprecatedValidator";
77
- import createLiteralValidator from "./createLiteralValidator";
78
- import createMapOfValuesValidator from "./createMapOfValuesValidator";
79
- import createMinimumValidator from "./createMinimumValidator";
80
- import createMaximumValidator from "./createMaximumValidator";
81
- import createNoUnknownFieldsValidator from "./createNoUnknownFieldsValidator";
82
- import createNonEmptyValidator from "./createNonEmptyValidator";
83
- import createObjectOfValidator from "./createObjectOfValidator";
84
- import createAnyOfValidator from "./createAnyOfValidator";
85
- import createUniqueValidator from "./createUniqueValidator";
86
- import createUniqueItemsValidator from "./createUniqueItemsValidator";
87
- import domainValidator from "./domainValidator";
88
- import integerValidator from "./integerValidator";
89
- import numberValidator from "./numberValidator";
90
- import regexpValidator from "./regexpValidator";
91
- import requiredValidator from "./requiredValidator";
92
- import stringValidator from "./stringValidator";
93
- import matchesRegexpValidator from "./matchesRegexpValidator";
71
+ import { chain, nullSafeChain, reverseNullSafeChainJoinErrors } from "./utils.js";
72
+ import booleanValidator from "./booleanValidator.js";
73
+ import callbackValidator from "./callbackValidator.js";
74
+ import createArrayOfValidator from "./createArrayOfValidator.js";
75
+ import createDefaultValidator from "./createDefaultValidator.js";
76
+ import createDeprecatedValidator from "./createDeprecatedValidator.js";
77
+ import createLiteralValidator from "./createLiteralValidator.js";
78
+ import createMapOfValuesValidator from "./createMapOfValuesValidator.js";
79
+ import createMinimumValidator from "./createMinimumValidator.js";
80
+ import createMaximumValidator from "./createMaximumValidator.js";
81
+ import createNoUnknownFieldsValidator from "./createNoUnknownFieldsValidator.js";
82
+ import createNonEmptyValidator from "./createNonEmptyValidator.js";
83
+ import createObjectOfValidator from "./createObjectOfValidator.js";
84
+ import createAnyOfValidator from "./createAnyOfValidator.js";
85
+ import createUniqueValidator from "./createUniqueValidator.js";
86
+ import createUniqueItemsValidator from "./createUniqueItemsValidator.js";
87
+ import domainValidator from "./domainValidator.js";
88
+ import integerValidator from "./integerValidator.js";
89
+ import numberValidator from "./numberValidator.js";
90
+ import regexpValidator from "./regexpValidator.js";
91
+ import requiredValidator from "./requiredValidator.js";
92
+ import stringValidator from "./stringValidator.js";
93
+ import matchesRegexpValidator from "./matchesRegexpValidator.js";
94
94
 
95
95
  // The base validator does no validation and just returns the value unchanged
96
96
  const base = value => value;
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import isInteger from "../isInteger";
14
- import { assertValid } from "./utils";
13
+ import isInteger from "../isInteger.js";
14
+ import { assertValid } from "./utils.js";
15
15
  export default ((value, path) => {
16
16
  assertValid(isInteger(value), value, path, "an integer");
17
17
  return value;
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { assertValid } from "./utils";
13
+ import { assertValid } from "./utils.js";
14
14
  export default (regexp => (value, path) => {
15
15
  assertValid(regexp.test(value), value, path, `does not match the ${regexp.toString()}`);
16
16
  return value;
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import isNumber from "../isNumber";
14
- import { assertValid } from "./utils";
13
+ import isNumber from "../isNumber.js";
14
+ import { assertValid } from "./utils.js";
15
15
  export default ((value, path) => {
16
16
  assertValid(isNumber(value), value, path, "a number");
17
17
  return value;
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { assertValid } from "./utils";
14
- import isValidRegExp from "../isValidRegExp";
13
+ import { assertValid } from "./utils.js";
14
+ import isValidRegExp from "../isValidRegExp.js";
15
15
  export default ((value, path) => {
16
16
  assertValid(isValidRegExp(value), value, path, "a regular expression");
17
17
  return value;
@@ -9,8 +9,8 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
- import isString from "../isString";
13
- import { assertValid } from "./utils";
12
+ import isString from "../isString.js";
13
+ import { assertValid } from "./utils.js";
14
14
  export default ((value, path) => {
15
15
  assertValid(isString(value), value, path, "a string");
16
16
  return value;
@@ -11,7 +11,7 @@ governing permissions and limitations under the License.
11
11
  */
12
12
 
13
13
  // This is used to add methods onto a function.
14
- import assign from "../assign";
14
+ import assign from "../assign.js";
15
15
 
16
16
  /**
17
17
  * Wraps a validator returning the value if it is null or undefined, otherwise
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@adobe/alloy",
3
- "version": "2.20.0-beta.0",
3
+ "version": "2.20.0-beta.4",
4
4
  "description": "Adobe Experience Platform Web SDK",
5
+ "type": "module",
5
6
  "main": "libEs5/index.js",
6
7
  "module": "libEs6/index.js",
7
8
  "files": [
@@ -13,16 +14,16 @@
13
14
  "lint": "eslint --cache --fix \"*.js\" \"{src,test,scripts}/**/*.js\"",
14
15
  "format": "prettier --write \"*.{html,js}\" \"{sandbox,src,test,scripts}/**/*.{html,js}\"",
15
16
  "test": "npm run test:unit && npm run test:scripts && npm run test:functional",
16
- "test:unit": "karma start --single-run",
17
+ "test:unit": "karma start karma.conf.cjs --single-run",
17
18
  "test:unit:debug": "karma start --browsers=Chrome --single-run=false --debug",
18
19
  "test:unit:watch": "karma start",
19
- "test:unit:saucelabs:local": "karma start karma.saucelabs.conf.js --single-run",
20
+ "test:unit:saucelabs:local": "karma start karma.saucelabs.conf.cjs --single-run",
20
21
  "test:unit:coverage": "karma start --single-run --reporters spec,coverage",
21
22
  "test:functional": "EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" testcafe chrome",
22
23
  "test:functional:custom": "node scripts/helpers/runFunctionalTests.js",
23
24
  "test:functional:saucelabs:dev": "NPM_PACKAGE_VERSION=$(npm pkg get version | tr -d '\"') EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" saucectl run --config ./.sauce/dev.yml",
24
25
  "test:functional:watch": "EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" ./scripts/watchFunctionalTests.js --browsers chrome",
25
- "test:functional:debug": "EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" testcafe --inspect-brk chrome",
26
+ "test:functional:debug": "EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" testcafe --esm --inspect-brk chrome",
26
27
  "test:functional:build:int": "rollup -c --environment BASE_CODE_MIN,STANDALONE,NPM_PACKAGE_LOCAL",
27
28
  "test:functional:build:prod": "rollup -c --environment BASE_CODE_MIN,NPM_PACKAGE_PROD",
28
29
  "test:scripts": "jasmine --config=scripts/specs/jasmine.json",
@@ -31,7 +32,7 @@
31
32
  "dev": "concurrently --names build,sandbox \"rollup -c -w --environment SANDBOX\" \"cd sandbox && export REACT_APP_NONCE=321 && npm start\"",
32
33
  "build": "npm run format && npm run lint && npm run clean && rollup -c --environment BASE_CODE_MIN,STANDALONE,STANDALONE_MIN && echo \"Base Code:\" && cat distTest/baseCode.min.js",
33
34
  "build:custom": "npm run clean && rollup -c --environment BASE_CODE_MIN,NPM_PACKAGE_LOCAL && node scripts/helpers/customBuild.js",
34
- "prepare": "husky install && cd sandbox && npm install",
35
+ "prepare": "husky && cd sandbox && npm install",
35
36
  "prepublishOnly": "rimraf libEs5 libEs6 && babel src -d libEs5 --env-name npmEs5 && babel src -d libEs6 --env-name npmEs6",
36
37
  "checkthattestfilesexist": "./scripts/checkThatTestFilesExist.js",
37
38
  "add-license": "./scripts/add-license.js",
@@ -64,90 +65,92 @@
64
65
  ],
65
66
  "dependencies": {
66
67
  "@adobe/aep-rules-engine": "^2.0.2",
67
- "@adobe/reactor-cookie": "^1.0.0",
68
+ "@adobe/reactor-cookie": "^1.1.0",
68
69
  "@adobe/reactor-load-script": "^1.1.1",
69
70
  "@adobe/reactor-object-assign": "^1.0.0",
70
71
  "@adobe/reactor-query-string": "^1.0.0",
71
72
  "css.escape": "^1.5.1",
72
- "js-cookie": "2.2.1",
73
- "parse-uri": "^1.0.7",
74
- "uuid": "^3.3.2"
73
+ "js-cookie": "3.0.5",
74
+ "parse-uri": "^1.0.9",
75
+ "uuid": "^9.0.1"
75
76
  },
76
77
  "devDependencies": {
77
- "@adobe/alloy": "^2.19.2",
78
- "@babel/cli": "^7.12.8",
79
- "@babel/core": "^7.2.2",
78
+ "@adobe/alloy": "^2.20.0-beta.0",
79
+ "@babel/cli": "^7.24.5",
80
+ "@babel/core": "^7.24.5",
81
+ "@babel/eslint-parser": "^7.24.5",
80
82
  "@babel/plugin-proposal-object-rest-spread": "^7.3.2",
81
- "@babel/plugin-transform-runtime": "^7.16.4",
82
- "@babel/plugin-transform-template-literals": "^7.4.4",
83
- "@babel/preset-env": "^7.4.5",
84
- "@babel/types": "^7.23.0",
85
- "@octokit/rest": "^18.3.5",
83
+ "@babel/plugin-transform-runtime": "^7.24.3",
84
+ "@babel/plugin-transform-template-literals": "^7.24.1",
85
+ "@babel/preset-env": "^7.24.5",
86
+ "@babel/types": "^7.24.5",
87
+ "@eslint/js": "^9.2.0",
88
+ "@octokit/rest": "^20.1.1",
86
89
  "@rollup/plugin-babel": "^6.0.4",
87
90
  "@rollup/plugin-commonjs": "^25.0.7",
88
91
  "@rollup/plugin-node-resolve": "^15.2.3",
92
+ "@rollup/plugin-terser": "^0.4.4",
89
93
  "babel-plugin-version": "^0.2.3",
90
- "bundlesize": "^0.18.0",
91
- "chai": "^5.0.0",
92
- "chalk": "^2.4.2",
93
- "concurrently": "^6.5.0",
94
- "date-fns": "^2.23.0",
95
- "dotenv": "^8.1.0",
96
- "eslint": "^7.32.0",
97
- "eslint-config-airbnb-base": "^14.0.0",
98
- "eslint-config-prettier": "^6.4.0",
99
- "eslint-plugin-ban": "^1.5.2",
100
- "eslint-plugin-import": "^2.28.1",
101
- "eslint-plugin-prettier": "^3.0.1",
94
+ "bundlesize": "^0.18.2",
95
+ "chai": "^5.1.1",
96
+ "chalk": "^5.3.0",
97
+ "concurrently": "^8.2.2",
98
+ "date-fns": "^3.6.0",
99
+ "dotenv": "^16.4.5",
100
+ "eslint": "^8.57.0",
101
+ "eslint-config-airbnb-base": "^15.0.0",
102
+ "eslint-config-prettier": "^9.1.0",
103
+ "eslint-plugin-ban": "^1.6.0",
104
+ "eslint-plugin-import": "^2.29.1",
105
+ "eslint-plugin-prettier": "^5.1.3",
102
106
  "eslint-plugin-testcafe": "^0.2.1",
103
107
  "force-resolutions": "^1.0.11",
104
- "glob": "^7.1.3",
105
- "handlebars": "^4.7.7",
106
- "husky": "^6.0.0",
107
- "jasmine": "^5.0.2",
108
- "jasmine-core": "^3.4.0",
109
- "karma": "^6.3.9",
110
- "karma-chrome-launcher": "^3.1.0",
111
- "karma-coverage": "^2.0.1",
112
- "karma-firefox-launcher": "^2.1.0",
113
- "karma-jasmine": "^2.0.1",
114
- "karma-jasmine-html-reporter": "^1.4.2",
115
- "karma-jasmine-matchers": "^4.0.1",
108
+ "glob": "^10.3.15",
109
+ "globals": "^15.2.0",
110
+ "handlebars": "^4.7.8",
111
+ "husky": "^9.0.11",
112
+ "jasmine": "^5.1.0",
113
+ "jasmine-core": "^5.1.2",
114
+ "karma": "^6.4.3",
115
+ "karma-chrome-launcher": "^3.2.0",
116
+ "karma-coverage": "^2.2.1",
117
+ "karma-firefox-launcher": "^2.1.3",
118
+ "karma-jasmine": "^5.1.0",
119
+ "karma-jasmine-html-reporter": "^2.1.0",
120
+ "karma-jasmine-matchers": "^5.0.0",
116
121
  "karma-junit-reporter": "^2.0.1",
117
- "karma-rollup-preprocessor": "^7.0.5",
122
+ "karma-rollup-preprocessor": "^7.0.8",
118
123
  "karma-safari-launcher": "^1.0.0",
119
124
  "karma-sauce-launcher": "^4.3.6",
120
- "karma-spec-reporter": "0.0.32",
121
- "lint-staged": "^13.2.1",
122
- "node-fetch": "^2.6.7",
123
- "prettier": "^1.16.4",
124
- "promise-polyfill": "^8.1.0",
125
+ "karma-spec-reporter": "0.0.36",
126
+ "lint-staged": "^15.2.2",
127
+ "prettier": "^3.2.5",
128
+ "promise-polyfill": "^8.3.0",
125
129
  "read-cache": "^1.0.0",
126
- "recursive-readdir": "^2.2.2",
130
+ "recursive-readdir": "^2.2.3",
127
131
  "request": "^2.88.0",
128
- "rimraf": "^3.0.2",
129
- "rollup": "^2.29.0",
130
- "rollup-plugin-babel": "^4.4.0",
131
- "rollup-plugin-commonjs": "^10.1.0",
132
- "rollup-plugin-glob-import": "^0.4.5",
133
- "rollup-plugin-istanbul": "^2.0.1",
134
- "rollup-plugin-license": "^2.2.0",
135
- "rollup-plugin-node-resolve": "^5.2.0",
136
- "rollup-plugin-terser": "^7.0.2",
137
- "semver": "^7.3.7",
132
+ "rimraf": "^5.0.7",
133
+ "rollup": "^4.17.2",
134
+ "rollup-plugin-glob-import": "^0.5.0",
135
+ "rollup-plugin-istanbul": "^5.0.0",
136
+ "rollup-plugin-license": "^3.4.0",
137
+ "semver": "^7.6.2",
138
138
  "staged-git-files": "^1.3.0",
139
- "start-server-and-test": "^1.10.6",
140
- "testcafe": "^2.6.2",
141
- "testcafe-browser-provider-saucelabs": "^2.0.0",
139
+ "start-server-and-test": "^2.0.3",
140
+ "testcafe": "^3.6.0",
141
+ "testcafe-browser-provider-saucelabs": "^3.0.0",
142
142
  "testcafe-reporter-junit": "^3.0.2",
143
- "testcafe-reporter-saucelabs": "^1.0.1",
144
- "url-exists-nodejs": "^0.1.0",
145
- "url-parse": "^1.4.7",
146
- "yargs": "^16.2.0"
143
+ "testcafe-reporter-saucelabs": "^3.1.0",
144
+ "url-exists-nodejs": "^0.2.4",
145
+ "url-parse": "^1.5.10",
146
+ "yargs": "^17.7.2"
147
147
  },
148
148
  "overrides": {
149
149
  "karma-sauce-launcher": {
150
150
  "webdriverio": "^8.35.1"
151
151
  }
152
+ },
153
+ "optionalDependencies": {
154
+ "@rollup/rollup-linux-x64-gnu": "^4.17.2"
152
155
  }
153
156
  }