@olane/o-core 0.6.9 → 0.6.10

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.
@@ -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,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;CAOpD"}
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;IAWvC,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;CAOpD"}
@@ -7,6 +7,9 @@ export class oAddressResolution {
7
7
  this.resolvers.push(resolver);
8
8
  }
9
9
  supportsTransport(address) {
10
+ if (address.libp2pTransports.length > 0) {
11
+ return false;
12
+ }
10
13
  return this.resolvers.some((r) => address.customTransports.some((t) => {
11
14
  return r.transports.includes(t);
12
15
  }));
@@ -1,3 +1,4 @@
1
1
  export * from './object.utils.js';
2
2
  export * from './regex.utils.js';
3
+ export * from './remote.utils.js';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './object.utils.js';
2
2
  export * from './regex.utils.js';
3
+ export * from './remote.utils.js';
@@ -0,0 +1,4 @@
1
+ export declare class RemoteUtils {
2
+ static getRemoteAddress(): string;
3
+ }
4
+ //# sourceMappingURL=remote.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote.utils.d.ts","sourceRoot":"","sources":["../../../src/utils/remote.utils.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW;IACtB,MAAM,CAAC,gBAAgB,IAAI,MAAM;CAKlC"}
@@ -0,0 +1,5 @@
1
+ export class RemoteUtils {
2
+ static getRemoteAddress() {
3
+ return (process.env.OLANE_ADDRESS || '/dns4/leader.olane.com/tcp/4000/tls/ws');
4
+ }
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-core",
3
- "version": "0.6.9",
3
+ "version": "0.6.10",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -26,11 +26,11 @@
26
26
  "start:prod": "node dist/index.js",
27
27
  "prepublishOnly": "npm run build",
28
28
  "lint": "aegir lint",
29
- "release": "cd scripts && npm run release",
30
- "release:dry-run": "cd scripts && npm run release:dry-run",
31
- "release:parallel": "cd scripts && npm run release:parallel",
32
- "release:minor": "cd scripts && npm run release:minor",
33
- "release:major": "cd scripts && npm run release:major"
29
+ "release": "cd scripts/release && npm run release",
30
+ "release:dry-run": "cd scripts/release && npm run release:dry-run",
31
+ "release:parallel": "cd scripts/release && npm run release:parallel",
32
+ "release:minor": "cd scripts/release && npm run release:minor",
33
+ "release:major": "cd scripts/release && npm run release:major"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",
@@ -39,6 +39,9 @@
39
39
  "author": "Olane Inc.",
40
40
  "license": "ISC",
41
41
  "description": "Olane addressable p2p node used to host tools, data or anything else your heart can dream of.",
42
+ "workspaces": [
43
+ "packages/*"
44
+ ],
42
45
  "devDependencies": {
43
46
  "@eslint/eslintrc": "^3.3.1",
44
47
  "@eslint/js": "^9.29.0",
@@ -61,8 +64,8 @@
61
64
  "typescript": "^5.8.3"
62
65
  },
63
66
  "peerDependencies": {
64
- "@olane/o-config": "^0.6.8",
65
- "@olane/o-protocol": "^0.6.8"
67
+ "@olane/o-config": "^0.6.9",
68
+ "@olane/o-protocol": "^0.6.9"
66
69
  },
67
70
  "dependencies": {
68
71
  "chalk": "^5.4.1",