Skip to content

Commit

Permalink
Merge pull request #742 from MoralisWeb3/feat/export-utils-in-umbrella
Browse files Browse the repository at this point in the history
feat: export utils in umbrella package
  • Loading branch information
sogunshola authored Oct 20, 2022
2 parents dcd6cab + adcaffc commit 104cb1c
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-seals-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'moralis': patch
---

Export all utility functions in Moralis umbrella package
29 changes: 28 additions & 1 deletion packages/moralis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,32 @@
"build": "tsc",
"dev": "tsc --watch"
},
"exports": {
".": "./lib/index.js",
"./core": "./lib/core/index.js",
"./stream-typings": "./lib/streamsTypings/index.js",
"./common-evm-utils": "./lib/commonEvmUtils/index.js",
"./common-sol-utils": "./lib/commonSolUtils/index.js"
},
"typesVersions": {
"*": {
".": [
"lib/index.d.ts"
],
"core": [
"lib/core/index.d.ts"
],
"common-evm-utils": [
"lib/commonEvmUtils/index.d.ts"
],
"common-sol-utils": [
"lib/commonSolUtils/index.d.ts"
],
"stream-typings": [
"lib/streamsTypings/index.d.ts"
]
}
},
"dependencies": {
"@moralisweb3/auth": "^2.6.6",
"@moralisweb3/core": "^2.6.6",
Expand All @@ -24,6 +50,7 @@
"@moralisweb3/evm-api": "^2.6.6",
"@moralisweb3/evm-utils": "^2.6.6",
"@moralisweb3/sol-api": "^2.6.6",
"@moralisweb3/sol-utils": "^2.6.6"
"@moralisweb3/sol-utils": "^2.6.6",
"@moralisweb3/streams-typings": "^1.0.5"
}
}
1 change: 1 addition & 0 deletions packages/moralis/src/commonEvmUtils/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@moralisweb3/evm-utils';
1 change: 1 addition & 0 deletions packages/moralis/src/commonSolUtils/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@moralisweb3/sol-utils';
1 change: 1 addition & 0 deletions packages/moralis/src/core/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@moralisweb3/core';
1 change: 1 addition & 0 deletions packages/moralis/src/streamsTypings/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@moralisweb3/streams-typings';
2 changes: 1 addition & 1 deletion packages/streams/src/MoralisStreams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { makeGetAddresses } from './methods/getAddresses';
import { makeDeleteAddress } from './methods/deleteAddress';
import { makeGetStreamById } from './methods/getById';

export const BASE_URL = 'https://api.moralis-streams.com';
const BASE_URL = 'https://api.moralis-streams.com';

export class MoralisStreams extends ApiModule {
public static readonly moduleName = 'streams';
Expand Down

1 comment on commit 104cb1c

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test coverage

Title Lines Statements Branches Functions
api-utils Coverage: 66%
66.56% (219/329) 50.61% (41/81) 68.05% (49/72)
auth Coverage: 97%
97.94% (143/146) 90.9% (20/22) 100% (42/42)
core Coverage: 89%
90.14% (567/629) 75.79% (119/157) 83.72% (108/129)
evm-api Coverage: 82%
80.72% (469/581) 17.57% (58/330) 66.32% (197/297)
evm-utils Coverage: 36%
36.68% (343/935) 39.17% (105/268) 28.26% (91/322)
sol-api Coverage: 75%
76.1% (86/113) 47.36% (9/19) 53.19% (25/47)
sol-utils Coverage: 82%
81.18% (82/101) 66.66% (12/18) 85.71% (30/35)
streams Coverage: 82%
82.72% (383/463) 64% (64/100) 72.72% (96/132)

Please sign in to comment.