@ember-data/request-utils 5.6.0-alpha.5 → 5.6.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.
Files changed (30) hide show
  1. package/addon-main.cjs +1 -1
  2. package/dist/deprecation-support.js +9 -8
  3. package/dist/handlers.js +1 -141
  4. package/dist/index.js +6 -909
  5. package/dist/string.js +1 -2
  6. package/package.json +5 -11
  7. package/unstable-preview-types/deprecation-support.d.ts +2 -2
  8. package/unstable-preview-types/handlers.d.ts +8 -8
  9. package/unstable-preview-types/index.d.ts +10 -649
  10. package/unstable-preview-types/string.d.ts +13 -14
  11. package/dist/deprecation-support.js.map +0 -1
  12. package/dist/handlers.js.map +0 -1
  13. package/dist/index.js.map +0 -1
  14. package/dist/inflect-SV-gOUrZ.js +0 -267
  15. package/dist/inflect-SV-gOUrZ.js.map +0 -1
  16. package/dist/string.js.map +0 -1
  17. package/dist/transform-BixPrO0I.js +0 -173
  18. package/dist/transform-BixPrO0I.js.map +0 -1
  19. package/unstable-preview-types/-private/handlers/auto-compress.d.ts +0 -155
  20. package/unstable-preview-types/-private/handlers/auto-compress.d.ts.map +0 -1
  21. package/unstable-preview-types/-private/string/inflect.d.ts +0 -107
  22. package/unstable-preview-types/-private/string/inflect.d.ts.map +0 -1
  23. package/unstable-preview-types/-private/string/inflections.d.ts +0 -12
  24. package/unstable-preview-types/-private/string/inflections.d.ts.map +0 -1
  25. package/unstable-preview-types/-private/string/transform.d.ts +0 -102
  26. package/unstable-preview-types/-private/string/transform.d.ts.map +0 -1
  27. package/unstable-preview-types/deprecation-support.d.ts.map +0 -1
  28. package/unstable-preview-types/handlers.d.ts.map +0 -1
  29. package/unstable-preview-types/index.d.ts.map +0 -1
  30. package/unstable-preview-types/string.d.ts.map +0 -1
@@ -1,173 +0,0 @@
1
- import { macroCondition, getGlobalConfig } from '@embroider/macros';
2
- const DEFAULT_MAX_CACHE_SIZE = 10_000;
3
- class LRUCache {
4
- // debug stats
5
-
6
- constructor(doWork, size) {
7
- this.size = size || DEFAULT_MAX_CACHE_SIZE;
8
- this.state = new Map();
9
- this.doWork = doWork;
10
- if (macroCondition(getGlobalConfig().WarpDrive.env.DEBUG)) {
11
- this._hits = 0;
12
- this._misses = 0;
13
- this._ejected = 0;
14
- }
15
- }
16
- get(key) {
17
- const value = this.state.get(key);
18
- if (value) {
19
- if (macroCondition(getGlobalConfig().WarpDrive.env.DEBUG)) {
20
- this._hits++;
21
- }
22
- this.state.delete(key);
23
- this.state.set(key, value);
24
- return value;
25
- }
26
- if (macroCondition(getGlobalConfig().WarpDrive.env.DEBUG)) {
27
- this._misses++;
28
- }
29
- const newValue = this.doWork(key);
30
- this.set(key, newValue);
31
- return newValue;
32
- }
33
- set(key, value) {
34
- if (this.state.size === this.size) {
35
- for (const [k] of this.state) {
36
- if (macroCondition(getGlobalConfig().WarpDrive.env.DEBUG)) {
37
- this._ejected++;
38
- }
39
- this.state.delete(k);
40
- break;
41
- }
42
- }
43
- this.state.set(key, value);
44
- }
45
- clear() {
46
- this.state.clear();
47
- if (macroCondition(getGlobalConfig().WarpDrive.env.DEBUG)) {
48
- this._hits = 0;
49
- this._misses = 0;
50
- this._ejected = 0;
51
- }
52
- }
53
- }
54
- const STRING_DASHERIZE_REGEXP = /[ _]/g;
55
- const STRING_DECAMELIZE_REGEXP = /([a-z\d])([A-Z])/g;
56
- const STRING_DASHERIZE_CACHE = new LRUCache(key => key.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase().replace(STRING_DASHERIZE_REGEXP, '-'));
57
-
58
- // eslint-disable-next-line no-useless-escape
59
- const STRING_CAMELIZE_REGEXP_1 = /(\-|\_|\.|\s)+(.)?/g;
60
- const STRING_CAMELIZE_REGEXP_2 = /(^|\/)([A-Z])/g;
61
- const CAMELIZE_CACHE = new LRUCache(key => key.replace(STRING_CAMELIZE_REGEXP_1, (_match, _separator, chr) => chr ? chr.toUpperCase() : '').replace(STRING_CAMELIZE_REGEXP_2, (match /*, separator, chr */) => match.toLowerCase()));
62
- const STRING_UNDERSCORE_REGEXP_1 = /([a-z\d])([A-Z]+)/g;
63
- // eslint-disable-next-line no-useless-escape
64
- const STRING_UNDERSCORE_REGEXP_2 = /\-|\s+/g;
65
- const UNDERSCORE_CACHE = new LRUCache(str => str.replace(STRING_UNDERSCORE_REGEXP_1, '$1_$2').replace(STRING_UNDERSCORE_REGEXP_2, '_').toLowerCase());
66
- const STRING_CAPITALIZE_REGEXP = /(^|\/)([a-z\u00C0-\u024F])/g;
67
- const CAPITALIZE_CACHE = new LRUCache(str => str.replace(STRING_CAPITALIZE_REGEXP, (match /*, separator, chr */) => match.toUpperCase()));
68
-
69
- /**
70
- * Replaces underscores, spaces, or camelCase with dashes.
71
- *
72
- * ```js
73
- * import { dasherize } from '@ember-data/request-utils/string';
74
- *
75
- * dasherize('innerHTML'); // 'inner-html'
76
- * dasherize('action_name'); // 'action-name'
77
- * dasherize('css-class-name'); // 'css-class-name'
78
- * dasherize('my favorite items'); // 'my-favorite-items'
79
- * dasherize('privateDocs/ownerInvoice'; // 'private-docs/owner-invoice'
80
- * ```
81
- *
82
- * @public
83
- * @param {String} str
84
- * @return {String}
85
- * @since 4.13.0
86
- */
87
- function dasherize(str) {
88
- return STRING_DASHERIZE_CACHE.get(str);
89
- }
90
-
91
- /**
92
- * Returns the lowerCamelCase form of a string.
93
- *
94
- * ```js
95
- * import { camelize } from '@ember-data/request-utils/string';
96
- *
97
- * camelize('innerHTML'); // 'innerHTML'
98
- * camelize('action_name'); // 'actionName'
99
- * camelize('css-class-name'); // 'cssClassName'
100
- * camelize('my favorite items'); // 'myFavoriteItems'
101
- * camelize('My Favorite Items'); // 'myFavoriteItems'
102
- * camelize('private-docs/owner-invoice'); // 'privateDocs/ownerInvoice'
103
- * ```
104
- *
105
- * @public
106
- * @param {String} str
107
- * @return {String}
108
- * @since 4.13.0
109
- */
110
- function camelize(str) {
111
- return CAMELIZE_CACHE.get(str);
112
- }
113
-
114
- /**
115
- * Returns the lower\_case\_and\_underscored form of a string.
116
- *
117
- * ```js
118
- * import { underscore } from '@ember-data/request-utils/string';
119
- *
120
- * underscore('innerHTML'); // 'inner_html'
121
- * underscore('action_name'); // 'action_name'
122
- * underscore('css-class-name'); // 'css_class_name'
123
- * underscore('my favorite items'); // 'my_favorite_items'
124
- * underscore('privateDocs/ownerInvoice'); // 'private_docs/owner_invoice'
125
- * ```
126
- *
127
- * @public
128
- * @param {String} str
129
- * @return {String}
130
- * @since 4.13.0
131
- */
132
- function underscore(str) {
133
- return UNDERSCORE_CACHE.get(str);
134
- }
135
-
136
- /**
137
- * Returns the Capitalized form of a string
138
- *
139
- * ```js
140
- * import { capitalize } from '@ember-data/request-utils/string';
141
- *
142
- * capitalize('innerHTML') // 'InnerHTML'
143
- * capitalize('action_name') // 'Action_name'
144
- * capitalize('css-class-name') // 'Css-class-name'
145
- * capitalize('my favorite items') // 'My favorite items'
146
- * capitalize('privateDocs/ownerInvoice'); // 'PrivateDocs/ownerInvoice'
147
- * ```
148
- *
149
- * @public
150
- * @param {String} str
151
- * @return {String}
152
- * @since 4.13.0
153
- */
154
- function capitalize(str) {
155
- return CAPITALIZE_CACHE.get(str);
156
- }
157
-
158
- /**
159
- * Sets the maximum size of the LRUCache for all string transformation functions.
160
- * The default size is 10,000.
161
- *
162
- * @public
163
- * @param {Number} size
164
- * @return {void}
165
- * @since 4.13.0
166
- */
167
- function setMaxLRUCacheSize(size) {
168
- CAMELIZE_CACHE.size = size;
169
- UNDERSCORE_CACHE.size = size;
170
- CAPITALIZE_CACHE.size = size;
171
- STRING_DASHERIZE_CACHE.size = size;
172
- }
173
- export { LRUCache as L, capitalize as a, camelize as c, dasherize as d, setMaxLRUCacheSize as s, underscore as u };
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform-BixPrO0I.js","sources":["../src/-private/string/transform.ts"],"sourcesContent":["import { DEBUG } from '@warp-drive/build-config/env';\n\nconst DEFAULT_MAX_CACHE_SIZE = 10_000;\nexport class LRUCache<T, V> {\n declare size: number;\n declare state: Map<T, V>;\n declare doWork: (k: T) => V;\n\n // debug stats\n declare _hits: number;\n declare _misses: number;\n declare _ejected: number;\n\n constructor(doWork: (k: T) => V, size?: number) {\n this.size = size || DEFAULT_MAX_CACHE_SIZE;\n this.state = new Map();\n this.doWork = doWork;\n\n if (DEBUG) {\n this._hits = 0;\n this._misses = 0;\n this._ejected = 0;\n }\n }\n get(key: T) {\n const value = this.state.get(key);\n if (value) {\n if (DEBUG) {\n this._hits++;\n }\n this.state.delete(key);\n this.state.set(key, value);\n return value;\n }\n if (DEBUG) {\n this._misses++;\n }\n\n const newValue = this.doWork(key);\n this.set(key, newValue);\n return newValue;\n }\n\n set(key: T, value: V) {\n if (this.state.size === this.size) {\n for (const [k] of this.state) {\n if (DEBUG) {\n this._ejected++;\n }\n this.state.delete(k);\n break;\n }\n }\n this.state.set(key, value);\n }\n\n clear() {\n this.state.clear();\n if (DEBUG) {\n this._hits = 0;\n this._misses = 0;\n this._ejected = 0;\n }\n }\n}\n\nconst STRING_DASHERIZE_REGEXP = /[ _]/g;\nconst STRING_DECAMELIZE_REGEXP = /([a-z\\d])([A-Z])/g;\nconst STRING_DASHERIZE_CACHE = new LRUCache<string, string>((key: string) =>\n key.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase().replace(STRING_DASHERIZE_REGEXP, '-')\n);\n\n// eslint-disable-next-line no-useless-escape\nconst STRING_CAMELIZE_REGEXP_1 = /(\\-|\\_|\\.|\\s)+(.)?/g;\nconst STRING_CAMELIZE_REGEXP_2 = /(^|\\/)([A-Z])/g;\nconst CAMELIZE_CACHE = new LRUCache<string, string>((key: string) =>\n key\n .replace(STRING_CAMELIZE_REGEXP_1, (_match, _separator, chr: string | null) => (chr ? chr.toUpperCase() : ''))\n .replace(STRING_CAMELIZE_REGEXP_2, (match /*, separator, chr */) => match.toLowerCase())\n);\n\nconst STRING_UNDERSCORE_REGEXP_1 = /([a-z\\d])([A-Z]+)/g;\n// eslint-disable-next-line no-useless-escape\nconst STRING_UNDERSCORE_REGEXP_2 = /\\-|\\s+/g;\nconst UNDERSCORE_CACHE = new LRUCache<string, string>((str: string) =>\n str.replace(STRING_UNDERSCORE_REGEXP_1, '$1_$2').replace(STRING_UNDERSCORE_REGEXP_2, '_').toLowerCase()\n);\n\nconst STRING_CAPITALIZE_REGEXP = /(^|\\/)([a-z\\u00C0-\\u024F])/g;\nconst CAPITALIZE_CACHE = new LRUCache<string, string>((str: string) =>\n str.replace(STRING_CAPITALIZE_REGEXP, (match /*, separator, chr */) => match.toUpperCase())\n);\n\n/**\n * Replaces underscores, spaces, or camelCase with dashes.\n *\n * ```js\n * import { dasherize } from '@ember-data/request-utils/string';\n *\n * dasherize('innerHTML'); // 'inner-html'\n * dasherize('action_name'); // 'action-name'\n * dasherize('css-class-name'); // 'css-class-name'\n * dasherize('my favorite items'); // 'my-favorite-items'\n * dasherize('privateDocs/ownerInvoice'; // 'private-docs/owner-invoice'\n * ```\n *\n * @public\n * @param {String} str\n * @return {String}\n * @since 4.13.0\n */\nexport function dasherize(str: string): string {\n return STRING_DASHERIZE_CACHE.get(str);\n}\n\n/**\n * Returns the lowerCamelCase form of a string.\n *\n * ```js\n * import { camelize } from '@ember-data/request-utils/string';\n *\n * camelize('innerHTML'); // 'innerHTML'\n * camelize('action_name'); // 'actionName'\n * camelize('css-class-name'); // 'cssClassName'\n * camelize('my favorite items'); // 'myFavoriteItems'\n * camelize('My Favorite Items'); // 'myFavoriteItems'\n * camelize('private-docs/owner-invoice'); // 'privateDocs/ownerInvoice'\n * ```\n *\n * @public\n * @param {String} str\n * @return {String}\n * @since 4.13.0\n */\nexport function camelize(str: string): string {\n return CAMELIZE_CACHE.get(str);\n}\n\n/**\n * Returns the lower\\_case\\_and\\_underscored form of a string.\n *\n * ```js\n * import { underscore } from '@ember-data/request-utils/string';\n *\n * underscore('innerHTML'); // 'inner_html'\n * underscore('action_name'); // 'action_name'\n * underscore('css-class-name'); // 'css_class_name'\n * underscore('my favorite items'); // 'my_favorite_items'\n * underscore('privateDocs/ownerInvoice'); // 'private_docs/owner_invoice'\n * ```\n *\n * @public\n * @param {String} str\n * @return {String}\n * @since 4.13.0\n */\nexport function underscore(str: string): string {\n return UNDERSCORE_CACHE.get(str);\n}\n\n/**\n * Returns the Capitalized form of a string\n *\n * ```js\n * import { capitalize } from '@ember-data/request-utils/string';\n *\n * capitalize('innerHTML') // 'InnerHTML'\n * capitalize('action_name') // 'Action_name'\n * capitalize('css-class-name') // 'Css-class-name'\n * capitalize('my favorite items') // 'My favorite items'\n * capitalize('privateDocs/ownerInvoice'); // 'PrivateDocs/ownerInvoice'\n * ```\n *\n * @public\n * @param {String} str\n * @return {String}\n * @since 4.13.0\n */\nexport function capitalize(str: string): string {\n return CAPITALIZE_CACHE.get(str);\n}\n\n/**\n * Sets the maximum size of the LRUCache for all string transformation functions.\n * The default size is 10,000.\n *\n * @public\n * @param {Number} size\n * @return {void}\n * @since 4.13.0\n */\nexport function setMaxLRUCacheSize(size: number) {\n CAMELIZE_CACHE.size = size;\n UNDERSCORE_CACHE.size = size;\n CAPITALIZE_CACHE.size = size;\n STRING_DASHERIZE_CACHE.size = size;\n}\n"],"names":["DEFAULT_MAX_CACHE_SIZE","LRUCache","constructor","doWork","size","state","Map","macroCondition","getGlobalConfig","WarpDrive","env","DEBUG","_hits","_misses","_ejected","get","key","value","delete","set","newValue","k","clear","STRING_DASHERIZE_REGEXP","STRING_DECAMELIZE_REGEXP","STRING_DASHERIZE_CACHE","replace","toLowerCase","STRING_CAMELIZE_REGEXP_1","STRING_CAMELIZE_REGEXP_2","CAMELIZE_CACHE","_match","_separator","chr","toUpperCase","match","STRING_UNDERSCORE_REGEXP_1","STRING_UNDERSCORE_REGEXP_2","UNDERSCORE_CACHE","str","STRING_CAPITALIZE_REGEXP","CAPITALIZE_CACHE","dasherize","camelize","underscore","capitalize","setMaxLRUCacheSize"],"mappings":";;AAEA,MAAMA,sBAAsB,GAAG,MAAM;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CAC7GR,OAAO,CAACG,wBAAwB,EAAE,CAACM,KAAK,2BAA2BA,KAAK,CAACR,WAAW,EAAE,CAC3F,CAAC;AAED,MAAMS,0BAA0B,GAAG,oBAAoB;AACvD;AACA,MAAMC,0BAA0B,GAAG,SAAS;AAC5C,MAAMC,gBAAgB,GAAG,IAAIrC,QAAQ,CAAkBsC,GAAW,IAChEA,GAAG,CAACb,OAAO,CAACU,0BAA0B,EAAE,OAAO,CAAC,CAACV,OAAO,CAACW,0BAA0B,EAAE,GAAG,CAAC,CAACV,WAAW,EACvG,CAAC;AAED,MAAMa,wBAAwB,GAAG,6BAA6B;AAC9D,MAAMC,gBAAgB,GAAG,IAAIxC,QAAQ,CAAkBsC,GAAW,IAChEA,GAAG,CAACb,OAAO,CAACc,wBAAwB,EAAE,CAACL,KAAK,2BAA2BA,KAAK,CAACD,WAAW,EAAE,CAC5F,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASQ,SAASA,CAACH,GAAW,EAAU;AAC7C,EAAA,OAAOd,sBAAsB,CAACV,GAAG,CAACwB,GAAG,CAAC;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASI,QAAQA,CAACJ,GAAW,EAAU;AAC5C,EAAA,OAAOT,cAAc,CAACf,GAAG,CAACwB,GAAG,CAAC;AAChC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASK,UAAUA,CAACL,GAAW,EAAU;AAC9C,EAAA,OAAOD,gBAAgB,CAACvB,GAAG,CAACwB,GAAG,CAAC;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASM,UAAUA,CAACN,GAAW,EAAU;AAC9C,EAAA,OAAOE,gBAAgB,CAAC1B,GAAG,CAACwB,GAAG,CAAC;AAClC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASO,kBAAkBA,CAAC1C,IAAY,EAAE;EAC/C0B,cAAc,CAAC1B,IAAI,GAAGA,IAAI;EAC1BkC,gBAAgB,CAAClC,IAAI,GAAGA,IAAI;EAC5BqC,gBAAgB,CAACrC,IAAI,GAAGA,IAAI;EAC5BqB,sBAAsB,CAACrB,IAAI,GAAGA,IAAI;AACpC;;;;"}
@@ -1,155 +0,0 @@
1
- declare module '@ember-data/request-utils/-private/handlers/auto-compress' {
2
- import type { Future, Handler, NextFn } from '@warp-drive/core/request';
3
- import type { RequestContext } from '@warp-drive/core/types/request';
4
- export const SupportsRequestStreams: boolean;
5
- interface Constraints {
6
- /**
7
- * The minimum size at which to compress blobs
8
- *
9
- * @default 1000
10
- */
11
- Blob?: number;
12
- /**
13
- * The minimum size at which to compress array buffers
14
- *
15
- * @default 1000
16
- */
17
- ArrayBuffer?: number;
18
- /**
19
- * The minimum size at which to compress typed arrays
20
- *
21
- * @default 1000
22
- */
23
- TypedArray?: number;
24
- /**
25
- * The minimum size at which to compress data views
26
- *
27
- * @default 1000
28
- */
29
- DataView?: number;
30
- /**
31
- * The minimum size at which to compress strings
32
- *
33
- * @default 1000
34
- */
35
- String?: number;
36
- }
37
- /**
38
- * Options for configuring the AutoCompress handler.
39
- *
40
- */
41
- interface CompressionOptions {
42
- /**
43
- * The compression format to use. Must be a valid
44
- * compression format supported by [CompressionStream](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream)
45
- *
46
- * The default is `gzip`.
47
- *
48
- */
49
- format?: CompressionFormat;
50
- /**
51
- * Some browsers support `ReadableStream` as a request body. This option
52
- * enables passing the compression stream as the request body instead of
53
- * the final compressed body when the browser supports doing so.
54
- *
55
- * This comes with several caveats:
56
- *
57
- * - the request will be put into `duplex: 'half'` mode. This should be
58
- * transparent to you, but it is worth noting.
59
- * - the request mode cannot be `no-cors` as requests with a `ReadableStream`
60
- * have no content length and thus are a new form of request that triggers
61
- * cors requirements and a preflight request.
62
- * - http/1.x is not supported.
63
- *
64
- * For additional reading about the restrictions of using `ReadableStream`
65
- * as a request body, see the [Chromium Documentation](https://developer.chrome.com/docs/capabilities/web-apis/fetch-streaming-requests#restrictions)
66
- *
67
- * Streaming can be enabled per-request in browsers which support it by
68
- * setting `request.options.allowStreaming` to `true`.
69
- *
70
- * Streaming can be forced even when the browser does not support it by setting
71
- * `request.options.forceStreaming` to `true`. This is useful if later handlers
72
- * in the chain can handle the request body as a stream.
73
- *
74
- * @default false
75
- */
76
- allowStreaming?: boolean;
77
- /**
78
- * If `true`, the request will be forced into streaming mode even
79
- * if the browser does not support it. This is useful if later handlers
80
- * in the chain can handle the request body as a stream.
81
- *
82
- * @default false
83
- */
84
- forceStreaming?: boolean;
85
- /**
86
- * The constraints for the request body. This is used to determine
87
- * whether to compress the request body or not.
88
- *
89
- * The defaults are:
90
- *
91
- * ```ts
92
- * {
93
- * Blob: 1000, // blob.size
94
- * ArrayBuffer: 1000, // buffer.byteLength
95
- * TypedArray: 1000, // array.byteLength
96
- * DataView: 1000, // view.byteLength
97
- * String: 1000, // string.length
98
- * }
99
- * ```
100
- *
101
- * The following body types are never compressed unless explicitly
102
- * configured by the request:
103
- * - `FormData`
104
- * - `URLSearchParams`
105
- * - `ReadableStream`
106
- *
107
- * A request.options.compress value of `false` will disable
108
- * compression for a request body of any type. While a value of
109
- * `true` will enable compression for the request.
110
- *
111
- * An undefined value will use the default, a value of `0` will
112
- * enable compression for all values, and a value of `-1` will
113
- * disable compression.
114
- *
115
- */
116
- constraints?: Constraints;
117
- }
118
- /**
119
- * A request handler that automatically compresses the request body
120
- * if the request body is a string, array buffer, blob, or form data.
121
- *
122
- * This uses the [CompressionStream API](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream)
123
- *
124
- * The compression format as well as the kinds of data to compress can be
125
- * configured using the `format` and `constraints` options.
126
- *
127
- * ```diff
128
- * +import { AutoCompress } from '@ember-data/request-utils/handlers';
129
- * import Fetch from '@ember-data/request/fetch';
130
- * import RequestManager from '@ember-data/request';
131
- * import Store from '@ember-data/store';
132
- *
133
- * class AppStore extends Store {
134
- * requestManager = new RequestManager()
135
- * .use([
136
- * + new AutoCompress(),
137
- * Fetch
138
- * ]);
139
- * }
140
- * ```
141
- *
142
- * @class AutoCompress
143
- * @public
144
- * @since 5.5.0
145
- */
146
- export class AutoCompress implements Handler {
147
- options: Required<CompressionOptions> & {
148
- constraints: Required<Constraints>;
149
- };
150
- constructor(options?: CompressionOptions);
151
- request<T>({ request }: RequestContext, next: NextFn<T>): Promise<T> | Future<T>;
152
- }
153
- export {};
154
- }
155
- //# sourceMappingURL=auto-compress.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auto-compress.d.ts","sourceRoot":"","sources":["../../../src/-private/handlers/auto-compress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,KAAK,EAAc,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAMjF,eAAO,MAAM,sBAAsB,SAc/B,CAAC;AAEL,UAAU,WAAW;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,UAAU,kBAAkB;IAC1B;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAWD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAAa,YAAa,YAAW,OAAO;IAClC,OAAO,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG;QAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAA;KAAE,CAAC;gBAE3E,OAAO,GAAE,kBAAuB;IAU5C,OAAO,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;CA2DjF"}
@@ -1,107 +0,0 @@
1
- declare module '@ember-data/request-utils/-private/string/inflect' {
2
- /**
3
- * Marks a word as uncountable. Uncountable words are not pluralized
4
- * or singularized.
5
- *
6
- * @public
7
- * @param {String} word
8
- * @return {void}
9
- * @since 4.13.0
10
- */
11
- export function uncountable(word: string): void;
12
- /**
13
- * Marks a list of words as uncountable. Uncountable words are not pluralized
14
- * or singularized.
15
- *
16
- * @public
17
- * @param {Array<String>} uncountables
18
- * @return {void}
19
- * @since 4.13.0
20
- */
21
- export function loadUncountable(uncountables: string[]): void;
22
- /**
23
- * Marks a word as irregular. Irregular words have unique
24
- * pluralization and singularization rules.
25
- *
26
- * @public
27
- * @param {String} single
28
- * @param {String} plur
29
- * @return {void}
30
- * @since 4.13.0
31
- */
32
- export function irregular(single: string, plur: string): void;
33
- /**
34
- * Marks a list of word pairs as irregular. Irregular words have unique
35
- * pluralization and singularization rules.
36
- *
37
- * @public
38
- * @param {Array<Array<String>>} irregularPairs
39
- * @return {void}
40
- * @since 4.13.0
41
- */
42
- export function loadIrregular(irregularPairs: Array<[string, string]>): void;
43
- /**
44
- * Clears the caches for singularize and pluralize.
45
- *
46
- * @public
47
- * @return {void}
48
- * @since 4.13.0
49
- */
50
- export function clear(): void;
51
- /**
52
- * Resets the inflection rules to the defaults.
53
- *
54
- * @public
55
- * @return {void}
56
- * @since 4.13.0
57
- */
58
- export function resetToDefaults(): void;
59
- /**
60
- * Clears all inflection rules
61
- * and resets the caches for singularize and pluralize.
62
- *
63
- * @public
64
- * @return {void}
65
- * @since 4.13.0
66
- */
67
- export function clearRules(): void;
68
- /**
69
- * Singularizes a word.
70
- *
71
- * @public
72
- * @param {String} word
73
- * @return {String}
74
- * @since 4.13.0
75
- */
76
- export function singularize(word: string): string;
77
- /**
78
- * Pluralizes a word.
79
- *
80
- * @public
81
- * @param {String} word
82
- * @return {String}
83
- * @since 4.13.0
84
- */
85
- export function pluralize(word: string): string;
86
- /**
87
- * Adds a pluralization rule.
88
- *
89
- * @public
90
- * @param {RegExp} regex
91
- * @param {String} string
92
- * @return {void}
93
- * @since 4.13.0
94
- */
95
- export function plural(regex: RegExp, string: string): void;
96
- /**
97
- * Adds a singularization rule.
98
- *
99
- * @public
100
- * @param {RegExp} regex
101
- * @param {String} string
102
- * @return {void}
103
- * @since 4.13.0
104
- */
105
- export function singular(regex: RegExp, string: string): void;
106
- }
107
- //# sourceMappingURL=inflect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inflect.d.ts","sourceRoot":"","sources":["../../../src/-private/string/inflect.ts"],"names":[],"mappings":"AAsBA;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,QAEvC;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,QAIrD;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAQrD;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,QAUpE;AAGD;;;;;;GAMG;AACH,wBAAgB,KAAK,SAGpB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,SAM9B;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,SAQzB;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,UAIvC;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,UAIrC;AAWD;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAQnD;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAQrD"}
@@ -1,12 +0,0 @@
1
- declare module '@ember-data/request-utils/-private/string/inflections' {
2
- export type RulesArray = Array<[RegExp, string]>;
3
- type DefaultRulesType = {
4
- plurals: RulesArray;
5
- singular: RulesArray;
6
- irregularPairs: Array<[string, string]>;
7
- uncountable: string[];
8
- };
9
- export const defaultRules: DefaultRulesType;
10
- export {};
11
- }
12
- //# sourceMappingURL=inflections.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inflections.d.ts","sourceRoot":"","sources":["../../../src/-private/string/inflections.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AACjD,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,UAAU,CAAC;IACpB,QAAQ,EAAE,UAAU,CAAC;IACrB,cAAc,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACxC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,gBAkE1B,CAAC"}
@@ -1,102 +0,0 @@
1
- declare module '@ember-data/request-utils/-private/string/transform' {
2
- export class LRUCache<T, V> {
3
- size: number;
4
- state: Map<T, V>;
5
- doWork: (k: T) => V;
6
- _hits: number;
7
- _misses: number;
8
- _ejected: number;
9
- constructor(doWork: (k: T) => V, size?: number);
10
- get(key: T): V;
11
- set(key: T, value: V): void;
12
- clear(): void;
13
- }
14
- /**
15
- * Replaces underscores, spaces, or camelCase with dashes.
16
- *
17
- * ```js
18
- * import { dasherize } from '@ember-data/request-utils/string';
19
- *
20
- * dasherize('innerHTML'); // 'inner-html'
21
- * dasherize('action_name'); // 'action-name'
22
- * dasherize('css-class-name'); // 'css-class-name'
23
- * dasherize('my favorite items'); // 'my-favorite-items'
24
- * dasherize('privateDocs/ownerInvoice'; // 'private-docs/owner-invoice'
25
- * ```
26
- *
27
- * @public
28
- * @param {String} str
29
- * @return {String}
30
- * @since 4.13.0
31
- */
32
- export function dasherize(str: string): string;
33
- /**
34
- * Returns the lowerCamelCase form of a string.
35
- *
36
- * ```js
37
- * import { camelize } from '@ember-data/request-utils/string';
38
- *
39
- * camelize('innerHTML'); // 'innerHTML'
40
- * camelize('action_name'); // 'actionName'
41
- * camelize('css-class-name'); // 'cssClassName'
42
- * camelize('my favorite items'); // 'myFavoriteItems'
43
- * camelize('My Favorite Items'); // 'myFavoriteItems'
44
- * camelize('private-docs/owner-invoice'); // 'privateDocs/ownerInvoice'
45
- * ```
46
- *
47
- * @public
48
- * @param {String} str
49
- * @return {String}
50
- * @since 4.13.0
51
- */
52
- export function camelize(str: string): string;
53
- /**
54
- * Returns the lower\_case\_and\_underscored form of a string.
55
- *
56
- * ```js
57
- * import { underscore } from '@ember-data/request-utils/string';
58
- *
59
- * underscore('innerHTML'); // 'inner_html'
60
- * underscore('action_name'); // 'action_name'
61
- * underscore('css-class-name'); // 'css_class_name'
62
- * underscore('my favorite items'); // 'my_favorite_items'
63
- * underscore('privateDocs/ownerInvoice'); // 'private_docs/owner_invoice'
64
- * ```
65
- *
66
- * @public
67
- * @param {String} str
68
- * @return {String}
69
- * @since 4.13.0
70
- */
71
- export function underscore(str: string): string;
72
- /**
73
- * Returns the Capitalized form of a string
74
- *
75
- * ```js
76
- * import { capitalize } from '@ember-data/request-utils/string';
77
- *
78
- * capitalize('innerHTML') // 'InnerHTML'
79
- * capitalize('action_name') // 'Action_name'
80
- * capitalize('css-class-name') // 'Css-class-name'
81
- * capitalize('my favorite items') // 'My favorite items'
82
- * capitalize('privateDocs/ownerInvoice'); // 'PrivateDocs/ownerInvoice'
83
- * ```
84
- *
85
- * @public
86
- * @param {String} str
87
- * @return {String}
88
- * @since 4.13.0
89
- */
90
- export function capitalize(str: string): string;
91
- /**
92
- * Sets the maximum size of the LRUCache for all string transformation functions.
93
- * The default size is 10,000.
94
- *
95
- * @public
96
- * @param {Number} size
97
- * @return {void}
98
- * @since 4.13.0
99
- */
100
- export function setMaxLRUCacheSize(size: number): void;
101
- }
102
- //# sourceMappingURL=transform.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../src/-private/string/transform.ts"],"names":[],"mappings":"AAGA,qBAAa,QAAQ,CAAC,CAAC,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACjB,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;IAGpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;gBAEb,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM;IAW9C,GAAG,CAAC,GAAG,EAAE,CAAC;IAmBV,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;IAapB,KAAK;CAQN;AA6BD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,QAK9C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"deprecation-support.d.ts","sourceRoot":"","sources":["../src/deprecation-support.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../src/handlers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC1G,OAAO,KAAK,EAAE,+BAA+B,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACtH,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAC7G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAI7E,KAAK,gBAAgB,GAAG,MAAM,CAAC;AAC/B,KAAK,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAChE,KAAK,sBAAsB,GAAG,aAAa,GAAG,OAAO,GAAG,SAAS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