@yqzk/liveness-detection-web-component 1.0.1 → 1.0.3

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,4 +1,4 @@
1
- # @liveness-detection/web-component
1
+ # @yqzk/liveness-detection-web-component
2
2
 
3
3
  活体检测 Web Component - 标准 Web 组件,可集成到任何前端框架。
4
4
 
@@ -14,7 +14,7 @@
14
14
  ## 安装
15
15
 
16
16
  ```bash
17
- npm install @liveness-detection/web-component
17
+ npm i @yqzk/liveness-detection-web-component
18
18
  ```
19
19
 
20
20
  ## 快速开始
@@ -34,7 +34,7 @@ npm install @liveness-detection/web-component
34
34
 
35
35
  <!-- 2. 导入并使用 -->
36
36
  <script type="module">
37
- import '@liveness-detection/web-component';
37
+ import '@yqzk/liveness-detection-web-component';
38
38
 
39
39
  const detector = document.querySelector('liveness-detector');
40
40
 
@@ -64,7 +64,7 @@ npm install @liveness-detection/web-component
64
64
 
65
65
  ```tsx
66
66
  import { useEffect, useRef } from 'react';
67
- import '@liveness-detection/web-component';
67
+ import '@yqzk/liveness-detection-web-component';
68
68
 
69
69
  function App() {
70
70
  const detectorRef = useRef<any>(null);
@@ -139,7 +139,7 @@ function App() {
139
139
 
140
140
  <script setup lang="ts">
141
141
  import { ref, onMounted } from 'vue';
142
- import '@liveness-detection/web-component';
142
+ import '@yqzk/liveness-detection-web-component';
143
143
 
144
144
  const detectorRef = ref<any>(null);
145
145
 
@@ -180,7 +180,7 @@ const startDetection = async () => {
180
180
  <liveness-detector id="detector"></liveness-detector>
181
181
 
182
182
  <!-- 直接引入 UMD 文件 -->
183
- <script src="node_modules/@liveness-detection/web-component/dist/index.umd.cjs"></script>
183
+ <script src="node_modules/@yqzk/liveness-detection-web-component/dist/index.umd.cjs"></script>
184
184
 
185
185
  <script>
186
186
  const detector = document.getElementById('detector');