nuxt-callapp 1.1.0 → 1.1.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/README.md CHANGED
@@ -7,7 +7,7 @@ Find and replace all on all files (CMD+SHIFT+F):
7
7
  - Description: My new Nuxt module
8
8
  -->
9
9
 
10
- # My Module
10
+ # Nuxt CallApp
11
11
 
12
12
  [![npm version][npm-version-src]][npm-version-href]
13
13
  [![npm downloads][npm-downloads-src]][npm-downloads-href]
@@ -20,6 +20,7 @@ A nuxt module for [callapp-lib](https://github.com/suanmei/callapp-lib)
20
20
 
21
21
  ## Features
22
22
 
23
+ - [] update wx support by `callapp-lib`
23
24
 
24
25
  ## Quick Setup
25
26
 
@@ -42,7 +43,24 @@ npm install --save-dev nuxt-callapp
42
43
  export default defineNuxtConfig({
43
44
  modules: [
44
45
  'nuxt-callapp'
45
- ]
46
+ ],
47
+ callapp: {
48
+ scheme: {
49
+ protocol: 'zhihu',
50
+ },
51
+ intent: {
52
+ package: 'com.zhihu.android',
53
+ scheme: 'zhihu',
54
+ },
55
+ universal: {
56
+ host: 'oia.zhihu.com',
57
+ pathKey: '',
58
+ },
59
+ appstore: 'https://itunes.apple.com/cn/app/id432274380',
60
+ yingyongbao: '//a.app.qq.com/o/simple.jsp?pkgname=com.zhihu.android',
61
+ fallback: 'https://oia.zhihu.com/',
62
+ timeout: 2000,
63
+ },
46
64
  })
47
65
  ```
48
66
 
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-callapp",
3
3
  "configKey": "callapp",
4
- "version": "1.1.0"
4
+ "version": "1.1.2"
5
5
  }
package/dist/module.mjs CHANGED
@@ -9,7 +9,7 @@ const module = defineNuxtModule({
9
9
  // Default configuration options of the Nuxt module
10
10
  defaults: {
11
11
  scheme: {
12
- protocol: "zhihu"
12
+ protocol: ""
13
13
  },
14
14
  appstore: "",
15
15
  fallback: ""
@@ -1,3 +1,4 @@
1
+ import { defineNuxtPlugin } from "#imports";
1
2
  import CallApp from "callapp-lib";
2
3
  let callApp;
3
4
  function createCallApp(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-callapp",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "A Nuxt module for callapp-lib",
5
5
  "author": {
6
6
  "name": "xjccc",