vue-qrcode-reader
Advanced tools
Comparing version 5.3.9 to 5.4.0
@@ -1,2 +0,19 @@ | ||
declare const _default: any; | ||
import { type PropType } from 'vue'; | ||
declare const _default: import("vue").DefineComponent<{ | ||
formats: { | ||
type: PropType<BarcodeFormat[]>; | ||
default: () => BarcodeFormat[]; | ||
}; | ||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { | ||
detect: (...args: any[]) => void; | ||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
formats: { | ||
type: PropType<BarcodeFormat[]>; | ||
default: () => BarcodeFormat[]; | ||
}; | ||
}>> & { | ||
onDetect?: (...args: any[]) => any; | ||
}, { | ||
formats: BarcodeFormat[]; | ||
}, {}>; | ||
export default _default; |
@@ -1,2 +0,30 @@ | ||
declare const _default: any; | ||
import { type PropType } from 'vue'; | ||
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{ | ||
formats: { | ||
type: PropType<BarcodeFormat[]>; | ||
default: () => BarcodeFormat[]; | ||
}; | ||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { | ||
detect: (...args: any[]) => void; | ||
error: (...args: any[]) => void; | ||
dragover: (...args: any[]) => void; | ||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
formats: { | ||
type: PropType<BarcodeFormat[]>; | ||
default: () => BarcodeFormat[]; | ||
}; | ||
}>> & { | ||
onDetect?: (...args: any[]) => any; | ||
onError?: (...args: any[]) => any; | ||
onDragover?: (...args: any[]) => any; | ||
}, { | ||
formats: BarcodeFormat[]; | ||
}, {}>, { | ||
default?(_: {}): any; | ||
}>; | ||
export default _default; | ||
type __VLS_WithTemplateSlots<T, S> = T & { | ||
new (): { | ||
$slots: S; | ||
}; | ||
}; |
@@ -1,2 +0,65 @@ | ||
declare const _default: any; | ||
import { type PropType } from 'vue'; | ||
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{ | ||
constraints: { | ||
type: PropType<MediaTrackConstraints>; | ||
default(): MediaTrackConstraints; | ||
}; | ||
formats: { | ||
type: PropType<BarcodeFormat[]>; | ||
default: () => BarcodeFormat[]; | ||
}; | ||
paused: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
torch: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
track: { | ||
type: FunctionConstructor; | ||
}; | ||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { | ||
detect: (...args: any[]) => void; | ||
"camera-on": (...args: any[]) => void; | ||
"camera-off": (...args: any[]) => void; | ||
error: (...args: any[]) => void; | ||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
constraints: { | ||
type: PropType<MediaTrackConstraints>; | ||
default(): MediaTrackConstraints; | ||
}; | ||
formats: { | ||
type: PropType<BarcodeFormat[]>; | ||
default: () => BarcodeFormat[]; | ||
}; | ||
paused: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
torch: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
track: { | ||
type: FunctionConstructor; | ||
}; | ||
}>> & { | ||
onDetect?: (...args: any[]) => any; | ||
"onCamera-on"?: (...args: any[]) => any; | ||
"onCamera-off"?: (...args: any[]) => any; | ||
onError?: (...args: any[]) => any; | ||
}, { | ||
constraints: MediaTrackConstraints; | ||
formats: BarcodeFormat[]; | ||
paused: boolean; | ||
torch: boolean; | ||
}, {}>, { | ||
default?(_: {}): any; | ||
}>; | ||
export default _default; | ||
type __VLS_WithTemplateSlots<T, S> = T & { | ||
new (): { | ||
$slots: S; | ||
}; | ||
}; |
@@ -5,6 +5,6 @@ import type { App, Plugin } from 'vue'; | ||
import QrcodeDropZone from './components/QrcodeDropZone.vue'; | ||
import { setZXingModuleOverrides } from 'barcode-detector/pure'; | ||
export declare function install(app: App): void; | ||
export { QrcodeStream, QrcodeCapture, QrcodeDropZone, setZXingModuleOverrides }; | ||
export { QrcodeStream, QrcodeCapture, QrcodeDropZone }; | ||
export { setZXingModuleOverrides, type BarcodeFormat } from 'barcode-detector/pure'; | ||
declare const plugin: Plugin; | ||
export { plugin as VueQrcodeReader }; |
{ | ||
"name": "vue-qrcode-reader", | ||
"version": "5.3.9", | ||
"version": "5.4.0", | ||
"description": "A set of Vue.js components for detecting and decoding QR codes.", | ||
@@ -15,3 +15,3 @@ "author": { | ||
"scripts": { | ||
"build": "pnpm rimraf dist && vite build && cp dist/vue-qrcode-reader.umd.cjs dist/vue-qrcode-reader.umd.js", | ||
"build": "vite build", | ||
"docs:dev": "vitepress dev docs", | ||
@@ -40,30 +40,29 @@ "docs:build": "vitepress build docs", | ||
"dependencies": { | ||
"barcode-detector": "2.0.3", | ||
"webrtc-adapter": "^8.2.3" | ||
"barcode-detector": "2.1.0", | ||
"webrtc-adapter": "8.2.3" | ||
}, | ||
"devDependencies": { | ||
"@tsconfig/node20": "20.1.2", | ||
"@types/node": "20.5.6", | ||
"@types/w3c-image-capture": "^1.0.8", | ||
"@vite-pwa/vitepress": "^0.2.0", | ||
"@vitejs/plugin-vue": "4.3.3", | ||
"@vue/compiler-sfc": "3.3.4", | ||
"@types/node": "20.8.8", | ||
"@types/w3c-image-capture": "1.0.9", | ||
"@vite-pwa/vitepress": "0.2.3", | ||
"@vitejs/plugin-vue": "4.4.0", | ||
"@vue/compiler-sfc": "3.3.6", | ||
"@vue/eslint-config-prettier": "8.0.0", | ||
"@vue/eslint-config-typescript": "11.0.3", | ||
"@vue/eslint-config-typescript": "12.0.0", | ||
"@vue/tsconfig": "0.4.0", | ||
"eslint": "8.48.0", | ||
"eslint-plugin-prettier": "5.0.0", | ||
"eslint": "8.52.0", | ||
"eslint-plugin-prettier": "5.0.1", | ||
"eslint-plugin-vue": "9.17.0", | ||
"husky": "8.0.3", | ||
"lint-staged": "14.0.1", | ||
"prettier": "3.0.2", | ||
"rimraf": "5.0.1", | ||
"semantic-release": "21.1.1", | ||
"typescript": "5.1.6", | ||
"vite": "4.4.9", | ||
"vite-plugin-dts": "3.5.2", | ||
"vitepress": "1.0.0-rc.4", | ||
"vue": "3.3.4", | ||
"vue-tsc": "1.8.8", | ||
"workbox-window": "^7.0.0" | ||
"lint-staged": "15.0.2", | ||
"prettier": "3.0.3", | ||
"semantic-release": "22.0.5", | ||
"typescript": "5.2.2", | ||
"vite": "4.5.0", | ||
"vite-plugin-dts": "3.6.1", | ||
"vitepress": "1.0.0-rc.24", | ||
"vue": "3.3.6", | ||
"vue-tsc": "1.8.20", | ||
"workbox-window": "7.0.0" | ||
}, | ||
@@ -70,0 +69,0 @@ "bugs": "https://github.com/gruhn/vue-qrcode-reader/issues", |
@@ -167,3 +167,3 @@ <p align="center"> | ||
- Make sure, there is some white border around the QR code. | ||
- [Model 1 QR codes](https://en.wikipedia.org/wiki/QR_code#Model_1) are not supported. | ||
- Test your QR codes in the upstream packages: [`barcode-detector`](https://github.com/Sec-ant/barcode-detector) -> [`zxing-wasm`](https://github.com/Sec-ant/zxing-wasm) -> [`zxing-cpp`](https://github.com/zxing-cpp/zxing-cpp), and file detection issues in the highest-level repository where the problem first occurs. | ||
@@ -170,0 +170,0 @@ #### How to make it work with Vue 2? |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
276889
23
4821
2
9
16
+ Addedbarcode-detector@2.1.0(transitive)
+ Addedzxing-wasm@1.0.0-rc.3(transitive)
- Removed@sec-ant/zxing-wasm@2.1.5(transitive)
- Removedbarcode-detector@2.0.3(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedreact@18.3.1(transitive)
- Removeduse-sync-external-store@1.2.0(transitive)
- Removedzustand@4.5.2(transitive)
Updatedbarcode-detector@2.1.0
Updatedwebrtc-adapter@8.2.3