ember-introjs
Version:
An Ember Component for intro.js
12 lines (9 loc) • 344 B
JavaScript
;
const got = require('got');
module.exports = function(channelType) {
let HOST = process.env.EMBER_SOURCE_CHANNEL_URL_HOST || 'https://s3.amazonaws.com';
let PATH = 'builds.emberjs.com';
return got(`${HOST}/${PATH}/${channelType}.json`, { json: true }).then(
result => `${HOST}/${PATH}${result.body.assetPath}`
);
};