@olane/o-core 0.1.2 → 0.1.4
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.
- package/dist/core/core.node.d.ts +11 -11
- package/dist/core/core.node.d.ts.map +1 -1
- package/dist/core/core.node.js +6 -6
- package/dist/core/defaults/index.d.ts +1 -1
- package/dist/core/defaults/index.d.ts.map +1 -1
- package/dist/core/defaults/index.js +1 -1
- package/dist/core/graceful-shutdown.d.ts +1 -1
- package/dist/core/graceful-shutdown.d.ts.map +1 -1
- package/dist/core/graceful-shutdown.js +1 -1
- package/dist/core/index.d.ts +10 -10
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +10 -10
- package/dist/core/interfaces/connection-manager.config.d.ts +1 -1
- package/dist/core/interfaces/connection-manager.config.d.ts.map +1 -1
- package/dist/core/interfaces/core-config.interface.d.ts +2 -2
- package/dist/core/interfaces/core-config.interface.d.ts.map +1 -1
- package/dist/core/interfaces/index.d.ts +5 -5
- package/dist/core/interfaces/index.d.ts.map +1 -1
- package/dist/core/interfaces/index.js +5 -5
- package/dist/core/lib/index.d.ts +7 -7
- package/dist/core/lib/index.d.ts.map +1 -1
- package/dist/core/lib/index.js +7 -7
- package/dist/core/lib/o-address-resolution.d.ts +2 -2
- package/dist/core/lib/o-address-resolution.d.ts.map +1 -1
- package/dist/core/lib/o-address-resolution.js +1 -1
- package/dist/core/lib/o-address-resolver.d.ts +3 -3
- package/dist/core/lib/o-address-resolver.d.ts.map +1 -1
- package/dist/core/lib/o-address-resolver.js +2 -2
- package/dist/core/lib/o-connection-manager.d.ts +3 -3
- package/dist/core/lib/o-connection-manager.d.ts.map +1 -1
- package/dist/core/lib/o-connection-manager.js +1 -1
- package/dist/core/lib/o-connection.d.ts +4 -4
- package/dist/core/lib/o-connection.d.ts.map +1 -1
- package/dist/core/lib/o-connection.js +3 -3
- package/dist/core/lib/resolvers/anything.resolver.d.ts +3 -3
- package/dist/core/lib/resolvers/anything.resolver.d.ts.map +1 -1
- package/dist/core/lib/resolvers/anything.resolver.js +2 -2
- package/dist/core/lib/resolvers/index.d.ts +4 -4
- package/dist/core/lib/resolvers/index.d.ts.map +1 -1
- package/dist/core/lib/resolvers/index.js +4 -4
- package/dist/core/lib/resolvers/method.resolver.d.ts +3 -3
- package/dist/core/lib/resolvers/method.resolver.d.ts.map +1 -1
- package/dist/core/lib/resolvers/method.resolver.js +2 -2
- package/dist/core/lib/resolvers/next-hop.resolver.d.ts +2 -2
- package/dist/core/lib/resolvers/next-hop.resolver.d.ts.map +1 -1
- package/dist/core/lib/resolvers/next-hop.resolver.js +3 -3
- package/dist/core/lib/resolvers/storage.resolver.d.ts +1 -1
- package/dist/core/lib/resolvers/storage.resolver.d.ts.map +1 -1
- package/dist/core/lib/resolvers/storage.resolver.js +1 -1
- package/dist/core/o-address.js +1 -1
- package/dist/core/utils/core.utils.d.ts +3 -3
- package/dist/core/utils/core.utils.d.ts.map +1 -1
- package/dist/core/utils/core.utils.js +2 -2
- package/dist/core/utils/index.d.ts +3 -3
- package/dist/core/utils/index.d.ts.map +1 -1
- package/dist/core/utils/index.js +3 -3
- package/dist/core/utils/network.utils.d.ts +1 -1
- package/dist/core/utils/network.utils.d.ts.map +1 -1
- package/dist/error/index.d.ts +2 -2
- package/dist/error/index.d.ts.map +1 -1
- package/dist/error/index.js +2 -2
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +3 -3
- package/dist/node/lib/local-search.lib.d.ts +2 -2
- package/dist/node/lib/local-search.lib.d.ts.map +1 -1
- package/dist/node/lib/network-activity.lib.d.ts +1 -1
- package/dist/node/lib/network-activity.lib.d.ts.map +1 -1
- package/dist/node/node.d.ts +3 -3
- package/dist/node/node.d.ts.map +1 -1
- package/dist/node/node.js +8 -8
- package/dist/node-host/host.node.d.ts +1 -1
- package/dist/node-host/host.node.d.ts.map +1 -1
- package/dist/node-host/host.node.js +1 -1
- package/dist/node-host/index.d.ts +1 -1
- package/dist/node-host/index.d.ts.map +1 -1
- package/dist/node-host/index.js +1 -1
- package/dist/node-virtual/index.d.ts +1 -1
- package/dist/node-virtual/index.d.ts.map +1 -1
- package/dist/node-virtual/index.js +1 -1
- package/dist/node-virtual/virtual.node.d.ts +1 -1
- package/dist/node-virtual/virtual.node.d.ts.map +1 -1
- package/dist/node-virtual/virtual.node.js +1 -1
- package/dist/plan/agent.plan.d.ts +4 -4
- package/dist/plan/agent.plan.d.ts.map +1 -1
- package/dist/plan/agent.plan.js +5 -5
- package/dist/plan/configure/configure.plan.d.ts +3 -3
- package/dist/plan/configure/configure.plan.d.ts.map +1 -1
- package/dist/plan/configure/configure.plan.js +3 -3
- package/dist/plan/error/error.plan.d.ts +3 -3
- package/dist/plan/error/error.plan.d.ts.map +1 -1
- package/dist/plan/error/error.plan.js +3 -3
- package/dist/plan/index.d.ts +4 -4
- package/dist/plan/index.d.ts.map +1 -1
- package/dist/plan/index.js +4 -4
- package/dist/plan/interfaces/plan-config.interface.d.ts +2 -2
- package/dist/plan/interfaces/plan-config.interface.d.ts.map +1 -1
- package/dist/plan/interfaces/plan-result.interface.d.ts +1 -1
- package/dist/plan/interfaces/plan-result.interface.d.ts.map +1 -1
- package/dist/plan/interfaces/plan.result.d.ts +2 -2
- package/dist/plan/interfaces/plan.result.d.ts.map +1 -1
- package/dist/plan/o-plan.d.ts +4 -4
- package/dist/plan/o-plan.d.ts.map +1 -1
- package/dist/plan/o-plan.js +3 -2
- package/dist/plan/prompts/agent.prompt.js +1 -1
- package/dist/plan/prompts/configure.prompt.js +1 -1
- package/dist/plan/search/search.plan.d.ts +3 -3
- package/dist/plan/search/search.plan.d.ts.map +1 -1
- package/dist/plan/search/search.plan.js +2 -2
- package/dist/plan/use/index.d.ts +1 -1
- package/dist/plan/use/index.d.ts.map +1 -1
- package/dist/plan/use/index.js +1 -1
- package/dist/plan/use/use.plan.d.ts +4 -4
- package/dist/plan/use/use.plan.d.ts.map +1 -1
- package/dist/plan/use/use.plan.js +5 -5
- package/package.json +3 -3
package/dist/core/core.node.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Libp2p, Libp2pConfig, Multiaddr, PeerId } from '@olane/o-config';
|
|
2
|
-
import { CoreConfig } from './interfaces/core-config.interface';
|
|
3
|
-
import { NodeState } from './interfaces/state.enum';
|
|
4
|
-
import { oAddress } from './o-address';
|
|
5
|
-
import { Logger } from './utils/logger';
|
|
6
|
-
import { NodeType } from './interfaces/node-type.enum';
|
|
7
|
-
import { oConnectionManager } from './lib/o-connection-manager';
|
|
8
|
-
import { oResponse } from './lib/o-response';
|
|
9
|
-
import { oConnection } from './lib/o-connection';
|
|
2
|
+
import { CoreConfig } from './interfaces/core-config.interface.js';
|
|
3
|
+
import { NodeState } from './interfaces/state.enum.js';
|
|
4
|
+
import { oAddress } from './o-address.js';
|
|
5
|
+
import { Logger } from './utils/logger.js';
|
|
6
|
+
import { NodeType } from './interfaces/node-type.enum.js';
|
|
7
|
+
import { oConnectionManager } from './lib/o-connection-manager.js';
|
|
8
|
+
import { oResponse } from './lib/o-response.js';
|
|
9
|
+
import { oConnection } from './lib/o-connection.js';
|
|
10
10
|
import { oMethod } from '@olane/o-protocol';
|
|
11
|
-
import { oAddressResolution } from './lib/o-address-resolution';
|
|
12
|
-
import { oDependency } from './o-dependency';
|
|
13
|
-
import { UseOptions } from './interfaces/use-options.interface';
|
|
11
|
+
import { oAddressResolution } from './lib/o-address-resolution.js';
|
|
12
|
+
import { oDependency } from './o-dependency.js';
|
|
13
|
+
import { UseOptions } from './interfaces/use-options.interface.js';
|
|
14
14
|
export declare abstract class oCoreNode {
|
|
15
15
|
readonly config: CoreConfig;
|
|
16
16
|
p2pNode: Libp2p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.node.d.ts","sourceRoot":"","sources":["../../src/core/core.node.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EACN,YAAY,EACZ,SAAS,EAET,MAAM,EACP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"core.node.d.ts","sourceRoot":"","sources":["../../src/core/core.node.ts"],"names":[],"mappings":"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"}
|
package/dist/core/core.node.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defaultLibp2pConfig, multiaddr, } from '@olane/o-config';
|
|
2
|
-
import { NodeState } from './interfaces/state.enum';
|
|
3
|
-
import { oAddress } from './o-address';
|
|
4
|
-
import { Logger } from './utils/logger';
|
|
5
|
-
import { NodeType } from './interfaces/node-type.enum';
|
|
6
|
-
import { oAddressResolution } from './lib/o-address-resolution';
|
|
7
|
-
import { oDependency } from './o-dependency';
|
|
2
|
+
import { NodeState } from './interfaces/state.enum.js';
|
|
3
|
+
import { oAddress } from './o-address.js';
|
|
4
|
+
import { Logger } from './utils/logger.js';
|
|
5
|
+
import { NodeType } from './interfaces/node-type.enum.js';
|
|
6
|
+
import { oAddressResolution } from './lib/o-address-resolution.js';
|
|
7
|
+
import { oDependency } from './o-dependency.js';
|
|
8
8
|
export class oCoreNode {
|
|
9
9
|
constructor(config) {
|
|
10
10
|
this.config = config;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './config';
|
|
1
|
+
export * from './config.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/defaults/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/defaults/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './config';
|
|
1
|
+
export * from './config.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graceful-shutdown.d.ts","sourceRoot":"","sources":["../../src/core/graceful-shutdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"graceful-shutdown.d.ts","sourceRoot":"","sources":["../../src/core/graceful-shutdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,eAAe,EACxB,OAAO,GAAE,uBAA4B,GACpC,IAAI,CAmEN;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,KAAK,CAAC;IAAE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,EACpE,MAAM,GAAE,MAA2C,GAClD,eAAe,CAmBjB"}
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from './core.node';
|
|
2
|
-
export * from './utils/core.utils';
|
|
3
|
-
export * from './o-address';
|
|
4
|
-
export * from './interfaces';
|
|
5
|
-
export * from './o-dependency';
|
|
6
|
-
export * from './utils/logger';
|
|
7
|
-
export * from './lib';
|
|
8
|
-
export * from './o-parameter';
|
|
9
|
-
export * from './defaults';
|
|
10
|
-
export * from './graceful-shutdown';
|
|
1
|
+
export * from './core.node.js';
|
|
2
|
+
export * from './utils/core.utils.js';
|
|
3
|
+
export * from './o-address.js';
|
|
4
|
+
export * from './interfaces/index.js';
|
|
5
|
+
export * from './o-dependency.js';
|
|
6
|
+
export * from './utils/logger.js';
|
|
7
|
+
export * from './lib/index.js';
|
|
8
|
+
export * from './o-parameter.js';
|
|
9
|
+
export * from './defaults/index.js';
|
|
10
|
+
export * from './graceful-shutdown.js';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"}
|
package/dist/core/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './core.node';
|
|
2
|
-
export * from './utils/core.utils';
|
|
3
|
-
export * from './o-address';
|
|
4
|
-
export * from './interfaces';
|
|
5
|
-
export * from './o-dependency';
|
|
6
|
-
export * from './utils/logger';
|
|
7
|
-
export * from './lib';
|
|
8
|
-
export * from './o-parameter';
|
|
9
|
-
export * from './defaults';
|
|
10
|
-
export * from './graceful-shutdown';
|
|
1
|
+
export * from './core.node.js';
|
|
2
|
+
export * from './utils/core.utils.js';
|
|
3
|
+
export * from './o-address.js';
|
|
4
|
+
export * from './interfaces/index.js';
|
|
5
|
+
export * from './o-dependency.js';
|
|
6
|
+
export * from './utils/logger.js';
|
|
7
|
+
export * from './lib/index.js';
|
|
8
|
+
export * from './o-parameter.js';
|
|
9
|
+
export * from './defaults/index.js';
|
|
10
|
+
export * from './graceful-shutdown.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-manager.config.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/connection-manager.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"connection-manager.config.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/connection-manager.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Libp2pConfig } from '@olane/o-config';
|
|
2
|
-
import { oAddress } from '../o-address';
|
|
3
|
-
import { NodeType } from './node-type.enum';
|
|
2
|
+
import { oAddress } from '../o-address.js';
|
|
3
|
+
import { NodeType } from './node-type.enum.js';
|
|
4
4
|
import { oDependency, oMethod } from '@olane/o-protocol';
|
|
5
5
|
export interface CoreConfig {
|
|
6
6
|
address: oAddress;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-config.interface.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/core-config.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"core-config.interface.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/core-config.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,QAAQ,CAAC;CAC1B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './core-config.interface';
|
|
2
|
-
export * from './node-type.enum';
|
|
3
|
-
export * from './restricted-addresses.enum';
|
|
4
|
-
export * from './state.enum';
|
|
5
|
-
export * from './use-options.interface';
|
|
1
|
+
export * from './core-config.interface.js';
|
|
2
|
+
export * from './node-type.enum.js';
|
|
3
|
+
export * from './restricted-addresses.enum.js';
|
|
4
|
+
export * from './state.enum.js';
|
|
5
|
+
export * from './use-options.interface.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './core-config.interface';
|
|
2
|
-
export * from './node-type.enum';
|
|
3
|
-
export * from './restricted-addresses.enum';
|
|
4
|
-
export * from './state.enum';
|
|
5
|
-
export * from './use-options.interface';
|
|
1
|
+
export * from './core-config.interface.js';
|
|
2
|
+
export * from './node-type.enum.js';
|
|
3
|
+
export * from './restricted-addresses.enum.js';
|
|
4
|
+
export * from './state.enum.js';
|
|
5
|
+
export * from './use-options.interface.js';
|
package/dist/core/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './o-request';
|
|
2
|
-
export * from './o-response';
|
|
3
|
-
export * from './o-connection';
|
|
4
|
-
export * from './o-connection-manager';
|
|
5
|
-
export * from './o-address-resolution';
|
|
6
|
-
export * from './o-address-resolver';
|
|
7
|
-
export * from './resolvers';
|
|
1
|
+
export * from './o-request.js';
|
|
2
|
+
export * from './o-response.js';
|
|
3
|
+
export * from './o-connection.js';
|
|
4
|
+
export * from './o-connection-manager.js';
|
|
5
|
+
export * from './o-address-resolution.js';
|
|
6
|
+
export * from './o-address-resolver.js';
|
|
7
|
+
export * from './resolvers/index.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
|
package/dist/core/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './o-request';
|
|
2
|
-
export * from './o-response';
|
|
3
|
-
export * from './o-connection';
|
|
4
|
-
export * from './o-connection-manager';
|
|
5
|
-
export * from './o-address-resolution';
|
|
6
|
-
export * from './o-address-resolver';
|
|
7
|
-
export * from './resolvers';
|
|
1
|
+
export * from './o-request.js';
|
|
2
|
+
export * from './o-response.js';
|
|
3
|
+
export * from './o-connection.js';
|
|
4
|
+
export * from './o-connection-manager.js';
|
|
5
|
+
export * from './o-address-resolution.js';
|
|
6
|
+
export * from './o-address-resolver.js';
|
|
7
|
+
export * from './resolvers/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { oAddress } from '../o-address';
|
|
2
|
-
import { oAddressResolver } from './o-address-resolver';
|
|
1
|
+
import { oAddress } from '../o-address.js';
|
|
2
|
+
import { oAddressResolver } from './o-address-resolver.js';
|
|
3
3
|
export declare class oAddressResolution {
|
|
4
4
|
private readonly resolvers;
|
|
5
5
|
addResolver(resolver: oAddressResolver): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o-address-resolution.d.ts","sourceRoot":"","sources":["../../../src/core/lib/o-address-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"o-address-resolution.d.ts","sourceRoot":"","sources":["../../../src/core/lib/o-address-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA0B;IAEpD,WAAW,CAAC,QAAQ,EAAE,gBAAgB;IAItC,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO;IAQvC,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;CAWpD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Libp2p } from '@olane/o-config';
|
|
2
|
-
import { Logger } from '../';
|
|
3
|
-
import { oAddress } from '../o-address';
|
|
4
|
-
import { oNode } from '../../node';
|
|
2
|
+
import { Logger } from '../utils/logger.js';
|
|
3
|
+
import { oAddress } from '../o-address.js';
|
|
4
|
+
import { oNode } from '../../node/index.js';
|
|
5
5
|
export declare class oAddressResolver {
|
|
6
6
|
protected readonly address: oAddress;
|
|
7
7
|
protected readonly p2pNode: Libp2p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o-address-resolver.d.ts","sourceRoot":"","sources":["../../../src/core/lib/o-address-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAa,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"o-address-resolver.d.ts","sourceRoot":"","sources":["../../../src/core/lib/o-address-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAa,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,qBAAa,gBAAgB;IAGzB,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ;IACpC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM;IAH7B,MAAM,EAAE,MAAM,CAAC;gBAED,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,MAAM;IAKpC,IAAI,UAAU,IAAI,MAAM,EAAE,CAEzB;IAED,aAAa,CAAC,aAAa,EAAE,QAAQ,GAAG,OAAO;IAI/C,eAAe,CAAC,aAAa,EAAE,QAAQ,GAAG,OAAO;IAIjD,eAAe,CAAC,aAAa,EAAE,QAAQ,GAAG,OAAO;IAIjD,uBAAuB,CAAC,aAAa,EAAE,QAAQ;IAezC,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC;CAGlE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { oAddress } from '../o-address';
|
|
2
|
-
import { oConnection } from './o-connection';
|
|
3
|
-
import { oConnectionManagerConfig } from '../interfaces/connection-manager.config';
|
|
1
|
+
import { oAddress } from '../o-address.js';
|
|
2
|
+
import { oConnection } from './o-connection.js';
|
|
3
|
+
import { oConnectionManagerConfig } from '../interfaces/connection-manager.config.js';
|
|
4
4
|
export declare class oConnectionManager {
|
|
5
5
|
private cache;
|
|
6
6
|
private logger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o-connection-manager.d.ts","sourceRoot":"","sources":["../../../src/core/lib/o-connection-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"o-connection-manager.d.ts","sourceRoot":"","sources":["../../../src/core/lib/o-connection-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAGtF,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,KAAK,CAAuC;IACpD,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAS;gBAEZ,MAAM,EAAE,wBAAwB;IAK5C;;;;OAIG;IACG,OAAO,CAAC,MAAM,EAAE;QACpB,OAAO,EAAE,QAAQ,CAAC;QAClB,cAAc,EAAE,QAAQ,CAAC;QACzB,aAAa,CAAC,EAAE,QAAQ,CAAC;KAC1B,GAAG,OAAO,CAAC,WAAW,CAAC;IAqCxB,QAAQ,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO;IAIpC,mBAAmB,CAAC,OAAO,EAAE,QAAQ,GAAG,WAAW,GAAG,IAAI;CAe3D"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Connection } from '@olane/o-config';
|
|
2
|
-
import { oAddress } from '../o-address';
|
|
3
|
-
import { oRequest } from './o-request';
|
|
4
|
-
import { oResponse } from './o-response';
|
|
5
|
-
import { ConnectionSendParams } from '../interfaces/connection-send-params.interface';
|
|
2
|
+
import { oAddress } from '../o-address.js';
|
|
3
|
+
import { oRequest } from './o-request.js';
|
|
4
|
+
import { oResponse } from './o-response.js';
|
|
5
|
+
import { ConnectionSendParams } from '../interfaces/connection-send-params.interface.js';
|
|
6
6
|
export declare class oConnection {
|
|
7
7
|
private readonly config;
|
|
8
8
|
readonly id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o-connection.d.ts","sourceRoot":"","sources":["../../../src/core/lib/o-connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiC,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"o-connection.d.ts","sourceRoot":"","sources":["../../../src/core/lib/o-connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiC,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAEzF,qBAAa,WAAW;IASpB,OAAO,CAAC,QAAQ,CAAC,MAAM;IARzB,SAAgB,EAAE,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAa;IAC3C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAW;IACnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAW;IAC1C,OAAO,CAAC,cAAc,CAAa;gBAGhB,MAAM,EAAE;QACvB,cAAc,EAAE,QAAQ,CAAC;QACzB,aAAa,CAAC,EAAE,QAAQ,CAAC;QACzB,OAAO,EAAE,QAAQ,CAAC;QAClB,aAAa,EAAE,UAAU,CAAC;KAC3B;IAgBG,IAAI,CAAC,MAAM,EAAE,GAAG;IAUtB,QAAQ;IAOR,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,GAAG,QAAQ;IAyB/D,QAAQ,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC;IAqB/C,IAAI,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,SAAS,CAAC;IAMpD,KAAK;CAKZ"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Uint8ArrayList, pushable, all } from '@olane/o-config';
|
|
2
|
-
import { Logger } from '../utils/logger';
|
|
2
|
+
import { Logger } from '../utils/logger.js';
|
|
3
3
|
import { v4 as uuidv4 } from 'uuid';
|
|
4
|
-
import { oRequest } from './o-request';
|
|
4
|
+
import { oRequest } from './o-request.js';
|
|
5
5
|
import { oProtocolMethods } from '@olane/o-protocol';
|
|
6
|
-
import { oResponse } from './o-response';
|
|
6
|
+
import { oResponse } from './o-response.js';
|
|
7
7
|
export class oConnection {
|
|
8
8
|
constructor(config) {
|
|
9
9
|
this.config = config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { oNode } from '../../../node';
|
|
2
|
-
import { oAddress } from '../../o-address';
|
|
3
|
-
import { oAddressResolver } from '../o-address-resolver';
|
|
1
|
+
import { oNode } from '../../../node/index.js';
|
|
2
|
+
import { oAddress } from '../../o-address.js';
|
|
3
|
+
import { oAddressResolver } from '../o-address-resolver.js';
|
|
4
4
|
export declare abstract class oAnythingResolver extends oAddressResolver {
|
|
5
5
|
get transports(): string[];
|
|
6
6
|
resolve(address: oAddress, node: oNode): Promise<oAddress>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anything.resolver.d.ts","sourceRoot":"","sources":["../../../../src/core/lib/resolvers/anything.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"anything.resolver.d.ts","sourceRoot":"","sources":["../../../../src/core/lib/resolvers/anything.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,8BAAsB,iBAAkB,SAAQ,gBAAgB;IAC9D,IAAI,UAAU,IAAI,MAAM,EAAE,CAEzB;IAEK,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC;CAUjE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { oAddress } from '../../o-address';
|
|
2
|
-
import { oAddressResolver } from '../o-address-resolver';
|
|
1
|
+
import { oAddress } from '../../o-address.js';
|
|
2
|
+
import { oAddressResolver } from '../o-address-resolver.js';
|
|
3
3
|
export class oAnythingResolver extends oAddressResolver {
|
|
4
4
|
get transports() {
|
|
5
5
|
return ['/anything'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './anything.resolver';
|
|
2
|
-
export * from './method.resolver';
|
|
3
|
-
export * from './next-hop.resolver';
|
|
4
|
-
export * from './storage.resolver';
|
|
1
|
+
export * from './anything.resolver.js';
|
|
2
|
+
export * from './method.resolver.js';
|
|
3
|
+
export * from './next-hop.resolver.js';
|
|
4
|
+
export * from './storage.resolver.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/lib/resolvers/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/lib/resolvers/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './anything.resolver';
|
|
2
|
-
export * from './method.resolver';
|
|
3
|
-
export * from './next-hop.resolver';
|
|
4
|
-
export * from './storage.resolver';
|
|
1
|
+
export * from './anything.resolver.js';
|
|
2
|
+
export * from './method.resolver.js';
|
|
3
|
+
export * from './next-hop.resolver.js';
|
|
4
|
+
export * from './storage.resolver.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { oNode } from '../../../node';
|
|
2
|
-
import { oAddress } from '../../o-address';
|
|
3
|
-
import { oAnythingResolver } from './anything.resolver';
|
|
1
|
+
import { oNode } from '../../../node/index.js';
|
|
2
|
+
import { oAddress } from '../../o-address.js';
|
|
3
|
+
import { oAnythingResolver } from './anything.resolver.js';
|
|
4
4
|
export declare class oMethodResolver extends oAnythingResolver {
|
|
5
5
|
static get transports(): string[];
|
|
6
6
|
resolve(address: oAddress, node: oNode): Promise<oAddress>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.resolver.d.ts","sourceRoot":"","sources":["../../../../src/core/lib/resolvers/method.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"method.resolver.d.ts","sourceRoot":"","sources":["../../../../src/core/lib/resolvers/method.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,qBAAa,eAAgB,SAAQ,iBAAiB;IACpD,MAAM,KAAK,UAAU,IAAI,MAAM,EAAE,CAEhC;IACK,OAAO,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC;CAcjE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { oAddress } from '../../o-address';
|
|
2
|
-
import { oAnythingResolver } from './anything.resolver';
|
|
1
|
+
import { oAddress } from '../../o-address.js';
|
|
2
|
+
import { oAnythingResolver } from './anything.resolver.js';
|
|
3
3
|
export class oMethodResolver extends oAnythingResolver {
|
|
4
4
|
static get transports() {
|
|
5
5
|
return ['/method'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Multiaddr } from '@olane/o-config';
|
|
2
|
-
import { oAddress } from '../../o-address';
|
|
3
|
-
import { oAddressResolver } from '../o-address-resolver';
|
|
2
|
+
import { oAddress } from '../../o-address.js';
|
|
3
|
+
import { oAddressResolver } from '../o-address-resolver.js';
|
|
4
4
|
export declare class NextHopResolver extends oAddressResolver {
|
|
5
5
|
resolveAddressToTransports(address: oAddress): Promise<Multiaddr[]>;
|
|
6
6
|
findProviderTransports(address: oAddress): Promise<Multiaddr[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-hop.resolver.d.ts","sourceRoot":"","sources":["../../../../src/core/lib/resolvers/next-hop.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"next-hop.resolver.d.ts","sourceRoot":"","sources":["../../../../src/core/lib/resolvers/next-hop.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,qBAAa,eAAgB,SAAQ,gBAAgB;IAE7C,0BAA0B,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAYnE,sBAAsB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAwB/D,WAAW,CAAC,aAAa,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAqBvD,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;CAIpD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { multiaddr } from '@olane/o-config';
|
|
2
|
-
import { oAddress } from '../../o-address';
|
|
3
|
-
import { oAddressResolver } from '../o-address-resolver';
|
|
4
|
-
import { NetworkUtils } from '../../utils';
|
|
2
|
+
import { oAddress } from '../../o-address.js';
|
|
3
|
+
import { oAddressResolver } from '../o-address-resolver.js';
|
|
4
|
+
import { NetworkUtils } from '../../utils/network.utils.js';
|
|
5
5
|
export class NextHopResolver extends oAddressResolver {
|
|
6
6
|
// when we use the network to find the next hop, we need to make sure we are just searching for child addresses
|
|
7
7
|
async resolveAddressToTransports(address) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.resolver.d.ts","sourceRoot":"","sources":["../../../../src/core/lib/resolvers/storage.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"storage.resolver.d.ts","sourceRoot":"","sources":["../../../../src/core/lib/resolvers/storage.resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAI3D,qBAAa,eAAgB,SAAQ,iBAAiB;IACpD,IAAI,UAAU,IAAI,MAAM,EAAE,CAEzB;IACD,MAAM,KAAK,UAAU,IAAI,MAAM,EAAE,CAEhC;CACF"}
|
package/dist/core/o-address.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stream } from '@olane/o-config';
|
|
2
|
-
import { oAddress } from '../o-address';
|
|
3
|
-
import { oResponse } from '../lib/o-response';
|
|
4
|
-
import { oRequest } from '../lib/o-request';
|
|
2
|
+
import { oAddress } from '../o-address.js';
|
|
3
|
+
import { oResponse } from '../lib/o-response.js';
|
|
4
|
+
import { oRequest } from '../lib/o-request.js';
|
|
5
5
|
import { CID } from 'multiformats';
|
|
6
6
|
export declare class CoreUtils {
|
|
7
7
|
static generatePeerId(): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.utils.d.ts","sourceRoot":"","sources":["../../../src/core/utils/core.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EAGP,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"core.utils.d.ts","sourceRoot":"","sources":["../../../src/core/utils/core.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,MAAM,EAGP,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAInC,qBAAa,SAAS;WACP,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC;WAK9B,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAQ7C,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;WAOpC,YAAY,CACxB,aAAa,EAAE,QAAQ,EACvB,YAAY,EAAE,QAAQ,GACrB,QAAQ;WAIS,YAAY,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM;WAWhD,aAAa,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC;WAc7C,KAAK,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;CAMnD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { generateKeyPairFromSeed, createEd25519PeerId, Uint8ArrayList, pushable, } from '@olane/o-config';
|
|
2
2
|
import { createHash } from 'crypto';
|
|
3
|
-
import { oAddress } from '../o-address';
|
|
4
|
-
import { oRequest } from '../lib/o-request';
|
|
3
|
+
import { oAddress } from '../o-address.js';
|
|
4
|
+
import { oRequest } from '../lib/o-request.js';
|
|
5
5
|
import { CID } from 'multiformats';
|
|
6
6
|
import * as json from 'multiformats/codecs/json';
|
|
7
7
|
import { sha256 } from 'multiformats/hashes/sha2';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './core.utils';
|
|
2
|
-
export * from './logger';
|
|
3
|
-
export * from './network.utils';
|
|
1
|
+
export * from './core.utils.js';
|
|
2
|
+
export * from './logger.js';
|
|
3
|
+
export * from './network.utils.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
|
package/dist/core/utils/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './core.utils';
|
|
2
|
-
export * from './logger';
|
|
3
|
-
export * from './network.utils';
|
|
1
|
+
export * from './core.utils.js';
|
|
2
|
+
export * from './logger.js';
|
|
3
|
+
export * from './network.utils.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Libp2p, Multiaddr } from '@olane/o-config';
|
|
2
|
-
import { oAddress } from '../o-address';
|
|
2
|
+
import { oAddress } from '../o-address.js';
|
|
3
3
|
export declare class NetworkUtils {
|
|
4
4
|
static findNode(p2pNode: Libp2p, address: oAddress): Promise<{
|
|
5
5
|
transports: Multiaddr[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.utils.d.ts","sourceRoot":"","sources":["../../../src/core/utils/network.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"network.utils.d.ts","sourceRoot":"","sources":["../../../src/core/utils/network.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,qBAAa,YAAY;WACH,QAAQ,CAC1B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,QAAQ,GAChB,OAAO,CAAC;QACT,UAAU,EAAE,SAAS,EAAE,CAAC;QACxB,aAAa,EAAE,MAAM,CAAC;QACtB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;CA2CH"}
|
package/dist/error/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './tool.error';
|
|
2
|
-
export * from './enums/codes.error';
|
|
1
|
+
export * from './tool.error.js';
|
|
2
|
+
export * from './enums/codes.error.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/error/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/error/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
|
package/dist/error/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './tool.error';
|
|
2
|
-
export * from './enums/codes.error';
|
|
1
|
+
export * from './tool.error.js';
|
|
2
|
+
export * from './enums/codes.error.js';
|