@cabloy/module-info 1.0.19 → 1.0.20

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -113,7 +113,7 @@ exports.parseName = parseName;
113
113
  function _parseNameLikeUrl(moduleUrl, prefix) {
114
114
  const posA = prefix.length;
115
115
  const posB = moduleUrl.indexOf('/', posA) + 1;
116
- if (posB === -1)
116
+ if (posB === 0)
117
117
  return;
118
118
  const posC = moduleUrl.indexOf('/', posB);
119
119
  if (posC === -1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/module-info",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "cabloy module-info",
5
5
  "publishConfig": {
6
6
  "access": "public"