@hello.nrfcloud.com/proto-map 5.2.2 → 5.3.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.
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
  };
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.0",
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": {
@@ -41,9 +41,9 @@
41
41
  "devDependencies": {
42
42
  "@bifravst/eslint-config-typescript": "6.0.22",
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.14",
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",