@babylonjs/inspector 9.13.0 → 9.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/inspector-bridge.mjs
CHANGED
|
@@ -1330,6 +1330,10 @@ let Receiver$1 = class Receiver extends Writable {
|
|
|
1330
1330
|
* extensions
|
|
1331
1331
|
* @param {Boolean} [options.isServer=false] Specifies whether to operate in
|
|
1332
1332
|
* client or server mode
|
|
1333
|
+
* @param {Number} [options.maxBufferedChunks=0] The maximum number of
|
|
1334
|
+
* buffered data chunks
|
|
1335
|
+
* @param {Number} [options.maxFragments=0] The maximum number of message
|
|
1336
|
+
* fragments
|
|
1333
1337
|
* @param {Number} [options.maxPayload=0] The maximum allowed message length
|
|
1334
1338
|
* @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
|
|
1335
1339
|
* not to skip UTF-8 validation for text and close messages
|
|
@@ -1344,6 +1348,8 @@ let Receiver$1 = class Receiver extends Writable {
|
|
|
1344
1348
|
this._binaryType = options.binaryType || BINARY_TYPES$1[0];
|
|
1345
1349
|
this._extensions = options.extensions || {};
|
|
1346
1350
|
this._isServer = !!options.isServer;
|
|
1351
|
+
this._maxBufferedChunks = options.maxBufferedChunks | 0;
|
|
1352
|
+
this._maxFragments = options.maxFragments | 0;
|
|
1347
1353
|
this._maxPayload = options.maxPayload | 0;
|
|
1348
1354
|
this._skipUTF8Validation = !!options.skipUTF8Validation;
|
|
1349
1355
|
this[kWebSocket$3] = undefined;
|
|
@@ -1379,6 +1385,22 @@ let Receiver$1 = class Receiver extends Writable {
|
|
|
1379
1385
|
_write(chunk, encoding, cb) {
|
|
1380
1386
|
if (this._opcode === 0x08 && this._state == GET_INFO) return cb();
|
|
1381
1387
|
|
|
1388
|
+
if (
|
|
1389
|
+
this._maxBufferedChunks > 0 &&
|
|
1390
|
+
this._buffers.length >= this._maxBufferedChunks
|
|
1391
|
+
) {
|
|
1392
|
+
cb(
|
|
1393
|
+
this.createError(
|
|
1394
|
+
RangeError,
|
|
1395
|
+
'Too many buffered chunks',
|
|
1396
|
+
false,
|
|
1397
|
+
1008,
|
|
1398
|
+
'WS_ERR_TOO_MANY_BUFFERED_PARTS'
|
|
1399
|
+
)
|
|
1400
|
+
);
|
|
1401
|
+
return;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1382
1404
|
this._bufferedBytes += chunk.length;
|
|
1383
1405
|
this._buffers.push(chunk);
|
|
1384
1406
|
this.startLoop(cb);
|
|
@@ -1775,6 +1797,22 @@ let Receiver$1 = class Receiver extends Writable {
|
|
|
1775
1797
|
}
|
|
1776
1798
|
|
|
1777
1799
|
if (data.length) {
|
|
1800
|
+
if (
|
|
1801
|
+
this._maxFragments > 0 &&
|
|
1802
|
+
this._fragments.length >= this._maxFragments
|
|
1803
|
+
) {
|
|
1804
|
+
const error = this.createError(
|
|
1805
|
+
RangeError,
|
|
1806
|
+
'Too many message fragments',
|
|
1807
|
+
false,
|
|
1808
|
+
1008,
|
|
1809
|
+
'WS_ERR_TOO_MANY_BUFFERED_PARTS'
|
|
1810
|
+
);
|
|
1811
|
+
|
|
1812
|
+
cb(error);
|
|
1813
|
+
return;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1778
1816
|
//
|
|
1779
1817
|
// This message is not compressed so its length is the sum of the payload
|
|
1780
1818
|
// length of all fragments.
|
|
@@ -1814,6 +1852,22 @@ let Receiver$1 = class Receiver extends Writable {
|
|
|
1814
1852
|
return;
|
|
1815
1853
|
}
|
|
1816
1854
|
|
|
1855
|
+
if (
|
|
1856
|
+
this._maxFragments > 0 &&
|
|
1857
|
+
this._fragments.length >= this._maxFragments
|
|
1858
|
+
) {
|
|
1859
|
+
const error = this.createError(
|
|
1860
|
+
RangeError,
|
|
1861
|
+
'Too many message fragments',
|
|
1862
|
+
false,
|
|
1863
|
+
1008,
|
|
1864
|
+
'WS_ERR_TOO_MANY_BUFFERED_PARTS'
|
|
1865
|
+
);
|
|
1866
|
+
|
|
1867
|
+
cb(error);
|
|
1868
|
+
return;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1817
1871
|
this._fragments.push(buf);
|
|
1818
1872
|
}
|
|
1819
1873
|
|
|
@@ -3290,6 +3344,10 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
|
|
|
3290
3344
|
* multiple times in the same tick
|
|
3291
3345
|
* @param {Function} [options.generateMask] The function used to generate the
|
|
3292
3346
|
* masking key
|
|
3347
|
+
* @param {Number} [options.maxBufferedChunks=0] The maximum number of
|
|
3348
|
+
* buffered data chunks
|
|
3349
|
+
* @param {Number} [options.maxFragments=0] The maximum number of message
|
|
3350
|
+
* fragments
|
|
3293
3351
|
* @param {Number} [options.maxPayload=0] The maximum allowed message size
|
|
3294
3352
|
* @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
|
|
3295
3353
|
* not to skip UTF-8 validation for text and close messages
|
|
@@ -3301,6 +3359,8 @@ let WebSocket$1 = class WebSocket extends EventEmitter$1 {
|
|
|
3301
3359
|
binaryType: this.binaryType,
|
|
3302
3360
|
extensions: this._extensions,
|
|
3303
3361
|
isServer: this._isServer,
|
|
3362
|
+
maxBufferedChunks: options.maxBufferedChunks,
|
|
3363
|
+
maxFragments: options.maxFragments,
|
|
3304
3364
|
maxPayload: options.maxPayload,
|
|
3305
3365
|
skipUTF8Validation: options.skipUTF8Validation
|
|
3306
3366
|
});
|
|
@@ -3729,6 +3789,10 @@ var websocket = WebSocket$1;
|
|
|
3729
3789
|
* masking key
|
|
3730
3790
|
* @param {Number} [options.handshakeTimeout] Timeout in milliseconds for the
|
|
3731
3791
|
* handshake request
|
|
3792
|
+
* @param {Number} [options.maxBufferedChunks=1048576] The maximum number of
|
|
3793
|
+
* buffered data chunks
|
|
3794
|
+
* @param {Number} [options.maxFragments=131072] The maximum number of message
|
|
3795
|
+
* fragments
|
|
3732
3796
|
* @param {Number} [options.maxPayload=104857600] The maximum allowed message
|
|
3733
3797
|
* size
|
|
3734
3798
|
* @param {Number} [options.maxRedirects=10] The maximum number of redirects
|
|
@@ -3749,6 +3813,8 @@ function initAsClient(websocket, address, protocols, options) {
|
|
|
3749
3813
|
autoPong: true,
|
|
3750
3814
|
closeTimeout: CLOSE_TIMEOUT$1,
|
|
3751
3815
|
protocolVersion: protocolVersions[1],
|
|
3816
|
+
maxBufferedChunks: 1024 * 1024,
|
|
3817
|
+
maxFragments: 128 * 1024,
|
|
3752
3818
|
maxPayload: 100 * 1024 * 1024,
|
|
3753
3819
|
skipUTF8Validation: false,
|
|
3754
3820
|
perMessageDeflate: true,
|
|
@@ -4106,6 +4172,8 @@ function initAsClient(websocket, address, protocols, options) {
|
|
|
4106
4172
|
websocket.setSocket(socket, head, {
|
|
4107
4173
|
allowSynchronousEvents: opts.allowSynchronousEvents,
|
|
4108
4174
|
generateMask: opts.generateMask,
|
|
4175
|
+
maxBufferedChunks: opts.maxBufferedChunks,
|
|
4176
|
+
maxFragments: opts.maxFragments,
|
|
4109
4177
|
maxPayload: opts.maxPayload,
|
|
4110
4178
|
skipUTF8Validation: opts.skipUTF8Validation
|
|
4111
4179
|
});
|
|
@@ -4588,6 +4656,10 @@ let WebSocketServer$1 = class WebSocketServer extends EventEmitter {
|
|
|
4588
4656
|
* called
|
|
4589
4657
|
* @param {Function} [options.handleProtocols] A hook to handle protocols
|
|
4590
4658
|
* @param {String} [options.host] The hostname where to bind the server
|
|
4659
|
+
* @param {Number} [options.maxBufferedChunks=1048576] The maximum number of
|
|
4660
|
+
* buffered data chunks
|
|
4661
|
+
* @param {Number} [options.maxFragments=131072] The maximum number of message
|
|
4662
|
+
* fragments
|
|
4591
4663
|
* @param {Number} [options.maxPayload=104857600] The maximum allowed message
|
|
4592
4664
|
* size
|
|
4593
4665
|
* @param {Boolean} [options.noServer=false] Enable no server mode
|
|
@@ -4610,6 +4682,8 @@ let WebSocketServer$1 = class WebSocketServer extends EventEmitter {
|
|
|
4610
4682
|
options = {
|
|
4611
4683
|
allowSynchronousEvents: true,
|
|
4612
4684
|
autoPong: true,
|
|
4685
|
+
maxBufferedChunks: 1024 * 1024,
|
|
4686
|
+
maxFragments: 128 * 1024,
|
|
4613
4687
|
maxPayload: 100 * 1024 * 1024,
|
|
4614
4688
|
skipUTF8Validation: false,
|
|
4615
4689
|
perMessageDeflate: false,
|
|
@@ -4969,6 +5043,8 @@ let WebSocketServer$1 = class WebSocketServer extends EventEmitter {
|
|
|
4969
5043
|
|
|
4970
5044
|
ws.setSocket(socket, head, {
|
|
4971
5045
|
allowSynchronousEvents: this.options.allowSynchronousEvents,
|
|
5046
|
+
maxBufferedChunks: this.options.maxBufferedChunks,
|
|
5047
|
+
maxFragments: this.options.maxFragments,
|
|
4972
5048
|
maxPayload: this.options.maxPayload,
|
|
4973
5049
|
skipUTF8Validation: this.options.skipUTF8Validation
|
|
4974
5050
|
});
|
package/bin/inspector-cli.mjs
CHANGED
|
@@ -1333,6 +1333,10 @@ let Receiver$1 = class Receiver extends Writable {
|
|
|
1333
1333
|
* extensions
|
|
1334
1334
|
* @param {Boolean} [options.isServer=false] Specifies whether to operate in
|
|
1335
1335
|
* client or server mode
|
|
1336
|
+
* @param {Number} [options.maxBufferedChunks=0] The maximum number of
|
|
1337
|
+
* buffered data chunks
|
|
1338
|
+
* @param {Number} [options.maxFragments=0] The maximum number of message
|
|
1339
|
+
* fragments
|
|
1336
1340
|
* @param {Number} [options.maxPayload=0] The maximum allowed message length
|
|
1337
1341
|
* @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
|
|
1338
1342
|
* not to skip UTF-8 validation for text and close messages
|
|
@@ -1347,6 +1351,8 @@ let Receiver$1 = class Receiver extends Writable {
|
|
|
1347
1351
|
this._binaryType = options.binaryType || BINARY_TYPES$1[0];
|
|
1348
1352
|
this._extensions = options.extensions || {};
|
|
1349
1353
|
this._isServer = !!options.isServer;
|
|
1354
|
+
this._maxBufferedChunks = options.maxBufferedChunks | 0;
|
|
1355
|
+
this._maxFragments = options.maxFragments | 0;
|
|
1350
1356
|
this._maxPayload = options.maxPayload | 0;
|
|
1351
1357
|
this._skipUTF8Validation = !!options.skipUTF8Validation;
|
|
1352
1358
|
this[kWebSocket$3] = undefined;
|
|
@@ -1382,6 +1388,22 @@ let Receiver$1 = class Receiver extends Writable {
|
|
|
1382
1388
|
_write(chunk, encoding, cb) {
|
|
1383
1389
|
if (this._opcode === 0x08 && this._state == GET_INFO) return cb();
|
|
1384
1390
|
|
|
1391
|
+
if (
|
|
1392
|
+
this._maxBufferedChunks > 0 &&
|
|
1393
|
+
this._buffers.length >= this._maxBufferedChunks
|
|
1394
|
+
) {
|
|
1395
|
+
cb(
|
|
1396
|
+
this.createError(
|
|
1397
|
+
RangeError,
|
|
1398
|
+
'Too many buffered chunks',
|
|
1399
|
+
false,
|
|
1400
|
+
1008,
|
|
1401
|
+
'WS_ERR_TOO_MANY_BUFFERED_PARTS'
|
|
1402
|
+
)
|
|
1403
|
+
);
|
|
1404
|
+
return;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1385
1407
|
this._bufferedBytes += chunk.length;
|
|
1386
1408
|
this._buffers.push(chunk);
|
|
1387
1409
|
this.startLoop(cb);
|
|
@@ -1778,6 +1800,22 @@ let Receiver$1 = class Receiver extends Writable {
|
|
|
1778
1800
|
}
|
|
1779
1801
|
|
|
1780
1802
|
if (data.length) {
|
|
1803
|
+
if (
|
|
1804
|
+
this._maxFragments > 0 &&
|
|
1805
|
+
this._fragments.length >= this._maxFragments
|
|
1806
|
+
) {
|
|
1807
|
+
const error = this.createError(
|
|
1808
|
+
RangeError,
|
|
1809
|
+
'Too many message fragments',
|
|
1810
|
+
false,
|
|
1811
|
+
1008,
|
|
1812
|
+
'WS_ERR_TOO_MANY_BUFFERED_PARTS'
|
|
1813
|
+
);
|
|
1814
|
+
|
|
1815
|
+
cb(error);
|
|
1816
|
+
return;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1781
1819
|
//
|
|
1782
1820
|
// This message is not compressed so its length is the sum of the payload
|
|
1783
1821
|
// length of all fragments.
|
|
@@ -1817,6 +1855,22 @@ let Receiver$1 = class Receiver extends Writable {
|
|
|
1817
1855
|
return;
|
|
1818
1856
|
}
|
|
1819
1857
|
|
|
1858
|
+
if (
|
|
1859
|
+
this._maxFragments > 0 &&
|
|
1860
|
+
this._fragments.length >= this._maxFragments
|
|
1861
|
+
) {
|
|
1862
|
+
const error = this.createError(
|
|
1863
|
+
RangeError,
|
|
1864
|
+
'Too many message fragments',
|
|
1865
|
+
false,
|
|
1866
|
+
1008,
|
|
1867
|
+
'WS_ERR_TOO_MANY_BUFFERED_PARTS'
|
|
1868
|
+
);
|
|
1869
|
+
|
|
1870
|
+
cb(error);
|
|
1871
|
+
return;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1820
1874
|
this._fragments.push(buf);
|
|
1821
1875
|
}
|
|
1822
1876
|
|
|
@@ -3293,6 +3347,10 @@ let WebSocket$1 = class WebSocket extends EventEmitter {
|
|
|
3293
3347
|
* multiple times in the same tick
|
|
3294
3348
|
* @param {Function} [options.generateMask] The function used to generate the
|
|
3295
3349
|
* masking key
|
|
3350
|
+
* @param {Number} [options.maxBufferedChunks=0] The maximum number of
|
|
3351
|
+
* buffered data chunks
|
|
3352
|
+
* @param {Number} [options.maxFragments=0] The maximum number of message
|
|
3353
|
+
* fragments
|
|
3296
3354
|
* @param {Number} [options.maxPayload=0] The maximum allowed message size
|
|
3297
3355
|
* @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
|
|
3298
3356
|
* not to skip UTF-8 validation for text and close messages
|
|
@@ -3304,6 +3362,8 @@ let WebSocket$1 = class WebSocket extends EventEmitter {
|
|
|
3304
3362
|
binaryType: this.binaryType,
|
|
3305
3363
|
extensions: this._extensions,
|
|
3306
3364
|
isServer: this._isServer,
|
|
3365
|
+
maxBufferedChunks: options.maxBufferedChunks,
|
|
3366
|
+
maxFragments: options.maxFragments,
|
|
3307
3367
|
maxPayload: options.maxPayload,
|
|
3308
3368
|
skipUTF8Validation: options.skipUTF8Validation
|
|
3309
3369
|
});
|
|
@@ -3732,6 +3792,10 @@ var websocket = WebSocket$1;
|
|
|
3732
3792
|
* masking key
|
|
3733
3793
|
* @param {Number} [options.handshakeTimeout] Timeout in milliseconds for the
|
|
3734
3794
|
* handshake request
|
|
3795
|
+
* @param {Number} [options.maxBufferedChunks=1048576] The maximum number of
|
|
3796
|
+
* buffered data chunks
|
|
3797
|
+
* @param {Number} [options.maxFragments=131072] The maximum number of message
|
|
3798
|
+
* fragments
|
|
3735
3799
|
* @param {Number} [options.maxPayload=104857600] The maximum allowed message
|
|
3736
3800
|
* size
|
|
3737
3801
|
* @param {Number} [options.maxRedirects=10] The maximum number of redirects
|
|
@@ -3752,6 +3816,8 @@ function initAsClient(websocket, address, protocols, options) {
|
|
|
3752
3816
|
autoPong: true,
|
|
3753
3817
|
closeTimeout: CLOSE_TIMEOUT$1,
|
|
3754
3818
|
protocolVersion: protocolVersions[1],
|
|
3819
|
+
maxBufferedChunks: 1024 * 1024,
|
|
3820
|
+
maxFragments: 128 * 1024,
|
|
3755
3821
|
maxPayload: 100 * 1024 * 1024,
|
|
3756
3822
|
skipUTF8Validation: false,
|
|
3757
3823
|
perMessageDeflate: true,
|
|
@@ -4109,6 +4175,8 @@ function initAsClient(websocket, address, protocols, options) {
|
|
|
4109
4175
|
websocket.setSocket(socket, head, {
|
|
4110
4176
|
allowSynchronousEvents: opts.allowSynchronousEvents,
|
|
4111
4177
|
generateMask: opts.generateMask,
|
|
4178
|
+
maxBufferedChunks: opts.maxBufferedChunks,
|
|
4179
|
+
maxFragments: opts.maxFragments,
|
|
4112
4180
|
maxPayload: opts.maxPayload,
|
|
4113
4181
|
skipUTF8Validation: opts.skipUTF8Validation
|
|
4114
4182
|
});
|
|
@@ -10,13 +10,14 @@ export declare const LoaderOptionDefaults: {
|
|
|
10
10
|
} & {
|
|
11
11
|
alwaysComputeBoundingBox: boolean;
|
|
12
12
|
alwaysComputeSkeletonRootNode: boolean;
|
|
13
|
-
animationStartMode: import("@babylonjs/loaders/glTF/glTFFileLoader.js").GLTFLoaderAnimationStartMode;
|
|
13
|
+
animationStartMode: import("@babylonjs/loaders/glTF/glTFFileLoader.pure.js").GLTFLoaderAnimationStartMode;
|
|
14
14
|
compileMaterials: boolean;
|
|
15
15
|
compileShadowGenerators: boolean;
|
|
16
|
-
coordinateSystemMode: import("@babylonjs/loaders/glTF/glTFFileLoader.js").GLTFLoaderCoordinateSystemMode;
|
|
16
|
+
coordinateSystemMode: import("@babylonjs/loaders/glTF/glTFFileLoader.pure.js").GLTFLoaderCoordinateSystemMode;
|
|
17
17
|
createInstances: boolean;
|
|
18
18
|
loadAllMaterials: boolean;
|
|
19
19
|
loadMorphTargets: boolean;
|
|
20
|
+
useMaxMorphTargetInfluencers: boolean;
|
|
20
21
|
loadNodeAnimations: boolean;
|
|
21
22
|
loadOnlyMaterials: boolean;
|
|
22
23
|
loadSkins: boolean;
|