Skip to content
Snippets Groups Projects
Commit 7bfe671f authored by Igor Markin's avatar Igor Markin
Browse files

Merge branch '3-upgrade-dependents-with-the-npm-installation-of-the-lib-png' into 'master'

Replace @vereign/png with @vereign/lib-png

See merge request !76
parents 96431eed 852ab6c4
Branches
Tags
1 merge request!76Replace @vereign/png with @vereign/lib-png
Pipeline #42765 passed
# Change Log
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [1.0.2] - 2021-06-07
### Added
- Change log
### Changed
- Replace GitLab hosted `@vereign/png` in favor of `@vereign/lib-png` from NPM
- Use `@vereign/lib-png` as a peer dependency
## [1.0.0] - 2021-02-21
### Added
Initial tag
......@@ -33,7 +33,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", { value: true });
exports.findSealContainer = void 0;
const lib_mime_1 = __importDefault(require("@vereign/lib-mime"));
const png_1 = __importStar(require("@vereign/png"));
const lib_png_1 = __importStar(require("@vereign/lib-png"));
const url_parse_1 = __importDefault(require("url-parse"));
const SealReadingError_1 = __importDefault(require("./SealReadingError"));
const __1 = require("../..");
......@@ -99,8 +99,8 @@ const extractSealPublicKey = (sealContainer, mime) => {
if (!sealImageAttachment) {
throw new SealReadingError_1.default("Seal not found", SealReadingError_1.default.SEAL_NOT_FOUND, SealReadingError_1.default.SEVERITY_WARNING);
}
const png = png_1.default.readPng(new Uint8Array(__1.base64ToArrayBuffer(sealImageAttachment.base64)));
const metadata = png_1.getMetaData(png);
const png = lib_png_1.default.readPng(new Uint8Array(__1.base64ToArrayBuffer(sealImageAttachment.base64)));
const metadata = lib_png_1.getMetaData(png);
const sealMarker = metadata["v-seal"];
if (!sealMarker) {
throw new SealReadingError_1.default('Seal not found. Seal marker "v-seal" is missing in picture metadata', SealReadingError_1.default.SEAL_NOT_FOUND, SealReadingError_1.default.SEVERITY_WARNING);
......
import MIMEParser from "@vereign/lib-mime";
import PNG, { getMetaData } from "@vereign/png";
import PNG, { getMetaData } from "@vereign/lib-png";
import URL from "url-parse";
import SealReadingError from "./SealReadingError";
import { base64ToArrayBuffer } from "../..";
......
......@@ -1336,9 +1336,10 @@
resolved "https://registry.yarnpkg.com/@vereign/lib-mime/-/lib-mime-1.1.1.tgz#d130e6496d0f67c0688787aad5f94781218995e1"
integrity sha512-NXcHx0osnoNtV6hcBOCkwZ7MPJM/cMNlZvCP5VxFIyIMvu+BDHI/+0p4oipTbNvyXpBqjy0wWdwMpzlkGfX18Q==
"@vereign/png@git+ssh://git@code.vereign.com:code/js-toolbox/png.git#v1.0.0":
"@vereign/lib-png@^1.0.0":
version "1.0.0"
resolved "git+ssh://git@code.vereign.com:code/js-toolbox/png.git#7b745fd6eb56a4476ea4d8989a3838f1418144c0"
resolved "https://registry.yarnpkg.com/@vereign/lib-png/-/lib-png-1.0.0.tgz#ce758b50953245498cf36e011e22180deee0e778"
integrity sha512-BLSy4hP/GeTnEfTlGFH/0naM/7JrCrTCPTdkeo+6HtTJRHtBZZg9fhGZJYBFrmNL3y5fNnSjsDha7kG6UjkMSw==
abab@^2.0.3, abab@^2.0.5:
version "2.0.5"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment