chore(config): 更新环境变量示例及npm身份验证令牌

- 在.env.example中添加S3_ENDPOINT环境变量示例配置
- 将.npmrc中npmjs.org的_authToken改为固定令牌
- 升级package.json版本号到0.0.15
- 调整测试文件中putObject调用的对象路径为'lanzhoub/a.json'
This commit is contained in:
2026-01-08 01:31:38 +08:00
parent 6411e42b3a
commit f512d97e09
4 changed files with 7 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
import { OssBase } from "@/s3/core.ts";
import { S3Client } from '@aws-sdk/client-s3';
import { s3Client, bucketName } from './common.ts';
const oss = new OssBase({
@@ -18,6 +20,6 @@ let putJson = {
name: 'test',
age: 18,
}
const objPut = await oss.putObject('a.json', putJson)
const objPut = await oss.putObject('lanzhoub/a.json', putJson)
console.log(objPut);