@mapvx/web-js 3.1.0-dev.2 → 3.1.0-dev.3

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.
@@ -14,7 +14,7 @@ const browser_1 = require("@sentry/browser");
14
14
  // exists only for the type-checker, so in the ES/CJS builds the identifier is
15
15
  // genuinely absent and a direct comparison throws ReferenceError at module load.
16
16
  // `typeof` is the only safe way to probe a possibly-undeclared global.
17
- const SDK_VERSION = typeof VERSION === "undefined" ? "3.1.0-dev.2" : VERSION;
17
+ const SDK_VERSION = typeof VERSION === "undefined" ? "3.1.0-dev.3" : VERSION;
18
18
  const DSN = typeof SENTRY_DSN !== "undefined" && SENTRY_DSN
19
19
  ? SENTRY_DSN
20
20
  : "https://872f598f020e3cd73a0933b562d24c81@sentry.mapvx.app/5";
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isMapVxRequestHostname = isMapVxRequestHostname;
4
4
  /**
5
5
  * Returns whether a URL hostname is part of the MapVX API domain tree.
6
- * Matches `mapvx.com` and any subdomain (`api.mapvx.com`, `public-api.mapvx.com`,
7
- * `integration.mapvx.com`, etc.). Does not match lookalike domains (e.g. `notmapvx.com`).
6
+ * Matches `mapvx.com` and `mapvx.dev` plus any subdomain (`api.mapvx.com`,
7
+ * `public-api.mapvx.com`, `api.mapvx.dev`, `portal.mapvx.dev`, etc.).
8
+ * Does not match lookalike domains (e.g. `notmapvx.com`).
8
9
  *
9
10
  * @param hostname - Value from `URL.hostname` (no port)
10
11
  * @returns True if context headers should be attached for this host
@@ -15,6 +16,6 @@ function isMapVxRequestHostname(hostname) {
15
16
  if (!h) {
16
17
  return false;
17
18
  }
18
- return /^(?:[a-z0-9-]+\.)*mapvx\.com$/.test(h);
19
+ return /^(?:[a-z0-9-]+\.)*mapvx\.(?:com|dev)$/.test(h);
19
20
  }
20
21
  //# sourceMappingURL=mapvxHostname.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mapvxHostname.js","sourceRoot":"","sources":["../../../src/utils/mapvxHostname.ts"],"names":[],"mappings":";;AASA,wDAMC;AAfD;;;;;;;;GAQG;AACH,SAAgB,sBAAsB,CAAC,QAAgB;IACrD,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;IACvC,IAAI,CAAC,CAAC,EAAE,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;IACD,OAAO,+BAA+B,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AAChD,CAAC"}
1
+ {"version":3,"file":"mapvxHostname.js","sourceRoot":"","sources":["../../../src/utils/mapvxHostname.ts"],"names":[],"mappings":";;AAUA,wDAMC;AAhBD;;;;;;;;;GASG;AACH,SAAgB,sBAAsB,CAAC,QAAgB;IACrD,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;IACvC,IAAI,CAAC,CAAC,EAAE,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;IACD,OAAO,uCAAuC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACxD,CAAC"}
@@ -94,7 +94,7 @@ export interface SDKConfig {
94
94
  /**
95
95
  * The base API URL for the SDK requests.
96
96
  * Can be used to point to different environments or custom servers.
97
- * For example: 'https://public-api.mapvx.com' for production, 'https://integration.mapvx.com' for staging.
97
+ * For example: 'https://public-api.mapvx.com' for production, 'https://api.mapvx.dev' for staging.
98
98
  * @defaultValue `https://public-api.mapvx.com`
99
99
  */
100
100
  apiUrl?: string;
@@ -10,7 +10,7 @@ import { BrowserClient, defaultStackParser, getDefaultIntegrations, makeFetchTra
10
10
  // exists only for the type-checker, so in the ES/CJS builds the identifier is
11
11
  // genuinely absent and a direct comparison throws ReferenceError at module load.
12
12
  // `typeof` is the only safe way to probe a possibly-undeclared global.
13
- const SDK_VERSION = typeof VERSION === "undefined" ? "3.1.0-dev.2" : VERSION;
13
+ const SDK_VERSION = typeof VERSION === "undefined" ? "3.1.0-dev.3" : VERSION;
14
14
  const DSN = typeof SENTRY_DSN !== "undefined" && SENTRY_DSN
15
15
  ? SENTRY_DSN
16
16
  : "https://872f598f020e3cd73a0933b562d24c81@sentry.mapvx.app/5";
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Returns whether a URL hostname is part of the MapVX API domain tree.
3
- * Matches `mapvx.com` and any subdomain (`api.mapvx.com`, `public-api.mapvx.com`,
4
- * `integration.mapvx.com`, etc.). Does not match lookalike domains (e.g. `notmapvx.com`).
3
+ * Matches `mapvx.com` and `mapvx.dev` plus any subdomain (`api.mapvx.com`,
4
+ * `public-api.mapvx.com`, `api.mapvx.dev`, `portal.mapvx.dev`, etc.).
5
+ * Does not match lookalike domains (e.g. `notmapvx.com`).
5
6
  *
6
7
  * @param hostname - Value from `URL.hostname` (no port)
7
8
  * @returns True if context headers should be attached for this host
@@ -1 +1 @@
1
- {"version":3,"file":"mapvxHostname.d.ts","sourceRoot":"","sources":["../../../src/utils/mapvxHostname.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAMhE"}
1
+ {"version":3,"file":"mapvxHostname.d.ts","sourceRoot":"","sources":["../../../src/utils/mapvxHostname.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAMhE"}
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Returns whether a URL hostname is part of the MapVX API domain tree.
3
- * Matches `mapvx.com` and any subdomain (`api.mapvx.com`, `public-api.mapvx.com`,
4
- * `integration.mapvx.com`, etc.). Does not match lookalike domains (e.g. `notmapvx.com`).
3
+ * Matches `mapvx.com` and `mapvx.dev` plus any subdomain (`api.mapvx.com`,
4
+ * `public-api.mapvx.com`, `api.mapvx.dev`, `portal.mapvx.dev`, etc.).
5
+ * Does not match lookalike domains (e.g. `notmapvx.com`).
5
6
  *
6
7
  * @param hostname - Value from `URL.hostname` (no port)
7
8
  * @returns True if context headers should be attached for this host
@@ -12,6 +13,6 @@ export function isMapVxRequestHostname(hostname) {
12
13
  if (!h) {
13
14
  return false;
14
15
  }
15
- return /^(?:[a-z0-9-]+\.)*mapvx\.com$/.test(h);
16
+ return /^(?:[a-z0-9-]+\.)*mapvx\.(?:com|dev)$/.test(h);
16
17
  }
17
18
  //# sourceMappingURL=mapvxHostname.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mapvxHostname.js","sourceRoot":"","sources":["../../../src/utils/mapvxHostname.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,UAAU,sBAAsB,CAAC,QAAgB;IACrD,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;IACvC,IAAI,CAAC,CAAC,EAAE,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;IACD,OAAO,+BAA+B,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AAChD,CAAC"}
1
+ {"version":3,"file":"mapvxHostname.js","sourceRoot":"","sources":["../../../src/utils/mapvxHostname.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,UAAU,sBAAsB,CAAC,QAAgB;IACrD,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;IACvC,IAAI,CAAC,CAAC,EAAE,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;IACD,OAAO,uCAAuC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACxD,CAAC"}
package/dist/umd/index.js CHANGED
@@ -11240,7 +11240,7 @@ const extractSafariExtensionDetails = (func, filename) => {
11240
11240
  // exists only for the type-checker, so in the ES/CJS builds the identifier is
11241
11241
  // genuinely absent and a direct comparison throws ReferenceError at module load.
11242
11242
  // `typeof` is the only safe way to probe a possibly-undeclared global.
11243
- var sentry_SDK_VERSION = false ? 0 : "3.1.0-dev.2";
11243
+ var sentry_SDK_VERSION = false ? 0 : "3.1.0-dev.3";
11244
11244
  var DSN = false ? 0 : "https://872f598f020e3cd73a0933b562d24c81@sentry.mapvx.app/5";
11245
11245
 
11246
11246
  /**
@@ -15998,8 +15998,9 @@ function MVXTransport(data) {
15998
15998
  ;// ./src/utils/mapvxHostname.ts
15999
15999
  /**
16000
16000
  * Returns whether a URL hostname is part of the MapVX API domain tree.
16001
- * Matches `mapvx.com` and any subdomain (`api.mapvx.com`, `public-api.mapvx.com`,
16002
- * `integration.mapvx.com`, etc.). Does not match lookalike domains (e.g. `notmapvx.com`).
16001
+ * Matches `mapvx.com` and `mapvx.dev` plus any subdomain (`api.mapvx.com`,
16002
+ * `public-api.mapvx.com`, `api.mapvx.dev`, `portal.mapvx.dev`, etc.).
16003
+ * Does not match lookalike domains (e.g. `notmapvx.com`).
16003
16004
  *
16004
16005
  * @param hostname - Value from `URL.hostname` (no port)
16005
16006
  * @returns True if context headers should be attached for this host
@@ -16010,7 +16011,7 @@ function isMapVxRequestHostname(hostname) {
16010
16011
  if (!h) {
16011
16012
  return false;
16012
16013
  }
16013
- return /^(?:[a-z0-9-]+\.)*mapvx\.com$/.test(h);
16014
+ return /^(?:[a-z0-9-]+\.)*mapvx\.(?:com|dev)$/.test(h);
16014
16015
  }
16015
16016
  ;// ./src/repository/requester.ts
16016
16017
  function requester_toConsumableArray(r) { return requester_arrayWithoutHoles(r) || requester_iterableToArray(r) || requester_unsupportedIterableToArray(r) || requester_nonIterableSpread(); }