utiller 1.0.373 → 1.0.374
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/lib/utiller/index.js +18 -0
- package/package.json +1 -1
- package/template/sample.package.json +1 -1
package/lib/utiller/index.js
CHANGED
|
@@ -4178,6 +4178,24 @@ var Utiller = /*#__PURE__*/function () {
|
|
|
4178
4178
|
.format("YYYYMMDDHHmmss"));
|
|
4179
4179
|
}
|
|
4180
4180
|
|
|
4181
|
+
/**
|
|
4182
|
+
* 檢查是否為 HTTPS 網址
|
|
4183
|
+
* @param {string} url
|
|
4184
|
+
* @returns {boolean}
|
|
4185
|
+
*/
|
|
4186
|
+
}, {
|
|
4187
|
+
key: "isHttpsURL",
|
|
4188
|
+
value: function isHttpsURL(url) {
|
|
4189
|
+
if (!_lodash["default"].isString(url)) return false;
|
|
4190
|
+
try {
|
|
4191
|
+
var decoded = decodeURIComponent(url.trim());
|
|
4192
|
+
var parsed = new URL(decoded);
|
|
4193
|
+
return parsed.protocol === "https:";
|
|
4194
|
+
} catch (e) {
|
|
4195
|
+
return false;
|
|
4196
|
+
}
|
|
4197
|
+
}
|
|
4198
|
+
|
|
4181
4199
|
/** ============== 排課系統公式 開始 ============== */
|
|
4182
4200
|
|
|
4183
4201
|
/**
|
package/package.json
CHANGED