@steedos/unpkg 3.0.0-beta.124 → 3.0.0-beta.128

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@steedos/unpkg",
3
- "version": "3.0.0-beta.124",
3
+ "version": "3.0.0-beta.128",
4
4
  "main": "package.service.js",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
- "gitHead": "994252b377dd54c72ecef34e79235442c243f13c"
9
+ "gitHead": "8822dab00c5e6dc89d4b339ead6c54b26059ce6d"
10
10
  }
@@ -58,9 +58,8 @@ module.exports = {
58
58
  loadUnpkgRoutes: function() {
59
59
  try {
60
60
  const router = require('@steedos/router').staticRouter()
61
- if (process.env.STEEDOS_LICENSE) {
62
- // unpkg
63
- process.env.STEEDOS_UNPKG_URL = "/unpkg";
61
+ if (process.env.STEEDOS_LICENSE && process.env.STEEDOS_UNPKG_URL === '/unpkg') {
62
+ // 启动内置 unpkg 服务
64
63
  process.env.UNPKG_BASE_URL = "/unpkg";
65
64
  process.env.NPM_CACHE_FOLDER = path.join(
66
65
  process.env.B6_STORAGE_DIR,