@cabloy/module-info 1.0.21 → 1.0.23

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/LICENSE.en-US ADDED
@@ -0,0 +1,3 @@
1
+ Copyright (c) 2016-present CabloyJS
2
+
3
+ CabloyJS 5.0 internal beta version, still under continuous development, not yet open source, please do not spread it
package/LICENSE.zh-CN ADDED
@@ -0,0 +1,3 @@
1
+ Copyright (c) 2016-present CabloyJS
2
+
3
+ CabloyJS 5.0 内测版,仍在持续开发中,尚未开源,请勿扩散
package/README.md CHANGED
File without changes
package/dist/index.js CHANGED
@@ -115,9 +115,9 @@ function _parseNameLikeUrl(moduleUrl, prefix) {
115
115
  const posB = moduleUrl.indexOf('/', posA) + 1;
116
116
  if (posB === 0)
117
117
  return;
118
- const posC = moduleUrl.indexOf('/', posB);
118
+ let posC = moduleUrl.indexOf('/', posB);
119
119
  if (posC === -1)
120
- return;
120
+ posC = moduleUrl.length;
121
121
  return moduleUrl.substring(posA, posC).replace('/', '-');
122
122
  }
123
123
  function _parseName(moduleUrl, prefix) {
@@ -53,6 +53,7 @@ export interface IModulePackage {
53
53
  zovaModule?: {
54
54
  capabilities?: IModuleCapabilities;
55
55
  dependencies?: Record<string, string>;
56
+ globalDependencies?: Record<string, string | boolean>;
56
57
  bundle?: {
57
58
  vendors?: Array<IBundleVendor>;
58
59
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/module-info",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "cabloy module-info",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -21,9 +21,6 @@
21
21
  "dist/**/*.js",
22
22
  "dist/**/*.d.ts"
23
23
  ],
24
- "scripts": {
25
- "lint": "eslint ."
26
- },
27
24
  "keywords": [
28
25
  "egg",
29
26
  "egg-born",
@@ -33,5 +30,8 @@
33
30
  "author": "zhennann",
34
31
  "dependencies": {
35
32
  "stack-utils": "^2.0.6"
33
+ },
34
+ "scripts": {
35
+ "lint": "eslint ."
36
36
  }
37
- }
37
+ }