mirror of
https://git.um-react.app/um/um-react.git
synced 2026-10-22 06:23:02 +00:00
chore: dep pkg upgrade
- Updated Node version in Dockerfile and .npmrc. - Upgraded various dependencies in package.json, including react-dropzone, react-router, and eslint. - Added pnpm-workspace.yaml for workspace management. - Adjusted TypeScript configurations and test utilities for compatibility. - Enhanced documentation for installation instructions and TypeScript toolchain.
This commit is contained in:
@@ -5,7 +5,7 @@ import tar from 'tar-stream';
|
||||
|
||||
export const macCommandLoader: Plugin = {
|
||||
name: 'mac-command-loader',
|
||||
async transform(_: unknown, id: string) {
|
||||
async load(id: string) {
|
||||
const [path, query] = id.split('?');
|
||||
if (!query || !query.includes('mac-command')) return null;
|
||||
|
||||
@@ -23,6 +23,7 @@ export const macCommandLoader: Plugin = {
|
||||
|
||||
const chunks: Buffer[] = [];
|
||||
for await (const chunk of tarball) {
|
||||
if (!Buffer.isBuffer(chunk)) throw new TypeError('Expected a tarball Buffer chunk');
|
||||
chunks.push(chunk);
|
||||
}
|
||||
const dataBuffer = Buffer.concat(chunks);
|
||||
|
||||
Reference in New Issue
Block a user