You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2022/06/08 06:54:57 UTC

[echarts] branch test-cdn created (now c82eb4157)

This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a change to branch test-cdn
in repository https://gitbox.apache.org/repos/asf/echarts.git


      at c82eb4157 test: update visual test cdn to be unpkg

This branch includes the following new commits:

     new c82eb4157 test: update visual test cdn to be unpkg

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[echarts] 01/01: test: update visual test cdn to be unpkg

Posted by ov...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch test-cdn
in repository https://gitbox.apache.org/repos/asf/echarts.git

commit c82eb4157ad2ec2ee67bf34bd238bba01d0c57bf
Author: Ovilia <zw...@gmail.com>
AuthorDate: Wed Jun 8 14:54:01 2022 +0800

    test: update visual test cdn to be unpkg
---
 test/runTest/util.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/runTest/util.js b/test/runTest/util.js
index b116c4920..4d892b344 100644
--- a/test/runTest/util.js
+++ b/test/runTest/util.js
@@ -76,8 +76,9 @@ module.exports.prepareEChartsLib = function (version) {
             const isNightly = version.includes('-dev');
             const packageName = isNightly ? 'echarts-nightly' : 'echarts'
 
-            console.log(`Downloading ${packageName}@${version} from `, `https://cdn.jsdelivr.net/npm/${packageName}@${version}/dist/echarts.js`);
-            https.get(`https://cdn.jsdelivr.net/npm/${packageName}@${version}/dist/echarts.js`, response => {
+            const url = `https://unpkg.com/${packageName}@${version}/dist/echarts.js`;
+            console.log(`Downloading ${packageName}@${version} from ${url}`, );
+            https.get(url, response => {
                 response.pipe(file);
 
                 file.on('finish', () => {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org