Skip to content

Commit dcd7244

Browse files
committed
update packages name and version
1 parent 2ba69f8 commit dcd7244

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+304
-304
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A default license is included which allows you to test the sample apps for up to
88

99
## Documentation
1010

11-
For the developer guide and full API reference of Dynamsoft Barcode Reader JavaScript library, please check out the [documentation](https://www.dynamsoft.com/barcode-reader/programming/javascript/?ver=latest&utm_source=sampleReadme).
11+
For the developer guide and full API reference of Dynamsoft Barcode Reader JavaScript library, please check out the [documentation](https://www.dynamsoft.com/barcode-reader/programming/javascript/?ver=9.6.20&utm_source=sampleReadme).
1212

1313
## Support
1414

hello-world/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The Hello World Sample Set
22

3-
As you have already gone through the [user guide](https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#getting-started---hello-world), you may have come across some basic "Hello World" code that can help you create a simple web application using our SDK quickly.
3+
As you have already gone through the [user guide](https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.20#getting-started---hello-world), you may have come across some basic "Hello World" code that can help you create a simple web application using our SDK quickly.
44

55
In this set of samples, we will revisit the "Hello World" code and show how to implement it using some popular frameworks, such as Angular, React, and Vue.
66

@@ -26,7 +26,7 @@ The second sample in this set focuses on the secondary class `BarcodeReader` whi
2626

2727
In this sample, an event listener is set up so that the SDK decodes any images that the user uploads.
2828

29-
When working with the BarcodeReader class, the main method to use is [`decode`](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/BarcodeReader.html?ver=latest#decode), although the class provides several other methods if you need to work with base64 strings or other formats. You can find the rest of the image decoding methods [here](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/BarcodeReader.html?ver=latest#decode-barcodes).
29+
When working with the BarcodeReader class, the main method to use is [`decode`](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/BarcodeReader.html?ver=9.6.20#decode), although the class provides several other methods if you need to work with base64 strings or other formats. You can find the rest of the image decoding methods [here](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/BarcodeReader.html?ver=9.6.20#decode-barcodes).
3030

3131
## Hello World in Angular
3232

hello-world/angular/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ npm install dynamsoft-camera-enhancer
3434

3535
```typescript
3636
// dbr.ts
37-
import { BarcodeReaderModule } from "@dynamsoft/dynamsoft-barcode-reader";
38-
BarcodeReaderModule.engineResourcePath = "https://npm.scannerproxy.com/cdn/@dynamsoft/dynamsoft-barcode-reader@10.0.20-dev-20231020180049/dist/";
37+
import { BarcodeReaderModule } from "dynamsoft-barcode-reader";
38+
BarcodeReaderModule.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader@9.6.20/dist/";
3939
```
4040

4141
```typescript
4242
// cvr.ts
43-
import { CaptureVisionRouter, LicenseManager } from '@dynamsoft/dynamsoft-capture-vision-router';
44-
CaptureVisionRouter.engineResourcePath = 'https://npm.scannerproxy.com/cdn/@dynamsoft/dynamsoft[email protected]-dev-20231027145739/dist/';
43+
import { CaptureVisionRouter, LicenseManager } from 'dynamsoft-capture-vision-router';
44+
CaptureVisionRouter.engineResourcePath = 'https://cdn.jsdelivr.net/npm/[email protected]/dist/';
4545
LicenseManager.initLicense('DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9');
4646
// Preload "BarcodeReader" module for reading barcodes. It will save time on the initial decoding by skipping the module loading.
4747
CaptureVisionRouter.preloadModule(['DBR']).catch((ex) => {
@@ -59,8 +59,8 @@ CaptureVisionRouter.preloadModule(['DBR']).catch((ex) => {
5959

6060
```typescript
6161
// dce.ts
62-
import { CameraView } from "@dynamsoft/dynamsoft-camera-enhancer";
63-
CameraView.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].0/dist/";
62+
import { CameraView } from "dynamsoft-camera-enhancer";
63+
CameraView.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].1/dist/";
6464
```
6565

6666
> Note:
@@ -103,17 +103,17 @@ ng generate component hello-world
103103

104104
```typescript
105105
import { Component, ElementRef, ViewChild } from '@angular/core';
106-
import { EnumCapturedResultItemType } from '@dynamsoft/dynamsoft-core'
107-
import { DecodedBarcodesResult } from '@dynamsoft/dynamsoft-barcode-reader';
106+
import { EnumCapturedResultItemType } from 'dynamsoft-core'
107+
import { DecodedBarcodesResult } from 'dynamsoft-barcode-reader';
108108
import {
109109
CameraEnhancer,
110110
CameraView,
111-
} from '@dynamsoft/dynamsoft-camera-enhancer';
111+
} from 'dynamsoft-camera-enhancer';
112112
import {
113113
CapturedResultReceiver,
114114
CaptureVisionRouter,
115-
} from '@dynamsoft/dynamsoft-capture-vision-router';
116-
import { MultiFrameResultCrossFilter } from '@dynamsoft/dynamsoft-utility';
115+
} from 'dynamsoft-capture-vision-router';
116+
import { MultiFrameResultCrossFilter } from 'dynamsoft-utility';
117117

118118
@Component({
119119
selector: 'app-video-capture',
@@ -235,8 +235,8 @@ export class VideoCaptureComponent {
235235

236236
```typescript
237237
import { Component } from '@angular/core';
238-
import { BarcodeResultItem } from '@dynamsoft/dynamsoft-barcode-reader';
239-
import { CaptureVisionRouter } from '@dynamsoft/dynamsoft-capture-vision-router';
238+
import { BarcodeResultItem } from 'dynamsoft-barcode-reader';
239+
import { CaptureVisionRouter } from 'dynamsoft-capture-vision-router';
240240

241241
@Component({
242242
selector: 'app-image-capture',

hello-world/angular/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"@angular/platform-browser": "^16.2.0",
1919
"@angular/platform-browser-dynamic": "^16.2.0",
2020
"@angular/router": "^16.2.0",
21-
"@dynamsoft/dynamsoft-camera-enhancer": "^4.0.1-dev-20231023154255",
22-
"@dynamsoft/dynamsoft-capture-vision-router": "^2.0.20-dev-20231027145739",
23-
"@dynamsoft/dynamsoft-utility": "^1.0.10-dev-20231023103736",
21+
"dynamsoft-camera-enhancer": "^4.0.1",
22+
"dynamsoft-capture-vision-router": "^2.0.20",
23+
"dynamsoft-utility": "^1.0.10",
2424
"rxjs": "~7.8.0",
2525
"tslib": "^2.3.0",
2626
"zone.js": "~0.13.0"

hello-world/angular/src/app/image-capture/image-capture.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component } from '@angular/core';
2-
import { BarcodeResultItem } from '@dynamsoft/dynamsoft-barcode-reader';
3-
import { CaptureVisionRouter } from '@dynamsoft/dynamsoft-capture-vision-router';
2+
import { BarcodeResultItem } from 'dynamsoft-barcode-reader';
3+
import { CaptureVisionRouter } from 'dynamsoft-capture-vision-router';
44

55
@Component({
66
selector: 'app-image-capture',

hello-world/angular/src/app/video-capture/video-capture.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { Component, ElementRef, ViewChild } from '@angular/core';
2-
import { EnumCapturedResultItemType } from '@dynamsoft/dynamsoft-core'
3-
import { DecodedBarcodesResult } from '@dynamsoft/dynamsoft-barcode-reader';
2+
import { EnumCapturedResultItemType } from 'dynamsoft-core'
3+
import { DecodedBarcodesResult } from 'dynamsoft-barcode-reader';
44
import {
55
CameraEnhancer,
66
CameraView,
7-
} from '@dynamsoft/dynamsoft-camera-enhancer';
7+
} from 'dynamsoft-camera-enhancer';
88
import {
99
CapturedResultReceiver,
1010
CaptureVisionRouter,
11-
} from '@dynamsoft/dynamsoft-capture-vision-router';
12-
import { MultiFrameResultCrossFilter } from '@dynamsoft/dynamsoft-utility';
11+
} from 'dynamsoft-capture-vision-router';
12+
import { MultiFrameResultCrossFilter } from 'dynamsoft-utility';
1313

1414
@Component({
1515
selector: 'app-video-capture',

hello-world/angular/src/cvr.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {
22
CaptureVisionRouter,
33
LicenseManager,
4-
} from '@dynamsoft/dynamsoft-capture-vision-router';
4+
} from 'dynamsoft-capture-vision-router';
55

66
CaptureVisionRouter.engineResourcePath =
7-
'https://npm.scannerproxy.com/cdn/@dynamsoft/dynamsoft[email protected]-dev-20231027145739/dist/';
7+
'https://cdn.jsdelivr.net/npm/[email protected]/dist/';
88

99
/** LICENSE ALERT - README
1010
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below.
@@ -17,7 +17,7 @@ LicenseManager.initLicense(
1717
/**
1818
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
1919
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
20-
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=10.0.20&utm_source=github#specify-the-license or contact [email protected].
20+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.20&utm_source=github#specify-the-license or contact [email protected].
2121
* LICENSE ALERT - THE END
2222
*/
2323

hello-world/angular/src/dbr.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { BarcodeReaderModule } from "@dynamsoft/dynamsoft-barcode-reader";
1+
import { BarcodeReaderModule } from "dynamsoft-barcode-reader";
22

3-
BarcodeReaderModule.engineResourcePath = "https://npm.scannerproxy.com/cdn/@dynamsoft/dynamsoft-barcode-reader@10.0.20-dev-20231020180049/dist/";
3+
BarcodeReaderModule.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader@9.6.20/dist/";

hello-world/angular/src/dce.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { CameraView } from "@dynamsoft/dynamsoft-camera-enhancer";
1+
import { CameraView } from "dynamsoft-camera-enhancer";
22

3-
CameraView.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].0/dist/";
3+
CameraView.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].1/dist/";

hello-world/electron/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ Create the page to be loaded in the created window.
8686
<meta name="keywords" content="barcode, camera, Electron">
8787
<title>Dynamsoft Barcode Reader Sample - Electron</title>
8888
<link href="style.css" rel="stylesheet">
89-
<script src="./node_modules/@dynamsoft/dynamsoft-core/dist/core.js"></script>
90-
<script src="./node_modules/@dynamsoft/dynamsoft-utility/dist/utility.js"></script>
91-
<script src="./node_modules/@dynamsoft/dynamsoft-barcode-reader/dist/dbr.js"></script>
92-
<script src="./node_modules/@dynamsoft/dynamsoft-capture-vision-router/dist/cvr.js"></script>
93-
<script src="./node_modules/@dynamsoft/dynamsoft-camera-enhancer/dist/dce.js"></script>
89+
<script src="./node_modules/dynamsoft-core/dist/core.js"></script>
90+
<script src="./node_modules/dynamsoft-utility/dist/utility.js"></script>
91+
<script src="./node_modules/dynamsoft-barcode-reader/dist/dbr.js"></script>
92+
<script src="./node_modules/dynamsoft-capture-vision-router/dist/cvr.js"></script>
93+
<script src="./node_modules/dynamsoft-camera-enhancer/dist/dce.js"></script>
9494
</head>
9595
<body>
9696
<h1>Hello World for Electron</h1>
@@ -116,16 +116,16 @@ Dynamsoft.License.LicenseManager.initLicense(
116116
/**
117117
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
118118
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
119-
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=10.0.20&utm_source=github#specify-the-license or contact [email protected].
119+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.6.20&utm_source=github#specify-the-license or contact [email protected].
120120
* LICENSE ALERT - THE END
121121
*/
122122

123123
Dynamsoft.DCE.CameraView.engineResourcePath =
124-
"./node_modules/@dynamsoft/dynamsoft-camera-enhancer/dist/";
124+
"./node_modules/dynamsoft-camera-enhancer/dist/";
125125
Dynamsoft.DBR.BarcodeReaderModule.engineResourcePath =
126-
"./node_modules/@dynamsoft/dynamsoft-barcode-reader/dist/";
126+
"./node_modules/dynamsoft-barcode-reader/dist/";
127127
Dynamsoft.CVR.CaptureVisionRouter.engineResourcePath =
128-
"./node_modules/@dynamsoft/dynamsoft-capture-vision-router/dist/";
128+
"./node_modules/dynamsoft-capture-vision-router/dist/";
129129
(async function () {
130130
try {
131131
// Create a `CameraEnhancer` instance for camera control and a `CameraView` instance for UI control.

0 commit comments

Comments
 (0)