fix: update nginx image version and add ignoreEncryption flag in pdf decrypt tests
This commit is contained in:
@@ -71,7 +71,7 @@ RUN --mount=type=secret,id=VITE_CORS_PROXY_URL \
|
|||||||
npm run build:with-docs
|
npm run build:with-docs
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
FROM quay.io/nginx/nginx-unprivileged:stable-alpine-slim
|
FROM quay.io/nginx/nginx-unprivileged:1.28.3-alpine-slim
|
||||||
|
|
||||||
LABEL org.opencontainers.image.source="https://github.com/alam00000/bentopdf"
|
LABEL org.opencontainers.image.source="https://github.com/alam00000/bentopdf"
|
||||||
LABEL org.opencontainers.image.url="https://github.com/alam00000/bentopdf"
|
LABEL org.opencontainers.image.url="https://github.com/alam00000/bentopdf"
|
||||||
|
|||||||
@@ -230,6 +230,7 @@ describe('pdf decrypt', () => {
|
|||||||
expect(mockPdfDocumentLoad).toHaveBeenCalledWith(
|
expect(mockPdfDocumentLoad).toHaveBeenCalledWith(
|
||||||
new Uint8Array([8, 8, 8]),
|
new Uint8Array([8, 8, 8]),
|
||||||
{
|
{
|
||||||
|
ignoreEncryption: true,
|
||||||
throwOnInvalidObject: false,
|
throwOnInvalidObject: false,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -267,6 +268,7 @@ describe('pdf decrypt', () => {
|
|||||||
expect(mockPdfDocumentLoad).toHaveBeenCalledWith(
|
expect(mockPdfDocumentLoad).toHaveBeenCalledWith(
|
||||||
new Uint8Array([6, 6, 6]),
|
new Uint8Array([6, 6, 6]),
|
||||||
{
|
{
|
||||||
|
ignoreEncryption: true,
|
||||||
throwOnInvalidObject: false,
|
throwOnInvalidObject: false,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user