File tree Expand file tree Collapse file tree 4 files changed +4048
-495
lines changed Expand file tree Collapse file tree 4 files changed +4048
-495
lines changed Original file line number Diff line number Diff line change 1
1
import { observer } from '@ember/object' ;
2
2
import Route from '@ember/routing/route' ;
3
3
import { inject as service } from '@ember/service' ;
4
- import semver from 'semver' ;
4
+ import { prerelease } from 'semver' ;
5
5
6
6
import fetch from 'fetch' ;
7
7
import ajax from 'ember-fetch/ajax' ;
@@ -21,7 +21,7 @@ export default Route.extend({
21
21
const controller = this . controllerFor ( this . routeName ) ;
22
22
const maxVersion = crate . get ( 'max_version' ) ;
23
23
24
- const isUnstableVersion = version => ! ! semver . prerelease ( version ) ;
24
+ const isUnstableVersion = version => ! ! prerelease ( version ) ;
25
25
26
26
const fetchCrateDocumentation = ( ) => {
27
27
if ( ! crate . get ( 'documentation' ) || crate . get ( 'documentation' ) . substr ( 0 , 16 ) === 'https://docs.rs/' ) {
Original file line number Diff line number Diff line change @@ -36,24 +36,5 @@ module.exports = function(defaults) {
36
36
} ,
37
37
} ) ;
38
38
39
- // Use `app.import` to add additional libraries to the generated
40
- // output files.
41
- //
42
- // If you need to use different assets in different
43
- // environments, specify an object as the first parameter. That
44
- // object's keys should be the environment name and the values
45
- // should be the asset to use in that environment.
46
- //
47
- // If the library that you are including contains AMD or ES6
48
- // modules that you would like to import into your application
49
- // please specify an object with the list of modules as keys
50
- // along with the exports of each module as its value.
51
- app . import ( 'node_modules/timekeeper/lib/timekeeper.js' , {
52
- using : [ { transformation : 'cjs' , as : 'timekeeper' } ] ,
53
- } ) ;
54
- app . import ( 'node_modules/semver/semver.js' , {
55
- using : [ { transformation : 'cjs' , as : 'semver' } ] ,
56
- } ) ;
57
-
58
39
return app . toTree ( ) ;
59
40
} ;
You can’t perform that action at this time.
0 commit comments