@xyo-network/location-plugin 2.74.4 → 2.75.0

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.
Files changed (94) hide show
  1. package/dist/browser/Config.cjs +27 -0
  2. package/dist/browser/Config.cjs.map +1 -0
  3. package/dist/browser/Config.d.mts.map +1 -0
  4. package/dist/browser/Config.d.ts.map +1 -0
  5. package/dist/browser/Config.js +6 -0
  6. package/dist/browser/Config.js.map +1 -0
  7. package/dist/browser/CurrentLocationPayloadSet.cjs +37 -0
  8. package/dist/browser/CurrentLocationPayloadSet.cjs.map +1 -0
  9. package/dist/browser/CurrentLocationPayloadSet.d.mts.map +1 -0
  10. package/dist/browser/CurrentLocationPayloadSet.d.ts.map +1 -0
  11. package/dist/browser/CurrentLocationPayloadSet.js +16 -0
  12. package/dist/browser/CurrentLocationPayloadSet.js.map +1 -0
  13. package/dist/browser/CurrentLocationWitness.cjs +70 -0
  14. package/dist/browser/CurrentLocationWitness.cjs.map +1 -0
  15. package/dist/browser/CurrentLocationWitness.d.mts.map +1 -0
  16. package/dist/browser/CurrentLocationWitness.d.ts.map +1 -0
  17. package/dist/browser/CurrentLocationWitness.js +49 -0
  18. package/dist/browser/CurrentLocationWitness.js.map +1 -0
  19. package/dist/browser/Plugin.cjs +85 -0
  20. package/dist/browser/Plugin.cjs.map +1 -0
  21. package/dist/browser/Plugin.d.mts.map +1 -0
  22. package/dist/browser/Plugin.d.ts.map +1 -0
  23. package/dist/browser/Plugin.js +64 -0
  24. package/dist/browser/Plugin.js.map +1 -0
  25. package/dist/{index.js → browser/index.cjs} +1 -8
  26. package/dist/browser/index.cjs.map +1 -0
  27. package/dist/browser/index.d.mts.map +1 -0
  28. package/dist/browser/index.d.ts.map +1 -0
  29. package/dist/{index.mjs → browser/index.js} +1 -1
  30. package/dist/browser/index.js.map +1 -0
  31. package/dist/node/Config.d.mts +11 -0
  32. package/dist/node/Config.d.mts.map +1 -0
  33. package/dist/node/Config.d.ts +11 -0
  34. package/dist/node/Config.d.ts.map +1 -0
  35. package/dist/node/Config.js +29 -0
  36. package/dist/node/Config.js.map +1 -0
  37. package/dist/node/Config.mjs +5 -0
  38. package/dist/node/Config.mjs.map +1 -0
  39. package/dist/node/CurrentLocationPayloadSet.d.mts +3 -0
  40. package/dist/node/CurrentLocationPayloadSet.d.mts.map +1 -0
  41. package/dist/node/CurrentLocationPayloadSet.d.ts +3 -0
  42. package/dist/node/CurrentLocationPayloadSet.d.ts.map +1 -0
  43. package/dist/node/CurrentLocationPayloadSet.js +39 -0
  44. package/dist/node/CurrentLocationPayloadSet.js.map +1 -0
  45. package/dist/node/CurrentLocationPayloadSet.mjs +15 -0
  46. package/dist/node/CurrentLocationPayloadSet.mjs.map +1 -0
  47. package/dist/node/CurrentLocationWitness.d.mts +10 -0
  48. package/dist/node/CurrentLocationWitness.d.mts.map +1 -0
  49. package/dist/node/CurrentLocationWitness.d.ts +10 -0
  50. package/dist/node/CurrentLocationWitness.d.ts.map +1 -0
  51. package/dist/node/CurrentLocationWitness.js +68 -0
  52. package/dist/node/CurrentLocationWitness.js.map +1 -0
  53. package/dist/node/CurrentLocationWitness.mjs +44 -0
  54. package/dist/node/CurrentLocationWitness.mjs.map +1 -0
  55. package/dist/node/Plugin.d.mts +56 -0
  56. package/dist/node/Plugin.d.mts.map +1 -0
  57. package/dist/node/Plugin.d.ts +56 -0
  58. package/dist/node/Plugin.d.ts.map +1 -0
  59. package/dist/node/Plugin.js +40 -0
  60. package/dist/node/Plugin.js.map +1 -0
  61. package/dist/node/Plugin.mjs +16 -0
  62. package/dist/node/Plugin.mjs.map +1 -0
  63. package/dist/node/index.d.mts +7 -0
  64. package/dist/node/index.d.mts.map +1 -0
  65. package/dist/node/index.d.ts +7 -0
  66. package/dist/node/index.d.ts.map +1 -0
  67. package/dist/node/index.js +38 -0
  68. package/dist/node/index.js.map +1 -0
  69. package/dist/node/index.mjs +10 -0
  70. package/dist/node/index.mjs.map +1 -0
  71. package/package.json +31 -28
  72. package/dist/Config.d.mts.map +0 -1
  73. package/dist/Config.d.ts.map +0 -1
  74. package/dist/CurrentLocationPayloadSet.d.mts.map +0 -1
  75. package/dist/CurrentLocationPayloadSet.d.ts.map +0 -1
  76. package/dist/CurrentLocationWitness.d.mts.map +0 -1
  77. package/dist/CurrentLocationWitness.d.ts.map +0 -1
  78. package/dist/Plugin.d.mts.map +0 -1
  79. package/dist/Plugin.d.ts.map +0 -1
  80. package/dist/docs.json +0 -22629
  81. package/dist/index.d.mts.map +0 -1
  82. package/dist/index.d.ts.map +0 -1
  83. package/dist/index.js.map +0 -1
  84. package/dist/index.mjs.map +0 -1
  85. /package/dist/{Config.d.mts → browser/Config.d.mts} +0 -0
  86. /package/dist/{Config.d.ts → browser/Config.d.ts} +0 -0
  87. /package/dist/{CurrentLocationPayloadSet.d.mts → browser/CurrentLocationPayloadSet.d.mts} +0 -0
  88. /package/dist/{CurrentLocationPayloadSet.d.ts → browser/CurrentLocationPayloadSet.d.ts} +0 -0
  89. /package/dist/{CurrentLocationWitness.d.mts → browser/CurrentLocationWitness.d.mts} +0 -0
  90. /package/dist/{CurrentLocationWitness.d.ts → browser/CurrentLocationWitness.d.ts} +0 -0
  91. /package/dist/{Plugin.d.mts → browser/Plugin.d.mts} +0 -0
  92. /package/dist/{Plugin.d.ts → browser/Plugin.d.ts} +0 -0
  93. /package/dist/{index.d.mts → browser/index.d.mts} +0 -0
  94. /package/dist/{index.d.ts → browser/index.d.ts} +0 -0
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var CurrentLocationPayloadSet_exports = {};
20
+ __export(CurrentLocationPayloadSet_exports, {
21
+ CurrentLocationPayloadSet: () => CurrentLocationPayloadSet
22
+ });
23
+ module.exports = __toCommonJS(CurrentLocationPayloadSet_exports);
24
+ var import_location_payload_plugin = require("@xyo-network/location-payload-plugin");
25
+ var import_payload_model = require("@xyo-network/payload-model");
26
+ const CurrentLocationPayloadSet = {
27
+ optional: {
28
+ [import_location_payload_plugin.LocationHeadingSchema]: 1
29
+ },
30
+ required: {
31
+ [import_location_payload_plugin.LocationSchema]: 1
32
+ },
33
+ schema: import_payload_model.PayloadSetSchema
34
+ };
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ CurrentLocationPayloadSet
38
+ });
39
+ //# sourceMappingURL=CurrentLocationPayloadSet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/CurrentLocationPayloadSet.ts"],"sourcesContent":["import { LocationHeadingSchema, LocationSchema } from '@xyo-network/location-payload-plugin'\nimport { PayloadSetPayload, PayloadSetSchema } from '@xyo-network/payload-model'\n\nexport const CurrentLocationPayloadSet: PayloadSetPayload = {\n optional: {\n [LocationHeadingSchema]: 1,\n },\n required: {\n [LocationSchema]: 1,\n },\n schema: PayloadSetSchema,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAAsD;AACtD,2BAAoD;AAE7C,MAAM,4BAA+C;AAAA,EAC1D,UAAU;AAAA,IACR,CAAC,oDAAqB,GAAG;AAAA,EAC3B;AAAA,EACA,UAAU;AAAA,IACR,CAAC,6CAAc,GAAG;AAAA,EACpB;AAAA,EACA,QAAQ;AACV;","names":[]}
@@ -0,0 +1,15 @@
1
+ import { LocationHeadingSchema, LocationSchema } from "@xyo-network/location-payload-plugin";
2
+ import { PayloadSetSchema } from "@xyo-network/payload-model";
3
+ const CurrentLocationPayloadSet = {
4
+ optional: {
5
+ [LocationHeadingSchema]: 1
6
+ },
7
+ required: {
8
+ [LocationSchema]: 1
9
+ },
10
+ schema: PayloadSetSchema
11
+ };
12
+ export {
13
+ CurrentLocationPayloadSet
14
+ };
15
+ //# sourceMappingURL=CurrentLocationPayloadSet.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/CurrentLocationPayloadSet.ts"],"sourcesContent":["import { LocationHeadingSchema, LocationSchema } from '@xyo-network/location-payload-plugin'\nimport { PayloadSetPayload, PayloadSetSchema } from '@xyo-network/payload-model'\n\nexport const CurrentLocationPayloadSet: PayloadSetPayload = {\n optional: {\n [LocationHeadingSchema]: 1,\n },\n required: {\n [LocationSchema]: 1,\n },\n schema: PayloadSetSchema,\n}\n"],"mappings":"AAAA,SAAS,uBAAuB,sBAAsB;AACtD,SAA4B,wBAAwB;AAE7C,MAAM,4BAA+C;AAAA,EAC1D,UAAU;AAAA,IACR,CAAC,qBAAqB,GAAG;AAAA,EAC3B;AAAA,EACA,UAAU;AAAA,IACR,CAAC,cAAc,GAAG;AAAA,EACpB;AAAA,EACA,QAAQ;AACV;","names":[]}
@@ -0,0 +1,10 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ import { AbstractWitness } from '@xyo-network/witness';
3
+ import { CurrentLocationWitnessParams } from './Config';
4
+ export declare class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {
5
+ static configSchemas: "network.xyo.location.current.config"[];
6
+ get geolocation(): Geolocation;
7
+ getCurrentPosition(): Promise<GeolocationPosition>;
8
+ protected observeHandler(): Promise<Payload[]>;
9
+ }
10
+ //# sourceMappingURL=CurrentLocationWitness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrentLocationWitness.d.ts","sourceRoot":"","sources":["../../src/CurrentLocationWitness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAsC,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAE3F,qBAAa,sBAAsB,CAAC,OAAO,SAAS,4BAA4B,GAAG,4BAA4B,CAAE,SAAQ,eAAe,CAAC,OAAO,CAAC;IAC/I,OAAgB,aAAa,0CAAuC;IAEpE,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,kBAAkB;cAaO,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAoB9D"}
@@ -0,0 +1,10 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ import { AbstractWitness } from '@xyo-network/witness';
3
+ import { CurrentLocationWitnessParams } from './Config';
4
+ export declare class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {
5
+ static configSchemas: "network.xyo.location.current.config"[];
6
+ get geolocation(): Geolocation;
7
+ getCurrentPosition(): Promise<GeolocationPosition>;
8
+ protected observeHandler(): Promise<Payload[]>;
9
+ }
10
+ //# sourceMappingURL=CurrentLocationWitness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrentLocationWitness.d.ts","sourceRoot":"","sources":["../../src/CurrentLocationWitness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAsC,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAE3F,qBAAa,sBAAsB,CAAC,OAAO,SAAS,4BAA4B,GAAG,4BAA4B,CAAE,SAAQ,eAAe,CAAC,OAAO,CAAC;IAC/I,OAAgB,aAAa,0CAAuC;IAEpE,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,kBAAkB;cAaO,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAoB9D"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var CurrentLocationWitness_exports = {};
20
+ __export(CurrentLocationWitness_exports, {
21
+ CurrentLocationWitness: () => CurrentLocationWitness
22
+ });
23
+ module.exports = __toCommonJS(CurrentLocationWitness_exports);
24
+ var import_assert = require("@xylabs/assert");
25
+ var import_location_payload_plugin = require("@xyo-network/location-payload-plugin");
26
+ var import_witness = require("@xyo-network/witness");
27
+ var import_Config = require("./Config");
28
+ class CurrentLocationWitness extends import_witness.AbstractWitness {
29
+ static configSchemas = [import_Config.CurrentLocationWitnessConfigSchema];
30
+ get geolocation() {
31
+ return (0, import_assert.assertEx)(this.params.geolocation, "No geolocation provided");
32
+ }
33
+ getCurrentPosition() {
34
+ return new Promise((resolve, reject) => {
35
+ this.geolocation?.getCurrentPosition(
36
+ (position) => {
37
+ resolve(position);
38
+ },
39
+ (error) => {
40
+ reject(error);
41
+ }
42
+ );
43
+ });
44
+ }
45
+ async observeHandler() {
46
+ const location = await this.getCurrentPosition();
47
+ const locationPayload = {
48
+ altitude: location.coords.altitude ?? void 0,
49
+ altitudeAccuracy: location.coords.altitudeAccuracy ?? void 0,
50
+ latitude: location.coords.latitude,
51
+ longitude: location.coords.longitude,
52
+ schema: import_location_payload_plugin.LocationSchema
53
+ };
54
+ const heading = location.coords.heading ? [
55
+ {
56
+ heading: location.coords.heading ?? void 0,
57
+ schema: import_location_payload_plugin.LocationHeadingSchema,
58
+ speed: location.coords.speed ?? void 0
59
+ }
60
+ ] : [];
61
+ return [locationPayload, ...heading];
62
+ }
63
+ }
64
+ // Annotate the CommonJS export names for ESM import in node:
65
+ 0 && (module.exports = {
66
+ CurrentLocationWitness
67
+ });
68
+ //# sourceMappingURL=CurrentLocationWitness.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/CurrentLocationWitness.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { LocationHeadingPayload, LocationHeadingSchema, LocationPayload, LocationSchema } from '@xyo-network/location-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness } from '@xyo-network/witness'\n\nimport { CurrentLocationWitnessConfigSchema, CurrentLocationWitnessParams } from './Config'\n\nexport class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {\n static override configSchemas = [CurrentLocationWitnessConfigSchema]\n\n get geolocation(): Geolocation {\n return assertEx(this.params.geolocation, 'No geolocation provided')\n }\n\n getCurrentPosition() {\n return new Promise<GeolocationPosition>((resolve, reject) => {\n this.geolocation?.getCurrentPosition(\n (position: GeolocationPosition) => {\n resolve(position)\n },\n (error: GeolocationPositionError) => {\n reject(error)\n },\n )\n })\n }\n\n protected override async observeHandler(): Promise<Payload[]> {\n const location = await this.getCurrentPosition()\n const locationPayload: LocationPayload = {\n altitude: location.coords.altitude ?? undefined,\n altitudeAccuracy: location.coords.altitudeAccuracy ?? undefined,\n latitude: location.coords.latitude,\n longitude: location.coords.longitude,\n schema: LocationSchema,\n }\n const heading: LocationHeadingPayload[] = location.coords.heading\n ? [\n {\n heading: location.coords.heading ?? undefined,\n schema: LocationHeadingSchema,\n speed: location.coords.speed ?? undefined,\n },\n ]\n : []\n return [locationPayload, ...heading]\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAyB;AACzB,qCAA+F;AAE/F,qBAAgC;AAEhC,oBAAiF;AAE1E,MAAM,+BAA4G,+BAAyB;AAAA,EAChJ,OAAgB,gBAAgB,CAAC,gDAAkC;AAAA,EAEnE,IAAI,cAA2B;AAC7B,eAAO,wBAAS,KAAK,OAAO,aAAa,yBAAyB;AAAA,EACpE;AAAA,EAEA,qBAAqB;AACnB,WAAO,IAAI,QAA6B,CAAC,SAAS,WAAW;AAC3D,WAAK,aAAa;AAAA,QAChB,CAAC,aAAkC;AACjC,kBAAQ,QAAQ;AAAA,QAClB;AAAA,QACA,CAAC,UAAoC;AACnC,iBAAO,KAAK;AAAA,QACd;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,MAAyB,iBAAqC;AAC5D,UAAM,WAAW,MAAM,KAAK,mBAAmB;AAC/C,UAAM,kBAAmC;AAAA,MACvC,UAAU,SAAS,OAAO,YAAY;AAAA,MACtC,kBAAkB,SAAS,OAAO,oBAAoB;AAAA,MACtD,UAAU,SAAS,OAAO;AAAA,MAC1B,WAAW,SAAS,OAAO;AAAA,MAC3B,QAAQ;AAAA,IACV;AACA,UAAM,UAAoC,SAAS,OAAO,UACtD;AAAA,MACE;AAAA,QACE,SAAS,SAAS,OAAO,WAAW;AAAA,QACpC,QAAQ;AAAA,QACR,OAAO,SAAS,OAAO,SAAS;AAAA,MAClC;AAAA,IACF,IACA,CAAC;AACL,WAAO,CAAC,iBAAiB,GAAG,OAAO;AAAA,EACrC;AACF;","names":[]}
@@ -0,0 +1,44 @@
1
+ import { assertEx } from "@xylabs/assert";
2
+ import { LocationHeadingSchema, LocationSchema } from "@xyo-network/location-payload-plugin";
3
+ import { AbstractWitness } from "@xyo-network/witness";
4
+ import { CurrentLocationWitnessConfigSchema } from "./Config";
5
+ class CurrentLocationWitness extends AbstractWitness {
6
+ static configSchemas = [CurrentLocationWitnessConfigSchema];
7
+ get geolocation() {
8
+ return assertEx(this.params.geolocation, "No geolocation provided");
9
+ }
10
+ getCurrentPosition() {
11
+ return new Promise((resolve, reject) => {
12
+ this.geolocation?.getCurrentPosition(
13
+ (position) => {
14
+ resolve(position);
15
+ },
16
+ (error) => {
17
+ reject(error);
18
+ }
19
+ );
20
+ });
21
+ }
22
+ async observeHandler() {
23
+ const location = await this.getCurrentPosition();
24
+ const locationPayload = {
25
+ altitude: location.coords.altitude ?? void 0,
26
+ altitudeAccuracy: location.coords.altitudeAccuracy ?? void 0,
27
+ latitude: location.coords.latitude,
28
+ longitude: location.coords.longitude,
29
+ schema: LocationSchema
30
+ };
31
+ const heading = location.coords.heading ? [
32
+ {
33
+ heading: location.coords.heading ?? void 0,
34
+ schema: LocationHeadingSchema,
35
+ speed: location.coords.speed ?? void 0
36
+ }
37
+ ] : [];
38
+ return [locationPayload, ...heading];
39
+ }
40
+ }
41
+ export {
42
+ CurrentLocationWitness
43
+ };
44
+ //# sourceMappingURL=CurrentLocationWitness.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/CurrentLocationWitness.ts"],"sourcesContent":["import { assertEx } from '@xylabs/assert'\nimport { LocationHeadingPayload, LocationHeadingSchema, LocationPayload, LocationSchema } from '@xyo-network/location-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\nimport { AbstractWitness } from '@xyo-network/witness'\n\nimport { CurrentLocationWitnessConfigSchema, CurrentLocationWitnessParams } from './Config'\n\nexport class CurrentLocationWitness<TParams extends CurrentLocationWitnessParams = CurrentLocationWitnessParams> extends AbstractWitness<TParams> {\n static override configSchemas = [CurrentLocationWitnessConfigSchema]\n\n get geolocation(): Geolocation {\n return assertEx(this.params.geolocation, 'No geolocation provided')\n }\n\n getCurrentPosition() {\n return new Promise<GeolocationPosition>((resolve, reject) => {\n this.geolocation?.getCurrentPosition(\n (position: GeolocationPosition) => {\n resolve(position)\n },\n (error: GeolocationPositionError) => {\n reject(error)\n },\n )\n })\n }\n\n protected override async observeHandler(): Promise<Payload[]> {\n const location = await this.getCurrentPosition()\n const locationPayload: LocationPayload = {\n altitude: location.coords.altitude ?? undefined,\n altitudeAccuracy: location.coords.altitudeAccuracy ?? undefined,\n latitude: location.coords.latitude,\n longitude: location.coords.longitude,\n schema: LocationSchema,\n }\n const heading: LocationHeadingPayload[] = location.coords.heading\n ? [\n {\n heading: location.coords.heading ?? undefined,\n schema: LocationHeadingSchema,\n speed: location.coords.speed ?? undefined,\n },\n ]\n : []\n return [locationPayload, ...heading]\n }\n}\n"],"mappings":"AAAA,SAAS,gBAAgB;AACzB,SAAiC,uBAAwC,sBAAsB;AAE/F,SAAS,uBAAuB;AAEhC,SAAS,0CAAwE;AAE1E,MAAM,+BAA4G,gBAAyB;AAAA,EAChJ,OAAgB,gBAAgB,CAAC,kCAAkC;AAAA,EAEnE,IAAI,cAA2B;AAC7B,WAAO,SAAS,KAAK,OAAO,aAAa,yBAAyB;AAAA,EACpE;AAAA,EAEA,qBAAqB;AACnB,WAAO,IAAI,QAA6B,CAAC,SAAS,WAAW;AAC3D,WAAK,aAAa;AAAA,QAChB,CAAC,aAAkC;AACjC,kBAAQ,QAAQ;AAAA,QAClB;AAAA,QACA,CAAC,UAAoC;AACnC,iBAAO,KAAK;AAAA,QACd;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,MAAyB,iBAAqC;AAC5D,UAAM,WAAW,MAAM,KAAK,mBAAmB;AAC/C,UAAM,kBAAmC;AAAA,MACvC,UAAU,SAAS,OAAO,YAAY;AAAA,MACtC,kBAAkB,SAAS,OAAO,oBAAoB;AAAA,MACtD,UAAU,SAAS,OAAO;AAAA,MAC1B,WAAW,SAAS,OAAO;AAAA,MAC3B,QAAQ;AAAA,IACV;AACA,UAAM,UAAoC,SAAS,OAAO,UACtD;AAAA,MACE;AAAA,QACE,SAAS,SAAS,OAAO,WAAW;AAAA,QACpC,QAAQ;AAAA,QACR,OAAO,SAAS,OAAO,SAAS;AAAA,MAClC;AAAA,IACF,IACA,CAAC;AACL,WAAO,CAAC,iBAAiB,GAAG,OAAO;AAAA,EACrC;AACF;","names":[]}
@@ -0,0 +1,56 @@
1
+ import { CurrentLocationWitness } from './CurrentLocationWitness';
2
+ export declare const LocationPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CurrentLocationWitness<import("@xyo-network/core").BaseParamsFields & {
3
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
4
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
5
+ accountDerivationPath?: string | undefined;
6
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
7
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
8
+ readonly name?: string | undefined;
9
+ readonly paging?: Record<string, {
10
+ size?: number | undefined;
11
+ }> | undefined;
12
+ readonly security?: {
13
+ readonly allowAnonymous?: boolean | undefined;
14
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
15
+ readonly disallowed?: Record<string, string[]> | undefined;
16
+ } | undefined;
17
+ readonly sign?: boolean | undefined;
18
+ readonly storeQueries?: boolean | undefined;
19
+ readonly timestamp?: boolean | undefined;
20
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
21
+ accountDerivationPath?: string | undefined;
22
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
23
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
24
+ readonly name?: string | undefined;
25
+ readonly paging?: Record<string, {
26
+ size?: number | undefined;
27
+ }> | undefined;
28
+ readonly security?: {
29
+ readonly allowAnonymous?: boolean | undefined;
30
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
31
+ readonly disallowed?: Record<string, string[]> | undefined;
32
+ } | undefined;
33
+ readonly sign?: boolean | undefined;
34
+ readonly storeQueries?: boolean | undefined;
35
+ readonly timestamp?: boolean | undefined;
36
+ } & {
37
+ archivist?: string | undefined;
38
+ schema: "network.xyo.location.current.config";
39
+ targetSet?: (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/payload-model").PayloadSet & {
40
+ schema: "network.xyo.payload.set";
41
+ }) | undefined;
42
+ } & {
43
+ schema: "network.xyo.location.current.config";
44
+ }, "schema"> & {
45
+ schema: "network.xyo.location.current.config";
46
+ }, "schema"> & {
47
+ schema: string;
48
+ }, "schema"> & {
49
+ schema: string;
50
+ };
51
+ ephemeralQueryAccountEnabled?: boolean | undefined;
52
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
53
+ } & {
54
+ geolocation?: Geolocation | undefined;
55
+ }>>;
56
+ //# sourceMappingURL=Plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQxB,CAAA"}
@@ -0,0 +1,56 @@
1
+ import { CurrentLocationWitness } from './CurrentLocationWitness';
2
+ export declare const LocationPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<CurrentLocationWitness<import("@xyo-network/core").BaseParamsFields & {
3
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
4
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
5
+ accountDerivationPath?: string | undefined;
6
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
7
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
8
+ readonly name?: string | undefined;
9
+ readonly paging?: Record<string, {
10
+ size?: number | undefined;
11
+ }> | undefined;
12
+ readonly security?: {
13
+ readonly allowAnonymous?: boolean | undefined;
14
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
15
+ readonly disallowed?: Record<string, string[]> | undefined;
16
+ } | undefined;
17
+ readonly sign?: boolean | undefined;
18
+ readonly storeQueries?: boolean | undefined;
19
+ readonly timestamp?: boolean | undefined;
20
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
21
+ accountDerivationPath?: string | undefined;
22
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
23
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
24
+ readonly name?: string | undefined;
25
+ readonly paging?: Record<string, {
26
+ size?: number | undefined;
27
+ }> | undefined;
28
+ readonly security?: {
29
+ readonly allowAnonymous?: boolean | undefined;
30
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
31
+ readonly disallowed?: Record<string, string[]> | undefined;
32
+ } | undefined;
33
+ readonly sign?: boolean | undefined;
34
+ readonly storeQueries?: boolean | undefined;
35
+ readonly timestamp?: boolean | undefined;
36
+ } & {
37
+ archivist?: string | undefined;
38
+ schema: "network.xyo.location.current.config";
39
+ targetSet?: (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/payload-model").PayloadSet & {
40
+ schema: "network.xyo.payload.set";
41
+ }) | undefined;
42
+ } & {
43
+ schema: "network.xyo.location.current.config";
44
+ }, "schema"> & {
45
+ schema: "network.xyo.location.current.config";
46
+ }, "schema"> & {
47
+ schema: string;
48
+ }, "schema"> & {
49
+ schema: string;
50
+ };
51
+ ephemeralQueryAccountEnabled?: boolean | undefined;
52
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
53
+ } & {
54
+ geolocation?: Geolocation | undefined;
55
+ }>>;
56
+ //# sourceMappingURL=Plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQxB,CAAA"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var Plugin_exports = {};
20
+ __export(Plugin_exports, {
21
+ LocationPlugin: () => LocationPlugin
22
+ });
23
+ module.exports = __toCommonJS(Plugin_exports);
24
+ var import_location_payload_plugin = require("@xyo-network/location-payload-plugin");
25
+ var import_payload_model = require("@xyo-network/payload-model");
26
+ var import_payloadset_plugin = require("@xyo-network/payloadset-plugin");
27
+ var import_CurrentLocationWitness = require("./CurrentLocationWitness");
28
+ const LocationPlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
29
+ { required: { [import_location_payload_plugin.LocationSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
30
+ {
31
+ witness: async (params) => {
32
+ return await import_CurrentLocationWitness.CurrentLocationWitness.create(params);
33
+ }
34
+ }
35
+ );
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ LocationPlugin
39
+ });
40
+ //# sourceMappingURL=Plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Plugin.ts"],"sourcesContent":["import { LocationSchema } from '@xyo-network/location-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CurrentLocationWitness } from './CurrentLocationWitness'\n\nexport const LocationPlugin = () =>\n createPayloadSetWitnessPlugin<CurrentLocationWitness>(\n { required: { [LocationSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return await CurrentLocationWitness.create(params)\n },\n },\n )\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAA+B;AAC/B,2BAAiC;AACjC,+BAA8C;AAE9C,oCAAuC;AAEhC,MAAM,iBAAiB,UAC5B;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,6CAAc,GAAG,EAAE,GAAG,QAAQ,sCAAiB;AAAA,EAC9D;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAO,MAAM,qDAAuB,OAAO,MAAM;AAAA,IACnD;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,16 @@
1
+ import { LocationSchema } from "@xyo-network/location-payload-plugin";
2
+ import { PayloadSetSchema } from "@xyo-network/payload-model";
3
+ import { createPayloadSetWitnessPlugin } from "@xyo-network/payloadset-plugin";
4
+ import { CurrentLocationWitness } from "./CurrentLocationWitness";
5
+ const LocationPlugin = () => createPayloadSetWitnessPlugin(
6
+ { required: { [LocationSchema]: 1 }, schema: PayloadSetSchema },
7
+ {
8
+ witness: async (params) => {
9
+ return await CurrentLocationWitness.create(params);
10
+ }
11
+ }
12
+ );
13
+ export {
14
+ LocationPlugin
15
+ };
16
+ //# sourceMappingURL=Plugin.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Plugin.ts"],"sourcesContent":["import { LocationSchema } from '@xyo-network/location-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { CurrentLocationWitness } from './CurrentLocationWitness'\n\nexport const LocationPlugin = () =>\n createPayloadSetWitnessPlugin<CurrentLocationWitness>(\n { required: { [LocationSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n return await CurrentLocationWitness.create(params)\n },\n },\n )\n"],"mappings":"AAAA,SAAS,sBAAsB;AAC/B,SAAS,wBAAwB;AACjC,SAAS,qCAAqC;AAE9C,SAAS,8BAA8B;AAEhC,MAAM,iBAAiB,MAC5B;AAAA,EACE,EAAE,UAAU,EAAE,CAAC,cAAc,GAAG,EAAE,GAAG,QAAQ,iBAAiB;AAAA,EAC9D;AAAA,IACE,SAAS,OAAO,WAAW;AACzB,aAAO,MAAM,uBAAuB,OAAO,MAAM;AAAA,IACnD;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,7 @@
1
+ import { LocationPlugin } from './Plugin';
2
+ export * from './Config';
3
+ export * from './CurrentLocationPayloadSet';
4
+ export * from './CurrentLocationWitness';
5
+ export { LocationPlugin };
6
+ export default LocationPlugin;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,cAAc,UAAU,CAAA;AACxB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,0BAA0B,CAAA;AAExC,OAAO,EAAE,cAAc,EAAE,CAAA;AAGzB,eAAe,cAAc,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { LocationPlugin } from './Plugin';
2
+ export * from './Config';
3
+ export * from './CurrentLocationPayloadSet';
4
+ export * from './CurrentLocationWitness';
5
+ export { LocationPlugin };
6
+ export default LocationPlugin;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,cAAc,UAAU,CAAA;AACxB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,0BAA0B,CAAA;AAExC,OAAO,EAAE,cAAc,EAAE,CAAA;AAGzB,eAAe,cAAc,CAAA"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var src_exports = {};
21
+ __export(src_exports, {
22
+ LocationPlugin: () => import_Plugin.LocationPlugin,
23
+ default: () => src_default
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
26
+ var import_Plugin = require("./Plugin");
27
+ __reExport(src_exports, require("./Config"), module.exports);
28
+ __reExport(src_exports, require("./CurrentLocationPayloadSet"), module.exports);
29
+ __reExport(src_exports, require("./CurrentLocationWitness"), module.exports);
30
+ var src_default = import_Plugin.LocationPlugin;
31
+ // Annotate the CommonJS export names for ESM import in node:
32
+ 0 && (module.exports = {
33
+ LocationPlugin,
34
+ ...require("./Config"),
35
+ ...require("./CurrentLocationPayloadSet"),
36
+ ...require("./CurrentLocationWitness")
37
+ });
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { LocationPlugin } from './Plugin'\n\nexport * from './Config'\nexport * from './CurrentLocationPayloadSet'\nexport * from './CurrentLocationWitness'\n\nexport { LocationPlugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default LocationPlugin\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA+B;AAE/B,wBAAc,qBAFd;AAGA,wBAAc,wCAHd;AAIA,wBAAc,qCAJd;AASA,IAAO,cAAQ;","names":[]}
@@ -0,0 +1,10 @@
1
+ import { LocationPlugin } from "./Plugin";
2
+ export * from "./Config";
3
+ export * from "./CurrentLocationPayloadSet";
4
+ export * from "./CurrentLocationWitness";
5
+ var src_default = LocationPlugin;
6
+ export {
7
+ LocationPlugin,
8
+ src_default as default
9
+ };
10
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { LocationPlugin } from './Plugin'\n\nexport * from './Config'\nexport * from './CurrentLocationPayloadSet'\nexport * from './CurrentLocationWitness'\n\nexport { LocationPlugin }\n\n// eslint-disable-next-line import/no-default-export\nexport default LocationPlugin\n"],"mappings":"AAAA,SAAS,sBAAsB;AAE/B,cAAc;AACd,cAAc;AACd,cAAc;AAKd,IAAO,cAAQ;","names":[]}
package/package.json CHANGED
@@ -10,49 +10,52 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/assert": "^2.11.7",
14
- "@xyo-network/location-payload-plugin": "~2.74.4",
15
- "@xyo-network/module": "~2.74.4",
16
- "@xyo-network/payload-model": "~2.74.4",
17
- "@xyo-network/payloadset-plugin": "~2.74.4",
18
- "@xyo-network/witness": "~2.74.4"
13
+ "@xylabs/assert": "^2.11.22",
14
+ "@xyo-network/location-payload-plugin": "~2.75.0",
15
+ "@xyo-network/module": "~2.75.0",
16
+ "@xyo-network/payload-model": "~2.75.0",
17
+ "@xyo-network/payloadset-plugin": "~2.75.0",
18
+ "@xyo-network/witness": "~2.75.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@xylabs/ts-scripts-yarn3": "^3.0.28",
22
- "@xylabs/tsconfig-dom": "^3.0.28",
23
- "@xylabs/tsconfig-dom-jest": "^3.0.28",
21
+ "@xylabs/ts-scripts-yarn3": "^3.0.70",
22
+ "@xylabs/tsconfig-dom": "^3.0.70",
23
+ "@xylabs/tsconfig-dom-jest": "^3.0.70",
24
24
  "typescript": "^5.2.2"
25
25
  },
26
26
  "description": "Primary SDK for using XYO Protocol 2.0",
27
27
  "docs": "dist/docs.json",
28
- "types": "dist/index.d.ts",
28
+ "types": "dist/node/index.d.ts",
29
29
  "exports": {
30
30
  ".": {
31
- "require": {
32
- "types": "./dist/index.d.ts",
33
- "default": "./dist/index.js"
31
+ "browser": {
32
+ "require": {
33
+ "types": "./dist/browser/index.d.ts",
34
+ "default": "./dist/browser/index.cjs"
35
+ },
36
+ "import": {
37
+ "types": "./dist/browser/index.d.mts",
38
+ "default": "./dist/browser/index.js"
39
+ }
34
40
  },
35
- "import": {
36
- "types": "./dist/index.d.mts",
37
- "default": "./dist/index.mjs"
41
+ "node": {
42
+ "require": {
43
+ "types": "./dist/node/index.d.ts",
44
+ "default": "./dist/node/index.js"
45
+ },
46
+ "import": {
47
+ "types": "./dist/node/index.d.mts",
48
+ "default": "./dist/node/index.mjs"
49
+ }
38
50
  }
39
51
  },
40
- "./dist/docs.json": {
41
- "default": "./dist/docs.json"
42
- },
43
- "./cjs": {
44
- "default": "./dist/index.js"
45
- },
46
52
  "./docs": {
47
53
  "default": "./dist/docs.json"
48
54
  },
49
- "./esm": {
50
- "default": "./dist/index.mjs"
51
- },
52
55
  "./package.json": "./package.json"
53
56
  },
54
- "main": "dist/index.js",
55
- "module": "dist/index.mjs",
57
+ "main": "dist/node/index.js",
58
+ "module": "dist/node/index.mjs",
56
59
  "homepage": "https://xyo.network",
57
60
  "license": "LGPL-3.0",
58
61
  "publishConfig": {
@@ -63,5 +66,5 @@
63
66
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
64
67
  },
65
68
  "sideEffects": false,
66
- "version": "2.74.4"
69
+ "version": "2.75.0"
67
70
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,MAAM,kCAAkC,GAAG,qCAAqC,CAAA;AACtF,eAAO,MAAM,kCAAkC,EAAE,kCAA0E,CAAA;AAE3H,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC;IACvD,MAAM,EAAE,kCAAkC,CAAA;CAC3C,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAC,eAAe,CAAC,4BAA4B,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,MAAM,kCAAkC,GAAG,qCAAqC,CAAA;AACtF,eAAO,MAAM,kCAAkC,EAAE,kCAA0E,CAAA;AAE3H,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC;IACvD,MAAM,EAAE,kCAAkC,CAAA;CAC3C,CAAC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAC,eAAe,CAAC,4BAA4B,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrentLocationPayloadSet.d.ts","sourceRoot":"","sources":["../src/CurrentLocationPayloadSet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAoB,MAAM,4BAA4B,CAAA;AAEhF,eAAO,MAAM,yBAAyB,EAAE,iBAQvC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrentLocationPayloadSet.d.ts","sourceRoot":"","sources":["../src/CurrentLocationPayloadSet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAoB,MAAM,4BAA4B,CAAA;AAEhF,eAAO,MAAM,yBAAyB,EAAE,iBAQvC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrentLocationWitness.d.ts","sourceRoot":"","sources":["../src/CurrentLocationWitness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAsC,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAE3F,qBAAa,sBAAsB,CAAC,OAAO,SAAS,4BAA4B,GAAG,4BAA4B,CAAE,SAAQ,eAAe,CAAC,OAAO,CAAC;IAC/I,OAAgB,aAAa,0CAAuC;IAEpE,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,kBAAkB;cAaO,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAoB9D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrentLocationWitness.d.ts","sourceRoot":"","sources":["../src/CurrentLocationWitness.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAsC,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAE3F,qBAAa,sBAAsB,CAAC,OAAO,SAAS,4BAA4B,GAAG,4BAA4B,CAAE,SAAQ,eAAe,CAAC,OAAO,CAAC;IAC/I,OAAgB,aAAa,0CAAuC;IAEpE,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,kBAAkB;cAaO,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAoB9D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQxB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQxB,CAAA"}