Skip to content

Commit

Permalink
chore(ui5-barcode-scanner-dialog): bump zxing-js library (#10144)
Browse files Browse the repository at this point in the history
Update zxing-js library to version 0.21.3
  • Loading branch information
kgogov authored Nov 13, 2024
1 parent 4382d4e commit 4abf15e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
3 changes: 1 addition & 2 deletions packages/fiori/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// eslint-disable-next-line
import type { BrowserMultiFormatReader, NotFoundException } from "@zxing/library/esm5/index.js";
import type { BrowserMultiFormatReader, NotFoundException } from "@zxing/library";

export {};

Expand Down
2 changes: 1 addition & 1 deletion packages/fiori/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@ui5/webcomponents-base": "2.4.1-rc.0",
"@ui5/webcomponents-icons": "2.4.1-rc.0",
"@ui5/webcomponents-theming": "2.4.1-rc.0",
"@zxing/library": "^0.17.1"
"@zxing/library": "^0.21.3"
},
"devDependencies": {
"@ui5/webcomponents-tools": "2.4.1-rc.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/fiori/src/BarcodeScannerDialog-zxing.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module "@zxing/library/umd/index.min.js" {
import type { BrowserMultiFormatReader as BrowserMultiFormatReaderT, NotFoundException as NotFoundExceptionT } from "@zxing/library/esm5/index.js";
import type { BrowserMultiFormatReader as BrowserMultiFormatReaderT, NotFoundException as NotFoundExceptionT } from "@zxing/library";

export const BrowserMultiFormatReader: typeof BrowserMultiFormatReaderT;
export const NotFoundException: typeof NotFoundExceptionT;
Expand Down
2 changes: 1 addition & 1 deletion packages/fiori/src/BarcodeScannerDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import property from "@ui5/webcomponents-base/dist/decorators/property.js";
import event from "@ui5/webcomponents-base/dist/decorators/event.js";
import i18n from "@ui5/webcomponents-base/dist/decorators/i18n.js";
import { getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
import type { Result, Exception } from "@zxing/library/esm5/index.js";
import type { Result, Exception } from "@zxing/library";
import type { Interval } from "@ui5/webcomponents-base/dist/types.js";
// eslint-disable-next-line import/no-extraneous-dependencies
import ZXing from "@ui5/webcomponents-fiori/dist/ssr-zxing.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/website/build-scripts/local-cdn.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ await Promise.all([
cp("../localization/package.json", "local-cdn/local-cdn/localization/package.json"),

cp("../../node_modules/@zxing/library/umd/index.min.js", "local-cdn/local-cdn/zxing/umd/index.min.js"),
cp("../../node_modules/@zxing/library/esm5/index.js", "local-cdn/local-cdn/zxing/esm5/index.js"),
cp("../../node_modules/@zxing/library/esm/index.js", "local-cdn/local-cdn/zxing/esm/index.js"),
]);

const files = await readdir("local-cdn", {recursive: true, withFileTypes: true});
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4976,12 +4976,12 @@
dependencies:
argparse "^2.0.1"

"@zxing/library@^0.17.1":
version "0.17.1"
resolved "https://registry.yarnpkg.com/@zxing/library/-/library-0.17.1.tgz#4c82bf401391c2b79bfbab0a6b1143da6d8feb1a"
integrity sha512-RuiBZuteGaFXCle/b0X+g3peN8UpDc3pGe/J7hZBzKWaMZLbjensR7ja3vy47xWhXU4e8MICGqegPMxc2V2sow==
"@zxing/library@^0.21.3":
version "0.21.3"
resolved "https://registry.yarnpkg.com/@zxing/library/-/library-0.21.3.tgz#0a4cb777701884131832b05922d7e88ef1b87ab4"
integrity sha512-hZHqFe2JyH/ZxviJZosZjV+2s6EDSY0O24R+FQmlWZBZXP9IqMo7S3nb3+2LBWxodJQkSurdQGnqE7KXqrYgow==
dependencies:
ts-custom-error "^3.0.0"
ts-custom-error "^3.2.1"
optionalDependencies:
"@zxing/text-encoding" "~0.9.0"

Expand Down Expand Up @@ -17098,7 +17098,7 @@ ts-api-utils@^1.0.1:
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331"
integrity sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==

ts-custom-error@^3.0.0:
ts-custom-error@^3.2.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/ts-custom-error/-/ts-custom-error-3.3.1.tgz#8bd3c8fc6b8dc8e1cb329267c45200f1e17a65d1"
integrity sha512-5OX1tzOjxWEgsr/YEUWSuPrQ00deKLh6D7OTWcvNHm12/7QPyRh8SYpyWvA4IZv8H/+GQWQEh/kwo95Q9OVW1A==
Expand Down

0 comments on commit 4abf15e

Please sign in to comment.