@modern-js/repo-generator 0.0.0-canary-20220629080034 → 0.0.0-canary-20220629155318

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.
@@ -103038,7 +103038,7 @@ function _getPackageMeta() {
103038
103038
  switch (_context.prev = _context.next) {
103039
103039
  case 0:
103040
103040
  _ref = options || {}, registryUrl = _ref.registryUrl;
103041
- params = ['view', packageName, 'meta'];
103041
+ params = ['view', "".concat(packageName, "@").concat(packageVersion), 'meta', '--json'];
103042
103042
 
103043
103043
  if (registryUrl) {
103044
103044
  params.push('--registry');
@@ -103052,23 +103052,34 @@ function _getPackageMeta() {
103052
103052
  case 6:
103053
103053
  _yield$timeoutPromise = _context.sent;
103054
103054
  stdout = _yield$timeoutPromise.stdout;
103055
- _context.prev = 8;
103055
+
103056
+ if (stdout) {
103057
+ _context.next = 10;
103058
+ break;
103059
+ }
103060
+
103061
+ return _context.abrupt("return", {
103062
+ meta: {}
103063
+ });
103064
+
103065
+ case 10:
103066
+ _context.prev = 10;
103056
103067
  pkgMetaInfo = JSON.parse(stdout);
103057
103068
  return _context.abrupt("return", {
103058
103069
  meta: pkgMetaInfo
103059
103070
  });
103060
103071
 
103061
- case 13:
103062
- _context.prev = 13;
103063
- _context.t0 = _context["catch"](8);
103072
+ case 15:
103073
+ _context.prev = 15;
103074
+ _context.t0 = _context["catch"](10);
103064
103075
  throw new Error("Version `".concat(packageVersion, "` for package `").concat(packageName, "` could not be found"));
103065
103076
 
103066
- case 16:
103077
+ case 18:
103067
103078
  case "end":
103068
103079
  return _context.stop();
103069
103080
  }
103070
103081
  }
103071
- }, _callee, null, [[8, 13]]);
103082
+ }, _callee, null, [[10, 15]]);
103072
103083
  }));
103073
103084
  return _getPackageMeta.apply(this, arguments);
103074
103085
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-canary-20220629080034",
14
+ "version": "0.0.0-canary-20220629155318",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/js/node/main.js",
17
17
  "files": [
@@ -26,14 +26,14 @@
26
26
  "@modern-js/codesmith": "^1.3.0",
27
27
  "@modern-js/codesmith-api-app": "^1.2.5",
28
28
  "@modern-js/codesmith-tools": "^1.2.1",
29
- "@modern-js/generator-common": "0.0.0-canary-20220629080034",
30
- "@modern-js/generator-utils": "0.0.0-canary-20220629080034",
31
- "@modern-js/module-generator": "0.0.0-canary-20220629080034",
32
- "@modern-js/monorepo-generator": "0.0.0-canary-20220629080034",
33
- "@modern-js/mwa-generator": "0.0.0-canary-20220629080034",
34
- "@modern-js/base-generator": "0.0.0-canary-20220629080034",
35
- "@modern-js/generator-plugin": "0.0.0-canary-20220629080034",
36
- "@modern-js/utils": "0.0.0-canary-20220629080034",
29
+ "@modern-js/generator-common": "0.0.0-canary-20220629155318",
30
+ "@modern-js/generator-utils": "0.0.0-canary-20220629155318",
31
+ "@modern-js/module-generator": "0.0.0-canary-20220629155318",
32
+ "@modern-js/monorepo-generator": "0.0.0-canary-20220629155318",
33
+ "@modern-js/mwa-generator": "0.0.0-canary-20220629155318",
34
+ "@modern-js/base-generator": "0.0.0-canary-20220629155318",
35
+ "@modern-js/generator-plugin": "0.0.0-canary-20220629155318",
36
+ "@modern-js/utils": "0.0.0-canary-20220629155318",
37
37
  "@types/jest": "^27",
38
38
  "@types/node": "^14",
39
39
  "typescript": "^4",