lib/forest.js
function (version) {
        return __awaiter(this, void 0, void 0, function* () {
            let versions = yield ForestInternal.queryElmVersions();
            let result = ForestInternal.findSuitable(version, versions);
            if (result === null) {
                throw new ForestError(Errors.NoMatchingVersion, `Unable to find an Elm version matching ${version} on NPM`);
            }
            return Promise.resolve(result);
        });
    }
function (version) {
        return __awaiter(this, void 0, void 0, function* () {
            let versions = yield ForestInternal.queryElmVersions();
            let result = ForestInternal.findSuitable(version, versions);
            if (result === null) {
                throw new ForestError(Errors.NoMatchingVersion, `Unable to find an Elm version matching ${version} on NPM`);
            }
            return Promise.resolve(result);
        });
    }
function ( version ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { let versions = yield ForestInternal . queryElmVersions ( ) ; let result = ForestInternal . findSuitable ( version , versions ) ; if ( result === null ) { throw new ForestError ( Errors . NoMatchingVersion , ` ${ version } ` ) ; } return Promise . resolve ( result ) ; } ) ; }
Expand a version by asking npm
Expand a version by asking npm