This commit is contained in:
2025-05-12 02:55:53 +08:00
parent 1a2201cdc6
commit bcb8ea1f30
8 changed files with 93 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
import { ServerResponse } from 'http';
import { ServerResponse } from 'node:http';
import { BucketItemStat } from 'minio';
import fs from 'fs';
import path from 'path';
import fs from 'node:fs';
import path from 'node:path';
const viewableExtensions = ['jpg', 'jpeg', 'png', 'gif', 'svg', 'webp', 'mp4', 'webm', 'mp3', 'wav', 'ogg', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx'];
import { OssBase } from '../index.ts';

View File

@@ -1,4 +1,4 @@
import crypto from 'crypto';
import crypto from 'node:crypto';
// 582af9ef5cdc53d6628f45cb842f874a
// const hashStr = '{"a":"a"}';
// const hash = crypto.createHash('md5').update(hashStr).digest('hex');