tek-wallet 0.0.280 → 0.0.281

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.
@@ -131,6 +131,19 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
131
131
  console.warn("🚀 ~ handleSelectMethod ~ method:", method);
132
132
  switch (method) {
133
133
  case SendMethods.SCAN_QR_CODE:
134
+ navigator.mediaDevices
135
+ .enumerateDevices()
136
+ .then(function (devices) {
137
+ console.warn("🚀 ~ .then ~ devices:", devices);
138
+ devices.forEach(function (device) {
139
+ if (device.kind === "videoinput") {
140
+ console.warn("🚀 ~ handleSelectMethod ~ device:", device);
141
+ }
142
+ });
143
+ })
144
+ .catch(function (error) {
145
+ console.error("Error accessing media devices.", error);
146
+ });
134
147
  (_a = scannerAllQrCodeRef.current) === null || _a === void 0 ? void 0 : _a.open();
135
148
  break;
136
149
  case SendMethods.TRANSFER_INTERNAL:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.280",
3
+ "version": "0.0.281",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",