@dmitryvim/form-builder 0.2.1 → 0.2.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/dist/browser/formbuilder.min.js +9 -9
- package/dist/browser/{formbuilder.v0.2.1.min.js → formbuilder.v0.2.2.min.js} +9 -9
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/form-builder.js +9 -9
- package/package.json +2 -1
package/dist/esm/index.js
CHANGED
|
@@ -3017,7 +3017,7 @@ var FormBuilderInstance = class {
|
|
|
3017
3017
|
constructor(config) {
|
|
3018
3018
|
this.instanceId = generateInstanceId();
|
|
3019
3019
|
this.state = createInstanceState(config);
|
|
3020
|
-
if (process.env.NODE_ENV === "development") {
|
|
3020
|
+
if (typeof process !== "undefined" && process.env.NODE_ENV === "development") {
|
|
3021
3021
|
if (config?.getThumbnail) {
|
|
3022
3022
|
const testResult = config.getThumbnail("test-id");
|
|
3023
3023
|
if (!(testResult instanceof Promise)) {
|
|
@@ -3581,7 +3581,7 @@ var FormBuilderInstance = class {
|
|
|
3581
3581
|
this.state.formRoot = null;
|
|
3582
3582
|
this.state.schema = null;
|
|
3583
3583
|
this.state.externalActions = null;
|
|
3584
|
-
if (process.env.NODE_ENV === "development") {
|
|
3584
|
+
if (typeof process !== "undefined" && process.env.NODE_ENV === "development") {
|
|
3585
3585
|
globalThis.__formBuilderInstances?.delete(this.instanceId);
|
|
3586
3586
|
}
|
|
3587
3587
|
}
|