diff options
Diffstat (limited to 'server/lib/plugins')
-rw-r--r-- | server/lib/plugins/yarn.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/plugins/yarn.ts b/server/lib/plugins/yarn.ts index d105b95e0..9cf6ec9e9 100644 --- a/server/lib/plugins/yarn.ts +++ b/server/lib/plugins/yarn.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { outputJSON, pathExists } from 'fs-extra' | 1 | import { outputJSON, pathExists } from 'fs-extra' |
2 | import { join } from 'path' | 2 | import { join } from 'path' |
3 | import { execShell } from '../../helpers/core-utils' | 3 | import { execShell } from '../../helpers/core-utils' |
4 | import { isNpmPluginNameValid, isPluginVersionValid } from '../../helpers/custom-validators/plugins' | 4 | import { isNpmPluginNameValid, isPluginStableOrUnstableVersionValid } from '../../helpers/custom-validators/plugins' |
5 | import { logger } from '../../helpers/logger' | 5 | import { logger } from '../../helpers/logger' |
6 | import { CONFIG } from '../../initializers/config' | 6 | import { CONFIG } from '../../initializers/config' |
7 | import { getLatestPluginVersion } from './plugin-index' | 7 | import { getLatestPluginVersion } from './plugin-index' |
@@ -69,5 +69,5 @@ function checkNpmPluginNameOrThrow (name: string) { | |||
69 | } | 69 | } |
70 | 70 | ||
71 | function checkPluginVersionOrThrow (name: string) { | 71 | function checkPluginVersionOrThrow (name: string) { |
72 | if (!isPluginVersionValid(name)) throw new Error('Invalid NPM plugin version to install') | 72 | if (!isPluginStableOrUnstableVersionValid(name)) throw new Error('Invalid NPM plugin version to install') |
73 | } | 73 | } |