diff --git a/package-lock.json b/package-lock.json index bb7c692..8218031 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@matrixai/rpc", - "version": "0.0.1", + "version": "0.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@matrixai/rpc", - "version": "0.0.1", + "version": "0.1.2", "license": "Apache-2.0", "dependencies": { "@matrixai/async-init": "^1.9.4", diff --git a/package.json b/package.json index 1bd8c5c..e34b1b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@matrixai/rpc", - "version": "0.1.1", + "version": "0.1.2", "author": "Matrix AI", "contributors": [ { diff --git a/src/index.ts b/src/index.ts index c3a5052..df22440 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,3 +6,4 @@ export * as errors from './errors'; export * as events from './events'; export * as handlers from './handlers'; export * as callers from './callers'; +export * as middleware from './middleware'; diff --git a/tests/utils/middleware.test.ts b/tests/middleware.test.ts similarity index 98% rename from tests/utils/middleware.test.ts rename to tests/middleware.test.ts index ab43bae..fccdcd6 100644 --- a/tests/utils/middleware.test.ts +++ b/tests/middleware.test.ts @@ -7,7 +7,7 @@ import * as rpcUtils from '@/utils'; import 'ix/add/asynciterable-operators/toarray'; import * as rpcErrors from '@/errors'; import * as rpcUtilsMiddleware from '@/middleware'; -import * as rpcTestUtils from '../utils'; +import * as rpcTestUtils from './utils'; describe('Middleware tests', () => { const noiseArb = fc diff --git a/tests/utils/utils.test.ts b/tests/utils.test.ts similarity index 93% rename from tests/utils/utils.test.ts rename to tests/utils.test.ts index 8594ce7..51ce2c6 100644 --- a/tests/utils/utils.test.ts +++ b/tests/utils.test.ts @@ -2,7 +2,7 @@ import { testProp, fc } from '@fast-check/jest'; import { JSONParser } from '@streamparser/json'; import * as rpcUtils from '@/utils'; import 'ix/add/asynciterable-operators/toarray'; -import * as rpcTestUtils from '../utils'; +import * as rpcTestUtils from './utils'; describe('utils tests', () => { testProp(