Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-source-channel-url

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-source-channel-url - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

5

package.json
{
"name": "ember-source-channel-url",
"version": "1.2.0",
"version": "2.0.0",
"description": "Determine the URL to a given Ember channels (beta, canary, etc) latest tarball.",

@@ -15,2 +15,3 @@ "license": "MIT",

"scripts": {
"lint:js": "eslint .",
"test": "qunit tests/**/*-test.js"

@@ -35,4 +36,4 @@ },

"engines": {
"node": "6.* || 8.* || >= 10.*"
"node": "8.* || >= 10.*"
}
}

8

src/index.js
'use strict';
const got = require('got');
module.exports = function(channelType) {
module.exports = async 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}`
);
const result = await got(`${HOST}/${PATH}/${channelType}.json`, { json: true });
return `${HOST}/${PATH}${result.body.assetPath}`;
};

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc