@xyo-network/location-payload-plugin 2.86.3 → 2.86.5
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/node/index.cjs +58 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +6 -38
- package/dist/node/index.js.map +1 -1
- package/package.json +12 -12
- package/dist/node/index.mjs +0 -26
- package/dist/node/index.mjs.map +0 -1
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
CurrentLocationSchema: () => CurrentLocationSchema,
|
|
24
|
+
GeographicCoordinateSystemLocationSchema: () => GeographicCoordinateSystemLocationSchema,
|
|
25
|
+
LocationHeadingSchema: () => LocationHeadingSchema,
|
|
26
|
+
LocationPayloadPlugin: () => LocationPayloadPlugin,
|
|
27
|
+
LocationSchema: () => LocationSchema,
|
|
28
|
+
QuadkeyLocationSchema: () => QuadkeyLocationSchema,
|
|
29
|
+
default: () => LocationPayloadPlugin
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(src_exports);
|
|
32
|
+
|
|
33
|
+
// src/GeographicCoordinateSystemLocationSchema.ts
|
|
34
|
+
var GeographicCoordinateSystemLocationSchema = "network.xyo.location.gcs";
|
|
35
|
+
var QuadkeyLocationSchema = "network.xyo.location.quadkey";
|
|
36
|
+
var LocationSchema = "network.xyo.location";
|
|
37
|
+
|
|
38
|
+
// src/HeadingSchema.ts
|
|
39
|
+
var LocationHeadingSchema = "network.xyo.location.heading";
|
|
40
|
+
|
|
41
|
+
// src/Plugin.ts
|
|
42
|
+
var import_payload_plugin = require("@xyo-network/payload-plugin");
|
|
43
|
+
var LocationPayloadPlugin = () => (0, import_payload_plugin.createPayloadPlugin)({
|
|
44
|
+
schema: LocationSchema
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// src/Schema.ts
|
|
48
|
+
var CurrentLocationSchema = "network.xyo.location.current";
|
|
49
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
+
0 && (module.exports = {
|
|
51
|
+
CurrentLocationSchema,
|
|
52
|
+
GeographicCoordinateSystemLocationSchema,
|
|
53
|
+
LocationHeadingSchema,
|
|
54
|
+
LocationPayloadPlugin,
|
|
55
|
+
LocationSchema,
|
|
56
|
+
QuadkeyLocationSchema
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/GeographicCoordinateSystemLocationSchema.ts","../../src/HeadingSchema.ts","../../src/Plugin.ts","../../src/Schema.ts"],"sourcesContent":["export * from './GeographicCoordinateSystemLocationPayload'\nexport * from './GeographicCoordinateSystemLocationSchema'\nexport * from './HeadingPayload'\nexport * from './HeadingSchema'\nexport { LocationPayloadPlugin as default, LocationPayloadPlugin } from './Plugin'\nexport * from './Schema'\n","export type GeographicCoordinateSystemLocationSchema = 'network.xyo.location.gcs'\nexport const GeographicCoordinateSystemLocationSchema: GeographicCoordinateSystemLocationSchema = 'network.xyo.location.gcs'\n\nexport type QuadkeyLocationSchema = 'network.xyo.location.quadkey'\nexport const QuadkeyLocationSchema: QuadkeyLocationSchema = 'network.xyo.location.quadkey'\n\nexport type LocationSchema = 'network.xyo.location'\nexport const LocationSchema: LocationSchema = 'network.xyo.location'\n","export type LocationHeadingSchema = 'network.xyo.location.heading'\nexport const LocationHeadingSchema: LocationHeadingSchema = 'network.xyo.location.heading'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { LocationPayload } from './GeographicCoordinateSystemLocationPayload'\nimport { LocationSchema } from './GeographicCoordinateSystemLocationSchema'\n\nexport const LocationPayloadPlugin = () =>\n createPayloadPlugin<LocationPayload>({\n schema: LocationSchema,\n })\n","export type CurrentLocationSchema = 'network.xyo.location.current'\nexport const CurrentLocationSchema: CurrentLocationSchema = 'network.xyo.location.current'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCO,IAAM,2CAAqF;AAG3F,IAAM,wBAA+C;AAGrD,IAAM,iBAAiC;;;ACNvC,IAAM,wBAA+C;;;ACD5D,4BAAoC;AAK7B,IAAM,wBAAwB,UACnC,2CAAqC;AAAA,EACnC,QAAQ;AACV,CAAC;;;ACPI,IAAM,wBAA+C;","names":[]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,35 +1,3 @@
|
|
|
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
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
CurrentLocationSchema: () => CurrentLocationSchema,
|
|
24
|
-
GeographicCoordinateSystemLocationSchema: () => GeographicCoordinateSystemLocationSchema,
|
|
25
|
-
LocationHeadingSchema: () => LocationHeadingSchema,
|
|
26
|
-
LocationPayloadPlugin: () => LocationPayloadPlugin,
|
|
27
|
-
LocationSchema: () => LocationSchema,
|
|
28
|
-
QuadkeyLocationSchema: () => QuadkeyLocationSchema,
|
|
29
|
-
default: () => LocationPayloadPlugin
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(src_exports);
|
|
32
|
-
|
|
33
1
|
// src/GeographicCoordinateSystemLocationSchema.ts
|
|
34
2
|
var GeographicCoordinateSystemLocationSchema = "network.xyo.location.gcs";
|
|
35
3
|
var QuadkeyLocationSchema = "network.xyo.location.quadkey";
|
|
@@ -39,20 +7,20 @@ var LocationSchema = "network.xyo.location";
|
|
|
39
7
|
var LocationHeadingSchema = "network.xyo.location.heading";
|
|
40
8
|
|
|
41
9
|
// src/Plugin.ts
|
|
42
|
-
|
|
43
|
-
var LocationPayloadPlugin = () =>
|
|
10
|
+
import { createPayloadPlugin } from "@xyo-network/payload-plugin";
|
|
11
|
+
var LocationPayloadPlugin = () => createPayloadPlugin({
|
|
44
12
|
schema: LocationSchema
|
|
45
13
|
});
|
|
46
14
|
|
|
47
15
|
// src/Schema.ts
|
|
48
16
|
var CurrentLocationSchema = "network.xyo.location.current";
|
|
49
|
-
|
|
50
|
-
0 && (module.exports = {
|
|
17
|
+
export {
|
|
51
18
|
CurrentLocationSchema,
|
|
52
19
|
GeographicCoordinateSystemLocationSchema,
|
|
53
20
|
LocationHeadingSchema,
|
|
54
21
|
LocationPayloadPlugin,
|
|
55
22
|
LocationSchema,
|
|
56
|
-
QuadkeyLocationSchema
|
|
57
|
-
|
|
23
|
+
QuadkeyLocationSchema,
|
|
24
|
+
LocationPayloadPlugin as default
|
|
25
|
+
};
|
|
58
26
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/GeographicCoordinateSystemLocationSchema.ts","../../src/HeadingSchema.ts","../../src/Plugin.ts","../../src/Schema.ts"],"sourcesContent":["export type GeographicCoordinateSystemLocationSchema = 'network.xyo.location.gcs'\nexport const GeographicCoordinateSystemLocationSchema: GeographicCoordinateSystemLocationSchema = 'network.xyo.location.gcs'\n\nexport type QuadkeyLocationSchema = 'network.xyo.location.quadkey'\nexport const QuadkeyLocationSchema: QuadkeyLocationSchema = 'network.xyo.location.quadkey'\n\nexport type LocationSchema = 'network.xyo.location'\nexport const LocationSchema: LocationSchema = 'network.xyo.location'\n","export type LocationHeadingSchema = 'network.xyo.location.heading'\nexport const LocationHeadingSchema: LocationHeadingSchema = 'network.xyo.location.heading'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { LocationPayload } from './GeographicCoordinateSystemLocationPayload'\nimport { LocationSchema } from './GeographicCoordinateSystemLocationSchema'\n\nexport const LocationPayloadPlugin = () =>\n createPayloadPlugin<LocationPayload>({\n schema: LocationSchema,\n })\n","export type CurrentLocationSchema = 'network.xyo.location.current'\nexport const CurrentLocationSchema: CurrentLocationSchema = 'network.xyo.location.current'\n"],"mappings":";AACO,IAAM,2CAAqF;AAG3F,IAAM,wBAA+C;AAGrD,IAAM,iBAAiC;;;ACNvC,IAAM,wBAA+C;;;ACD5D,SAAS,2BAA2B;AAK7B,IAAM,wBAAwB,MACnC,oBAAqC;AAAA,EACnC,QAAQ;AACV,CAAC;;;ACPI,IAAM,wBAA+C;","names":[]}
|
package/package.json
CHANGED
|
@@ -10,16 +10,15 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/plugins/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/payload-model": "^2.
|
|
14
|
-
"@xyo-network/payload-plugin": "^2.
|
|
13
|
+
"@xyo-network/payload-model": "^2.88.2",
|
|
14
|
+
"@xyo-network/payload-plugin": "^2.88.2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@xylabs/ts-scripts-yarn3": "^3.2.
|
|
18
|
-
"@xylabs/tsconfig": "^3.2.
|
|
17
|
+
"@xylabs/ts-scripts-yarn3": "^3.2.42",
|
|
18
|
+
"@xylabs/tsconfig": "^3.2.42",
|
|
19
19
|
"typescript": "^5.3.3"
|
|
20
20
|
},
|
|
21
21
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
22
|
-
"docs": "dist/docs.json",
|
|
23
22
|
"exports": {
|
|
24
23
|
".": {
|
|
25
24
|
"browser": {
|
|
@@ -34,19 +33,20 @@
|
|
|
34
33
|
},
|
|
35
34
|
"node": {
|
|
36
35
|
"require": {
|
|
37
|
-
"types": "./dist/node/index.d.
|
|
38
|
-
"default": "./dist/node/index.
|
|
36
|
+
"types": "./dist/node/index.d.cts",
|
|
37
|
+
"default": "./dist/node/index.cjs"
|
|
39
38
|
},
|
|
40
39
|
"import": {
|
|
41
40
|
"types": "./dist/node/index.d.mts",
|
|
42
|
-
"default": "./dist/node/index.
|
|
41
|
+
"default": "./dist/node/index.js"
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
},
|
|
46
45
|
"./package.json": "./package.json"
|
|
47
46
|
},
|
|
48
|
-
"main": "dist/node/index.
|
|
49
|
-
"module": "dist/node/index.
|
|
47
|
+
"main": "dist/node/index.cjs",
|
|
48
|
+
"module": "dist/node/index.js",
|
|
49
|
+
"types": "dist/node/index.d.ts",
|
|
50
50
|
"homepage": "https://xyo.network",
|
|
51
51
|
"license": "LGPL-3.0-only",
|
|
52
52
|
"publishConfig": {
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
58
58
|
},
|
|
59
59
|
"sideEffects": false,
|
|
60
|
-
"
|
|
61
|
-
"
|
|
60
|
+
"version": "2.86.5",
|
|
61
|
+
"type": "module"
|
|
62
62
|
}
|
package/dist/node/index.mjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// src/GeographicCoordinateSystemLocationSchema.ts
|
|
2
|
-
var GeographicCoordinateSystemLocationSchema = "network.xyo.location.gcs";
|
|
3
|
-
var QuadkeyLocationSchema = "network.xyo.location.quadkey";
|
|
4
|
-
var LocationSchema = "network.xyo.location";
|
|
5
|
-
|
|
6
|
-
// src/HeadingSchema.ts
|
|
7
|
-
var LocationHeadingSchema = "network.xyo.location.heading";
|
|
8
|
-
|
|
9
|
-
// src/Plugin.ts
|
|
10
|
-
import { createPayloadPlugin } from "@xyo-network/payload-plugin";
|
|
11
|
-
var LocationPayloadPlugin = () => createPayloadPlugin({
|
|
12
|
-
schema: LocationSchema
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
// src/Schema.ts
|
|
16
|
-
var CurrentLocationSchema = "network.xyo.location.current";
|
|
17
|
-
export {
|
|
18
|
-
CurrentLocationSchema,
|
|
19
|
-
GeographicCoordinateSystemLocationSchema,
|
|
20
|
-
LocationHeadingSchema,
|
|
21
|
-
LocationPayloadPlugin,
|
|
22
|
-
LocationSchema,
|
|
23
|
-
QuadkeyLocationSchema,
|
|
24
|
-
LocationPayloadPlugin as default
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/GeographicCoordinateSystemLocationSchema.ts","../../src/HeadingSchema.ts","../../src/Plugin.ts","../../src/Schema.ts"],"sourcesContent":["export type GeographicCoordinateSystemLocationSchema = 'network.xyo.location.gcs'\nexport const GeographicCoordinateSystemLocationSchema: GeographicCoordinateSystemLocationSchema = 'network.xyo.location.gcs'\n\nexport type QuadkeyLocationSchema = 'network.xyo.location.quadkey'\nexport const QuadkeyLocationSchema: QuadkeyLocationSchema = 'network.xyo.location.quadkey'\n\nexport type LocationSchema = 'network.xyo.location'\nexport const LocationSchema: LocationSchema = 'network.xyo.location'\n","export type LocationHeadingSchema = 'network.xyo.location.heading'\nexport const LocationHeadingSchema: LocationHeadingSchema = 'network.xyo.location.heading'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { LocationPayload } from './GeographicCoordinateSystemLocationPayload'\nimport { LocationSchema } from './GeographicCoordinateSystemLocationSchema'\n\nexport const LocationPayloadPlugin = () =>\n createPayloadPlugin<LocationPayload>({\n schema: LocationSchema,\n })\n","export type CurrentLocationSchema = 'network.xyo.location.current'\nexport const CurrentLocationSchema: CurrentLocationSchema = 'network.xyo.location.current'\n"],"mappings":";AACO,IAAM,2CAAqF;AAG3F,IAAM,wBAA+C;AAGrD,IAAM,iBAAiC;;;ACNvC,IAAM,wBAA+C;;;ACD5D,SAAS,2BAA2B;AAK7B,IAAM,wBAAwB,MACnC,oBAAqC;AAAA,EACnC,QAAQ;AACV,CAAC;;;ACPI,IAAM,wBAA+C;","names":[]}
|