@theshelf/eventbroker 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import type { Driver } from './definitions/interfaces';
2
- import type { Publication, Subscription } from './definitions/types';
1
+ import type { Driver } from './definitions/interfaces.js';
2
+ import type { Publication, Subscription } from './definitions/types.js';
3
3
  export default class EventBroker implements Driver {
4
4
  #private;
5
5
  constructor(driver: Driver);
@@ -1,4 +1,4 @@
1
- import type { Publication, Subscription } from './types';
1
+ import type { Publication, Subscription } from './types.js';
2
2
  export interface Driver {
3
3
  get connected(): boolean;
4
4
  connect(): Promise<void>;
@@ -1,4 +1,4 @@
1
- import EventBrokerError from './EventBrokerError';
1
+ import EventBrokerError from './EventBrokerError.js';
2
2
  export default class UnknownImplementation extends EventBrokerError {
3
3
  constructor(name: string);
4
4
  }
@@ -1,4 +1,4 @@
1
- import EventBrokerError from './EventBrokerError';
1
+ import EventBrokerError from './EventBrokerError.js';
2
2
  export default class UnknownImplementation extends EventBrokerError {
3
3
  constructor(name) {
4
4
  super(`Unknown event broker implementation: ${name}`);
@@ -1,3 +1,3 @@
1
- import type { Driver } from './definitions/interfaces';
1
+ import type { Driver } from './definitions/interfaces.js';
2
2
  declare const _default: Driver;
3
3
  export default _default;
@@ -1,5 +1,5 @@
1
- import UnknownImplementation from './errors/UnknownImplementation';
2
- import createMemoryBroker from './implementations/memory/create';
1
+ import UnknownImplementation from './errors/UnknownImplementation.js';
2
+ import createMemoryBroker from './implementations/memory/create.js';
3
3
  const implementations = new Map([
4
4
  ['memory', createMemoryBroker]
5
5
  ]);
@@ -1,5 +1,5 @@
1
- import type { Driver } from '../../definitions/interfaces';
2
- import type { Publication, Subscription } from '../../definitions/types';
1
+ import type { Driver } from '../../definitions/interfaces.js';
2
+ import type { Publication, Subscription } from '../../definitions/types.js';
3
3
  export default class Memory implements Driver {
4
4
  #private;
5
5
  get connected(): boolean;
@@ -1,2 +1,2 @@
1
- import Memory from './Memory';
1
+ import Memory from './Memory.js';
2
2
  export default function create(): Memory;
@@ -1,4 +1,4 @@
1
- import Memory from './Memory';
1
+ import Memory from './Memory.js';
2
2
  export default function create() {
3
3
  return new Memory();
4
4
  }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import EventBroker from './EventBroker';
1
+ import EventBroker from './EventBroker.js';
2
2
  declare const eventBroker: EventBroker;
3
- export * from './definitions/types';
3
+ export * from './definitions/types.js';
4
4
  export type { EventBroker };
5
5
  export default eventBroker;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import EventBroker from './EventBroker';
2
- import implementation from './implementation';
1
+ import EventBroker from './EventBroker.js';
2
+ import implementation from './implementation.js';
3
3
  const eventBroker = new EventBroker(implementation);
4
- export * from './definitions/types';
4
+ export * from './definitions/types.js';
5
5
  export default eventBroker;
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@theshelf/eventbroker",
3
3
  "private": false,
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "type": "module",
6
+ "repository": {
7
+ "url": "https://github.com/MaskingTechnology/theshelf"
8
+ },
6
9
  "scripts": {
7
10
  "build": "tsc",
8
11
  "clean": "rimraf dist",