@hello.nrfcloud.com/proto-map 5.2.2 → 5.3.1

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/README.md CHANGED
@@ -21,7 +21,7 @@ Devices publish LwM2M objects using
21
21
  [SenML](https://datatracker.ietf.org/doc/html/rfc8428) directly, which needs to
22
22
  map to the defined LwM2M objects ([example](./senml/SenMLSchema.spec.ts)).
23
23
 
24
- The SenML payload will be [expanded](./senml/senMLtoLwM2M.spec.ts] to fully
24
+ The SenML payload will be [expanded](./senml/senMLtoLwM2M.spec.ts) to fully
25
25
  qualified LwM2M object representations which can then be processed further, e.g.
26
26
  stored in a database.
27
27
 
package/api/Context.ts CHANGED
@@ -7,4 +7,5 @@ export const Context = {
7
7
  request: new URL(`${baseURL}/share-device-request`),
8
8
  ownershipConfirmed: new URL(`${baseURL}/share-device-ownership-confirmed`),
9
9
  },
10
+ named: (name: string): URL => new URL(`${baseURL}/${name}`),
10
11
  }
@@ -5,5 +5,8 @@ export var Context = {
5
5
  shareDevice: {
6
6
  request: new URL("".concat(baseURL, "/share-device-request")),
7
7
  ownershipConfirmed: new URL("".concat(baseURL, "/share-device-ownership-confirmed"))
8
+ },
9
+ named: function(name) {
10
+ return new URL("".concat(baseURL, "/").concat(name));
8
11
  }
9
12
  };
@@ -1,6 +1,7 @@
1
1
  # Kartverket Vasstandsdata
2
2
 
3
- A simulated device reporting the current sea level as provided by the
3
+ A [simulated device](https://github.com/hello-nrfcloud/kartverket-vasstand)
4
+ reporting the current sea level as provided by the
4
5
  [Kartverket](https://www.kartverket.no/)'s (Norwegian Mapping Authority)
5
6
  [API for vasstandsdata](https://api.sehavniva.no/tideapi_no.html) (API for water
6
7
  level data).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hello.nrfcloud.com/proto-map",
3
- "version": "5.2.2",
3
+ "version": "5.3.1",
4
4
  "description": "Documents the communication protocol between devices, the hello.nrfcloud.com/map backend and web application",
5
5
  "type": "module",
6
6
  "exports": {
@@ -39,11 +39,11 @@
39
39
  "prepublishOnly": "./compile.sh"
40
40
  },
41
41
  "devDependencies": {
42
- "@bifravst/eslint-config-typescript": "6.0.22",
42
+ "@bifravst/eslint-config-typescript": "6.0.23",
43
43
  "@bifravst/prettier-config": "1.0.0",
44
- "@commitlint/config-conventional": "19.1.0",
44
+ "@commitlint/config-conventional": "19.2.2",
45
45
  "@swc/cli": "0.3.12",
46
- "@swc/core": "1.4.13",
46
+ "@swc/core": "1.4.15",
47
47
  "@types/node": "20.12.7",
48
48
  "@types/xml2js": "0.4.14",
49
49
  "chalk": "5.3.0",
@@ -97,7 +97,6 @@
97
97
  "access": "public"
98
98
  },
99
99
  "files": [
100
- "package-lock.json",
101
100
  "LICENSE",
102
101
  "README.md",
103
102
  "dist",