nuxt-callapp 1.4.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/README.md CHANGED
@@ -1,17 +1,18 @@
1
1
  <!--
2
- Get your module up and running quickly.
3
-
4
- Find and replace all on all files (CMD+SHIFT+F):
5
- - Name: My Module
2
+ - Name: Nuxt CallApp
6
3
  - Package name: nuxt-callapp
7
- - Description: My new Nuxt module
4
+ - Description: A nuxt module for [callapp-lib]
8
5
  -->
9
6
 
10
- # Nuxt CallApp
7
+ <p align="center">
8
+ <img width="180" src="./assets/callapp.svg" alt="callapp logo">
9
+ </p>
11
10
 
12
11
  [![npm version][npm-version-src]][npm-version-href]
13
12
  [![npm downloads][npm-downloads-src]][npm-downloads-href]
14
13
 
14
+ # Nuxt CallApp
15
+
15
16
  A nuxt module for [callapp-lib](https://github.com/suanmei/callapp-lib)
16
17
 
17
18
  - [✨ &nbsp;Release Notes](/CHANGELOG.md)
package/dist/module.d.mts CHANGED
@@ -3,6 +3,6 @@ import { CallappOptions } from 'callapp-lib/dist/type/types';
3
3
 
4
4
  interface ModuleOptions extends CallappOptions {
5
5
  }
6
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
6
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
7
7
 
8
8
  export { type ModuleOptions, _default as default };
package/dist/module.d.ts CHANGED
@@ -3,6 +3,6 @@ import { CallappOptions } from 'callapp-lib/dist/type/types';
3
3
 
4
4
  interface ModuleOptions extends CallappOptions {
5
5
  }
6
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
6
+ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
7
7
 
8
8
  export { type ModuleOptions, _default as default };
package/dist/module.json CHANGED
@@ -1,5 +1,9 @@
1
1
  {
2
2
  "name": "nuxt-callapp",
3
3
  "configKey": "callapp",
4
- "version": "1.4.0"
4
+ "version": "1.5.1",
5
+ "builder": {
6
+ "@nuxt/module-builder": "0.8.4",
7
+ "unbuild": "2.0.0"
8
+ }
5
9
  }
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 { ['callapp']?: Partial<ModuleOptions> }
7
- interface NuxtOptions { ['callapp']?: ModuleOptions }
8
- }
9
-
10
- declare module 'nuxt/schema' {
11
- interface NuxtConfig { ['callapp']?: Partial<ModuleOptions> }
12
- interface NuxtOptions { ['callapp']?: 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 { ['callapp']?: Partial<ModuleOptions> }
7
- interface NuxtOptions { ['callapp']?: ModuleOptions }
8
- }
9
-
10
- declare module 'nuxt/schema' {
11
- interface NuxtConfig { ['callapp']?: Partial<ModuleOptions> }
12
- interface NuxtOptions { ['callapp']?: 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-callapp",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "description": "A Nuxt module for callapp-lib",
5
5
  "author": {
6
6
  "name": "xjccc",
@@ -35,26 +35,49 @@
35
35
  "dev": "nuxi dev playground",
36
36
  "dev:build": "nuxi build playground",
37
37
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
38
- "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
38
+ "release": "changelogen --release && npm run lint && npm run test && npm run prepack && npm publish && git push --follow-tags",
39
+ "echo:husky": "echo 'npx lint-staged' > .husky/pre-commit && echo 'npx --no-install commitlint --edit \"$1\"' > .husky/commit-msg",
39
40
  "lint": "eslint .",
41
+ "lint:fix": "eslint . --fix",
42
+ "prepare": "husky",
43
+ "commit": "git-cz",
40
44
  "test": "vitest run",
41
45
  "test:watch": "vitest watch"
42
46
  },
47
+ "config": {
48
+ "commitizen": {
49
+ "path": "node_modules/cz-git"
50
+ }
51
+ },
43
52
  "dependencies": {
44
- "@nuxt/kit": "^3.10.3",
53
+ "@nuxt/kit": "^3.14.1592",
45
54
  "callapp-lib": "^3.5.3",
46
55
  "defu": "^6.1.4"
47
56
  },
48
57
  "devDependencies": {
49
- "@nuxt/devtools": "latest",
50
- "@nuxt/eslint-config": "^0.2.0",
51
- "@nuxt/module-builder": "^0.5.5",
52
- "@nuxt/schema": "^3.10.3",
53
- "@nuxt/test-utils": "^3.11.0",
54
- "@types/node": "^20.11.22",
55
- "changelogen": "^0.5.5",
56
- "eslint": "^8.57.0",
57
- "nuxt": "^3.10.3",
58
- "vitest": "^1.3.1"
58
+ "@commitlint/cli": "^19.6.0",
59
+ "@commitlint/config-conventional": "^19.6.0",
60
+ "@nuxt/devtools": "^1.6.1",
61
+ "@nuxt/eslint-config": "^0.7.2",
62
+ "@nuxt/module-builder": "^0.8.4",
63
+ "@nuxt/schema": "^3.14.1592",
64
+ "@nuxt/test-utils": "^3.14.4",
65
+ "@types/node": "^22.10.1",
66
+ "changelogen": "^0.5.7",
67
+ "commitizen": "^4.3.1",
68
+ "cz-git": "^1.11.0",
69
+ "eslint": "^9.16.0",
70
+ "husky": "^9.1.7",
71
+ "lint-staged": "^15.2.10",
72
+ "nuxt": "^3.14.1592",
73
+ "vitest": "^2.1.8"
74
+ },
75
+ "husky": {
76
+ "hooks": {
77
+ "pre-commit": "lint-staged"
78
+ }
79
+ },
80
+ "lint-staged": {
81
+ "*": "eslint . --fix"
59
82
  }
60
83
  }
@@ -1,5 +1,5 @@
1
- import { defineNuxtPlugin, useRuntimeConfig } from "#imports";
2
1
  import CallApp from "callapp-lib";
2
+ import { defineNuxtPlugin, useRuntimeConfig } from "#imports";
3
3
  let callApp;
4
4
  function createCallApp(options) {
5
5
  return new CallApp(options);