@alephium/web3 0.5.4 → 0.6.1

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.
@@ -322,7 +322,7 @@ class Project {
322
322
  }
323
323
  }
324
324
  static getImportSourcePath(projectRootDir, importPath) {
325
- const parts = importPath.split(path.sep);
325
+ const parts = importPath.split('/');
326
326
  if (parts.length > 1 && parts[0] === 'std') {
327
327
  const currentDir = path.dirname(__filename);
328
328
  return path.join(...[currentDir, '..', '..', '..', importPath]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alephium/web3",
3
- "version": "0.5.4",
3
+ "version": "0.6.1",
4
4
  "description": "A JS/TS library to interact with the Alephium platform",
5
5
  "license": "GPL",
6
6
  "main": "dist/src/index.js",
@@ -486,7 +486,7 @@ export class Project {
486
486
  }
487
487
 
488
488
  private static getImportSourcePath(projectRootDir: string, importPath: string): string {
489
- const parts = importPath.split(path.sep)
489
+ const parts = importPath.split('/')
490
490
  if (parts.length > 1 && parts[0] === 'std') {
491
491
  const currentDir = path.dirname(__filename)
492
492
  return path.join(...[currentDir, '..', '..', '..', importPath])
@@ -39,7 +39,8 @@ export abstract class TransactionBuilder {
39
39
  static from(nodeProvider: NodeProvider): TransactionBuilder
40
40
  static from(baseUrl: string, apiKey?: string, customFetch?: typeof fetch): TransactionBuilder
41
41
  static from(param0: string | NodeProvider, param1?: string, customFetch?: typeof fetch): TransactionBuilder {
42
- const nodeProvider = typeof param0 === 'string' ? new NodeProvider(param0, param1, customFetch) : (param0 as NodeProvider)
42
+ const nodeProvider =
43
+ typeof param0 === 'string' ? new NodeProvider(param0, param1, customFetch) : (param0 as NodeProvider)
43
44
  return new (class extends TransactionBuilder {
44
45
  get nodeProvider(): NodeProvider {
45
46
  return nodeProvider