Skip to content

Commit

Permalink
chore: bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Apr 26, 2024
1 parent 7984e91 commit 1dd0847
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cordisjs/plugin-server",
"description": "Server plugin for cordis",
"version": "0.1.8",
"version": "0.2.0",
"type": "module",
"main": "lib/index.cjs",
"module": "lib/index.mjs",
Expand Down Expand Up @@ -56,7 +56,7 @@
"parseurl": "^1.3.3",
"path-to-regexp": "^6.2.1",
"reggol": "^1.6.3",
"schemastery": "^3.14.5",
"schemastery": "^3.14.6",
"ws": "^8.16.0"
}
}
3 changes: 2 additions & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Context } from 'cordis'
import { MaybeArray, remove, trimSlash } from 'cosmokit'
import { createServer, IncomingMessage, Server as HTTPServer } from 'http'
import { createServer, Server as HTTPServer, IncomingMessage } from 'node:http'
import { pathToRegexp } from 'path-to-regexp'
import bodyParser from 'koa-bodyparser'
import parseUrl from 'parseurl'
Expand Down Expand Up @@ -32,6 +32,7 @@ declare module 'cordis' {

namespace Context {
const Server: unique symbol
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface Server<C extends Context> {}
}
}
Expand Down
Empty file.
4 changes: 2 additions & 2 deletions packages/temp/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cordisjs/plugin-server-temp",
"description": "Temp server plugin for cordis",
"version": "0.3.1",
"version": "0.4.0",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
Expand Down Expand Up @@ -29,6 +29,6 @@
"plugin"
],
"devDependencies": {
"undios": "^0.3.3"
"@cordisjs/plugin-http": "^0.4.0"
}
}
8 changes: 4 additions & 4 deletions packages/temp/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Context, Schema, Service } from 'cordis'
import { mkdir, rm, writeFile } from 'node:fs/promises'
import { createReadStream } from 'node:fs'
import { Dict, sanitize, Time } from 'cosmokit'
import {} from '@cordisjs/server'
import {} from 'undios'
import { createReadStream } from 'fs'
import {} from '@cordisjs/plugin-server'
import {} from '@cordisjs/plugin-http'
import { fileURLToPath } from 'url'
import { mkdir, rm, writeFile } from 'fs/promises'
import { Readable } from 'stream'

declare module 'cordis' {
Expand Down

0 comments on commit 1dd0847

Please sign in to comment.