@hello.nrfcloud.com/proto-map 9.0.1 → 9.1.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.
@@ -8,3 +8,4 @@ export * from './LWM2MObjectInfo.js';
8
8
  export * from './validators.js';
9
9
  export * from './instanceTs.js';
10
10
  export * from './LwM2MObjectInstance.js';
11
+ export * from './isLwM2MObjectID.js';
@@ -0,0 +1,4 @@
1
+ import { LwM2MObjectIDs } from './LwM2MObjectID.js';
2
+ export var isLwM2MObjectID = function(o) {
3
+ return typeof o === 'number' && LwM2MObjectIDs.includes(o);
4
+ };
@@ -172,6 +172,3 @@ export var OptionalResource = function(validator) {
172
172
  return r === undefined ? true : validator(r);
173
173
  };
174
174
  };
175
- export var isLwM2MObjectID = function(o) {
176
- return typeof o === 'number' && LwM2MObjectIDs.includes(o);
177
- };
package/lwm2m/index.ts CHANGED
@@ -8,3 +8,4 @@ export * from './LWM2MObjectInfo.js'
8
8
  export * from './validators.js'
9
9
  export * from './instanceTs.js'
10
10
  export * from './LwM2MObjectInstance.js'
11
+ export * from './isLwM2MObjectID.js'
@@ -0,0 +1,4 @@
1
+ import { LwM2MObjectIDs, type LwM2MObjectID } from './LwM2MObjectID.js'
2
+
3
+ export const isLwM2MObjectID = (o: unknown): o is LwM2MObjectID =>
4
+ typeof o === 'number' && LwM2MObjectIDs.includes(o)
package/lwm2m/validate.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { LwM2MObjectInstance } from './LwM2MObjectInstance.js'
2
- import { LwM2MObjectID } from './LwM2MObjectID.js'
2
+ import type { LwM2MObjectID } from './LwM2MObjectID.js'
3
3
  import { isLwM2MObject } from './validation.js'
4
4
 
5
5
  export const validate =
@@ -106,6 +106,3 @@ export const OptionalResource =
106
106
  ) =>
107
107
  (r: unknown): boolean =>
108
108
  r === undefined ? true : validator(r)
109
-
110
- export const isLwM2MObjectID = (o: unknown): o is LwM2MObjectID =>
111
- typeof o === 'number' && LwM2MObjectIDs.includes(o)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hello.nrfcloud.com/proto-map",
3
- "version": "9.0.1",
3
+ "version": "9.1.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": {
@@ -35,7 +35,7 @@
35
35
  "prepublishOnly": "./compile.sh"
36
36
  },
37
37
  "devDependencies": {
38
- "@bifravst/eslint-config-typescript": "6.0.26",
38
+ "@bifravst/eslint-config-typescript": "6.1.0",
39
39
  "@bifravst/prettier-config": "1.0.0",
40
40
  "@commitlint/config-conventional": "19.2.2",
41
41
  "@swc/cli": "0.3.12",
@@ -45,7 +45,7 @@
45
45
  "chalk": "5.3.0",
46
46
  "globstar": "1.0.0",
47
47
  "husky": "9.0.11",
48
- "lint-staged": "15.2.4",
48
+ "lint-staged": "15.2.5",
49
49
  "prettier-plugin-organize-imports": "3.2.4",
50
50
  "remark": "15.0.1",
51
51
  "remark-frontmatter": "5.0.0",
@@ -98,7 +98,6 @@
98
98
  "lwm2m"
99
99
  ],
100
100
  "peerDependencies": {
101
- "@sinclair/typebox": "^0.32.31",
102
- "ajv": "^8.13.0"
101
+ "@sinclair/typebox": "^0.32.31"
103
102
  }
104
103
  }