@ember-data/request-utils 5.4.0-alpha.33 → 5.4.0-alpha.35
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data/request-utils",
|
|
3
3
|
"description": "Request Building Utilities for use with EmberData",
|
|
4
|
-
"version": "5.4.0-alpha.
|
|
4
|
+
"version": "5.4.0-alpha.35",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Chris Thoburn <runspired@users.noreply.github.com>",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"extends": "../../package.json"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@warp-drive/core-types": "0.0.0-alpha.
|
|
25
|
+
"@warp-drive/core-types": "0.0.0-alpha.21"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"ember-cli-babel": "^8.2.0",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@glimmer/component": "^1.1.2",
|
|
57
57
|
"@rollup/plugin-babel": "^6.0.4",
|
|
58
58
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
59
|
-
"@warp-drive/core-types": "0.0.0-alpha.
|
|
60
|
-
"@warp-drive/internal-config": "5.4.0-alpha.
|
|
59
|
+
"@warp-drive/core-types": "0.0.0-alpha.21",
|
|
60
|
+
"@warp-drive/internal-config": "5.4.0-alpha.35",
|
|
61
61
|
"ember-source": "~5.6.0",
|
|
62
62
|
"rollup": "^4.9.6",
|
|
63
63
|
"typescript": "^5.3.3",
|
|
@@ -90,7 +90,7 @@ declare module '@ember-data/request-utils' {
|
|
|
90
90
|
* @param {BuildURLConfig} config
|
|
91
91
|
* @return void
|
|
92
92
|
*/
|
|
93
|
-
export
|
|
93
|
+
export function setBuildURLConfig(config: BuildURLConfig): void;
|
|
94
94
|
export interface FindRecordUrlOptions {
|
|
95
95
|
op: 'findRecord';
|
|
96
96
|
identifier: {
|
|
@@ -218,7 +218,7 @@ declare module '@ember-data/request-utils' {
|
|
|
218
218
|
* @param urlOptions
|
|
219
219
|
* @return string
|
|
220
220
|
*/
|
|
221
|
-
export
|
|
221
|
+
export function buildBaseURL(urlOptions: UrlOptions): string;
|
|
222
222
|
/**
|
|
223
223
|
* filter out keys of an object that have falsy values or point to empty arrays
|
|
224
224
|
* returning a new object with only those keys that have truthy values / non-empty arrays
|
|
@@ -230,7 +230,7 @@ declare module '@ember-data/request-utils' {
|
|
|
230
230
|
* @param {Record<string, Serializable>} source object to filter keys with empty values from
|
|
231
231
|
* @return {Record<string, Serializable>} A new object with the keys that contained empty values removed
|
|
232
232
|
*/
|
|
233
|
-
export
|
|
233
|
+
export function filterEmpty(source: Record<string, Serializable>): Record<string, Serializable>;
|
|
234
234
|
/**
|
|
235
235
|
* Sorts query params by both key and value returning a new URLSearchParams
|
|
236
236
|
* object with the keys inserted in sorted order.
|
|
@@ -253,7 +253,7 @@ declare module '@ember-data/request-utils' {
|
|
|
253
253
|
* @param {object} options
|
|
254
254
|
* @return {URLSearchParams} A URLSearchParams with keys inserted in sorted order
|
|
255
255
|
*/
|
|
256
|
-
export
|
|
256
|
+
export function sortQueryParams(params: QueryParamsSource, options?: QueryParamsSerializationOptions): URLSearchParams;
|
|
257
257
|
/**
|
|
258
258
|
* Sorts query params by both key and value, returning a query params string
|
|
259
259
|
*
|
|
@@ -275,7 +275,7 @@ declare module '@ember-data/request-utils' {
|
|
|
275
275
|
* @param {object} [options]
|
|
276
276
|
* @return {string} A sorted query params string without the leading `?`
|
|
277
277
|
*/
|
|
278
|
-
export
|
|
278
|
+
export function buildQueryParams(params: QueryParamsSource, options?: QueryParamsSerializationOptions): string;
|
|
279
279
|
export interface CacheControlValue {
|
|
280
280
|
immutable?: boolean;
|
|
281
281
|
'max-age'?: number;
|
|
@@ -320,7 +320,7 @@ declare module '@ember-data/request-utils' {
|
|
|
320
320
|
* @param {string} header
|
|
321
321
|
* @return {CacheControlValue}
|
|
322
322
|
*/
|
|
323
|
-
export
|
|
323
|
+
export function parseCacheControl(header: string): CacheControlValue;
|
|
324
324
|
export type LifetimesConfig = {
|
|
325
325
|
apiCacheSoftExpires: number;
|
|
326
326
|
apiCacheHardExpires: number;
|
|
@@ -363,7 +363,7 @@ declare module '@ember-data/request-utils' {
|
|
|
363
363
|
* @public
|
|
364
364
|
* @module @ember-data/request-utils
|
|
365
365
|
*/
|
|
366
|
-
export
|
|
366
|
+
export class LifetimesService {
|
|
367
367
|
config: LifetimesConfig;
|
|
368
368
|
_stores: WeakMap<Store, {
|
|
369
369
|
invalidated: Set<string>;
|
|
@@ -468,5 +468,5 @@ declare module '@ember-data/request-utils' {
|
|
|
468
468
|
isSoftExpired(identifier: StableDocumentIdentifier, store: Store): boolean;
|
|
469
469
|
}
|
|
470
470
|
export {};
|
|
471
|
-
|
|
472
|
-
|
|
471
|
+
}
|
|
472
|
+
//# sourceMappingURL=index.d.ts.map
|