Skip to content

Commit b78a927

Browse files
Copilothotlong
andcommitted
fix: update ObjectStackProtocol import names in plugins
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 426fd0e commit b78a927

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/plugins/plugin-hono-server/src/hono-plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Plugin, PluginContext, IHttpServer } from '@objectstack/core';
2-
import { IObjectStackProtocol } from '@objectstack/spec/api';
2+
import { ObjectStackProtocol } from '@objectstack/spec/api';
33
import { HonoHttpServer } from './adapter';
44

55
export interface HonoPluginOptions {
@@ -49,10 +49,10 @@ export class HonoServerPlugin implements Plugin {
4949
ctx.logger.debug('Starting Hono server plugin');
5050

5151
// Get protocol implementation instance
52-
let protocol: IObjectStackProtocol | null = null;
52+
let protocol: ObjectStackProtocol | null = null;
5353

5454
try {
55-
protocol = ctx.getService<IObjectStackProtocol>('protocol');
55+
protocol = ctx.getService<ObjectStackProtocol>('protocol');
5656
ctx.logger.debug('Protocol service found, registering protocol routes');
5757
} catch (e) {
5858
ctx.logger.warn('Protocol service not found, skipping protocol routes');

packages/plugins/plugin-msw/src/msw-plugin.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
IDataEngine
88
} from '@objectstack/runtime';
99
import { ObjectStackProtocolImplementation } from '@objectstack/objectql';
10-
import { IObjectStackProtocol } from '@objectstack/spec/api';
10+
import { ObjectStackProtocol } from '@objectstack/spec/api';
1111
// import { IDataEngine } from '@objectstack/core';
1212

1313
export interface MSWPluginOptions {
@@ -36,10 +36,10 @@ export interface MSWPluginOptions {
3636
* ObjectStack Server Mock - Provides mock database functionality
3737
*/
3838
export class ObjectStackServer {
39-
private static protocol: IObjectStackProtocol | null = null;
39+
private static protocol: ObjectStackProtocol | null = null;
4040
private static logger: any | null = null;
4141

42-
static init(protocol: IObjectStackProtocol, logger?: any) {
42+
static init(protocol: ObjectStackProtocol, logger?: any) {
4343
this.protocol = protocol;
4444
this.logger = logger || {
4545
info: console.log,
@@ -190,7 +190,7 @@ export class MSWPlugin implements Plugin {
190190
private options: MSWPluginOptions;
191191
private worker: any;
192192
private handlers: Array<any> = [];
193-
private protocol?: IObjectStackProtocol;
193+
private protocol?: ObjectStackProtocol;
194194

195195
constructor(options: MSWPluginOptions = {}) {
196196
this.options = {

0 commit comments

Comments
 (0)