We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
prerelease()
1 parent da343f5 commit c57aa73Copy full SHA for c57aa73
app/routes/crate/version.js
@@ -1,7 +1,7 @@
1
import { observer } from '@ember/object';
2
import Route from '@ember/routing/route';
3
import { inject as service } from '@ember/service';
4
-import semver from 'semver';
+import { prerelease } from 'semver';
5
6
import fetch from 'fetch';
7
import ajax from 'ember-fetch/ajax';
@@ -21,7 +21,7 @@ export default Route.extend({
21
const controller = this.controllerFor(this.routeName);
22
const maxVersion = crate.get('max_version');
23
24
- const isUnstableVersion = version => !!semver.prerelease(version);
+ const isUnstableVersion = version => !!prerelease(version);
25
26
const fetchCrateDocumentation = () => {
27
if (!crate.get('documentation') || crate.get('documentation').substr(0, 16) === 'https://docs.rs/') {
0 commit comments