@bluedot-innovation/models 5.1.13 → 5.1.14

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/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
+ ## 5.1.14
2
+ - Validate Mac address against 64-bit Mac Address format
3
+
1
4
  ## 5.1.13
2
5
  - Fixed default value from active to ACTIVE
3
6
 
7
+ ## 5.1.12
8
+ - Validate proximityUUID against UUIDv4 format
9
+ - Separate error messages of ProximityUUID and Mac Address
10
+
4
11
  ## 5.1.11
5
12
  - Remove reference to package name in TestScenario
6
13
 
package/helpers.js CHANGED
@@ -169,7 +169,7 @@ helpers.validateNotNull = function(value) {
169
169
  }
170
170
 
171
171
  helpers.isValidMacAddress = function (value){
172
- return /^([0-9a-f]{1,2}[\.:-]){5}([0-9a-f]{1,2})$/i.test(value);
172
+ return /^([0-9a-f]{1,2}[\:]){5}([0-9a-f]{1,2})$/i.test(value);
173
173
  }
174
174
 
175
175
  const isValidObject = data => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "5.1.13",
3
+ "version": "5.1.14",
4
4
  "main": "Models.js",
5
5
  "scripts": {
6
6
  "lint": "./node_modules/.bin/eslint -c .eslintrc.js ./models/*.js ./__tests__/**/*.js ./__tests__/**/**/*.js ./schemas/*.js",