Skip to content

Commit

Permalink
chore: update https-proxy-agent to 7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mgermerie committed Jul 4, 2023
1 parent ea5283d commit 8b939f6
Show file tree
Hide file tree
Showing 21 changed files with 89 additions and 31 deletions.
72 changes: 61 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"github-url-from-git": "^1.5.0",
"grunt": "^1.6.1",
"grunt-bump": "^0.8.0",
"https-proxy-agent": "^5.0.1",
"https-proxy-agent": "^7.0.0",
"jsdoc": "^4.0.2",
"marked": "^5.1.0",
"mocha": "^10.2.0",
Expand Down
2 changes: 1 addition & 1 deletion test/unit/3dtileslayerprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import C3DTilesLayer from 'Layer/C3DTilesLayer';
import C3DTilesSource from 'Source/C3DTilesSource';
import View from 'Core/View';
import GlobeView from 'Core/Prefab/GlobeView';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import Coordinates from 'Core/Geographic/Coordinates';
import Renderer from './bootstrap';

Expand Down
2 changes: 1 addition & 1 deletion test/unit/3dtileslayerprocessbatchtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import C3DTExtensions from 'Core/3DTiles/C3DTExtensions';
import C3DTilesTypes from 'Core/3DTiles/C3DTilesTypes';
import View from 'Core/View';
import GlobeView from 'Core/Prefab/GlobeView';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import Coordinates from 'Core/Geographic/Coordinates';
import Renderer from './bootstrap';

Expand Down
2 changes: 2 additions & 0 deletions test/unit/3dtileslayerstyle.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import assert from 'assert';
import proj4 from 'proj4';
import * as THREE from 'three';
import { HttpsProxyAgent } from 'https-proxy-agent';
import Extent from 'Core/Geographic/Extent';
import PlanarView from 'Core/Prefab/PlanarView';
import Style from 'Core/Style';
Expand Down Expand Up @@ -28,6 +29,7 @@ describe('3DTilesLayer Style', () => {
source: new C3DTilesSource({
url: 'https://raw.githubusercontent.com/iTowns/iTowns2-sample-data/master/' +
'3DTiles/lyon1_with_surface_type_2018/tileset.json',
networkOptions: process.env.HTTPS_PROXY ? { agent: new HttpsProxyAgent(process.env.HTTPS_PROXY) } : {},
}),
},
view,
Expand Down
9 changes: 7 additions & 2 deletions test/unit/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ global.window = {
setTimeout,
};

global.URL = function URL() {
this.ref = undefined;
global.URL = function URL(url) {
return {
host: url.split('://')[1]?.split('/')[0],
hostname: url.split('://')[1]?.split(':')[0],
port: url.split('://')[1]?.split(':')[1],
protocol: url.split('://')[0],
};
};

global.Event = () => {};
Expand Down
2 changes: 1 addition & 1 deletion test/unit/demutils.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as THREE from 'three';
import ElevationLayer from 'Layer/ElevationLayer';
import WMTSSource from 'Source/WMTSSource';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import assert from 'assert';
import GlobeView from 'Core/Prefab/GlobeView';
import Coordinates from 'Core/Geographic/Coordinates';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/entwine.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import View from 'Core/View';
import GlobeView from 'Core/Prefab/GlobeView';
import Coordinates from 'Core/Geographic/Coordinates';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/featuregeometrylayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import assert from 'assert';
import GlobeView from 'Core/Prefab/GlobeView';
import FeatureGeometryLayer from 'Layer/FeatureGeometryLayer';
import FileSource from 'Source/FileSource';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import Extent from 'Core/Geographic/Extent';
import Coordinates from 'Core/Geographic/Coordinates';
import OBB from 'Renderer/OBB';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/featuregeometrylayererror.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import assert from 'assert';
import GlobeView from 'Core/Prefab/GlobeView';
import FeatureGeometryLayer from 'Layer/FeatureGeometryLayer';
import FileSource from 'Source/FileSource';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import Extent from 'Core/Geographic/Extent';
import Coordinates from 'Core/Geographic/Coordinates';
import OBB from 'Renderer/OBB';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/gdf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import Fetcher from 'Provider/Fetcher';
import GDFParser from 'Parser/GDFParser';

Expand Down
2 changes: 1 addition & 1 deletion test/unit/geoidlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import GeoidLayer from 'Layer/GeoidLayer';
import FileSource from 'Source/FileSource';
import Coordinates from 'Core/Geographic/Coordinates';
import GlobeView from 'Core/Prefab/GlobeView';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import Extent from 'Core/Geographic/Extent';
import OBB from 'Renderer/OBB';
import TileMesh from 'Core/TileMesh';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/gtx.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import GTXParser from 'Parser/GTXParser';
import Fetcher from 'Provider/Fetcher';

Expand Down
2 changes: 1 addition & 1 deletion test/unit/isg.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import Fetcher from 'Provider/Fetcher';
import ISGParser from 'Parser/ISGParser';

Expand Down
3 changes: 2 additions & 1 deletion test/unit/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import LabelLayer from 'Layer/LabelLayer';
import GlobeView from 'Core/Prefab/GlobeView';
import ColorLayer from 'Layer/ColorLayer';
import FileSource from 'Source/FileSource';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import Renderer from './bootstrap';

const geojson = require('../data/geojson/simple.geojson.json');
Expand Down Expand Up @@ -187,6 +187,7 @@ describe('Label2DRenderer', function () {
fetchedData: geojson,
crs: 'EPSG:4326',
format: 'application/json',
// TODO : is it necessary since we use fetchedData property ?
networkOptions: process.env.HTTPS_PROXY ? { agent: new HttpsProxyAgent(process.env.HTTPS_PROXY) } : {},
});

Expand Down
2 changes: 1 addition & 1 deletion test/unit/lasparser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import LASParser from 'Parser/LASParser';
import Fetcher from 'Provider/Fetcher';
import { compareWithEpsilon } from './utils';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/orientedimagelayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import proj4 from 'proj4';
import assert from 'assert';
import OrientedImageLayer from 'Layer/OrientedImageLayer';
import OrientedImageSource from 'Source/OrientedImageSource';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import Coordinates from 'Core/Geographic/Coordinates';
import GlobeView from 'Core/Prefab/GlobeView';
import Renderer from './bootstrap';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/potree.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PotreeLayer from 'Layer/PotreeLayer';
import PotreeSource from 'Source/PotreeSource';
import View from 'Core/View';
import GlobeView from 'Core/Prefab/GlobeView';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import Coordinates from 'Core/Geographic/Coordinates';
import PotreeNode from 'Core/PotreeNode';
import PointsMaterial from 'Renderer/PointsMaterial';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/potreelayerparsing.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PotreeSource from 'Source/PotreeSource';
import Coordinates from 'Core/Geographic/Coordinates';
import GlobeView from 'Core/Prefab/GlobeView';
import View from 'Core/View';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import Renderer from './bootstrap';

describe('Potree Provider', function () {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import OrientedImageSource from 'Source/OrientedImageSource';
import C3DTilesSource from 'Source/C3DTilesSource';
import C3DTilesIonSource from 'Source/C3DTilesIonSource';
import Extent from 'Core/Geographic/Extent';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';

describe('Sources', function () {
// geojson url to parse
Expand Down
2 changes: 1 addition & 1 deletion test/unit/vectortiles.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import assert from 'assert';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';
import VectorTileParser from 'Parser/VectorTileParser';
import VectorTilesSource from 'Source/VectorTilesSource';
import Extent from 'Core/Geographic/Extent';
Expand Down

0 comments on commit 8b939f6

Please sign in to comment.