fix(dependencies): Updated dependencies to latest versions and removed unused service server class
This commit is contained in:
parent
0c0a35bc90
commit
07a3df944a
18
changelog.md
Normal file
18
changelog.md
Normal file
@ -0,0 +1,18 @@
|
||||
# Changelog
|
||||
|
||||
## 2024-07-23 - 1.0.5 - fix(dependencies)
|
||||
Updated dependencies to latest versions and removed unused service server class
|
||||
|
||||
- Updated devDependencies and dependencies to their latest versions in package.json
|
||||
- Removed the unused ServiceServer class
|
||||
- Updated index.ts to reflect changes in imports
|
||||
|
||||
## 2024-05-11 - 1.0.3 to 1.0.4 - General Updates
|
||||
Maintenance updates
|
||||
|
||||
- Fix(core): update
|
||||
|
||||
## 2024-02-17 - 1.0.1 to 1.0.3 - General Updates
|
||||
Maintenance updates
|
||||
|
||||
- Fix(core): update
|
20
package.json
20
package.json
@ -14,21 +14,21 @@
|
||||
"localPublish": "gitzone commit && pnpm run build && pnpm publish && pnpm publish --access public --registry=\"https://registry.npmjs.org\""
|
||||
},
|
||||
"devDependencies": {
|
||||
"@git.zone/tsbuild": "^2.1.25",
|
||||
"@git.zone/tsbuild": "^2.1.84",
|
||||
"@git.zone/tsbundle": "^2.0.5",
|
||||
"@git.zone/tsrun": "^1.2.46",
|
||||
"@git.zone/tstest": "^1.0.44",
|
||||
"@push.rocks/tapbundle": "^5.0.15",
|
||||
"@types/node": "^20.11.19"
|
||||
"@git.zone/tsrun": "^1.2.49",
|
||||
"@git.zone/tstest": "^1.0.90",
|
||||
"@push.rocks/tapbundle": "^5.0.23",
|
||||
"@types/node": "^20.14.11"
|
||||
},
|
||||
"dependencies": {
|
||||
"@api.global/typedrequest": "^3.0.4",
|
||||
"@api.global/typedserver": "^3.0.20",
|
||||
"@api.global/typedsocket": "^3.0.0",
|
||||
"@api.global/typedrequest": "^3.0.30",
|
||||
"@api.global/typedserver": "^3.0.50",
|
||||
"@api.global/typedsocket": "^3.0.1",
|
||||
"@push.rocks/qenv": "^6.0.5",
|
||||
"@push.rocks/smartlog": "^3.0.3",
|
||||
"@push.rocks/smartlog": "^3.0.7",
|
||||
"@push.rocks/smartntml": "^2.0.4",
|
||||
"@serve.zone/interfaces": "^1.0.35"
|
||||
"@serve.zone/interfaces": "^1.0.74"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
8275
pnpm-lock.yaml
8275
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
0
readme.hints.md
Normal file
0
readme.hints.md
Normal file
@ -1,8 +1,8 @@
|
||||
/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
* autocreated commitinfo by @push.rocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@serve.zone/platformclient',
|
||||
version: '1.0.4',
|
||||
version: '1.0.5',
|
||||
description: 'a module that makes it really easy to use the serve.zone platform inside your app'
|
||||
}
|
||||
|
@ -1,51 +0,0 @@
|
||||
import * as plugins from './plugins.js';
|
||||
import { InfoHtml } from './infohtml/index.js';
|
||||
|
||||
export interface IServiceServerConstructorOptions {
|
||||
addCustomRoutes?: (serverArg: plugins.typedserver.servertools.Server) => Promise<any>;
|
||||
serviceName: string;
|
||||
serviceVersion: string;
|
||||
serviceDomain: string;
|
||||
port?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* a server for serving your app to the outside world
|
||||
*/
|
||||
export class ServiceServer {
|
||||
public options: IServiceServerConstructorOptions;
|
||||
public typedServer: plugins.typedserver.TypedServer;
|
||||
|
||||
constructor(optionsArg: IServiceServerConstructorOptions) {
|
||||
this.options = optionsArg;
|
||||
}
|
||||
|
||||
public async start() {
|
||||
console.log('starting lole-serviceserver...')
|
||||
this.typedServer = new plugins.typedserver.TypedServer({
|
||||
cors: true,
|
||||
domain: this.options.serviceDomain,
|
||||
forceSsl: false,
|
||||
port: this.options.port || 3000,
|
||||
robots: true,
|
||||
defaultAnswer: async () => {
|
||||
return (
|
||||
await InfoHtml.fromSimpleText(
|
||||
`${this.options.serviceName} (version ${this.options.serviceVersion})`
|
||||
)
|
||||
).htmlString;
|
||||
},
|
||||
});
|
||||
|
||||
// lets add any custom routes
|
||||
if (this.options.addCustomRoutes) {
|
||||
await this.options.addCustomRoutes(this.typedServer.server);
|
||||
}
|
||||
|
||||
await this.typedServer.start();
|
||||
}
|
||||
|
||||
public async stop() {
|
||||
await this.typedServer.stop();
|
||||
}
|
||||
}
|
@ -1,7 +1,6 @@
|
||||
export * from './classes.serviceserver.js';
|
||||
export * from './classes.platformclient.js';
|
||||
|
||||
// Things for building a server
|
||||
import { servertools } from '@api.global/typedserver';
|
||||
const { Handler, HandlerTypedRouter } = servertools;
|
||||
export { Handler, HandlerTypedRouter };
|
||||
import { servertools, utilityservers } from '@api.global/typedserver';
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user