Skip to content

Commit

Permalink
chore(ali-oss): lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Oct 5, 2024
1 parent 994dfda commit bdaab5e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/ali-oss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down
7 changes: 4 additions & 3 deletions packages/ali-oss/test/component/19.syncRemote.test.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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')) {
Expand All @@ -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)
}
Expand Down
7 changes: 4 additions & 3 deletions packages/ali-oss/test/component/20.syncLocal.test.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -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')) {
Expand Down Expand Up @@ -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)
}
Expand Down
1 change: 0 additions & 1 deletion packages/ali-oss/test/fixtures/base-app/src/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit bdaab5e

Please sign in to comment.