@neatui/nuxt 1.5.0 → 1.5.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neatui/nuxt",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "NeatUI component library for Nuxt 3",
5
5
  "main": "./src/index.ts",
6
6
  "license": "MIT",
@@ -1,5 +1,6 @@
1
1
  import Layer from './Layer.vue';
2
2
  const LayerById = (id: any) => {
3
- return (window as any)._FEKIT_LAYER_TASKS[id];
3
+ const win: any = typeof window !== 'undefined' ? window : {};
4
+ return win._FEKIT_LAYER_TASKS?.[id];
4
5
  };
5
6
  export { Layer, LayerById };
@@ -1,5 +1,4 @@
1
- import Layer from './LayerView/Layer.vue';
2
- import { LayerById } from './LayerView/index';
1
+ import { Layer, LayerById } from './LayerView';
3
2
  import Icon from './Icon.vue';
4
3
  import IFollowView from './IFollowView.vue';
5
4
  import IPickerView from './IPickerView.vue';