@oobit/react-native-sdk 1.0.3 → 1.0.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.
- package/dist/config.d.ts +2 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/package.json +1 -1
- package/src/config.ts +5 -3
package/dist/config.d.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Widget SDK Configuration
|
|
3
3
|
* Environment-based configuration for the widget URL
|
|
4
4
|
*/
|
|
5
|
-
import { WidgetEnvironment } from
|
|
5
|
+
import { WidgetEnvironment } from "./types";
|
|
6
6
|
/**
|
|
7
7
|
* Widget URLs by environment
|
|
8
8
|
*/
|
|
9
9
|
export declare const WIDGET_URLS: {
|
|
10
10
|
readonly development: "https://oobit-widget-dev.web.app";
|
|
11
|
-
readonly production: "https://widget.
|
|
11
|
+
readonly production: "https://oobit-widget.web.app";
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* Get the widget URL for the specified environment
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,WAAW;;;CAGd,CAAC;AAEX;;;;GAIG;AACH,wBAAgB,YAAY,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,WAAW;;;CAGd,CAAC;AAEX;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,WAAW,GAAE,iBAAgC,GAC5C,MAAM,CAER"}
|
package/dist/config.js
CHANGED
|
@@ -11,14 +11,14 @@ exports.getWidgetUrl = getWidgetUrl;
|
|
|
11
11
|
*/
|
|
12
12
|
exports.WIDGET_URLS = {
|
|
13
13
|
development: "https://oobit-widget-dev.web.app",
|
|
14
|
-
production: "https://widget.
|
|
14
|
+
production: "https://oobit-widget.web.app",
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* Get the widget URL for the specified environment
|
|
18
18
|
* @param environment - The environment to use (defaults to 'production')
|
|
19
19
|
* @returns The widget URL for the specified environment
|
|
20
20
|
*/
|
|
21
|
-
function getWidgetUrl(environment =
|
|
21
|
+
function getWidgetUrl(environment = "production") {
|
|
22
22
|
return exports.WIDGET_URLS[environment];
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=config.js.map
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAiBH,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAiBH,oCAIC;AAjBD;;GAEG;AACU,QAAA,WAAW,GAAG;IACzB,WAAW,EAAE,kCAAkC;IAC/C,UAAU,EAAE,8BAA8B;CAClC,CAAC;AAEX;;;;GAIG;AACH,SAAgB,YAAY,CAC1B,cAAiC,YAAY;IAE7C,OAAO,mBAAW,CAAC,WAAW,CAAC,CAAC;AAClC,CAAC"}
|
package/package.json
CHANGED
package/src/config.ts
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* Environment-based configuration for the widget URL
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { WidgetEnvironment } from
|
|
6
|
+
import { WidgetEnvironment } from "./types";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Widget URLs by environment
|
|
10
10
|
*/
|
|
11
11
|
export const WIDGET_URLS = {
|
|
12
12
|
development: "https://oobit-widget-dev.web.app",
|
|
13
|
-
production: "https://widget.
|
|
13
|
+
production: "https://oobit-widget.web.app",
|
|
14
14
|
} as const;
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -18,6 +18,8 @@ export const WIDGET_URLS = {
|
|
|
18
18
|
* @param environment - The environment to use (defaults to 'production')
|
|
19
19
|
* @returns The widget URL for the specified environment
|
|
20
20
|
*/
|
|
21
|
-
export function getWidgetUrl(
|
|
21
|
+
export function getWidgetUrl(
|
|
22
|
+
environment: WidgetEnvironment = "production"
|
|
23
|
+
): string {
|
|
22
24
|
return WIDGET_URLS[environment];
|
|
23
25
|
}
|