geotiff 3.0.2 → 3.0.4-beta.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/dist-browser/geotiff.js +3 -3
- package/dist-browser/geotiff.js.map +1 -1
- package/dist-module/compression/basedecoder.d.ts +30 -4
- package/dist-module/compression/basedecoder.d.ts.map +1 -1
- package/dist-module/compression/basedecoder.js +22 -1
- package/dist-module/compression/basedecoder.js.map +1 -0
- package/dist-module/compression/deflate.d.ts +2 -1
- package/dist-module/compression/deflate.d.ts.map +1 -1
- package/dist-module/compression/deflate.js +2 -0
- package/dist-module/compression/deflate.js.map +1 -0
- package/dist-module/compression/index.d.ts +14 -22
- package/dist-module/compression/index.d.ts.map +1 -1
- package/dist-module/compression/index.js +36 -25
- package/dist-module/compression/index.js.map +1 -0
- package/dist-module/compression/jpeg.d.ts +55 -15
- package/dist-module/compression/jpeg.d.ts.map +1 -1
- package/dist-module/compression/jpeg.js +187 -16
- package/dist-module/compression/jpeg.js.map +1 -0
- package/dist-module/compression/lerc.d.ts +11 -1
- package/dist-module/compression/lerc.d.ts.map +1 -1
- package/dist-module/compression/lerc.js +16 -4
- package/dist-module/compression/lerc.js.map +1 -0
- package/dist-module/compression/lzw.d.ts +2 -1
- package/dist-module/compression/lzw.d.ts.map +1 -1
- package/dist-module/compression/lzw.js +29 -1
- package/dist-module/compression/lzw.js.map +1 -0
- package/dist-module/compression/packbits.d.ts +2 -1
- package/dist-module/compression/packbits.d.ts.map +1 -1
- package/dist-module/compression/packbits.js +2 -0
- package/dist-module/compression/packbits.js.map +1 -0
- package/dist-module/compression/raw.d.ts +2 -1
- package/dist-module/compression/raw.d.ts.map +1 -1
- package/dist-module/compression/raw.js +2 -0
- package/dist-module/compression/raw.js.map +1 -0
- package/dist-module/compression/webimage.d.ts +2 -1
- package/dist-module/compression/webimage.d.ts.map +1 -1
- package/dist-module/compression/webimage.js +5 -0
- package/dist-module/compression/webimage.js.map +1 -0
- package/dist-module/compression/zstd.d.ts +4 -2
- package/dist-module/compression/zstd.d.ts.map +1 -1
- package/dist-module/compression/zstd.js +3 -1
- package/dist-module/compression/zstd.js.map +1 -0
- package/dist-module/dataslice.d.ts +78 -22
- package/dist-module/dataslice.d.ts.map +1 -1
- package/dist-module/dataslice.js +57 -1
- package/dist-module/dataslice.js.map +1 -0
- package/dist-module/dataview64.d.ts +71 -14
- package/dist-module/dataview64.d.ts.map +1 -1
- package/dist-module/dataview64.js +58 -1
- package/dist-module/dataview64.js.map +1 -0
- package/dist-module/geotiff.d.ts +61 -12
- package/dist-module/geotiff.d.ts.map +1 -1
- package/dist-module/geotiff.js +73 -14
- package/dist-module/geotiff.js.map +1 -0
- package/dist-module/geotiffimage.d.ts +41 -15
- package/dist-module/geotiffimage.d.ts.map +1 -1
- package/dist-module/geotiffimage.js +132 -52
- package/dist-module/geotiffimage.js.map +1 -0
- package/dist-module/geotiffwriter.d.ts +28 -1
- package/dist-module/geotiffwriter.d.ts.map +1 -1
- package/dist-module/geotiffwriter.js +206 -84
- package/dist-module/geotiffwriter.js.map +1 -0
- package/dist-module/globals.d.ts +912 -92
- package/dist-module/globals.d.ts.map +1 -1
- package/dist-module/globals.js +201 -227
- package/dist-module/globals.js.map +1 -0
- package/dist-module/imagefiledirectory.d.ts +72 -19
- package/dist-module/imagefiledirectory.d.ts.map +1 -1
- package/dist-module/imagefiledirectory.js +51 -26
- package/dist-module/imagefiledirectory.js.map +1 -0
- package/dist-module/logging.d.ts +36 -10
- package/dist-module/logging.d.ts.map +1 -1
- package/dist-module/logging.js +16 -2
- package/dist-module/logging.js.map +1 -0
- package/dist-module/pool.d.ts +15 -8
- package/dist-module/pool.d.ts.map +1 -1
- package/dist-module/pool.js +11 -3
- package/dist-module/pool.js.map +1 -0
- package/dist-module/predictor.d.ts +10 -1
- package/dist-module/predictor.d.ts.map +1 -1
- package/dist-module/predictor.js +19 -0
- package/dist-module/predictor.js.map +1 -0
- package/dist-module/resample.d.ts.map +1 -1
- package/dist-module/resample.js +12 -0
- package/dist-module/resample.js.map +1 -0
- package/dist-module/rgb.js +1 -0
- package/dist-module/rgb.js.map +1 -0
- package/dist-module/source/arraybuffer.d.ts +7 -4
- package/dist-module/source/arraybuffer.d.ts.map +1 -1
- package/dist-module/source/arraybuffer.js +15 -1
- package/dist-module/source/arraybuffer.js.map +1 -0
- package/dist-module/source/basesource.d.ts +11 -6
- package/dist-module/source/basesource.d.ts.map +1 -1
- package/dist-module/source/basesource.js +7 -4
- package/dist-module/source/basesource.js.map +1 -0
- package/dist-module/source/blockedsource.d.ts +2 -2
- package/dist-module/source/blockedsource.d.ts.map +1 -1
- package/dist-module/source/blockedsource.js +8 -5
- package/dist-module/source/blockedsource.js.map +1 -0
- package/dist-module/source/client/base.d.ts +8 -7
- package/dist-module/source/client/base.d.ts.map +1 -1
- package/dist-module/source/client/base.js +7 -5
- package/dist-module/source/client/base.js.map +1 -0
- package/dist-module/source/client/fetch.d.ts +6 -2
- package/dist-module/source/client/fetch.d.ts.map +1 -1
- package/dist-module/source/client/fetch.js +7 -2
- package/dist-module/source/client/fetch.js.map +1 -0
- package/dist-module/source/client/http.d.ts +27 -5
- package/dist-module/source/client/http.d.ts.map +1 -1
- package/dist-module/source/client/http.js +16 -2
- package/dist-module/source/client/http.js.map +1 -0
- package/dist-module/source/client/xhr.d.ts +22 -3
- package/dist-module/source/client/xhr.d.ts.map +1 -1
- package/dist-module/source/client/xhr.js +12 -2
- package/dist-module/source/client/xhr.js.map +1 -0
- package/dist-module/source/file.d.ts +8 -5
- package/dist-module/source/file.d.ts.map +1 -1
- package/dist-module/source/file.js +40 -8
- package/dist-module/source/file.js.map +1 -0
- package/dist-module/source/filereader.d.ts +12 -4
- package/dist-module/source/filereader.d.ts.map +1 -1
- package/dist-module/source/filereader.js +15 -2
- package/dist-module/source/filereader.js.map +1 -0
- package/dist-module/source/httputils.d.ts +16 -9
- package/dist-module/source/httputils.d.ts.map +1 -1
- package/dist-module/source/httputils.js +19 -12
- package/dist-module/source/httputils.js.map +1 -0
- package/dist-module/source/remote.d.ts.map +1 -1
- package/dist-module/source/remote.js +19 -7
- package/dist-module/source/remote.js.map +1 -0
- package/dist-module/utils.d.ts +36 -41
- package/dist-module/utils.d.ts.map +1 -1
- package/dist-module/utils.js +17 -12
- package/dist-module/utils.js.map +1 -0
- package/dist-module/worker/create.js +1 -1
- package/dist-module/worker/create.js.map +1 -0
- package/dist-module/worker/decoder.d.ts +2 -0
- package/dist-module/worker/decoder.d.ts.map +1 -0
- package/dist-module/worker/decoder.js +21 -0
- package/dist-module/worker/decoder.js.map +1 -0
- package/dist-node/compression/basedecoder.d.ts +30 -4
- package/dist-node/compression/basedecoder.d.ts.map +1 -1
- package/dist-node/compression/basedecoder.js +22 -1
- package/dist-node/compression/basedecoder.js.map +1 -1
- package/dist-node/compression/deflate.d.ts +2 -1
- package/dist-node/compression/deflate.d.ts.map +1 -1
- package/dist-node/compression/deflate.js +2 -0
- package/dist-node/compression/deflate.js.map +1 -1
- package/dist-node/compression/index.d.ts +14 -22
- package/dist-node/compression/index.d.ts.map +1 -1
- package/dist-node/compression/index.js +36 -25
- package/dist-node/compression/index.js.map +1 -1
- package/dist-node/compression/jpeg.d.ts +55 -16
- package/dist-node/compression/jpeg.d.ts.map +1 -1
- package/dist-node/compression/jpeg.js +187 -16
- package/dist-node/compression/jpeg.js.map +1 -1
- package/dist-node/compression/lerc.d.ts +11 -1
- package/dist-node/compression/lerc.d.ts.map +1 -1
- package/dist-node/compression/lerc.js +16 -4
- package/dist-node/compression/lerc.js.map +1 -1
- package/dist-node/compression/lzw.d.ts +2 -1
- package/dist-node/compression/lzw.d.ts.map +1 -1
- package/dist-node/compression/lzw.js +29 -1
- package/dist-node/compression/lzw.js.map +1 -1
- package/dist-node/compression/packbits.d.ts +2 -1
- package/dist-node/compression/packbits.d.ts.map +1 -1
- package/dist-node/compression/packbits.js +2 -0
- package/dist-node/compression/packbits.js.map +1 -1
- package/dist-node/compression/raw.d.ts +2 -1
- package/dist-node/compression/raw.d.ts.map +1 -1
- package/dist-node/compression/raw.js +2 -0
- package/dist-node/compression/raw.js.map +1 -1
- package/dist-node/compression/webimage.d.ts +2 -2
- package/dist-node/compression/webimage.d.ts.map +1 -1
- package/dist-node/compression/webimage.js +5 -0
- package/dist-node/compression/webimage.js.map +1 -1
- package/dist-node/compression/zstd.d.ts +2 -1
- package/dist-node/compression/zstd.d.ts.map +1 -1
- package/dist-node/compression/zstd.js +3 -1
- package/dist-node/compression/zstd.js.map +1 -1
- package/dist-node/dataslice.d.ts +78 -22
- package/dist-node/dataslice.d.ts.map +1 -1
- package/dist-node/dataslice.js +57 -1
- package/dist-node/dataslice.js.map +1 -1
- package/dist-node/dataview64.d.ts +71 -14
- package/dist-node/dataview64.d.ts.map +1 -1
- package/dist-node/dataview64.js +58 -1
- package/dist-node/dataview64.js.map +1 -1
- package/dist-node/geotiff.d.ts +61 -12
- package/dist-node/geotiff.d.ts.map +1 -1
- package/dist-node/geotiff.js +75 -15
- package/dist-node/geotiff.js.map +1 -1
- package/dist-node/geotiffimage.d.ts +41 -15
- package/dist-node/geotiffimage.d.ts.map +1 -1
- package/dist-node/geotiffimage.js +132 -52
- package/dist-node/geotiffimage.js.map +1 -1
- package/dist-node/geotiffwriter.d.ts +28 -1
- package/dist-node/geotiffwriter.d.ts.map +1 -1
- package/dist-node/geotiffwriter.js +206 -84
- package/dist-node/geotiffwriter.js.map +1 -1
- package/dist-node/globals.d.ts +910 -90
- package/dist-node/globals.d.ts.map +1 -1
- package/dist-node/globals.js +202 -228
- package/dist-node/globals.js.map +1 -1
- package/dist-node/imagefiledirectory.d.ts +72 -19
- package/dist-node/imagefiledirectory.d.ts.map +1 -1
- package/dist-node/imagefiledirectory.js +51 -26
- package/dist-node/imagefiledirectory.js.map +1 -1
- package/dist-node/logging.d.ts +36 -10
- package/dist-node/logging.d.ts.map +1 -1
- package/dist-node/logging.js +16 -2
- package/dist-node/logging.js.map +1 -1
- package/dist-node/pool.d.ts +15 -8
- package/dist-node/pool.d.ts.map +1 -1
- package/dist-node/pool.js +11 -3
- package/dist-node/pool.js.map +1 -1
- package/dist-node/predictor.d.ts +10 -1
- package/dist-node/predictor.d.ts.map +1 -1
- package/dist-node/predictor.js +19 -0
- package/dist-node/predictor.js.map +1 -1
- package/dist-node/resample.d.ts.map +1 -1
- package/dist-node/resample.js +12 -0
- package/dist-node/resample.js.map +1 -1
- package/dist-node/rgb.js +1 -0
- package/dist-node/rgb.js.map +1 -1
- package/dist-node/source/arraybuffer.d.ts +7 -4
- package/dist-node/source/arraybuffer.d.ts.map +1 -1
- package/dist-node/source/arraybuffer.js +15 -1
- package/dist-node/source/arraybuffer.js.map +1 -1
- package/dist-node/source/basesource.d.ts +11 -6
- package/dist-node/source/basesource.d.ts.map +1 -1
- package/dist-node/source/basesource.js +7 -4
- package/dist-node/source/basesource.js.map +1 -1
- package/dist-node/source/blockedsource.d.ts +2 -2
- package/dist-node/source/blockedsource.d.ts.map +1 -1
- package/dist-node/source/blockedsource.js +8 -5
- package/dist-node/source/blockedsource.js.map +1 -1
- package/dist-node/source/client/base.d.ts +8 -7
- package/dist-node/source/client/base.d.ts.map +1 -1
- package/dist-node/source/client/base.js +7 -5
- package/dist-node/source/client/base.js.map +1 -1
- package/dist-node/source/client/fetch.d.ts +5 -2
- package/dist-node/source/client/fetch.d.ts.map +1 -1
- package/dist-node/source/client/fetch.js +7 -2
- package/dist-node/source/client/fetch.js.map +1 -1
- package/dist-node/source/client/http.d.ts +22 -4
- package/dist-node/source/client/http.d.ts.map +1 -1
- package/dist-node/source/client/http.js +16 -2
- package/dist-node/source/client/http.js.map +1 -1
- package/dist-node/source/client/xhr.d.ts +23 -3
- package/dist-node/source/client/xhr.d.ts.map +1 -1
- package/dist-node/source/client/xhr.js +12 -2
- package/dist-node/source/client/xhr.js.map +1 -1
- package/dist-node/source/file.d.ts +8 -5
- package/dist-node/source/file.d.ts.map +1 -1
- package/dist-node/source/file.js +40 -8
- package/dist-node/source/file.js.map +1 -1
- package/dist-node/source/filereader.d.ts +12 -4
- package/dist-node/source/filereader.d.ts.map +1 -1
- package/dist-node/source/filereader.js +15 -2
- package/dist-node/source/filereader.js.map +1 -1
- package/dist-node/source/httputils.d.ts +16 -9
- package/dist-node/source/httputils.d.ts.map +1 -1
- package/dist-node/source/httputils.js +19 -12
- package/dist-node/source/httputils.js.map +1 -1
- package/dist-node/source/remote.d.ts.map +1 -1
- package/dist-node/source/remote.js +19 -7
- package/dist-node/source/remote.js.map +1 -1
- package/dist-node/utils.d.ts +9 -8
- package/dist-node/utils.d.ts.map +1 -1
- package/dist-node/utils.js +17 -12
- package/dist-node/utils.js.map +1 -1
- package/dist-node/worker/create.js +1 -1
- package/dist-node/worker/create.js.map +1 -1
- package/dist-node/worker/decoder.d.ts +2 -0
- package/dist-node/worker/decoder.d.ts.map +1 -0
- package/dist-node/worker/decoder.js +24 -0
- package/dist-node/worker/decoder.js.map +1 -0
- package/package.json +5 -3
|
@@ -1,15 +1,33 @@
|
|
|
1
1
|
export class HttpClient extends BaseClient {
|
|
2
|
-
constructor(url: any);
|
|
3
2
|
parsedUrl: urlMod.UrlWithStringQuery;
|
|
4
3
|
httpApi: typeof http | typeof https;
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @param {Object<string, string>} headers
|
|
6
|
+
* @param {AbortSignal} [signal]
|
|
7
|
+
* @returns {Promise<HttpResponse>}
|
|
8
|
+
*/
|
|
9
|
+
constructRequest(headers: {
|
|
10
|
+
[x: string]: string;
|
|
11
|
+
}, signal?: AbortSignal): Promise<HttpResponse>;
|
|
6
12
|
request({ headers, signal }?: {
|
|
7
|
-
headers?: undefined;
|
|
13
|
+
headers?: {} | undefined;
|
|
8
14
|
signal?: undefined;
|
|
9
|
-
}): Promise<
|
|
15
|
+
}): Promise<HttpResponse>;
|
|
10
16
|
}
|
|
11
17
|
import { BaseClient } from './base.js';
|
|
12
18
|
import urlMod from 'url';
|
|
13
19
|
import http from 'http';
|
|
14
20
|
import https from 'https';
|
|
21
|
+
declare class HttpResponse extends BaseResponse {
|
|
22
|
+
/**
|
|
23
|
+
* BaseResponse facade for node HTTP/HTTPS API Response
|
|
24
|
+
* @param {import('http').IncomingMessage} response
|
|
25
|
+
* @param {Promise<ArrayBuffer>} dataPromise
|
|
26
|
+
*/
|
|
27
|
+
constructor(response: import("http").IncomingMessage, dataPromise: Promise<ArrayBuffer>);
|
|
28
|
+
response: http.IncomingMessage;
|
|
29
|
+
dataPromise: Promise<ArrayBuffer>;
|
|
30
|
+
}
|
|
31
|
+
import { BaseResponse } from './base.js';
|
|
32
|
+
export {};
|
|
15
33
|
//# sourceMappingURL=http.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../dist-module/source/client/http.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../dist-module/source/client/http.js"],"names":[],"mappings":"AAgCA;IAIQ,qCAAuC;IACvC,oCAAmE;IAEvE;;;;OAIG;IACH;;gBAHW,WAAW,GACT,OAAO,CAAC,YAAY,CAAC,CAgCjC;IACD;;;8BAGC;CACJ;2BA5EwC,WAAW;mBADjC,KAAK;iBAFP,MAAM;kBACL,OAAO;AAIzB;IACI;;;;OAIG;IACH,sBAHW,OAAO,MAAM,EAAE,eAAe,eAC9B,OAAO,CAAC,WAAW,CAAC,EAM9B;IAFG,+BAAwB;IACxB,kCAA8B;CAiBrC;6BA5BwC,WAAW"}
|
|
@@ -13,6 +13,7 @@ class HttpResponse extends base_js_1.BaseResponse {
|
|
|
13
13
|
/**
|
|
14
14
|
* BaseResponse facade for node HTTP/HTTPS API Response
|
|
15
15
|
* @param {import('http').IncomingMessage} response
|
|
16
|
+
* @param {Promise<ArrayBuffer>} dataPromise
|
|
16
17
|
*/
|
|
17
18
|
constructor(response, dataPromise) {
|
|
18
19
|
super();
|
|
@@ -22,8 +23,13 @@ class HttpResponse extends base_js_1.BaseResponse {
|
|
|
22
23
|
get status() {
|
|
23
24
|
return /** @type {number} */ (this.response.statusCode);
|
|
24
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* @param {string} name
|
|
28
|
+
* @returns {string|undefined}
|
|
29
|
+
*/
|
|
25
30
|
getHeader(name) {
|
|
26
|
-
|
|
31
|
+
const value = this.response.headers[name];
|
|
32
|
+
return Array.isArray(value) ? value.join(', ') : value;
|
|
27
33
|
}
|
|
28
34
|
async getData() {
|
|
29
35
|
const data = await this.dataPromise;
|
|
@@ -31,11 +37,17 @@ class HttpResponse extends base_js_1.BaseResponse {
|
|
|
31
37
|
}
|
|
32
38
|
}
|
|
33
39
|
class HttpClient extends base_js_1.BaseClient {
|
|
40
|
+
/** @param {string} url */
|
|
34
41
|
constructor(url) {
|
|
35
42
|
super(url);
|
|
36
43
|
this.parsedUrl = url_1.default.parse(this.url);
|
|
37
44
|
this.httpApi = (this.parsedUrl.protocol === 'http:' ? http_1.default : https_1.default);
|
|
38
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* @param {Object<string, string>} headers
|
|
48
|
+
* @param {AbortSignal} [signal]
|
|
49
|
+
* @returns {Promise<HttpResponse>}
|
|
50
|
+
*/
|
|
39
51
|
constructRequest(headers, signal) {
|
|
40
52
|
return new Promise((resolve, reject) => {
|
|
41
53
|
const request = this.httpApi.get({
|
|
@@ -43,6 +55,7 @@ class HttpClient extends base_js_1.BaseClient {
|
|
|
43
55
|
headers,
|
|
44
56
|
}, (response) => {
|
|
45
57
|
const dataPromise = new Promise((resolveData) => {
|
|
58
|
+
/** @type {Uint8Array[]} */
|
|
46
59
|
const chunks = [];
|
|
47
60
|
// collect chunks
|
|
48
61
|
response.on('data', (chunk) => {
|
|
@@ -66,10 +79,11 @@ class HttpClient extends base_js_1.BaseClient {
|
|
|
66
79
|
}
|
|
67
80
|
});
|
|
68
81
|
}
|
|
69
|
-
async request({ headers =
|
|
82
|
+
async request({ headers = {}, signal = undefined } = {}) {
|
|
70
83
|
const response = await this.constructRequest(headers, signal);
|
|
71
84
|
return response;
|
|
72
85
|
}
|
|
73
86
|
}
|
|
74
87
|
exports.HttpClient = HttpClient;
|
|
88
|
+
//# sourceMappingURL=http.js.map
|
|
75
89
|
//# sourceMappingURL=http.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../dist-module/source/client/http.js"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,kDAA0B;AAC1B,8CAAyB;AACzB,uCAAqD;AACrD,6CAA4C;AAC5C,MAAM,YAAa,SAAQ,sBAAY;IACnC
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../dist-module/source/client/http.js"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,kDAA0B;AAC1B,8CAAyB;AACzB,uCAAqD;AACrD,6CAA4C;AAC5C,MAAM,YAAa,SAAQ,sBAAY;IACnC;;;;OAIG;IACH,YAAY,QAAQ,EAAE,WAAW;QAC7B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IACD,IAAI,MAAM;QACN,OAAO,qBAAqB,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC5D,CAAC;IACD;;;OAGG;IACH,SAAS,CAAC,IAAI;QACV,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC1C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC3D,CAAC;IACD,KAAK,CAAC,OAAO;QACT,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC;QACpC,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AACD,M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AC,CAAC,CAAC;YACrD,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAC5B,IAAI,MAAM,EAAE,CAAC;gBACT,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;oBACjB,OAAO,CAAC,OAAO,CAAC,IAAI,qBAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC;gBACvD,CAAC;gBACD,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,qBAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;YAC/F,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE;QACnD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAC9D,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ;AA/CD,gCA+CC;AACD,gCAAgC"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
export class XHRClient extends BaseClient {
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* @param {Object<string, string>} headers
|
|
4
|
+
* @param {AbortSignal} [signal]
|
|
5
|
+
* @returns {Promise<XHRResponse>}
|
|
6
|
+
*/
|
|
7
|
+
constructRequest(headers: {
|
|
8
|
+
[x: string]: string;
|
|
9
|
+
}, signal?: AbortSignal): Promise<XHRResponse>;
|
|
3
10
|
request({ headers, signal }?: {
|
|
4
|
-
headers?: undefined;
|
|
11
|
+
headers?: {} | undefined;
|
|
5
12
|
signal?: undefined;
|
|
6
|
-
}): Promise<
|
|
13
|
+
}): Promise<XHRResponse>;
|
|
7
14
|
}
|
|
8
15
|
import { BaseClient } from './base.js';
|
|
16
|
+
declare class XHRResponse extends BaseResponse {
|
|
17
|
+
/**
|
|
18
|
+
* BaseResponse facade for XMLHttpRequest
|
|
19
|
+
* @param {XMLHttpRequest} xhr
|
|
20
|
+
* @param {ArrayBuffer} data
|
|
21
|
+
*/
|
|
22
|
+
constructor(xhr: XMLHttpRequest, data: ArrayBuffer);
|
|
23
|
+
xhr: XMLHttpRequest;
|
|
24
|
+
data: ArrayBuffer;
|
|
25
|
+
get status(): any;
|
|
26
|
+
}
|
|
27
|
+
import { BaseResponse } from './base.js';
|
|
28
|
+
export {};
|
|
9
29
|
//# sourceMappingURL=xhr.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xhr.d.ts","sourceRoot":"","sources":["../../../dist-module/source/client/xhr.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"xhr.d.ts","sourceRoot":"","sources":["../../../dist-module/source/client/xhr.js"],"names":[],"mappings":"AA2BA;IACI;;;;OAIG;IACH;;gBAHW,WAAW,GACT,OAAO,CAAC,WAAW,CAAC,CAyBhC;IACD;;;6BAGC;CACJ;2BA7DwC,WAAW;AAEpD;IACI;;;;OAIG;IACH,iBAHW,cAAc,QACd,WAAW,EAMrB;IAFG,oBAAc;IACd,kBAAgB;IAEpB,kBAEC;CAWJ;6BA1BwC,WAAW"}
|
|
@@ -17,14 +17,23 @@ class XHRResponse extends base_js_1.BaseResponse {
|
|
|
17
17
|
get status() {
|
|
18
18
|
return this.xhr.status;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @param {string} name
|
|
22
|
+
* @returns {string|undefined}
|
|
23
|
+
*/
|
|
20
24
|
getHeader(name) {
|
|
21
|
-
return this.xhr.getResponseHeader(name);
|
|
25
|
+
return this.xhr.getResponseHeader(name) || undefined;
|
|
22
26
|
}
|
|
23
27
|
async getData() {
|
|
24
28
|
return this.data;
|
|
25
29
|
}
|
|
26
30
|
}
|
|
27
31
|
class XHRClient extends base_js_1.BaseClient {
|
|
32
|
+
/**
|
|
33
|
+
* @param {Object<string, string>} headers
|
|
34
|
+
* @param {AbortSignal} [signal]
|
|
35
|
+
* @returns {Promise<XHRResponse>}
|
|
36
|
+
*/
|
|
28
37
|
constructRequest(headers, signal) {
|
|
29
38
|
return new Promise((resolve, reject) => {
|
|
30
39
|
const xhr = new XMLHttpRequest();
|
|
@@ -49,10 +58,11 @@ class XHRClient extends base_js_1.BaseClient {
|
|
|
49
58
|
}
|
|
50
59
|
});
|
|
51
60
|
}
|
|
52
|
-
async request({ headers =
|
|
61
|
+
async request({ headers = {}, signal = undefined } = {}) {
|
|
53
62
|
const response = await this.constructRequest(headers, signal);
|
|
54
63
|
return response;
|
|
55
64
|
}
|
|
56
65
|
}
|
|
57
66
|
exports.XHRClient = XHRClient;
|
|
67
|
+
//# sourceMappingURL=xhr.js.map
|
|
58
68
|
//# sourceMappingURL=xhr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xhr.js","sourceRoot":"","sources":["../../../dist-module/source/client/xhr.js"],"names":[],"mappings":";;;AAAA,uCAAqD;AACrD,6CAA4C;AAC5C,MAAM,WAAY,SAAQ,sBAAY;IAClC;;;;OAIG;IACH,YAAY,GAAG,EAAE,IAAI;QACjB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IACD,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC;IAC3B,CAAC;IACD,SAAS,CAAC,IAAI;QACV,OAAO,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"xhr.js","sourceRoot":"","sources":["../../../dist-module/source/client/xhr.js"],"names":[],"mappings":";;;AAAA,uCAAqD;AACrD,6CAA4C;AAC5C,MAAM,WAAY,SAAQ,sBAAY;IAClC;;;;OAIG;IACH,YAAY,GAAG,EAAE,IAAI;QACjB,KAAK,EAAE,CAAC;Q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EAAE,CAAC;YACX,IAAI,MAAM,EAAE,CAAC;gBACT,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;oBACjB,GAAG,CAAC,KAAK,EAAE,CAAC;gBAChB,CAAC;gBACD,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC;YACxD,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE;QACnD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAC9D,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ;AAlCD,8BAkCC;AACD,+BAA+B"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/** @param {string} path */
|
|
2
|
+
export function makeFileSource(path: string): FileSource;
|
|
2
3
|
declare class FileSource extends BaseSource {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @param {string} path
|
|
6
|
+
*/
|
|
7
|
+
constructor(path: string);
|
|
8
|
+
path: string;
|
|
9
|
+
openRequest: Promise<number>;
|
|
7
10
|
}
|
|
8
11
|
import { BaseSource } from './basesource.js';
|
|
9
12
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../dist-module/source/file.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../dist-module/source/file.js"],"names":[],"mappings":"AAqFA,2BAA2B;AAC3B,qCADY,MAAM,cAGjB;AAhCD;IACI;;OAEG;IACH,kBAFW,MAAM,EAMhB;IAFG,aAAgB;IAChB,6BAAuC;CAqB9C;2BAnF0B,iBAAiB"}
|
package/dist-node/source/file.js
CHANGED
|
@@ -6,8 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.makeFileSource = makeFileSource;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const basesource_js_1 = require("./basesource.js");
|
|
9
|
+
/**
|
|
10
|
+
* @param {number} fd
|
|
11
|
+
* @returns {Promise<void>}
|
|
12
|
+
*/
|
|
9
13
|
function closeAsync(fd) {
|
|
10
|
-
return
|
|
14
|
+
return new Promise((resolve, reject) => {
|
|
11
15
|
fs_1.default.close(fd, (err) => {
|
|
12
16
|
if (err) {
|
|
13
17
|
reject(err);
|
|
@@ -16,8 +20,14 @@ function closeAsync(fd) {
|
|
|
16
20
|
resolve();
|
|
17
21
|
}
|
|
18
22
|
});
|
|
19
|
-
})
|
|
23
|
+
});
|
|
20
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* @param {string} path
|
|
27
|
+
* @param {string} flags
|
|
28
|
+
* @param {number|undefined} mode
|
|
29
|
+
* @returns {Promise<number>}
|
|
30
|
+
*/
|
|
21
31
|
function openAsync(path, flags, mode = undefined) {
|
|
22
32
|
return new Promise((resolve, reject) => {
|
|
23
33
|
fs_1.default.open(path, flags, mode, (err, fd) => {
|
|
@@ -30,36 +40,58 @@ function openAsync(path, flags, mode = undefined) {
|
|
|
30
40
|
});
|
|
31
41
|
});
|
|
32
42
|
}
|
|
33
|
-
|
|
43
|
+
/**
|
|
44
|
+
* @param {number} fd
|
|
45
|
+
* @param {Uint8Array} buffer
|
|
46
|
+
* @param {number} offset
|
|
47
|
+
* @param {number} length
|
|
48
|
+
* @param {number} position
|
|
49
|
+
* @returns {Promise<{bytesRead: number, buffer: Uint8Array}>}
|
|
50
|
+
*/
|
|
51
|
+
function readAsync(fd, buffer, offset, length, position) {
|
|
34
52
|
return new Promise((resolve, reject) => {
|
|
35
|
-
fs_1.default.read(
|
|
53
|
+
fs_1.default.read(fd, buffer, offset, length, position, (err, bytesRead, outBuffer) => {
|
|
36
54
|
if (err) {
|
|
37
55
|
reject(err);
|
|
38
56
|
}
|
|
39
57
|
else {
|
|
40
|
-
resolve({ bytesRead, buffer });
|
|
58
|
+
resolve({ bytesRead, buffer: outBuffer });
|
|
41
59
|
}
|
|
42
60
|
});
|
|
43
61
|
});
|
|
44
62
|
}
|
|
45
63
|
class FileSource extends basesource_js_1.BaseSource {
|
|
64
|
+
/**
|
|
65
|
+
* @param {string} path
|
|
66
|
+
*/
|
|
46
67
|
constructor(path) {
|
|
47
68
|
super();
|
|
48
69
|
this.path = path;
|
|
49
70
|
this.openRequest = openAsync(path, 'r');
|
|
50
71
|
}
|
|
51
|
-
|
|
72
|
+
/**
|
|
73
|
+
* @param {import('./basesource.js').Slice} slice
|
|
74
|
+
* @param {AbortSignal} [_signal] not implemented
|
|
75
|
+
* @returns {Promise<import('./basesource.js').SliceWithData>}
|
|
76
|
+
*/
|
|
77
|
+
async fetchSlice(slice, _signal) {
|
|
52
78
|
// TODO: use `signal`
|
|
53
79
|
const fd = await this.openRequest;
|
|
54
|
-
const { buffer } = await readAsync(fd,
|
|
55
|
-
return
|
|
80
|
+
const { buffer } = await readAsync(fd, new Uint8Array(slice.length), 0, slice.length, slice.offset);
|
|
81
|
+
return {
|
|
82
|
+
data: buffer.buffer,
|
|
83
|
+
offset: slice.offset,
|
|
84
|
+
length: slice.length,
|
|
85
|
+
};
|
|
56
86
|
}
|
|
57
87
|
async close() {
|
|
58
88
|
const fd = await this.openRequest;
|
|
59
89
|
await closeAsync(fd);
|
|
60
90
|
}
|
|
61
91
|
}
|
|
92
|
+
/** @param {string} path */
|
|
62
93
|
function makeFileSource(path) {
|
|
63
94
|
return new FileSource(path);
|
|
64
95
|
}
|
|
96
|
+
//# sourceMappingURL=file.js.map
|
|
65
97
|
//# sourceMappingURL=file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../dist-module/source/file.js"],"names":[],"mappings":";;;;;
|
|
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|
* @param {Blob} file The file or blob to read from.
|
|
4
|
-
* @returns The constructed source
|
|
4
|
+
* @returns {FileReaderSource} The constructed source
|
|
5
5
|
*/
|
|
6
6
|
export function makeFileReaderSource(file: Blob): FileReaderSource;
|
|
7
7
|
declare class FileReaderSource extends BaseSource {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
/**
|
|
9
|
+
* @param {Blob} file
|
|
10
|
+
*/
|
|
11
|
+
constructor(file: Blob);
|
|
12
|
+
file: Blob;
|
|
13
|
+
/**
|
|
14
|
+
* @param {import('./basesource.js').Slice} slice
|
|
15
|
+
* @param {AbortSignal} signal
|
|
16
|
+
* @returns {Promise<import('./basesource.js').SliceWithData>}
|
|
17
|
+
*/
|
|
18
|
+
fetchSlice(slice: import("./basesource.js").Slice, signal: AbortSignal): Promise<import("./basesource.js").SliceWithData>;
|
|
11
19
|
}
|
|
12
20
|
import { BaseSource } from './basesource.js';
|
|
13
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filereader.d.ts","sourceRoot":"","sources":["../../dist-module/source/filereader.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filereader.d.ts","sourceRoot":"","sources":["../../dist-module/source/filereader.js"],"names":[],"mappings":"AAgCA;;;;GAIG;AACH,2CAHW,IAAI,GACF,gBAAgB,CAI5B;AAtCD;IACI;;OAEG;IACH,kBAFW,IAAI,EAKd;IADG,WAAgB;IAEpB;;;;OAIG;IACH,kBAJW,OAAO,iBAAiB,EAAE,KAAK,UAC/B,WAAW,GACT,OAAO,CAAC,OAAO,iBAAiB,EAAE,aAAa,CAAC,CAkB5D;CACJ;2BA/B0B,iBAAiB"}
|
|
@@ -3,15 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.makeFileReaderSource = makeFileReaderSource;
|
|
4
4
|
const basesource_js_1 = require("./basesource.js");
|
|
5
5
|
class FileReaderSource extends basesource_js_1.BaseSource {
|
|
6
|
+
/**
|
|
7
|
+
* @param {Blob} file
|
|
8
|
+
*/
|
|
6
9
|
constructor(file) {
|
|
7
10
|
super();
|
|
8
11
|
this.file = file;
|
|
9
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* @param {import('./basesource.js').Slice} slice
|
|
15
|
+
* @param {AbortSignal} signal
|
|
16
|
+
* @returns {Promise<import('./basesource.js').SliceWithData>}
|
|
17
|
+
*/
|
|
10
18
|
async fetchSlice(slice, signal) {
|
|
11
19
|
return new Promise((resolve, reject) => {
|
|
12
20
|
const blob = this.file.slice(slice.offset, slice.offset + slice.length);
|
|
13
21
|
const reader = new FileReader();
|
|
14
|
-
reader.onload = () => resolve(
|
|
22
|
+
reader.onload = () => resolve({
|
|
23
|
+
data: /** @type {ArrayBuffer} */ (reader.result),
|
|
24
|
+
offset: slice.offset,
|
|
25
|
+
length: slice.length,
|
|
26
|
+
});
|
|
15
27
|
reader.onerror = reject;
|
|
16
28
|
reader.onabort = reject;
|
|
17
29
|
reader.readAsArrayBuffer(blob);
|
|
@@ -24,9 +36,10 @@ class FileReaderSource extends basesource_js_1.BaseSource {
|
|
|
24
36
|
/**
|
|
25
37
|
* Create a new source from a given file/blob.
|
|
26
38
|
* @param {Blob} file The file or blob to read from.
|
|
27
|
-
* @returns The constructed source
|
|
39
|
+
* @returns {FileReaderSource} The constructed source
|
|
28
40
|
*/
|
|
29
41
|
function makeFileReaderSource(file) {
|
|
30
42
|
return new FileReaderSource(file);
|
|
31
43
|
}
|
|
44
|
+
//# sourceMappingURL=filereader.js.map
|
|
32
45
|
//# sourceMappingURL=filereader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filereader.js","sourceRoot":"","sources":["../../dist-module/source/filereader.js"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"filereader.js","sourceRoot":"","sources":["../../dist-module/source/filereader.js"],"names":[],"mappings":";;AAqCA,oDAEC;AAvCD,mDAA6C;AAC7C,MAAM,gBAAiB,SAAQ,0BAAU;IACrC;;OAEG;IACH,YAAY,IAAI;QACZ,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IACD;;;;OAIG;IACH,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM;QAC1B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;YACxE,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;YAChC,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC;gBAC1B,IAAI,EAAE,0BAA0B,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;gBAChD,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,MAAM,EAAE,KAAK,CAAC,MAAM;aACvB,CAAC,CAAC;YACH,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;YACxB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;YACxB,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAC/B,IAAI,MAAM,EAAE,CAAC;gBACT,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;YAC3D,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AACD;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,IAAI;IACrC,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC;AACD,sCAAsC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Parse a 'Content-Type' header value to the content-type and parameters
|
|
3
|
-
* @param {string|
|
|
4
|
-
* @returns {{type: string|null, params:
|
|
3
|
+
* @param {string|undefined} rawContentType the raw string to parse from
|
|
4
|
+
* @returns {{type: string|null, params: Record<string, string>}}
|
|
5
5
|
* the parsed content type with the fields: type and params
|
|
6
6
|
*/
|
|
7
|
-
export function parseContentType(rawContentType: string |
|
|
7
|
+
export function parseContentType(rawContentType: string | undefined): {
|
|
8
8
|
type: string | null;
|
|
9
|
-
params:
|
|
9
|
+
params: Record<string, string>;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Parse a 'Content-Range' header value to its start, end, and total parts
|
|
13
|
-
* @param {string|
|
|
13
|
+
* @param {string|undefined} rawContentRange the raw string to parse from
|
|
14
14
|
* @returns {{start: number, end: number, total: number}} the parsed parts
|
|
15
15
|
*/
|
|
16
|
-
export function parseContentRange(rawContentRange: string |
|
|
16
|
+
export function parseContentRange(rawContentRange: string | undefined): {
|
|
17
17
|
start: number;
|
|
18
18
|
end: number;
|
|
19
19
|
total: number;
|
|
@@ -26,8 +26,15 @@ export function parseContentRange(rawContentRange: string | null): {
|
|
|
26
26
|
* - offset: the offset of the byterange within its originating file
|
|
27
27
|
* - length: the length of the byterange
|
|
28
28
|
* @param {ArrayBuffer} responseArrayBuffer the response to be parsed and split
|
|
29
|
-
* @param {
|
|
30
|
-
* @returns {
|
|
29
|
+
* @param {string} boundary the boundary string used to split the sections
|
|
30
|
+
* @returns {Array<{headers: Record<string, string>, data: ArrayBuffer, offset: number, length: number, fileSize: number}>}
|
|
31
|
+
* the parsed byteranges
|
|
31
32
|
*/
|
|
32
|
-
export function parseByteRanges(responseArrayBuffer: ArrayBuffer, boundary: string):
|
|
33
|
+
export function parseByteRanges(responseArrayBuffer: ArrayBuffer, boundary: string): Array<{
|
|
34
|
+
headers: Record<string, string>;
|
|
35
|
+
data: ArrayBuffer;
|
|
36
|
+
offset: number;
|
|
37
|
+
length: number;
|
|
38
|
+
fileSize: number;
|
|
39
|
+
}>;
|
|
33
40
|
//# sourceMappingURL=httputils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httputils.d.ts","sourceRoot":"","sources":["../../dist-module/source/httputils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"httputils.d.ts","sourceRoot":"","sources":["../../dist-module/source/httputils.js"],"names":[],"mappings":"AAkCA;;;;;GAKG;AACH,iDAJW,MAAM,GAAC,SAAS,GACd;IAAC,IAAI,EAAE,MAAM,GAAC,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAC,CAU/D;AACD;;;;GAIG;AACH,mDAHW,MAAM,GAAC,SAAS,GACd;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAUvD;AACD;;;;;;;;;;;GAWG;AACH,qDALW,WAAW,YACX,MAAM,GACJ,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC,CAAC,CAqDzH"}
|
|
@@ -4,13 +4,17 @@ exports.parseContentType = parseContentType;
|
|
|
4
4
|
exports.parseContentRange = parseContentRange;
|
|
5
5
|
exports.parseByteRanges = parseByteRanges;
|
|
6
6
|
const CRLFCRLF = '\r\n\r\n';
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
8
|
* Shim for 'Object.fromEntries'
|
|
9
|
+
* @template T
|
|
10
|
+
* @param {Array<[string, T]>} items
|
|
11
|
+
* @return {Record<string, T>}
|
|
9
12
|
*/
|
|
10
13
|
function itemsToObject(items) {
|
|
11
14
|
if (typeof Object.fromEntries !== 'undefined') {
|
|
12
15
|
return Object.fromEntries(items);
|
|
13
16
|
}
|
|
17
|
+
/** @type {Record<string, T>} */
|
|
14
18
|
const obj = {};
|
|
15
19
|
for (const [key, value] of items) {
|
|
16
20
|
obj[key.toLowerCase()] = value;
|
|
@@ -19,14 +23,15 @@ function itemsToObject(items) {
|
|
|
19
23
|
}
|
|
20
24
|
/**
|
|
21
25
|
* Parse HTTP headers from a given string.
|
|
22
|
-
* @param {
|
|
23
|
-
* @returns {
|
|
26
|
+
* @param {string} text the text to parse the headers from
|
|
27
|
+
* @returns {Record<string, string>} the parsed headers with lowercase keys
|
|
24
28
|
*/
|
|
25
29
|
function parseHeaders(text) {
|
|
30
|
+
/** @type {Array<[string, string]>} */
|
|
26
31
|
const items = text
|
|
27
32
|
.split('\r\n')
|
|
28
33
|
.map((line) => {
|
|
29
|
-
const kv = line.split(':').map((str) => str.trim());
|
|
34
|
+
const kv = /** @type {[string, string]} */ (line.split(':').map((str) => str.trim()));
|
|
30
35
|
kv[0] = kv[0].toLowerCase();
|
|
31
36
|
return kv;
|
|
32
37
|
});
|
|
@@ -34,8 +39,8 @@ function parseHeaders(text) {
|
|
|
34
39
|
}
|
|
35
40
|
/**
|
|
36
41
|
* Parse a 'Content-Type' header value to the content-type and parameters
|
|
37
|
-
* @param {string|
|
|
38
|
-
* @returns {{type: string|null, params:
|
|
42
|
+
* @param {string|undefined} rawContentType the raw string to parse from
|
|
43
|
+
* @returns {{type: string|null, params: Record<string, string>}}
|
|
39
44
|
* the parsed content type with the fields: type and params
|
|
40
45
|
*/
|
|
41
46
|
function parseContentType(rawContentType) {
|
|
@@ -43,12 +48,12 @@ function parseContentType(rawContentType) {
|
|
|
43
48
|
return { type: null, params: {} };
|
|
44
49
|
}
|
|
45
50
|
const [type, ...rawParams] = rawContentType.split(';').map((s) => s.trim());
|
|
46
|
-
const paramsItems = rawParams.map((param) => param.split('='));
|
|
51
|
+
const paramsItems = /** @type {Array<[string, string]>} */ (rawParams.map((param) => param.split('=')));
|
|
47
52
|
return { type, params: itemsToObject(paramsItems) };
|
|
48
53
|
}
|
|
49
54
|
/**
|
|
50
55
|
* Parse a 'Content-Range' header value to its start, end, and total parts
|
|
51
|
-
* @param {string|
|
|
56
|
+
* @param {string|undefined} rawContentRange the raw string to parse from
|
|
52
57
|
* @returns {{start: number, end: number, total: number}} the parsed parts
|
|
53
58
|
*/
|
|
54
59
|
function parseContentRange(rawContentRange) {
|
|
@@ -68,11 +73,12 @@ function parseContentRange(rawContentRange) {
|
|
|
68
73
|
* - offset: the offset of the byterange within its originating file
|
|
69
74
|
* - length: the length of the byterange
|
|
70
75
|
* @param {ArrayBuffer} responseArrayBuffer the response to be parsed and split
|
|
71
|
-
* @param {
|
|
72
|
-
* @returns {
|
|
76
|
+
* @param {string} boundary the boundary string used to split the sections
|
|
77
|
+
* @returns {Array<{headers: Record<string, string>, data: ArrayBuffer, offset: number, length: number, fileSize: number}>}
|
|
78
|
+
* the parsed byteranges
|
|
73
79
|
*/
|
|
74
80
|
function parseByteRanges(responseArrayBuffer, boundary) {
|
|
75
|
-
let offset =
|
|
81
|
+
let offset = -1;
|
|
76
82
|
const decoder = new TextDecoder('ascii');
|
|
77
83
|
const out = [];
|
|
78
84
|
const startBoundary = `--${boundary}`;
|
|
@@ -85,7 +91,7 @@ function parseByteRanges(responseArrayBuffer, boundary) {
|
|
|
85
91
|
offset = i;
|
|
86
92
|
}
|
|
87
93
|
}
|
|
88
|
-
if (offset ===
|
|
94
|
+
if (offset === -1) {
|
|
89
95
|
throw new Error('Could not find initial boundary');
|
|
90
96
|
}
|
|
91
97
|
while (offset < responseArrayBuffer.byteLength) {
|
|
@@ -122,4 +128,5 @@ function parseByteRanges(responseArrayBuffer, boundary) {
|
|
|
122
128
|
}
|
|
123
129
|
return out;
|
|
124
130
|
}
|
|
131
|
+
//# sourceMappingURL=httputils.js.map
|
|
125
132
|
//# sourceMappingURL=httputils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httputils.js","sourceRoot":"","sources":["../../dist-module/source/httputils.js"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"httputils.js","sourceRoot":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AC,EAAE,YAAY,CAAC,CAAC,CAAC;QAChE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;QAC1E,wDAAwD;QACxD,MAAM,WAAW,GAAG,MAAM,GAAG,aAAa,CAAC,MAAM,GAAG,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC;QACnF,MAAM,MAAM,GAAG,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC;QAC/B,GAAG,CAAC,IAAI,CAAC;YACL,OAAO;YACP,IAAI,EAAE,mBAAmB,CAAC,KAAK,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAAC;YAClE,MAAM,EAAE,KAAK;YACb,MAAM;YACN,QAAQ,EAAE,KAAK;SAClB,CAAC,CAAC;QACH,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,CAAC,CAAC;IACtC,CAAC;IACD,OAAO,GAAG,CAAC;AACf,CAAC;AACD,qCAAqC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../dist-module/source/remote.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../dist-module/source/remote.js"],"names":[],"mappings":"AA6JA;;;;GAIG;AACH,qCAJW,MAAM,wEACN,mBAAmB,GAAG,oBAAoB,GAAG;IAAE,WAAW,CAAC,EAAE,kBAAkB,CAAA;CAAC,GAC9E,UAAU,CAMtB;AACD;;;;GAIG;AACH,mCAJW,MAAM,2DACN,mBAAmB,GAAG,oBAAoB,GACxC,UAAU,CAMtB;AACD;;;;GAIG;AACH,oCAJW,MAAM,2DACN,mBAAmB,GAAG,oBAAoB,GACxC,UAAU,CAMtB;AACD;;;;GAIG;AACH,yCAJW,OAAO,YAAY,EAAE,UAAU,2DAC/B,mBAAmB,GAAG,oBAAoB,GACxC,UAAU,CAKtB;AACD;;;;GAIG;AACH,sCAHW,MAAM,mCACN,mBAAmB,cAU7B;yCA3M8D,eAAe;0CAAf,eAAe;2BALnD,iBAAiB"}
|