@hello.nrfcloud.com/proto-map 4.0.1 → 4.0.2

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.
@@ -132,7 +132,7 @@ await writeFile(objectsFile, objects.map(function(param) {
132
132
  return [
133
133
  ts.factory.createExportDeclaration([], true, ts.factory.createNamedExports([
134
134
  ts.factory.createExportSpecifier(false, undefined, ts.factory.createIdentifier(name))
135
- ]), ts.factory.createStringLiteral("./object/".concat(ObjectID))),
135
+ ]), ts.factory.createStringLiteral("./object/".concat(ObjectID, ".js"))),
136
136
  ts.factory.createExportDeclaration([], false, ts.factory.createNamedExports([
137
137
  ts.factory.createExportSpecifier(false, undefined, ts.factory.createIdentifier("validate".concat(ObjectID)))
138
138
  ]), ts.factory.createStringLiteral("./object/validate".concat(ObjectID, ".js")))
package/lwm2m/objects.ts CHANGED
@@ -1,16 +1,16 @@
1
- export type { Geolocation_14201 } from "./object/14201";
1
+ export type { Geolocation_14201 } from "./object/14201.js";
2
2
  export { validate14201 } from "./object/validate14201.js";
3
- export type { BatteryAndPower_14202 } from "./object/14202";
3
+ export type { BatteryAndPower_14202 } from "./object/14202.js";
4
4
  export { validate14202 } from "./object/validate14202.js";
5
- export type { ConnectionInformation_14203 } from "./object/14203";
5
+ export type { ConnectionInformation_14203 } from "./object/14203.js";
6
6
  export { validate14203 } from "./object/validate14203.js";
7
- export type { DeviceInformation_14204 } from "./object/14204";
7
+ export type { DeviceInformation_14204 } from "./object/14204.js";
8
8
  export { validate14204 } from "./object/validate14204.js";
9
- export type { Environment_14205 } from "./object/14205";
9
+ export type { Environment_14205 } from "./object/14205.js";
10
10
  export { validate14205 } from "./object/validate14205.js";
11
- export type { SolarCharge_14210 } from "./object/14210";
11
+ export type { SolarCharge_14210 } from "./object/14210.js";
12
12
  export { validate14210 } from "./object/validate14210.js";
13
- export type { ButtonPress_14220 } from "./object/14220";
13
+ export type { ButtonPress_14220 } from "./object/14220.js";
14
14
  export { validate14220 } from "./object/validate14220.js";
15
- export type { SeaWaterLevel_14230 } from "./object/14230";
15
+ export type { SeaWaterLevel_14230 } from "./object/14230.js";
16
16
  export { validate14230 } from "./object/validate14230.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hello.nrfcloud.com/proto-map",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Documents the communication protocol between devices, the hello.nrfcloud.com/map backend and web application",
5
5
  "type": "module",
6
6
  "types": "./index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "@commitlint/config-conventional": "19.1.0",
42
42
  "@swc/cli": "0.3.10",
43
43
  "@swc/core": "1.4.8",
44
- "@types/node": "20.11.27",
44
+ "@types/node": "20.11.28",
45
45
  "@types/xml2js": "0.4.14",
46
46
  "chalk": "5.3.0",
47
47
  "husky": "9.0.11",
@@ -1,6 +1,6 @@
1
- import type { SenMLType } from './SenMLSchema'
1
+ import type { SenMLType } from './SenMLSchema.js'
2
2
  import { instanceTs } from '../lwm2m/instanceTs.js'
3
- import type { LwM2MObjectInstance, LwM2MResourceValue } from './senMLtoLwM2M'
3
+ import type { LwM2MObjectInstance, LwM2MResourceValue } from './senMLtoLwM2M.js'
4
4
  import { timestampResources } from '../lwm2m/timestampResources.js'
5
5
  import { definitions } from '../lwm2m/definitions.js'
6
6
  import { ResourceType, type LWM2MObjectInfo } from '../lwm2m/LWM2MObjectInfo.js'
@@ -1,4 +1,4 @@
1
- import type { MeasurementType, SenMLType } from './SenMLSchema'
1
+ import type { MeasurementType, SenMLType } from './SenMLSchema.js'
2
2
  import { timestampResources } from '../lwm2m/timestampResources.js'
3
3
  import { parseResourceId, type ResourceID } from './parseResourceId.js'
4
4
  import { hasValue } from './hasValue.js'