diff --git a/.changeset/kind-seals-act.md b/.changeset/kind-seals-act.md new file mode 100644 index 0000000000..7fb4057cbd --- /dev/null +++ b/.changeset/kind-seals-act.md @@ -0,0 +1,5 @@ +--- +'moralis': patch +--- + +Export all utility functions in Moralis umbrella package diff --git a/packages/moralis/package.json b/packages/moralis/package.json index e4e15aa93f..fc9a487433 100644 --- a/packages/moralis/package.json +++ b/packages/moralis/package.json @@ -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", @@ -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" } } diff --git a/packages/moralis/src/commonEvmUtils/index.ts b/packages/moralis/src/commonEvmUtils/index.ts new file mode 100644 index 0000000000..7c76035d23 --- /dev/null +++ b/packages/moralis/src/commonEvmUtils/index.ts @@ -0,0 +1 @@ +export * from '@moralisweb3/evm-utils'; diff --git a/packages/moralis/src/commonSolUtils/index.ts b/packages/moralis/src/commonSolUtils/index.ts new file mode 100644 index 0000000000..8cb7a41471 --- /dev/null +++ b/packages/moralis/src/commonSolUtils/index.ts @@ -0,0 +1 @@ +export * from '@moralisweb3/sol-utils'; diff --git a/packages/moralis/src/core/index.ts b/packages/moralis/src/core/index.ts new file mode 100644 index 0000000000..5601d47ebd --- /dev/null +++ b/packages/moralis/src/core/index.ts @@ -0,0 +1 @@ +export * from '@moralisweb3/core'; diff --git a/packages/moralis/src/streamsTypings/index.ts b/packages/moralis/src/streamsTypings/index.ts new file mode 100644 index 0000000000..44b0d1102f --- /dev/null +++ b/packages/moralis/src/streamsTypings/index.ts @@ -0,0 +1 @@ +export * from '@moralisweb3/streams-typings'; diff --git a/packages/streams/src/MoralisStreams.ts b/packages/streams/src/MoralisStreams.ts index 39bbda2798..9910bebf5b 100644 --- a/packages/streams/src/MoralisStreams.ts +++ b/packages/streams/src/MoralisStreams.ts @@ -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';