mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
build(deps): refresh client and server dependencies
Keep the dependency baseline current after the release window, and adapt the icon and zip integrations to current package APIs.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import archiver from 'archiver';
|
||||
import { ZipArchive } from 'archiver';
|
||||
import { randomUUID } from 'crypto';
|
||||
import { createWriteStream } from 'fs';
|
||||
import { mkdir, writeFile } from 'fs/promises';
|
||||
@@ -69,7 +69,7 @@ interface ZipEntry {
|
||||
|
||||
async function writeZip(outPath: string, entries: ZipEntry[]): Promise<void> {
|
||||
const output = createWriteStream(outPath);
|
||||
const archive = archiver('zip', { zlib: { level: 6 } });
|
||||
const archive = new ZipArchive({ zlib: { level: 6 } });
|
||||
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
output.on('close', resolve);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import archiver from 'archiver';
|
||||
import { ZipArchive } from 'archiver';
|
||||
import { createWriteStream } from 'fs';
|
||||
import { mkdir } from 'fs/promises';
|
||||
import { dirname, join } from 'path';
|
||||
@@ -105,7 +105,7 @@ function assertRelativePath(path: string): void {
|
||||
|
||||
async function writeZipArchive(absolutePath: string, entries: ZipEntryInput[]): Promise<void> {
|
||||
const output = createWriteStream(absolutePath);
|
||||
const archive = archiver('zip', { zlib: { level: 6 } });
|
||||
const archive = new ZipArchive({ zlib: { level: 6 } });
|
||||
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
output.on('close', resolve);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import archiver from 'archiver';
|
||||
import { ZipArchive } from 'archiver';
|
||||
import { randomUUID } from 'crypto';
|
||||
import { createWriteStream } from 'fs';
|
||||
import { mkdir, mkdtemp, rm, writeFile } from 'fs/promises';
|
||||
@@ -146,7 +146,7 @@ export async function createZipArchiveFixture(rootPath: string, relativePath: st
|
||||
|
||||
async function writeZipArchive(absolutePath: string, entries: ZipEntryInput[]): Promise<void> {
|
||||
const output = createWriteStream(absolutePath);
|
||||
const archive = archiver('zip', { zlib: { level: 6 } });
|
||||
const archive = new ZipArchive({ zlib: { level: 6 } });
|
||||
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
output.on('close', resolve);
|
||||
|
||||
Reference in New Issue
Block a user