@punica/form 1.1.10 → 1.1.11
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/controller/index.js +4 -2
- package/package.json +2 -2
package/dist/controller/index.js
CHANGED
|
@@ -41,7 +41,8 @@ class FormController extends common_1.BaseListener {
|
|
|
41
41
|
this.trigger(eventType, data);
|
|
42
42
|
const devTools = (0, __1.getDevToolsBridge)();
|
|
43
43
|
const isEnabled = devTools.isEnabled();
|
|
44
|
-
if (typeof process !== 'undefined' &&
|
|
44
|
+
if (typeof process !== 'undefined' &&
|
|
45
|
+
((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'development') {
|
|
45
46
|
console.log('🔥 FormController.fireEvent:', eventType, {
|
|
46
47
|
devToolsEnabled: isEnabled,
|
|
47
48
|
hasData: !!data
|
|
@@ -66,7 +67,8 @@ class FormController extends common_1.BaseListener {
|
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
else {
|
|
69
|
-
if (typeof process !== 'undefined' &&
|
|
70
|
+
if (typeof process !== 'undefined' &&
|
|
71
|
+
((_b = process.env) === null || _b === void 0 ? void 0 : _b.NODE_ENV) === 'development') {
|
|
70
72
|
console.warn('⚠️ FormController: DevTools bridge is disabled. Event not sent:', eventType);
|
|
71
73
|
}
|
|
72
74
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@punica/form",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "Form",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Uryan Sezgin TEKE",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@punica/common": "^1.0.1",
|
|
37
37
|
"@punica/util": "^1.0.2"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "aefc028e058e735d02d73759eb10edc16b4934d4"
|
|
40
40
|
}
|