diff --git a/packages/engine/package.json b/packages/engine/package.json index 9830ab4..c1c9838 100644 --- a/packages/engine/package.json +++ b/packages/engine/package.json @@ -1,6 +1,6 @@ { "name": "@serverless-devs/engine", - "version": "0.1.5-beta.11", + "version": "0.1.5-beta.12", "description": "a engine lib for serverless-devs", "main": "lib/index.js", "scripts": { diff --git a/packages/load-application/package.json b/packages/load-application/package.json index cfc3224..660a37b 100644 --- a/packages/load-application/package.json +++ b/packages/load-application/package.json @@ -1,6 +1,6 @@ { "name": "@serverless-devs/load-application", - "version": "0.0.15-beta.7", + "version": "0.0.15-beta.8", "description": "load application for serverless-devs", "main": "lib/index.js", "scripts": { diff --git a/packages/load-application/src/utils/index.ts b/packages/load-application/src/utils/index.ts index 5814f8c..3e98c10 100644 --- a/packages/load-application/src/utils/index.ts +++ b/packages/load-application/src/utils/index.ts @@ -20,7 +20,7 @@ export const getUrlWithLatest = (name: string) => { } return `${REGISTRY.V3}/packages/${name}/release/latest` }; -export const getUrlWithVersion = (name: string, versionId: string) => `${REGISTRY.V3}/packages/${name}/release/tags/${versionId}`; +export const getUrlWithVersion = (name: string, versionId: string) => `${REGISTRY.V3}/packages/${name}/release/tags/${encodeURIComponent(versionId)}`; export const randomId = () => Math.random().toString(36).substring(2, 6); diff --git a/packages/load-component/package.json b/packages/load-component/package.json index e152a0a..e046891 100644 --- a/packages/load-component/package.json +++ b/packages/load-component/package.json @@ -1,6 +1,6 @@ { "name": "@serverless-devs/load-component", - "version": "0.0.8", + "version": "0.0.9-beta.1", "description": "request for serverless-devs", "main": "lib/index.js", "scripts": { diff --git a/packages/load-component/src/utils/index.ts b/packages/load-component/src/utils/index.ts index 94af4f3..5e234de 100644 --- a/packages/load-component/src/utils/index.ts +++ b/packages/load-component/src/utils/index.ts @@ -7,7 +7,7 @@ import { BASE_URL } from '../constant'; import assert from 'assert'; const debug = require('@serverless-cd/debug')('serverless-devs:load-component'); const getUrlWithLatest = (name: string) => `${BASE_URL}/packages/${name}/release/latest`; -const getUrlWithVersion = (name: string, versionId: string) => `${BASE_URL}/packages/${name}/release/tags/${versionId}`; +const getUrlWithVersion = (name: string, versionId: string) => `${BASE_URL}/packages/${name}/release/tags/${encodeURIComponent(versionId)}`; export function readJsonFile(filePath: string) { if (fs.existsSync(filePath)) {