@sensiblestats/widget-react 0.88.0 → 0.89.0
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/CHANGELOG.md +11 -0
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -968,6 +968,9 @@ function isEnglishLocale(locale) {
|
|
|
968
968
|
return lang === "en" || !Object.prototype.hasOwnProperty.call(STRINGS, lang);
|
|
969
969
|
}
|
|
970
970
|
|
|
971
|
+
// src/version.generated.ts
|
|
972
|
+
var WIDGET_REACT_VERSION = "0.89.0";
|
|
973
|
+
|
|
971
974
|
// src/config.ts
|
|
972
975
|
function normalizeUi(cfg) {
|
|
973
976
|
const strings = resolveLocaleStrings(cfg.locale);
|
|
@@ -1200,7 +1203,7 @@ function normalizeUi(cfg) {
|
|
|
1200
1203
|
};
|
|
1201
1204
|
}
|
|
1202
1205
|
function toClientOptions(cfg) {
|
|
1203
|
-
const opts = { operatorId: cfg.operatorId, publicKey: cfg.publicKey };
|
|
1206
|
+
const opts = { operatorId: cfg.operatorId, publicKey: cfg.publicKey, client: `widget-react/${WIDGET_REACT_VERSION}` };
|
|
1204
1207
|
if (cfg.baseUrl !== void 0) opts.baseUrl = cfg.baseUrl;
|
|
1205
1208
|
return opts;
|
|
1206
1209
|
}
|