Fix imports

This commit is contained in:
Aleksandr Kraiz
2023-03-31 19:22:10 +04:00
parent 8588b55725
commit facf5153df
3 changed files with 2 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.18.0",
"version": "0.18.1",
"description": "Orion Protocol SDK",
"main": "./lib/esm/index.js",
"module": "./lib/esm/index.js",

View File

@@ -3,9 +3,8 @@ import { simpleFetch, fetchWithValidation } from 'simple-typed-fetch';
BigNumber.config({ EXPONENTIAL_AT: 1e+9 });
export * as config from './config/index.js';
export { default as OrionUnit } from './initOrionUnit.js';
export { default as OrionUnit } from './OrionUnit/index.js';
export { default as Orion } from './Orion/index.js';
export { default as initOrionUnit } from './initOrionUnit.js';
export * as utils from './utils/index.js';
export * as services from './services/index.js';
export * as crypt from './crypt/index.js';

View File

@@ -1,8 +0,0 @@
import OrionUnit from './OrionUnit/index.js';
// backward compatibility
export default function initOrionUnit(...params: ConstructorParameters<typeof OrionUnit>) {
return new OrionUnit(
...params,
);
}