Skip to content

Commit

Permalink
refactor(api): refactor all fundemental apis to runtime-base package
Browse files Browse the repository at this point in the history
  • Loading branch information
lyfeyaj committed Mar 10, 2023
1 parent 764144c commit 5d22b11
Show file tree
Hide file tree
Showing 16 changed files with 11 additions and 1,365 deletions.
1 change: 1 addition & 0 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
},
"sideEffects": false,
"dependencies": {
"@morjs/runtime-base": "1.0.0",
"tslib": "2"
}
}
12 changes: 8 additions & 4 deletions packages/api/src/api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { getEnv, getGlobalObject } from './env'
import { event } from './event'
import { logger } from './logger'
import { markAsUnsupport, transformApis } from './utils/transformApis'
import {
event,
getEnv,
getGlobalObject,
logger,
markAsUnsupport,
transformApis
} from '@morjs/runtime-base'

// 跨端支持的接口运行时引用注入位置, '' 空字符串是为了防止该注释被移除
// prettier-ignore
Expand Down
122 changes: 0 additions & 122 deletions packages/api/src/base64.ts

This file was deleted.

186 changes: 0 additions & 186 deletions packages/api/src/env.ts

This file was deleted.

Loading

0 comments on commit 5d22b11

Please sign in to comment.