touchstudy-core 0.1.4 → 0.1.5
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/index.js +13 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/isLocalHost.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -21,11 +21,15 @@ var setUser = createAction("common/setUser");
|
|
21
21
|
var setLanguage = createAction("common/setLanguage");
|
22
22
|
var reset = createAction("common/reset");
|
23
23
|
|
24
|
+
var isLocalHost = Boolean(window.location.hostname === "localhost" || window.location.hostname === "[::1]" || window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));
|
25
|
+
|
24
26
|
var GOOGLE_CLIENT_ID = "64118819726-0qlur4qjrs9jbuu6rnoa0u91g680lmpg.apps.googleusercontent.com";
|
25
27
|
var GOOGLE_RECAPTCHA_ID = "6LfNtLUaAAAAAL24lbBV11jS-gBtt1mhtxb4NXs0";
|
26
28
|
var ACCESS_TOKEN = "ACCESS_TOKEN";
|
27
29
|
var DATE_MIN_VALUE = "0001-01-01T00:00:00+00:00";
|
28
|
-
var BASE_URL =
|
30
|
+
var BASE_URL = function () {
|
31
|
+
return isLocalHost ? "https://localhost:7045" : "api.studypeak.io";
|
32
|
+
}();
|
29
33
|
var PUSHER_CONFIG = {
|
30
34
|
cluster: "ap1",
|
31
35
|
key: "9018c77328885a14150b"
|