diff --git a/packages/ali-oss/package.json b/packages/ali-oss/package.json index d73d39a5d..df9d81ee3 100644 --- a/packages/ali-oss/package.json +++ b/packages/ali-oss/package.json @@ -2,7 +2,7 @@ "name": "@mwcp/ali-oss", "author": "waiting", "version": "38.2.1", - "description": "?????? OSS ?????§Û??? ossutil ??? midway.js ??????? TypeScript ???????", + "description": "Ali OSS Component for midway.js", "keywords": [ "midway", "IoC", @@ -37,7 +37,7 @@ }, "license": "MIT", "dependencies": { - "@midwayjs/info": "^3.16.2", + "@midwayjs/info": "^3.18.0", "@mwcp/otel": "^38.2.1", "@mwcp/share": "^38.0.0", "@yuntools/ali-oss": "^16.1.5" diff --git a/packages/ali-oss/test/component/19.syncRemote.test.ts b/packages/ali-oss/test/component/19.syncRemote.test.ts index cb53fbc2d..b4ab4d318 100644 --- a/packages/ali-oss/test/component/19.syncRemote.test.ts +++ b/packages/ali-oss/test/component/19.syncRemote.test.ts @@ -1,4 +1,5 @@ -import assert from 'node:assert/strict' +/* eslint-disable no-await-in-loop */ +import assert from 'node:assert' import { join } from 'node:path' import { fileShortPath } from '@waiting/shared-core' @@ -23,7 +24,7 @@ describe(fileShortPath(import.meta.url), function () { assert(! ret.exitCode, `upload ${srcDir} ${target} failed, ${ret.stderr}`) assertUploadFiles(ret.data, 5, 1, 4, ret.stderr) - for await (const file of files) { + for (const file of files) { const d2 = join(target, file) if (file.endsWith('.txt')) { @@ -49,7 +50,7 @@ describe(fileShortPath(import.meta.url), function () { assert(! ret.exitCode, `upload ${srcDir} ${target} failed, ${ret.stderr}`) assertUploadFiles(ret.data, 10, 1, 9, ret.stderr) - for await (const file of files) { + for (const file of files) { const d2 = join(target, file) await assertFileExists(ossClient, d2) } diff --git a/packages/ali-oss/test/component/20.syncLocal.test.ts b/packages/ali-oss/test/component/20.syncLocal.test.ts index 7ff4d4384..08b6f34e8 100644 --- a/packages/ali-oss/test/component/20.syncLocal.test.ts +++ b/packages/ali-oss/test/component/20.syncLocal.test.ts @@ -1,4 +1,5 @@ -import assert from 'node:assert/strict' +/* eslint-disable no-await-in-loop */ +import assert from 'node:assert' import { mkdir } from 'node:fs/promises' import { join } from 'node:path' @@ -27,7 +28,7 @@ describe(fileShortPath(import.meta.url), function () { const ret = await ossClient.syncLocal(target, localDir, opts) CI || console.log(ret) - for await (const file of files) { + for (const file of files) { const d2 = join(localDir, file) if (file.endsWith('.txt')) { @@ -55,7 +56,7 @@ describe(fileShortPath(import.meta.url), function () { const ret = await ossClient.syncLocal(target, localDir) CI || console.log(ret) - for await (const file of files) { + for (const file of files) { const d2 = join(localDir, file) await assertLocalFileExists(d2) } diff --git a/packages/ali-oss/test/fixtures/base-app/src/home.ts b/packages/ali-oss/test/fixtures/base-app/src/home.ts index d5e1f7ac6..d3e274246 100644 --- a/packages/ali-oss/test/fixtures/base-app/src/home.ts +++ b/packages/ali-oss/test/fixtures/base-app/src/home.ts @@ -6,7 +6,6 @@ import { MConfig } from '@mwcp/share' import type { Context } from '@mwcp/share' import { apiBase, apiMethod } from './types/api-test.js' -import { Demo2Component, DemoComponent } from './types/lib-index.js' import { ConfigKey } from './types/lib-types.js' import type { Config, MiddlewareConfig } from './types/lib-types.js' import type { RespData } from './types/root.config.js'