@loaders.gl/polyfills 3.2.7 → 3.3.0-alpha.3
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/dist.min.js +3 -1
- package/dist/es5/index.js +6 -0
- package/dist/es5/index.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/package.json +2 -2
- package/src/index.ts +1 -0
package/dist/dist.min.js
CHANGED
|
@@ -3924,9 +3924,10 @@
|
|
|
3924
3924
|
FilePolyfill: () => import_file2.FilePolyfill,
|
|
3925
3925
|
FileReaderPolyfill: () => FileReaderPolyfill,
|
|
3926
3926
|
ReadableStreamPolyfill: () => import_readable_stream2.ReadableStreamPolyfill,
|
|
3927
|
+
_fetchNode: () => import_fetch2.default,
|
|
3927
3928
|
installFilePolyfills: () => installFilePolyfills
|
|
3928
3929
|
});
|
|
3929
|
-
var import_xmldom, import_headers, import_response, import_fetch, installTextEncoder, installTextDecoder;
|
|
3930
|
+
var import_xmldom, import_headers, import_response, import_fetch, import_fetch2, installTextEncoder, installTextDecoder;
|
|
3930
3931
|
var init_src = __esm({
|
|
3931
3932
|
"src/index.ts"() {
|
|
3932
3933
|
import_xmldom = __toModule(require_lib());
|
|
@@ -3944,6 +3945,7 @@
|
|
|
3944
3945
|
init_file_reader();
|
|
3945
3946
|
init_file();
|
|
3946
3947
|
init_install_file_polyfills();
|
|
3948
|
+
import_fetch2 = __toModule(require_fetch());
|
|
3947
3949
|
installTextEncoder = !isBrowser || !("TextEncoder" in global_);
|
|
3948
3950
|
if (installTextEncoder) {
|
|
3949
3951
|
global_["TextEncoder"] = TextEncoder;
|
package/dist/es5/index.js
CHANGED
|
@@ -7,6 +7,12 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
+
Object.defineProperty(exports, "_fetchNode", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _fetch.default;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
10
16
|
Object.defineProperty(exports, "ReadableStreamPolyfill", {
|
|
11
17
|
enumerable: true,
|
|
12
18
|
get: function get() {
|
package/dist/es5/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"names":["installTextEncoder","isBrowser","global","TextEncoder","installTextDecoder","TextDecoder","base64","atob","btoa","HeadersNode","ResponseNode","fetchNode","DOMParser","encodeImageNode","parseImageNode","Promise","allSettled"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"names":["installTextEncoder","isBrowser","global","TextEncoder","installTextDecoder","TextDecoder","base64","atob","btoa","HeadersNode","ResponseNode","fetchNode","DOMParser","encodeImageNode","parseImageNode","Promise","allSettled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;AAEA;;AACA;;AAGA;;AAEA;;AACA;;AACA;;AAEA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;;;;;AAOA,IAAMA,kBAAkB,GAAG,CAACC,kBAAD,IAAc,EAAE,iBAAiBC,eAAnB,CAAzC;;AACA,IAAIF,kBAAJ,EAAwB;AACtBE,kBAAO,aAAP,IAAwBC,qBAAxB;AACD;;AAED,IAAMC,kBAAkB,GAAG,CAACH,kBAAD,IAAc,EAAE,iBAAiBC,eAAnB,CAAzC;;AACA,IAAIE,kBAAJ,EAAwB;AACtBF,kBAAO,aAAP,IAAwBG,qBAAxB;AACD;;AAMD,IAAI,CAACJ,kBAAD,IAAc,EAAE,UAAUC,eAAZ,CAAd,IAAqCI,MAAM,CAACC,IAAhD,EAAsD;AACpDL,kBAAO,MAAP,IAAiBI,MAAM,CAACC,IAAxB;AACD;;AACD,IAAI,CAACN,kBAAD,IAAc,EAAE,UAAUC,eAAZ,CAAd,IAAqCI,MAAM,CAACE,IAAhD,EAAsD;AACpDN,kBAAO,MAAP,IAAiBI,MAAM,CAACE,IAAxB;AACD;;AAMD,IAAI,CAACP,kBAAD,IAAc,EAAE,aAAaC,eAAf,CAAd,IAAwCO,gBAA5C,EAAyD;AACvDP,kBAAO,SAAP,IAAoBO,gBAApB;AACD;;AAED,IAAI,CAACR,kBAAD,IAAc,EAAE,cAAcC,eAAhB,CAAd,IAAyCQ,iBAA7C,EAA2D;AACzDR,kBAAO,UAAP,IAAqBQ,iBAArB;AACD;;AAED,IAAI,CAACT,kBAAD,IAAc,EAAE,WAAWC,eAAb,CAAd,IAAsCS,cAA1C,EAAqD;AACnDT,kBAAO,OAAP,IAAkBS,cAAlB;AACD;;AAMD,IAAI,CAACV,kBAAD,IAAc,EAAE,eAAeC,eAAjB,CAAd,IAA0CU,iBAA9C,EAAyD;AACvDV,kBAAO,WAAP,IAAsBU,iBAAtB;AACD;;AAMD,IAAI,CAACX,kBAAD,IAAc,EAAE,sBAAsBC,eAAxB,CAAd,IAAiDW,4BAArD,EAAsE;AACpEX,kBAAO,kBAAP,IAA6BW,4BAA7B;AACD;;AAED,IAAI,CAACZ,kBAAD,IAAc,EAAE,qBAAqBC,eAAvB,CAAd,IAAgDY,0BAApD,EAAoE;AAClEZ,kBAAO,iBAAP,IAA4BY,0BAA5B;AACD;;AAED,IAAI,EAAE,gBAAgBC,OAAlB,CAAJ,EAAgC;AAE9BA,EAAAA,OAAO,CAACC,UAAR,GAAqBA,sBAArB;AACD","sourcesContent":["/* eslint-disable dot-notation */\nimport {DOMParser} from '@xmldom/xmldom';\nimport {isBrowser, global} from './utils/globals';\n\nimport {TextDecoder, TextEncoder} from './lib/encoding';\nimport {allSettled} from './promise/all-settled';\n\n// Node specific\nimport * as base64 from './node/buffer/btoa.node';\n\nimport HeadersNode from './node/fetch/headers.node';\nimport ResponseNode from './node/fetch/response.node';\nimport fetchNode from './node/fetch/fetch.node';\n\nimport {encodeImageNode} from './node/images/encode-image.node';\nimport {parseImageNode} from './node/images/parse-image.node';\n\nexport {ReadableStreamPolyfill} from './node/file/readable-stream';\nexport {BlobPolyfill} from './node/file/blob';\nexport {FileReaderPolyfill} from './node/file/file-reader';\nexport {FilePolyfill} from './node/file/file';\nexport {installFilePolyfills} from './node/file/install-file-polyfills';\nexport {default as _fetchNode} from './node/fetch/fetch.node';\n\n// POLYFILLS: TextEncoder, TextDecoder\n// - Recent Node versions have these classes but virtually no encodings unless special build.\n// - Browser: Edge, IE11 do not have these\n\nconst installTextEncoder = !isBrowser || !('TextEncoder' in global);\nif (installTextEncoder) {\n global['TextEncoder'] = TextEncoder;\n}\n\nconst installTextDecoder = !isBrowser || !('TextDecoder' in global);\nif (installTextDecoder) {\n global['TextDecoder'] = TextDecoder;\n}\n\n// POLYFILLS: btoa, atob\n// - Node: Yes\n// - Browser: No\n\nif (!isBrowser && !('atob' in global) && base64.atob) {\n global['atob'] = base64.atob;\n}\nif (!isBrowser && !('btoa' in global) && base64.btoa) {\n global['btoa'] = base64.btoa;\n}\n\n// POLYFILL: fetch\n// - Node: Yes\n// - Browser: No. For This polyfill is node only, IE11 etc, install external polyfill\n\nif (!isBrowser && !('Headers' in global) && HeadersNode) {\n global['Headers'] = HeadersNode;\n}\n\nif (!isBrowser && !('Response' in global) && ResponseNode) {\n global['Response'] = ResponseNode;\n}\n\nif (!isBrowser && !('fetch' in global) && fetchNode) {\n global['fetch'] = fetchNode;\n}\n\n// POLYFILL: DOMParser\n// - Node: Yes\n// - Browser: No\n\nif (!isBrowser && !('DOMParser' in global) && DOMParser) {\n global['DOMParser'] = DOMParser;\n}\n\n// NODE IMAGE FUNCTIONS:\n// These are not official polyfills but used by the @loaders.gl/images module if installed\n// TODO - is there an appropriate Image API we could polyfill using an adapter?\n\nif (!isBrowser && !('_encodeImageNode' in global) && encodeImageNode) {\n global['_encodeImageNode'] = encodeImageNode;\n}\n\nif (!isBrowser && !('_parseImageNode' in global) && parseImageNode) {\n global['_parseImageNode'] = parseImageNode;\n}\n\nif (!('allSettled' in Promise)) {\n // @ts-ignore\n Promise.allSettled = allSettled;\n}\n"],"file":"index.js"}
|
package/dist/esm/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export { BlobPolyfill } from './node/file/blob';
|
|
|
13
13
|
export { FileReaderPolyfill } from './node/file/file-reader';
|
|
14
14
|
export { FilePolyfill } from './node/file/file';
|
|
15
15
|
export { installFilePolyfills } from './node/file/install-file-polyfills';
|
|
16
|
+
export { default as _fetchNode } from './node/fetch/fetch.node';
|
|
16
17
|
const installTextEncoder = !isBrowser || !('TextEncoder' in global);
|
|
17
18
|
|
|
18
19
|
if (installTextEncoder) {
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"names":["DOMParser","isBrowser","global","TextDecoder","TextEncoder","allSettled","base64","HeadersNode","ResponseNode","fetchNode","encodeImageNode","parseImageNode","ReadableStreamPolyfill","BlobPolyfill","FileReaderPolyfill","FilePolyfill","installFilePolyfills","installTextEncoder","installTextDecoder","atob","btoa","Promise"],"mappings":"AACA,SAAQA,SAAR,QAAwB,gBAAxB;AACA,SAAQC,SAAR,EAAmBC,MAAnB,QAAgC,iBAAhC;AAEA,SAAQC,WAAR,EAAqBC,WAArB,QAAuC,gBAAvC;AACA,SAAQC,UAAR,QAAyB,uBAAzB;AAGA,OAAO,KAAKC,MAAZ,MAAwB,yBAAxB;AAEA,OAAOC,WAAP,MAAwB,2BAAxB;AACA,OAAOC,YAAP,MAAyB,4BAAzB;AACA,OAAOC,SAAP,MAAsB,yBAAtB;AAEA,SAAQC,eAAR,QAA8B,iCAA9B;AACA,SAAQC,cAAR,QAA6B,gCAA7B;AAEA,SAAQC,sBAAR,QAAqC,6BAArC;AACA,SAAQC,YAAR,QAA2B,kBAA3B;AACA,SAAQC,kBAAR,QAAiC,yBAAjC;AACA,SAAQC,YAAR,QAA2B,kBAA3B;AACA,SAAQC,oBAAR,QAAmC,oCAAnC;AAMA,MAAMC,kBAAkB,GAAG,
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"names":["DOMParser","isBrowser","global","TextDecoder","TextEncoder","allSettled","base64","HeadersNode","ResponseNode","fetchNode","encodeImageNode","parseImageNode","ReadableStreamPolyfill","BlobPolyfill","FileReaderPolyfill","FilePolyfill","installFilePolyfills","default","_fetchNode","installTextEncoder","installTextDecoder","atob","btoa","Promise"],"mappings":"AACA,SAAQA,SAAR,QAAwB,gBAAxB;AACA,SAAQC,SAAR,EAAmBC,MAAnB,QAAgC,iBAAhC;AAEA,SAAQC,WAAR,EAAqBC,WAArB,QAAuC,gBAAvC;AACA,SAAQC,UAAR,QAAyB,uBAAzB;AAGA,OAAO,KAAKC,MAAZ,MAAwB,yBAAxB;AAEA,OAAOC,WAAP,MAAwB,2BAAxB;AACA,OAAOC,YAAP,MAAyB,4BAAzB;AACA,OAAOC,SAAP,MAAsB,yBAAtB;AAEA,SAAQC,eAAR,QAA8B,iCAA9B;AACA,SAAQC,cAAR,QAA6B,gCAA7B;AAEA,SAAQC,sBAAR,QAAqC,6BAArC;AACA,SAAQC,YAAR,QAA2B,kBAA3B;AACA,SAAQC,kBAAR,QAAiC,yBAAjC;AACA,SAAQC,YAAR,QAA2B,kBAA3B;AACA,SAAQC,oBAAR,QAAmC,oCAAnC;AACA,SAAQC,OAAO,IAAIC,UAAnB,QAAoC,yBAApC;AAMA,MAAMC,kBAAkB,GAAG,CAAClB,SAAD,IAAc,EAAE,iBAAiBC,MAAnB,CAAzC;;AACA,IAAIiB,kBAAJ,EAAwB;AACtBjB,EAAAA,MAAM,CAAC,aAAD,CAAN,GAAwBE,WAAxB;AACD;;AAED,MAAMgB,kBAAkB,GAAG,CAACnB,SAAD,IAAc,EAAE,iBAAiBC,MAAnB,CAAzC;;AACA,IAAIkB,kBAAJ,EAAwB;AACtBlB,EAAAA,MAAM,CAAC,aAAD,CAAN,GAAwBC,WAAxB;AACD;;AAMD,IAAI,CAACF,SAAD,IAAc,EAAE,UAAUC,MAAZ,CAAd,IAAqCI,MAAM,CAACe,IAAhD,EAAsD;AACpDnB,EAAAA,MAAM,CAAC,MAAD,CAAN,GAAiBI,MAAM,CAACe,IAAxB;AACD;;AACD,IAAI,CAACpB,SAAD,IAAc,EAAE,UAAUC,MAAZ,CAAd,IAAqCI,MAAM,CAACgB,IAAhD,EAAsD;AACpDpB,EAAAA,MAAM,CAAC,MAAD,CAAN,GAAiBI,MAAM,CAACgB,IAAxB;AACD;;AAMD,IAAI,CAACrB,SAAD,IAAc,EAAE,aAAaC,MAAf,CAAd,IAAwCK,WAA5C,EAAyD;AACvDL,EAAAA,MAAM,CAAC,SAAD,CAAN,GAAoBK,WAApB;AACD;;AAED,IAAI,CAACN,SAAD,IAAc,EAAE,cAAcC,MAAhB,CAAd,IAAyCM,YAA7C,EAA2D;AACzDN,EAAAA,MAAM,CAAC,UAAD,CAAN,GAAqBM,YAArB;AACD;;AAED,IAAI,CAACP,SAAD,IAAc,EAAE,WAAWC,MAAb,CAAd,IAAsCO,SAA1C,EAAqD;AACnDP,EAAAA,MAAM,CAAC,OAAD,CAAN,GAAkBO,SAAlB;AACD;;AAMD,IAAI,CAACR,SAAD,IAAc,EAAE,eAAeC,MAAjB,CAAd,IAA0CF,SAA9C,EAAyD;AACvDE,EAAAA,MAAM,CAAC,WAAD,CAAN,GAAsBF,SAAtB;AACD;;AAMD,IAAI,CAACC,SAAD,IAAc,EAAE,sBAAsBC,MAAxB,CAAd,IAAiDQ,eAArD,EAAsE;AACpER,EAAAA,MAAM,CAAC,kBAAD,CAAN,GAA6BQ,eAA7B;AACD;;AAED,IAAI,CAACT,SAAD,IAAc,EAAE,qBAAqBC,MAAvB,CAAd,IAAgDS,cAApD,EAAoE;AAClET,EAAAA,MAAM,CAAC,iBAAD,CAAN,GAA4BS,cAA5B;AACD;;AAED,IAAI,EAAE,gBAAgBY,OAAlB,CAAJ,EAAgC;AAE9BA,EAAAA,OAAO,CAAClB,UAAR,GAAqBA,UAArB;AACD","sourcesContent":["/* eslint-disable dot-notation */\nimport {DOMParser} from '@xmldom/xmldom';\nimport {isBrowser, global} from './utils/globals';\n\nimport {TextDecoder, TextEncoder} from './lib/encoding';\nimport {allSettled} from './promise/all-settled';\n\n// Node specific\nimport * as base64 from './node/buffer/btoa.node';\n\nimport HeadersNode from './node/fetch/headers.node';\nimport ResponseNode from './node/fetch/response.node';\nimport fetchNode from './node/fetch/fetch.node';\n\nimport {encodeImageNode} from './node/images/encode-image.node';\nimport {parseImageNode} from './node/images/parse-image.node';\n\nexport {ReadableStreamPolyfill} from './node/file/readable-stream';\nexport {BlobPolyfill} from './node/file/blob';\nexport {FileReaderPolyfill} from './node/file/file-reader';\nexport {FilePolyfill} from './node/file/file';\nexport {installFilePolyfills} from './node/file/install-file-polyfills';\nexport {default as _fetchNode} from './node/fetch/fetch.node';\n\n// POLYFILLS: TextEncoder, TextDecoder\n// - Recent Node versions have these classes but virtually no encodings unless special build.\n// - Browser: Edge, IE11 do not have these\n\nconst installTextEncoder = !isBrowser || !('TextEncoder' in global);\nif (installTextEncoder) {\n global['TextEncoder'] = TextEncoder;\n}\n\nconst installTextDecoder = !isBrowser || !('TextDecoder' in global);\nif (installTextDecoder) {\n global['TextDecoder'] = TextDecoder;\n}\n\n// POLYFILLS: btoa, atob\n// - Node: Yes\n// - Browser: No\n\nif (!isBrowser && !('atob' in global) && base64.atob) {\n global['atob'] = base64.atob;\n}\nif (!isBrowser && !('btoa' in global) && base64.btoa) {\n global['btoa'] = base64.btoa;\n}\n\n// POLYFILL: fetch\n// - Node: Yes\n// - Browser: No. For This polyfill is node only, IE11 etc, install external polyfill\n\nif (!isBrowser && !('Headers' in global) && HeadersNode) {\n global['Headers'] = HeadersNode;\n}\n\nif (!isBrowser && !('Response' in global) && ResponseNode) {\n global['Response'] = ResponseNode;\n}\n\nif (!isBrowser && !('fetch' in global) && fetchNode) {\n global['fetch'] = fetchNode;\n}\n\n// POLYFILL: DOMParser\n// - Node: Yes\n// - Browser: No\n\nif (!isBrowser && !('DOMParser' in global) && DOMParser) {\n global['DOMParser'] = DOMParser;\n}\n\n// NODE IMAGE FUNCTIONS:\n// These are not official polyfills but used by the @loaders.gl/images module if installed\n// TODO - is there an appropriate Image API we could polyfill using an adapter?\n\nif (!isBrowser && !('_encodeImageNode' in global) && encodeImageNode) {\n global['_encodeImageNode'] = encodeImageNode;\n}\n\nif (!isBrowser && !('_parseImageNode' in global) && parseImageNode) {\n global['_parseImageNode'] = parseImageNode;\n}\n\nif (!('allSettled' in Promise)) {\n // @ts-ignore\n Promise.allSettled = allSettled;\n}\n"],"file":"index.js"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ export { BlobPolyfill } from './node/file/blob';
|
|
|
3
3
|
export { FileReaderPolyfill } from './node/file/file-reader';
|
|
4
4
|
export { FilePolyfill } from './node/file/file';
|
|
5
5
|
export { installFilePolyfills } from './node/file/install-file-polyfills';
|
|
6
|
+
export { default as _fetchNode } from './node/fetch/fetch.node';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAC,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAC,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
22
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.installFilePolyfills = exports.FilePolyfill = exports.FileReaderPolyfill = exports.BlobPolyfill = exports.ReadableStreamPolyfill = void 0;
|
|
25
|
+
exports._fetchNode = exports.installFilePolyfills = exports.FilePolyfill = exports.FileReaderPolyfill = exports.BlobPolyfill = exports.ReadableStreamPolyfill = void 0;
|
|
26
26
|
/* eslint-disable dot-notation */
|
|
27
27
|
const xmldom_1 = require("@xmldom/xmldom");
|
|
28
28
|
const globals_1 = require("./utils/globals");
|
|
@@ -45,6 +45,8 @@ var file_1 = require("./node/file/file");
|
|
|
45
45
|
Object.defineProperty(exports, "FilePolyfill", { enumerable: true, get: function () { return file_1.FilePolyfill; } });
|
|
46
46
|
var install_file_polyfills_1 = require("./node/file/install-file-polyfills");
|
|
47
47
|
Object.defineProperty(exports, "installFilePolyfills", { enumerable: true, get: function () { return install_file_polyfills_1.installFilePolyfills; } });
|
|
48
|
+
var fetch_node_2 = require("./node/fetch/fetch.node");
|
|
49
|
+
Object.defineProperty(exports, "_fetchNode", { enumerable: true, get: function () { return __importDefault(fetch_node_2).default; } });
|
|
48
50
|
// POLYFILLS: TextEncoder, TextDecoder
|
|
49
51
|
// - Recent Node versions have these classes but virtually no encodings unless special build.
|
|
50
52
|
// - Browser: Edge, IE11 do not have these
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/polyfills",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0-alpha.3",
|
|
4
4
|
"description": "Polyfills for TextEncoder/TextDecoder",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"through": "^2.3.8",
|
|
106
106
|
"web-streams-polyfill": "^3.0.0"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "232fdc52fcbee10d8322fd8a4589680943f10517"
|
|
109
109
|
}
|
package/src/index.ts
CHANGED
|
@@ -20,6 +20,7 @@ export {BlobPolyfill} from './node/file/blob';
|
|
|
20
20
|
export {FileReaderPolyfill} from './node/file/file-reader';
|
|
21
21
|
export {FilePolyfill} from './node/file/file';
|
|
22
22
|
export {installFilePolyfills} from './node/file/install-file-polyfills';
|
|
23
|
+
export {default as _fetchNode} from './node/fetch/fetch.node';
|
|
23
24
|
|
|
24
25
|
// POLYFILLS: TextEncoder, TextDecoder
|
|
25
26
|
// - Recent Node versions have these classes but virtually no encodings unless special build.
|