Skip to content

Commit

Permalink
chore: added export statements (index.ts)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitch-lbw committed Dec 12, 2023
1 parent 0f699a4 commit 0a92349
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.env_local
node_modules/
dist/
.lh/
.lh/
lib/
*.tgz
4 changes: 1 addition & 3 deletions src/eosio/ship-reader-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const error_types = ['unhandledRejection', 'uncaughtException'];
//current finality is 3 minutes, with a new block every 0.5s -> 360 blocks
const num_blocks_to_finality = 3 * 60 * 2;

class ShipReaderWrapper {
export class ShipReaderWrapper {
config: ShipReaderWrapperConfig = undefined;
forked: boolean = false;
subscriptions = [];
Expand Down Expand Up @@ -284,5 +284,3 @@ class ShipReaderWrapper {
});
}
}

export = ShipReaderWrapper;
11 changes: 11 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export type {
EosioReaderAction,
EosioReaderActionFilter,
EosioReaderTableRowFilter,
} from '@blockmatic/eosio-ship-reader';

export { getLogger } from './common/config';

export { ShipReaderWrapper } from './eosio/ship-reader-wrapper';

export type { ActionData, ActionHandlerResult, ShipReaderWrapperConfig } from './common/types';
11 changes: 8 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@
"resolveJsonModule": true,
"isolatedModules": true,
"moduleResolution": "node",
"outDir": "./dist",
"outDir": "dist/",
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"downlevelIteration": true,
"types": ["node"]
}
"types": ["node"],
"baseUrl": "./",
"paths": {
"@kryptokrauts/event-processor-node-lib/*": ["src/*"]
}
},
"include": ["src"]
}

0 comments on commit 0a92349

Please sign in to comment.