1
0
forked from dyf/APP

增加mqtt

This commit is contained in:
微微一笑
2025-07-16 11:16:19 +08:00
parent e42d4af3b2
commit 6257f9d84b
1550 changed files with 5264 additions and 116701 deletions

View File

@ -1,49 +0,0 @@
"use strict";
var ensureString = require("type/string/ensure")
, objHasOwnProperty = Object.prototype.hasOwnProperty;
var capitalLetters = {
A: true,
B: true,
C: true,
D: true,
E: true,
F: true,
G: true,
H: true,
I: true,
J: true,
K: true,
L: true,
M: true,
N: true,
O: true,
P: true,
Q: true,
R: true,
S: true,
T: true,
U: true,
V: true,
W: true,
X: true,
Y: true,
Z: true
};
module.exports = function () {
var input = ensureString(this);
if (!input) return input;
var outputLetters = [];
for (var index = 0, letter; (letter = input[index]); ++index) {
if (objHasOwnProperty.call(capitalLetters, letter)) {
if (index) outputLetters.push("-");
outputLetters.push(letter.toLowerCase());
} else {
outputLetters.push(letter);
}
}
return outputLetters.join("");
};

View File

@ -1,9 +0,0 @@
"use strict";
var ensureString = require("type/string/ensure");
module.exports = function () {
var input = ensureString(this);
if (!input) return input;
return input.charAt(0).toUpperCase() + input.slice(1);
};

View File

@ -1,7 +0,0 @@
"use strict";
var indexOf = String.prototype.indexOf;
module.exports = function (searchString/*, position*/) {
return indexOf.call(this, searchString, arguments[1]) > -1;
};

View File

@ -1,5 +0,0 @@
"use strict";
module.exports = require("./is-implemented")()
? String.prototype.includes
: require("./implementation");

View File

@ -1,8 +0,0 @@
"use strict";
var str = "razdwatrzy";
module.exports = function () {
if (typeof str.includes !== "function") return false;
return str.includes("dwa") === true && str.includes("foo") === false;
};