nano-scan 0.0.1 → 0.0.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 +12 -0
- package/dist/esm/index.js +627 -601
- package/dist/index.d.ts +1 -0
- package/dist/umd/index.js +627 -602
- package/dist/utils.d.ts +1 -0
- package/package.json +2 -4
package/dist/utils.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare function getCameraCapabilitiesZoomRange(video: HTMLVideoElement):
|
|
|
6
6
|
};
|
|
7
7
|
export declare function applyVideoZoom(video: HTMLVideoElement, zoom: number): Promise<void>;
|
|
8
8
|
export declare function listCameras(): Promise<MediaDeviceInfo[]>;
|
|
9
|
+
export declare function applyVideoTorch(video: HTMLVideoElement, torch: boolean): Promise<void>;
|
|
9
10
|
export declare function closeStream(stream: MediaStream): void;
|
|
10
11
|
export declare function requestCameraPermission(): Promise<void>;
|
|
11
12
|
export declare const resolutions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nano-scan",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "A browser scanning component based on zxing-wasm",
|
|
5
5
|
"main": "dist/umd/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "rolldown -c rolldown.config.ts",
|
|
13
|
-
"dev": "cd
|
|
14
|
-
"build:example": "cd examples/react && vite build",
|
|
15
|
-
"preview:example": "cd examples/react && vite preview"
|
|
13
|
+
"dev": "cd docs && vite"
|
|
16
14
|
},
|
|
17
15
|
"homepage": "https://github.com/PEDx/nano-scan",
|
|
18
16
|
"repository": {
|