hap-nodejs 1.0.0-alpha.8 → 1.0.0-alpha.9
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,10 +8,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.checkName = checkName;
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
10
10
|
function checkName(displayName, name, value) {
|
|
11
|
-
if (!value) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
11
|
+
/*if (!value) {
|
|
12
|
+
console.warn(`HAP-NodeJS WARNING: The accessory '${displayName}' is getting published with an empty '${name}'. This is not allowed.`);
|
|
13
|
+
return;
|
|
14
|
+
}*/
|
|
15
15
|
var validHK = /^[a-zA-Z0-9\s'-.]+$/; // Ensure only letters, numbers, spaces, apostrophes, or dashes
|
|
16
16
|
var startWith = /^[a-zA-Z0-9]/; // Ensure only letters or numbers are at the beginning of the string
|
|
17
17
|
var endWith = /[a-zA-Z0-9]$/; // Ensure only letters or numbers are at the end of the string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkName.js","sourceRoot":"","sources":["../../../src/lib/util/checkName.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAGH,8BAgBC;AAjBD,iHAAiH;AACjH,SAAgB,SAAS,CAAC,WAAmB,EAAE,IAAY,EAAE,KAAU;IACrE
|
|
1
|
+
{"version":3,"file":"checkName.js","sourceRoot":"","sources":["../../../src/lib/util/checkName.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAGH,8BAgBC;AAjBD,iHAAiH;AACjH,SAAgB,SAAS,CAAC,WAAmB,EAAE,IAAY,EAAE,KAAU;IACrE;;;OAGG;IAEH,IAAM,OAAO,GAAG,qBAAqB,CAAC,CAAG,+DAA+D;IACxG,IAAM,SAAS,GAAG,cAAc,CAAC,CAAO,oEAAoE;IAC5G,IAAM,OAAO,GAAG,cAAc,CAAC,CAAS,8DAA8D;IAEtG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC3E,OAAO,CAAC,IAAI,CAAC,qCAAqC,GAAG,WAAW,GAAG,kDAAkD;YACnH,IAAI,GAAG,GAAG,GAAG,wCAAwC,GAAG,KAAK,GAAG,MAAM;YACtE,4IAA4I;YAC5I,mHAAmH,CAAC,CAAC;IACzH,CAAC;AACH,CAAC"}
|