@loaders.gl/core 4.2.0-alpha.6 → 4.2.0-beta.1
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.dev.js +1941 -1894
- package/dist/dist.min.js +3 -3
- package/dist/index.cjs +110 -68
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/lib/api/select-loader.d.ts.map +1 -1
- package/dist/lib/api/select-loader.js +3 -2
- package/dist/lib/fetch/fetch-error-message.d.ts.map +1 -1
- package/dist/lib/fetch/fetch-error-message.js +2 -0
- package/dist/lib/fetch/fetch-error.d.ts +14 -0
- package/dist/lib/fetch/fetch-error.d.ts.map +1 -0
- package/dist/lib/fetch/fetch-error.js +17 -0
- package/dist/lib/fetch/fetch-file.d.ts.map +1 -1
- package/dist/lib/fetch/fetch-file.js +1 -0
- package/dist/lib/init.js +1 -1
- package/dist/lib/loader-utils/option-utils.d.ts +1 -1
- package/dist/lib/loader-utils/option-utils.d.ts.map +1 -1
- package/dist/lib/loader-utils/option-utils.js +3 -0
- package/dist/lib/utils/mime-type-utils.d.ts +8 -0
- package/dist/lib/utils/mime-type-utils.d.ts.map +1 -1
- package/dist/lib/utils/mime-type-utils.js +13 -0
- package/dist/lib/utils/response-utils.d.ts.map +1 -1
- package/dist/lib/utils/response-utils.js +16 -10
- package/dist/lib/utils/url-utils.d.ts +1 -0
- package/dist/lib/utils/url-utils.d.ts.map +1 -1
- package/dist/lib/utils/url-utils.js +8 -0
- package/dist/null-loader.d.ts +40 -3
- package/dist/null-loader.d.ts.map +1 -1
- package/dist/null-loader.js +5 -1
- package/dist/null-worker-node.js +3 -1
- package/dist/null-worker.js +3 -1
- package/package.json +5 -5
- package/src/index.ts +1 -0
- package/src/lib/api/select-loader.ts +3 -2
- package/src/lib/fetch/fetch-error-message.ts +2 -0
- package/src/lib/fetch/fetch-error.ts +18 -0
- package/src/lib/fetch/fetch-file.ts +1 -0
- package/src/lib/loader-utils/option-utils.ts +3 -1
- package/src/lib/utils/mime-type-utils.ts +14 -0
- package/src/lib/utils/response-utils.ts +19 -11
- package/src/lib/utils/url-utils.ts +9 -0
- package/src/null-loader.ts +9 -4
package/src/null-loader.ts
CHANGED
|
@@ -16,7 +16,9 @@ export type NullLoaderOptions = LoaderOptions & {
|
|
|
16
16
|
/**
|
|
17
17
|
* Loads any data and returns null (or optionally passes through data unparsed)
|
|
18
18
|
*/
|
|
19
|
-
export const NullWorkerLoader
|
|
19
|
+
export const NullWorkerLoader = {
|
|
20
|
+
dataType: null,
|
|
21
|
+
batchType: null as never,
|
|
20
22
|
name: 'Null loader',
|
|
21
23
|
id: 'null',
|
|
22
24
|
module: 'core',
|
|
@@ -28,12 +30,15 @@ export const NullWorkerLoader: Loader<null, never, NullLoaderOptions> = {
|
|
|
28
30
|
options: {
|
|
29
31
|
null: {}
|
|
30
32
|
}
|
|
31
|
-
}
|
|
33
|
+
} as const satisfies Loader<null, never, NullLoaderOptions>;
|
|
32
34
|
|
|
33
35
|
/**
|
|
34
36
|
* Loads any data and returns null (or optionally passes through data unparsed)
|
|
35
37
|
*/
|
|
36
|
-
export const NullLoader
|
|
38
|
+
export const NullLoader = {
|
|
39
|
+
dataType: null,
|
|
40
|
+
batchType: null,
|
|
41
|
+
|
|
37
42
|
name: 'Null loader',
|
|
38
43
|
id: 'null',
|
|
39
44
|
module: 'core',
|
|
@@ -52,7 +57,7 @@ export const NullLoader: LoaderWithParser<null, null, NullLoaderOptions> = {
|
|
|
52
57
|
options: {
|
|
53
58
|
null: {}
|
|
54
59
|
}
|
|
55
|
-
}
|
|
60
|
+
} as const satisfies LoaderWithParser<null, null, NullLoaderOptions>;
|
|
56
61
|
|
|
57
62
|
/**
|
|
58
63
|
* Returns arguments passed to the parse API in a format that can be transferred to a
|