perf
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user