Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

capacitor-plugin-dynamsoft-barcode-reader

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-plugin-dynamsoft-barcode-reader - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

32

dist/docs.json

@@ -231,2 +231,34 @@ {

{
"name": "setEngineResourcePath",
"signature": "(path: string) => Promise<void>",
"parameters": [
{
"name": "path",
"docs": "",
"type": "string"
}
],
"returns": "Promise<void>",
"tags": [],
"docs": "",
"complexTypes": [],
"slug": "setengineresourcepath"
},
{
"name": "setDefaultUIElementURL",
"signature": "(url: string) => Promise<void>",
"parameters": [
{
"name": "url",
"docs": "",
"type": "string"
}
],
"returns": "Promise<void>",
"tags": [],
"docs": "",
"complexTypes": [],
"slug": "setdefaultuielementurl"
},
{
"name": "addListener",

@@ -233,0 +265,0 @@ "signature": "(eventName: 'onFrameRead', listenerFunc: onFrameReadListener) => Promise<PluginListenerHandle> & PluginListenerHandle",

2

dist/esm/definitions.d.ts

@@ -60,2 +60,4 @@ import { PluginListenerHandle } from "@capacitor/core";

destroy(): Promise<void>;
setEngineResourcePath(path: string): Promise<void>;
setDefaultUIElementURL(url: string): Promise<void>;
addListener(eventName: 'onFrameRead', listenerFunc: onFrameReadListener): Promise<PluginListenerHandle> & PluginListenerHandle;

@@ -62,0 +64,0 @@ addListener(eventName: 'onPlayed', listenerFunc: onPlayedListener): Promise<PluginListenerHandle> & PluginListenerHandle;

@@ -66,2 +66,4 @@ import { WebPlugin } from '@capacitor/core';

}>;
setEngineResourcePath(path: string): Promise<void>;
setDefaultUIElementURL(url: string): Promise<void>;
}

12

dist/esm/web.js

@@ -5,4 +5,4 @@ import { WebPlugin } from '@capacitor/core';

import { CameraEnhancer } from 'dynamsoft-camera-enhancer';
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.0.0/dist/";
CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.1/dist/dce.ui.html";
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.2.13/dist/";
CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.0.1/dist/dce.ui.html";
export class DBRWeb extends WebPlugin {

@@ -82,3 +82,3 @@ constructor() {

});
await this.enhancer.setUIElement("https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.1/dist/dce.ui.html");
await this.enhancer.setUIElement(CameraEnhancer.defaultUIElementURL);
this.enhancer.getUIElement().getElementsByClassName("dce-btn-close")[0].remove();

@@ -274,3 +274,9 @@ this.enhancer.getUIElement().getElementsByClassName("dce-sel-camera")[0].remove();

}
async setEngineResourcePath(path) {
BarcodeReader.engineResourcePath = path;
}
async setDefaultUIElementURL(url) {
CameraEnhancer.defaultUIElementURL = url;
}
}
//# sourceMappingURL=web.js.map

@@ -23,4 +23,4 @@ 'use strict';

dynamsoftJavascriptBarcode.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.0.0/dist/";
dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.1/dist/dce.ui.html";
dynamsoftJavascriptBarcode.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.2.13/dist/";
dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.0.1/dist/dce.ui.html";
class DBRWeb extends core.WebPlugin {

@@ -100,3 +100,3 @@ constructor() {

});
await this.enhancer.setUIElement("https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.1/dist/dce.ui.html");
await this.enhancer.setUIElement(dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL);
this.enhancer.getUIElement().getElementsByClassName("dce-btn-close")[0].remove();

@@ -292,2 +292,8 @@ this.enhancer.getUIElement().getElementsByClassName("dce-sel-camera")[0].remove();

}
async setEngineResourcePath(path) {
dynamsoftJavascriptBarcode.BarcodeReader.engineResourcePath = path;
}
async setDefaultUIElementURL(url) {
dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL = url;
}
}

@@ -294,0 +300,0 @@

@@ -18,4 +18,4 @@ var capacitorDBR = (function (exports, core, dynamsoftJavascriptBarcode, dynamsoftCameraEnhancer) {

dynamsoftJavascriptBarcode.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.0.0/dist/";
dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.1/dist/dce.ui.html";
dynamsoftJavascriptBarcode.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.2.13/dist/";
dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@3.0.1/dist/dce.ui.html";
class DBRWeb extends core.WebPlugin {

@@ -95,3 +95,3 @@ constructor() {

});
await this.enhancer.setUIElement("https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@2.3.1/dist/dce.ui.html");
await this.enhancer.setUIElement(dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL);
this.enhancer.getUIElement().getElementsByClassName("dce-btn-close")[0].remove();

@@ -287,2 +287,8 @@ this.enhancer.getUIElement().getElementsByClassName("dce-sel-camera")[0].remove();

}
async setEngineResourcePath(path) {
dynamsoftJavascriptBarcode.BarcodeReader.engineResourcePath = path;
}
async setDefaultUIElementURL(url) {
dynamsoftCameraEnhancer.CameraEnhancer.defaultUIElementURL = url;
}
}

@@ -289,0 +295,0 @@

{
"name": "capacitor-plugin-dynamsoft-barcode-reader",
"version": "1.3.4",
"version": "1.3.5",
"description": "A capacitor plugin for Dynamsoft Barcode Reader",

@@ -77,5 +77,5 @@ "main": "dist/plugin.cjs.js",

"@types/node": "^16.11.7",
"dynamsoft-camera-enhancer": "^2.3.1",
"dynamsoft-javascript-barcode": "^9.0.0"
"dynamsoft-camera-enhancer": "3.0.1",
"dynamsoft-javascript-barcode": "9.2.13"
}
}

@@ -55,2 +55,4 @@ # capacitor-plugin-dynamsoft-barcode-reader

* [`destroy()`](#destroy)
* [`setEngineResourcePath(...)`](#setengineresourcepath)
* [`setDefaultUIElementURL(...)`](#setdefaultuielementurl)
* [`addListener(...)`](#addlistener)

@@ -269,2 +271,28 @@ * [`addListener(...)`](#addlistener)

### setEngineResourcePath(...)
```typescript
setEngineResourcePath(path: string) => Promise<void>
```
| Param | Type |
| ---------- | ------------------- |
| **`path`** | <code>string</code> |
--------------------
### setDefaultUIElementURL(...)
```typescript
setDefaultUIElementURL(url: string) => Promise<void>
```
| Param | Type |
| --------- | ------------------- |
| **`url`** | <code>string</code> |
--------------------
### addListener(...)

@@ -271,0 +299,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc