@blocklet/meta 1.16.23-beta-05595041 → 1.16.23-beta-2229bcee

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.
@@ -6,10 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.checkLink = exports.isValidUrlPath = void 0;
7
7
  const is_absolute_url_1 = __importDefault(require("is-absolute-url"));
8
8
  const isValidUrlPath = (name) => {
9
- // Check if the path contains any uppercase letters
10
- if (/[A-Z]/.test(name)) {
11
- return false;
12
- }
13
9
  // Check if the path contains any non-ASCII characters
14
10
  if (/[^\x20-\x7F]/.test(name)) {
15
11
  return false;
@@ -24,8 +20,7 @@ const urlPathFriendly = (name, { keepSlash = true } = {}) => {
24
20
  const pathFriendlyStr = name
25
21
  .trim()
26
22
  .replace(/[^\x20-\x7F]/g, '')
27
- .replace(/[^a-z0-9_.\-/]/gi, '-')
28
- .toLowerCase();
23
+ .replace(/[^a-z0-9_.\-/]/gi, '-');
29
24
  // Remove consecutive hyphens
30
25
  const noConsecutiveHyphens = pathFriendlyStr.replace(/-+/g, '-');
31
26
  // Replace consecutive periods with a single period
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.23-beta-05595041",
6
+ "version": "1.16.23-beta-2229bcee",
7
7
  "description": "Library to parse/validate/fix blocklet meta",
8
8
  "main": "./lib/index.js",
9
9
  "typings": "./lib/index.d.ts",
@@ -25,12 +25,12 @@
25
25
  "author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@abtnode/constant": "1.16.23-beta-05595041",
28
+ "@abtnode/constant": "1.16.23-beta-2229bcee",
29
29
  "@arcblock/did": "1.18.110",
30
30
  "@arcblock/did-ext": "1.18.110",
31
31
  "@arcblock/did-util": "1.18.110",
32
32
  "@arcblock/jwt": "1.18.110",
33
- "@blocklet/constant": "1.16.23-beta-05595041",
33
+ "@blocklet/constant": "1.16.23-beta-2229bcee",
34
34
  "@ocap/asset": "1.18.110",
35
35
  "@ocap/mcrypto": "1.18.110",
36
36
  "@ocap/types": "1.18.110",
@@ -79,5 +79,5 @@
79
79
  "ts-node": "^10.9.1",
80
80
  "typescript": "^5.0.4"
81
81
  },
82
- "gitHead": "67a4f402078e27f744f63cdd1c98ed03877e4481"
82
+ "gitHead": "f42242b4cc87ba11ba1d18ec09df7b024520e9d0"
83
83
  }