Skip to content

Commit 09d877c

Browse files
authored
[MAJC-92] Use the MARS production URL in the dist bundle (#11)
1 parent 0149b5f commit 09d877c

File tree

14 files changed

+124
-88
lines changed

14 files changed

+124
-88
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
npm run build
1+
npm run build:production
22
git add dist/.
Lines changed: 21 additions & 21 deletions
Large diffs are not rendered by default.
Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core.d.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,18 @@ interface MozAdsSize {
188188
declare function recordClick(placement: MozAdsPlacementWithContent): Promise<void>;
189189

190190
declare const IS_BROWSER: boolean;
191+
declare const IS_PRODUCTION: boolean;
191192
declare const DEFAULT_SERVICE_ENDPOINT: HTTPSURLString;
193+
declare const INSTRUMENT_ENDPOINT: HTTPSURLString;
194+
declare const LOG_TO_CONSOLE_FLAG_DEFAULT: boolean;
195+
declare const LOG_EMIT_FLAG_DEFAULT = true;
192196
declare const IABFixedSize: Record<IABAdUnitFormatType, MozAdsSize>;
193197
declare const NonIABFixedSize: Record<NonIABAdUnitFormatType, MozAdsSize>;
194198
declare const FixedSize: Record<AdUnitFormatType, MozAdsSize>;
195199
declare const AdUnitFormatTypeLookup: Record<AdUnitFormatTypeLookupKey, AdUnitFormatType>;
196200
declare const FallbackAdURL: Partial<Record<AdUnitFormatType, HTTPSURLString>>;
197201
declare const AdUnitFormatImpressionThreshold: Record<AdUnitFormatType, ImpressionThreshold>;
198202
declare const DefaultImpressionThreshold: ImpressionThreshold;
199-
declare const INSTRUMENT_ENDPOINT: HTTPSURLString;
200-
declare const LOG_TO_CONSOLE_FLAG_DEFAULT = true;
201-
declare const LOG_EMIT_FLAG_DEFAULT = true;
202203

203204
interface MozAdsRenderPlacementProps {
204205
placement: MozAdsPlacementWithContent;
@@ -393,4 +394,4 @@ declare const setItemInStore: (key: MozAdsStoreKey, value: string, storeType?: S
393394
declare const removeItemFromStore: (key: MozAdsStoreKey, storeType?: StoreType) => void;
394395
declare const getOrGenerateContextId: (forceRegenerate?: boolean) => string;
395396

396-
export { AdUnitFormatImpressionThreshold, type AdUnitFormatType, AdUnitFormatTypeLookup, type AdUnitFormatTypeLookupKey, CLOSE_ICON_SVG, DEFAULT_SERVICE_ENDPOINT, DefaultImpressionThreshold, DefaultLogReporter, type DefaultLogReporterConfig, DefaultLogger, DefaultMozAdsImpressionObserver, FALLBACK_BILLBOARD_SVG, FALLBACK_DINO_SVG_FRAGMENT, FALLBACK_DONATE_SVG_FRAGMENT, FALLBACK_MRECTANGLE_SVG, FALLBACK_SKYSCRAPER_SVG, FallbackAdURL, FetchAdsError, type FetchAdsParams, FixedSize, type HTTPSURLString, type HttpRequestMethod, type IABAdUnitFormatType, type IABContent, type IABContentTaxonomyType, IABFixedSize, INSTRUMENT_ENDPOINT, IS_BROWSER, type ImpressionThreshold, LOG_EMIT_FLAG_DEFAULT, LOG_TO_CONSOLE_FLAG_DEFAULT, type LogEmitterOptions, type LogFields, type LogReporter, type LogType, type Logger, type LoggerConfig, LoggerLevel, type MozAdsContent, type MozAdsImpressionObserver, type MozAdsImpressionTracker, type MozAdsLocalizedStringKey, type MozAdsPlacementConfig, type MozAdsPlacementWithContent, type MozAdsPlacements, type MozAdsRenderPlacementErrorEvent, type MozAdsRenderPlacementEvent, type MozAdsRenderPlacementProps, type MozAdsRenderPlacementReportEvent, type MozAdsSize, type MozAdsStoreKey, type MozLogMessage, type NonIABAdUnitFormatType, NonIABFixedSize, type PlacementImpressionInfo, REPORT_ICON_SVG, SeverityLevel, StoreType, type TelemetryEventLabel, buildPlacementsRequest, defaultImpressionObserver, defaultLogReporter, fetchAds, getItemFromStore, getOrGenerateContextId, l, mapResponseToPlacementsWithContent, preloadImage, recordClick, removeItemFromStore, renderPlacement, setItemInStore };
397+
export { AdUnitFormatImpressionThreshold, type AdUnitFormatType, AdUnitFormatTypeLookup, type AdUnitFormatTypeLookupKey, CLOSE_ICON_SVG, DEFAULT_SERVICE_ENDPOINT, DefaultImpressionThreshold, DefaultLogReporter, type DefaultLogReporterConfig, DefaultLogger, DefaultMozAdsImpressionObserver, FALLBACK_BILLBOARD_SVG, FALLBACK_DINO_SVG_FRAGMENT, FALLBACK_DONATE_SVG_FRAGMENT, FALLBACK_MRECTANGLE_SVG, FALLBACK_SKYSCRAPER_SVG, FallbackAdURL, FetchAdsError, type FetchAdsParams, FixedSize, type HTTPSURLString, type HttpRequestMethod, type IABAdUnitFormatType, type IABContent, type IABContentTaxonomyType, IABFixedSize, INSTRUMENT_ENDPOINT, IS_BROWSER, IS_PRODUCTION, type ImpressionThreshold, LOG_EMIT_FLAG_DEFAULT, LOG_TO_CONSOLE_FLAG_DEFAULT, type LogEmitterOptions, type LogFields, type LogReporter, type LogType, type Logger, type LoggerConfig, LoggerLevel, type MozAdsContent, type MozAdsImpressionObserver, type MozAdsImpressionTracker, type MozAdsLocalizedStringKey, type MozAdsPlacementConfig, type MozAdsPlacementWithContent, type MozAdsPlacements, type MozAdsRenderPlacementErrorEvent, type MozAdsRenderPlacementEvent, type MozAdsRenderPlacementProps, type MozAdsRenderPlacementReportEvent, type MozAdsSize, type MozAdsStoreKey, type MozLogMessage, type NonIABAdUnitFormatType, NonIABFixedSize, type PlacementImpressionInfo, REPORT_ICON_SVG, SeverityLevel, StoreType, type TelemetryEventLabel, buildPlacementsRequest, defaultImpressionObserver, defaultLogReporter, fetchAds, getItemFromStore, getOrGenerateContextId, l, mapResponseToPlacementsWithContent, preloadImage, recordClick, removeItemFromStore, renderPlacement, setItemInStore };

dist/core.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import{A,B,C,D,E,F,G,H,I,J,K,L,M,a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,q as k,r as l,s as n,t as q,u as s,v as u,w as v,x as w,y,z}from"./chunk-IQD4X22F.mjs";import"./chunk-57T3EAOB.mjs";export{x as AdUnitFormatImpressionThreshold,p as AdUnitFormatTypeLookup,s as CLOSE_ICON_SVG,r as DEFAULT_SERVICE_ENDPOINT,a as DefaultImpressionThreshold,h as DefaultLogReporter,k as DefaultLogger,l as DefaultMozAdsImpressionObserver,y as FALLBACK_BILLBOARD_SVG,v as FALLBACK_DINO_SVG_FRAGMENT,w as FALLBACK_DONATE_SVG_FRAGMENT,A as FALLBACK_MRECTANGLE_SVG,z as FALLBACK_SKYSCRAPER_SVG,t as FallbackAdURL,J as FetchAdsError,m as FixedSize,e as IABFixedSize,b as INSTRUMENT_ENDPOINT,o as IS_BROWSER,d as LOG_EMIT_FLAG_DEFAULT,c as LOG_TO_CONSOLE_FLAG_DEFAULT,j as LoggerLevel,f as NonIABFixedSize,u as REPORT_ICON_SVG,g as SeverityLevel,E as StoreType,L as buildPlacementsRequest,n as defaultImpressionObserver,i as defaultLogReporter,K as fetchAds,F as getItemFromStore,I as getOrGenerateContextId,B as l,M as mapResponseToPlacementsWithContent,C as preloadImage,q as recordClick,H as removeItemFromStore,D as renderPlacement,G as setItemInStore};
1+
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,q as k,r as l,s as n,t as q,u as s,v as u,w as v,x as w,y,z}from"./chunk-3CV7W4JN.mjs";import"./chunk-57T3EAOB.mjs";export{d as AdUnitFormatImpressionThreshold,b as AdUnitFormatTypeLookup,u as CLOSE_ICON_SVG,e as DEFAULT_SERVICE_ENDPOINT,g as DefaultImpressionThreshold,i as DefaultLogReporter,l as DefaultLogger,n as DefaultMozAdsImpressionObserver,z as FALLBACK_BILLBOARD_SVG,w as FALLBACK_DINO_SVG_FRAGMENT,y as FALLBACK_DONATE_SVG_FRAGMENT,B as FALLBACK_MRECTANGLE_SVG,A as FALLBACK_SKYSCRAPER_SVG,c as FallbackAdURL,K as FetchAdsError,a as FixedSize,t as IABFixedSize,f as INSTRUMENT_ENDPOINT,o as IS_BROWSER,r as IS_PRODUCTION,p as LOG_EMIT_FLAG_DEFAULT,m as LOG_TO_CONSOLE_FLAG_DEFAULT,k as LoggerLevel,x as NonIABFixedSize,v as REPORT_ICON_SVG,h as SeverityLevel,F as StoreType,M as buildPlacementsRequest,q as defaultImpressionObserver,j as defaultLogReporter,L as fetchAds,G as getItemFromStore,J as getOrGenerateContextId,C as l,N as mapResponseToPlacementsWithContent,D as preloadImage,s as recordClick,I as removeItemFromStore,E as renderPlacement,H as setItemInStore};

dist/iife.global.js

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)