nuxt-modern-cropper 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/module.json CHANGED
@@ -1,5 +1,9 @@
1
1
  {
2
2
  "name": "nuxt-modern-cropper",
3
3
  "configKey": "modernCropper",
4
- "version": "0.1.4"
4
+ "version": "0.1.5",
5
+ "builder": {
6
+ "@nuxt/module-builder": "0.8.1",
7
+ "unbuild": "2.0.0"
8
+ }
5
9
  }
package/dist/module.mjs CHANGED
@@ -6,7 +6,7 @@ const module = defineNuxtModule({
6
6
  configKey: "modernCropper"
7
7
  },
8
8
  defaults: {},
9
- setup(options, nuxt) {
9
+ setup() {
10
10
  addComponent({
11
11
  name: "ModernCropper",
12
12
  export: "ModernCropper",
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
2
2
  export default _default;
@@ -0,0 +1,3 @@
1
+ import { defineNuxtPlugin } from "#app";
2
+ export default defineNuxtPlugin(() => {
3
+ });
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "../../../.nuxt/tsconfig.server.json",
3
+ }
package/dist/types.d.mts CHANGED
@@ -1,16 +1 @@
1
-
2
- import type { ModuleOptions } from './module.js'
3
-
4
-
5
- declare module '@nuxt/schema' {
6
- interface NuxtConfig { ['modernCropper']?: Partial<ModuleOptions> }
7
- interface NuxtOptions { ['modernCropper']?: ModuleOptions }
8
- }
9
-
10
- declare module 'nuxt/schema' {
11
- interface NuxtConfig { ['modernCropper']?: Partial<ModuleOptions> }
12
- interface NuxtOptions { ['modernCropper']?: ModuleOptions }
13
- }
14
-
15
-
16
- export type { ModuleOptions, default } from './module.js'
1
+ export { type ModuleOptions, default } from './module.js'
package/dist/types.d.ts CHANGED
@@ -1,16 +1 @@
1
-
2
- import type { ModuleOptions } from './module'
3
-
4
-
5
- declare module '@nuxt/schema' {
6
- interface NuxtConfig { ['modernCropper']?: Partial<ModuleOptions> }
7
- interface NuxtOptions { ['modernCropper']?: ModuleOptions }
8
- }
9
-
10
- declare module 'nuxt/schema' {
11
- interface NuxtConfig { ['modernCropper']?: Partial<ModuleOptions> }
12
- interface NuxtOptions { ['modernCropper']?: ModuleOptions }
13
- }
14
-
15
-
16
- export type { ModuleOptions, default } from './module'
1
+ export { type ModuleOptions, default } from './module'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-modern-cropper",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Power-packed wrapper over cropperjs@next",
5
5
  "repository": "namesmt/nuxt-modern-cropper",
6
6
  "license": "MIT",
@@ -25,22 +25,25 @@
25
25
  "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
26
26
  "lint": "eslint .",
27
27
  "test": "vitest run",
28
- "test:watch": "vitest watch"
28
+ "test:watch": "vitest watch",
29
+ "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
29
30
  },
30
31
  "dependencies": {
31
- "@nuxt/kit": "^3.11.2",
32
+ "@nuxt/kit": "^3.12.3",
32
33
  "vue-modern-cropper": "0.x"
33
34
  },
34
35
  "devDependencies": {
35
- "@nuxt/devtools": "latest",
36
- "@nuxt/eslint-config": "^0.2.0",
37
- "@nuxt/module-builder": "^0.5.5",
38
- "@nuxt/schema": "^3.11.2",
39
- "@nuxt/test-utils": "^3.12.0",
40
- "@types/node": "^20.12.5",
36
+ "@nuxt/devtools": "^1.3.9",
37
+ "@nuxt/eslint-config": "^0.3.13",
38
+ "@nuxt/module-builder": "^0.8.1",
39
+ "@nuxt/schema": "^3.12.3",
40
+ "@nuxt/test-utils": "^3.13.1",
41
+ "@types/node": "^20.14.11",
41
42
  "changelogen": "^0.5.5",
42
- "eslint": "^8.57.0",
43
- "nuxt": "^3.11.2",
44
- "vitest": "^1.4.0"
43
+ "eslint": "^9.7.0",
44
+ "nuxt": "^3.12.3",
45
+ "typescript": "latest",
46
+ "vitest": "^2.0.3",
47
+ "vue-tsc": "^2.0.26"
45
48
  }
46
- }
49
+ }
@@ -1,3 +0,0 @@
1
- import { defineNuxtPlugin } from "#app";
2
- export default defineNuxtPlugin((nuxtApp) => {
3
- });