@mappedin/mappedin-js 4.1.1 → 4.1.2
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.
- package/lib/esm/get-venue/index.d.ts +26 -0
- package/lib/esm/get-venue/index.js +1 -1
- package/lib/esm/renderer/{browser-XZBNEBQE.js → browser-GNKGEKD4.js} +1 -1
- package/lib/esm/renderer/chunk-H6XSIP3Z.js +1 -0
- package/lib/esm/renderer/index.d.ts +16 -2
- package/lib/esm/renderer/index.js +1 -1
- package/lib/mappedin.js +1 -1
- package/lib/node/index.js +1 -1
- package/package.json +4 -7
- package/lib/esm/renderer/chunk-VHRXSV43.js +0 -1
|
@@ -6,6 +6,19 @@
|
|
|
6
6
|
declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
|
|
7
7
|
import type { TGetVenueOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.types';
|
|
8
8
|
import { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin';
|
|
9
|
+
/**
|
|
10
|
+
* This is how we can avoid bundling in node-fetch (via isomorphic fetch),
|
|
11
|
+
* which keeps popping up in security advisories
|
|
12
|
+
* This is a pattern that most isomorphic libraries appear to use,
|
|
13
|
+
* where when running in node, you can pass your own fetch function
|
|
14
|
+
* as one is not provided by Node.js.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export function isomorphicFetch(): Window['fetch'];
|
|
18
|
+
/**
|
|
19
|
+
* Overwrite the internal `fetch` function with your own. Typically for use in Node.js and Jest
|
|
20
|
+
*/
|
|
21
|
+
export function setFetchFn(fetchFn: any): void;
|
|
9
22
|
/** Classes */
|
|
10
23
|
export { Mappedin, MappedinCollectionType } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin';
|
|
11
24
|
export { MappedinLocation } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinLocation';
|
|
@@ -2008,6 +2021,19 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.Analy
|
|
|
2008
2021
|
declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue' {
|
|
2009
2022
|
import type { TGetVenueOptions } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin.types';
|
|
2010
2023
|
import { Mappedin } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin';
|
|
2024
|
+
/**
|
|
2025
|
+
* This is how we can avoid bundling in node-fetch (via isomorphic fetch),
|
|
2026
|
+
* which keeps popping up in security advisories
|
|
2027
|
+
* This is a pattern that most isomorphic libraries appear to use,
|
|
2028
|
+
* where when running in node, you can pass your own fetch function
|
|
2029
|
+
* as one is not provided by Node.js.
|
|
2030
|
+
*
|
|
2031
|
+
*/
|
|
2032
|
+
export function isomorphicFetch(): Window['fetch'];
|
|
2033
|
+
/**
|
|
2034
|
+
* Overwrite the internal `fetch` function with your own. Typically for use in Node.js and Jest
|
|
2035
|
+
*/
|
|
2036
|
+
export function setFetchFn(fetchFn: any): void;
|
|
2011
2037
|
/** Classes */
|
|
2012
2038
|
export { Mappedin, MappedinCollectionType } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/Mappedin';
|
|
2013
2039
|
export { MappedinLocation } from '@mappedin/mappedin-js/lib/esm/get-venue/get-venue/MappedinLocation';
|