@ember-data/request-utils 5.5.0-alpha.9 → 5.5.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/LICENSE.md +19 -7
- package/README.md +12 -2
- package/addon-main.cjs +5 -0
- package/dist/deprecation-support.js +188 -0
- package/dist/deprecation-support.js.map +1 -0
- package/dist/handlers.js +147 -0
- package/dist/handlers.js.map +1 -0
- package/dist/index.js +989 -0
- package/dist/index.js.map +1 -0
- package/dist/inflect-CwI_k2it.js +305 -0
- package/dist/inflect-CwI_k2it.js.map +1 -0
- package/dist/string.js +2 -0
- package/dist/string.js.map +1 -0
- package/dist/transform-1PDozfHr.js +192 -0
- package/dist/transform-1PDozfHr.js.map +1 -0
- package/logos/NCC-1701-a-blue.svg +4 -0
- package/logos/NCC-1701-a-gold.svg +4 -0
- package/logos/NCC-1701-a-gold_100.svg +1 -0
- package/logos/NCC-1701-a-gold_base-64.txt +1 -0
- package/logos/NCC-1701-a.svg +4 -0
- package/logos/README.md +4 -0
- package/logos/docs-badge.svg +2 -0
- package/logos/github-header.svg +444 -0
- package/logos/social1.png +0 -0
- package/logos/social2.png +0 -0
- package/logos/warp-drive-logo-dark.svg +4 -0
- package/logos/warp-drive-logo-gold.svg +4 -0
- package/package.json +61 -29
- package/unstable-preview-types/-private/handlers/auto-compress.d.ts +168 -0
- package/unstable-preview-types/-private/handlers/auto-compress.d.ts.map +1 -0
- package/unstable-preview-types/-private/string/inflect.d.ts +140 -0
- package/unstable-preview-types/-private/string/inflect.d.ts.map +1 -0
- package/unstable-preview-types/-private/string/inflections.d.ts +12 -0
- package/unstable-preview-types/-private/string/inflections.d.ts.map +1 -0
- package/unstable-preview-types/-private/string/transform.d.ts +117 -0
- package/unstable-preview-types/-private/string/transform.d.ts.map +1 -0
- package/unstable-preview-types/deprecation-support.d.ts +4 -0
- package/unstable-preview-types/deprecation-support.d.ts.map +1 -0
- package/unstable-preview-types/handlers.d.ts +11 -0
- package/unstable-preview-types/handlers.d.ts.map +1 -0
- package/unstable-preview-types/index.d.ts +688 -0
- package/unstable-preview-types/index.d.ts.map +1 -0
- package/unstable-preview-types/string.d.ts +17 -0
- package/unstable-preview-types/string.d.ts.map +1 -0
- package/addon/index.js +0 -424
- package/addon/index.js.map +0 -1
- package/addon-main.js +0 -19
- /package/{ember-data-logo-dark.svg → logos/ember-data-logo-dark.svg} +0 -0
- /package/{ember-data-logo-light.svg → logos/ember-data-logo-light.svg} +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 324 32">
|
|
2
|
+
<path fill="#110819"
|
|
3
|
+
d="M321.58 29.54a41.7 41.7 0 0 1-7.26 1.72c-2.4.36-4.87.53-7.4.53-3.21 0-6.09-.34-8.6-1.03a18.5 18.5 0 0 1-6.34-3.03 13.07 13.07 0 0 1-3.94-4.83c-.9-1.9-1.35-4.06-1.35-6.47a14.32 14.32 0 0 1 5.22-11.19 18.14 18.14 0 0 1 6.06-3.3c2.36-.81 5-1.21 7.9-1.21 2.68 0 5.13.36 7.35 1.1 2.24.71 4.15 1.78 5.74 3.2a14.28 14.28 0 0 1 3.72 5.24 18.12 18.12 0 0 1 1.33 7.17v1.98h-29.1a7.5 7.5 0 0 0 1.28 2.56c.6.77 1.4 1.43 2.42 1.97 1.02.55 2.27.97 3.74 1.27 1.5.3 3.27.45 5.33.45a35.35 35.35 0 0 0 8.23-.96c1.22-.3 2.31-.64 3.29-1 .99-.35 1.78-.7 2.38-1.07v6.9Zm-5.5-15.96a6.73 6.73 0 0 0-.66-2.26 5.82 5.82 0 0 0-1.72-2.13 9.46 9.46 0 0 0-3.1-1.54 15.6 15.6 0 0 0-4.77-.63c-1.79 0-3.33.23-4.64.67-1.3.44-2.4 1-3.29 1.65a8.37 8.37 0 0 0-2.04 2.13c-.48.76-.8 1.46-.94 2.1h21.16ZM271.84 31h-9.28L247.63 1.48h8.9l10.74 22.22 10.72-22.22h8.9L271.83 31ZM234.8 31V1.48h7.97V31h-7.97ZM229.73 8.16l-.94-.28c-.4-.13-.88-.25-1.42-.36a17.88 17.88 0 0 0-3.8-.45c-1.44 0-2.78.18-4.02.53-1.23.35-2.39.81-3.46 1.4a19.48 19.48 0 0 0-3 1.98c-.92.73-1.77 1.48-2.54 2.25V31h-7.97V1.48h7.97v4.8c.96-.72 1.94-1.41 2.94-2.07a25.36 25.36 0 0 1 3.16-1.78 18.9 18.9 0 0 1 3.48-1.23 15.39 15.39 0 0 1 5.44-.39 25 25 0 0 1 4.16.67v6.68ZM197.05 16.22c0 1.89-.2 3.57-.62 5.05a12.7 12.7 0 0 1-1.76 3.82 11.07 11.07 0 0 1-2.7 2.77 13.77 13.77 0 0 1-3.51 1.83c-1.29.46-2.68.8-4.17 1-1.49.21-3.04.31-4.66.31H160.9V1.48h18.69c1.62 0 3.17.1 4.66.32 1.49.2 2.88.53 4.17 1 1.3.45 2.48 1.06 3.54 1.82 1.06.74 1.96 1.67 2.7 2.77a12.7 12.7 0 0 1 1.77 3.82c.42 1.46.62 3.13.62 5Zm-8.03 0c0-1.42-.19-2.65-.56-3.7a5.64 5.64 0 0 0-1.76-2.57 7.66 7.66 0 0 0-3.16-1.53c-1.3-.34-2.9-.52-4.77-.52h-9.9v16.68h9.9c1.88 0 3.47-.17 4.77-.5a7.86 7.86 0 0 0 3.16-1.54c.81-.7 1.4-1.58 1.76-2.63.37-1.04.56-2.27.56-3.7ZM153.98 10.55c0 1.47-.25 2.78-.73 3.9a6.82 6.82 0 0 1-2.26 2.86 10.95 10.95 0 0 1-4 1.77 25.6 25.6 0 0 1-5.86.58h-13.26V31h-2.68V1.48h15.94c2.3 0 4.25.2 5.87.6 1.63.39 2.96.96 4 1.72a6.67 6.67 0 0 1 2.25 2.84c.48 1.13.73 2.43.73 3.9Zm-2.77 0c0-1.4-.24-2.54-.71-3.4a4.53 4.53 0 0 0-2.15-1.97c-.96-.48-2.19-.8-3.68-.95a50.43 50.43 0 0 0-5.26-.24h-11.54v13.15h11.54l2.51.02c.9 0 1.8-.04 2.67-.12.87-.1 1.7-.27 2.5-.5.8-.24 1.5-.6 2.1-1.1a5.05 5.05 0 0 0 1.46-1.9 7 7 0 0 0 .56-3ZM119.76 3.76c-.41-.13-1-.27-1.74-.41-.73-.16-1.67-.24-2.83-.24-1.6 0-3.12.2-4.54.6a17.94 17.94 0 0 0-7.28 3.96 23.73 23.73 0 0 0-2.8 2.83V31H97.9V1.48h2.69V7.5c.96-1 2-1.9 3.11-2.73a21.54 21.54 0 0 1 7.48-3.53 17.47 17.47 0 0 1 5.6-.47c.4.02.77.04 1.1.09a16.6 16.6 0 0 1 1.9.26v2.64ZM85.52 31v-3.27c-1.03.56-2.2 1.08-3.53 1.55a40.4 40.4 0 0 1-13.13 2.3c-1.91 0-3.64-.17-5.17-.52a12.2 12.2 0 0 1-3.87-1.52A7.38 7.38 0 0 1 57.37 27a7.06 7.06 0 0 1-.86-3.52c0-1.32.33-2.48 1-3.48a8.81 8.81 0 0 1 2.85-2.64c1.23-.76 2.71-1.4 4.45-1.91 1.74-.53 3.7-.98 5.84-1.34 2.15-.37 4.47-.67 6.96-.9 2.5-.24 5.14-.44 7.9-.6v-2.26c0-.91-.16-1.72-.5-2.42a5.54 5.54 0 0 0-1.45-1.83 7.97 7.97 0 0 0-2.17-1.31c-.83-.36-1.73-.65-2.7-.86a33.97 33.97 0 0 0-13.54.21c-1.03.25-2.02.53-2.96.86-.95.33-1.9.68-2.86 1.06V2.92c1.99-.53 4.1-.99 6.36-1.38 2.26-.4 4.66-.6 7.2-.6 2.14 0 4.15.19 6.01.56 1.86.36 3.48.94 4.86 1.74A9.16 9.16 0 0 1 87 6.36a8.55 8.55 0 0 1 1.18 4.62V31h-2.66Zm0-16c-4.69.25-8.69.62-12.01 1.09-3.31.47-6.02 1.05-8.12 1.74-2.1.69-3.66 1.49-4.64 2.4a4.18 4.18 0 0 0-1.46 3.12c0 .95.23 1.78.7 2.52a5.86 5.86 0 0 0 2.09 1.84c.9.49 2 .86 3.29 1.12 1.28.24 2.73.37 4.34.37a29.36 29.36 0 0 0 5.95-.6 36.6 36.6 0 0 0 5.71-1.57c.86-.32 1.64-.66 2.34-1.01a11.3 11.3 0 0 0 1.8-1.1v-9.93ZM28.65 1.48l10.53 27.37L50.09 1.48h2.99L41.2 31h-4L26.84 4.34 16.51 31h-4L.63 1.48h2.99l10.91 27.37 10.5-27.37h3.62Z" />
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 324 32">
|
|
2
|
+
<path fill="#FFC474"
|
|
3
|
+
d="M321.58 29.54a41.7 41.7 0 0 1-7.26 1.72c-2.4.36-4.87.53-7.4.53-3.21 0-6.09-.34-8.6-1.03a18.5 18.5 0 0 1-6.34-3.03 13.07 13.07 0 0 1-3.94-4.83c-.9-1.9-1.35-4.06-1.35-6.47a14.32 14.32 0 0 1 5.22-11.19 18.14 18.14 0 0 1 6.06-3.3c2.36-.81 5-1.21 7.9-1.21 2.68 0 5.13.36 7.35 1.1 2.24.71 4.15 1.78 5.74 3.2a14.28 14.28 0 0 1 3.72 5.24 18.12 18.12 0 0 1 1.33 7.17v1.98h-29.1a7.5 7.5 0 0 0 1.28 2.56c.6.77 1.4 1.43 2.42 1.97 1.02.55 2.27.97 3.74 1.27 1.5.3 3.27.45 5.33.45a35.35 35.35 0 0 0 8.23-.96c1.22-.3 2.31-.64 3.29-1 .99-.35 1.78-.7 2.38-1.07v6.9Zm-5.5-15.96a6.73 6.73 0 0 0-.66-2.26 5.82 5.82 0 0 0-1.72-2.13 9.46 9.46 0 0 0-3.1-1.54 15.6 15.6 0 0 0-4.77-.63c-1.79 0-3.33.23-4.64.67-1.3.44-2.4 1-3.29 1.65a8.37 8.37 0 0 0-2.04 2.13c-.48.76-.8 1.46-.94 2.1h21.16ZM271.84 31h-9.28L247.63 1.48h8.9l10.74 22.22 10.72-22.22h8.9L271.83 31ZM234.8 31V1.48h7.97V31h-7.97ZM229.73 8.16l-.94-.28c-.4-.13-.88-.25-1.42-.36a17.88 17.88 0 0 0-3.8-.45c-1.44 0-2.78.18-4.02.53-1.23.35-2.39.81-3.46 1.4a19.48 19.48 0 0 0-3 1.98c-.92.73-1.77 1.48-2.54 2.25V31h-7.97V1.48h7.97v4.8c.96-.72 1.94-1.41 2.94-2.07a25.36 25.36 0 0 1 3.16-1.78 18.9 18.9 0 0 1 3.48-1.23 15.39 15.39 0 0 1 5.44-.39 25 25 0 0 1 4.16.67v6.68ZM197.05 16.22c0 1.89-.2 3.57-.62 5.05a12.7 12.7 0 0 1-1.76 3.82 11.07 11.07 0 0 1-2.7 2.77 13.77 13.77 0 0 1-3.51 1.83c-1.29.46-2.68.8-4.17 1-1.49.21-3.04.31-4.66.31H160.9V1.48h18.69c1.62 0 3.17.1 4.66.32 1.49.2 2.88.53 4.17 1 1.3.45 2.48 1.06 3.54 1.82 1.06.74 1.96 1.67 2.7 2.77a12.7 12.7 0 0 1 1.77 3.82c.42 1.46.62 3.13.62 5Zm-8.03 0c0-1.42-.19-2.65-.56-3.7a5.64 5.64 0 0 0-1.76-2.57 7.66 7.66 0 0 0-3.16-1.53c-1.3-.34-2.9-.52-4.77-.52h-9.9v16.68h9.9c1.88 0 3.47-.17 4.77-.5a7.86 7.86 0 0 0 3.16-1.54c.81-.7 1.4-1.58 1.76-2.63.37-1.04.56-2.27.56-3.7ZM153.98 10.55c0 1.47-.25 2.78-.73 3.9a6.82 6.82 0 0 1-2.26 2.86 10.95 10.95 0 0 1-4 1.77 25.6 25.6 0 0 1-5.86.58h-13.26V31h-2.68V1.48h15.94c2.3 0 4.25.2 5.87.6 1.63.39 2.96.96 4 1.72a6.67 6.67 0 0 1 2.25 2.84c.48 1.13.73 2.43.73 3.9Zm-2.77 0c0-1.4-.24-2.54-.71-3.4a4.53 4.53 0 0 0-2.15-1.97c-.96-.48-2.19-.8-3.68-.95a50.43 50.43 0 0 0-5.26-.24h-11.54v13.15h11.54l2.51.02c.9 0 1.8-.04 2.67-.12.87-.1 1.7-.27 2.5-.5.8-.24 1.5-.6 2.1-1.1a5.05 5.05 0 0 0 1.46-1.9 7 7 0 0 0 .56-3ZM119.76 3.76c-.41-.13-1-.27-1.74-.41-.73-.16-1.67-.24-2.83-.24-1.6 0-3.12.2-4.54.6a17.94 17.94 0 0 0-7.28 3.96 23.73 23.73 0 0 0-2.8 2.83V31H97.9V1.48h2.69V7.5c.96-1 2-1.9 3.11-2.73a21.54 21.54 0 0 1 7.48-3.53 17.47 17.47 0 0 1 5.6-.47c.4.02.77.04 1.1.09a16.6 16.6 0 0 1 1.9.26v2.64ZM85.52 31v-3.27c-1.03.56-2.2 1.08-3.53 1.55a40.4 40.4 0 0 1-13.13 2.3c-1.91 0-3.64-.17-5.17-.52a12.2 12.2 0 0 1-3.87-1.52A7.38 7.38 0 0 1 57.37 27a7.06 7.06 0 0 1-.86-3.52c0-1.32.33-2.48 1-3.48a8.81 8.81 0 0 1 2.85-2.64c1.23-.76 2.71-1.4 4.45-1.91 1.74-.53 3.7-.98 5.84-1.34 2.15-.37 4.47-.67 6.96-.9 2.5-.24 5.14-.44 7.9-.6v-2.26c0-.91-.16-1.72-.5-2.42a5.54 5.54 0 0 0-1.45-1.83 7.97 7.97 0 0 0-2.17-1.31c-.83-.36-1.73-.65-2.7-.86a33.97 33.97 0 0 0-13.54.21c-1.03.25-2.02.53-2.96.86-.95.33-1.9.68-2.86 1.06V2.92c1.99-.53 4.1-.99 6.36-1.38 2.26-.4 4.66-.6 7.2-.6 2.14 0 4.15.19 6.01.56 1.86.36 3.48.94 4.86 1.74A9.16 9.16 0 0 1 87 6.36a8.55 8.55 0 0 1 1.18 4.62V31h-2.66Zm0-16c-4.69.25-8.69.62-12.01 1.09-3.31.47-6.02 1.05-8.12 1.74-2.1.69-3.66 1.49-4.64 2.4a4.18 4.18 0 0 0-1.46 3.12c0 .95.23 1.78.7 2.52a5.86 5.86 0 0 0 2.09 1.84c.9.49 2 .86 3.29 1.12 1.28.24 2.73.37 4.34.37a29.36 29.36 0 0 0 5.95-.6 36.6 36.6 0 0 0 5.71-1.57c.86-.32 1.64-.66 2.34-1.01a11.3 11.3 0 0 0 1.8-1.1v-9.93ZM28.65 1.48l10.53 27.37L50.09 1.48h2.99L41.2 31h-4L26.84 4.34 16.51 31h-4L.63 1.48h2.99l10.91 27.37 10.5-27.37h3.62Z" />
|
|
4
|
+
</svg>
|
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.5.0
|
|
4
|
+
"version": "5.5.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Chris Thoburn <runspired@users.noreply.github.com>",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"homepage": "https://github.com/emberjs/data",
|
|
14
14
|
"bugs": "https://github.com/emberjs/data/issues",
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": "
|
|
16
|
+
"node": ">= 18.20.8"
|
|
17
17
|
},
|
|
18
18
|
"keywords": [
|
|
19
19
|
"ember-addon"
|
|
@@ -21,45 +21,77 @@
|
|
|
21
21
|
"volta": {
|
|
22
22
|
"extends": "../../package.json"
|
|
23
23
|
},
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"ember-cli-babel": "^8.0.0"
|
|
26
|
-
},
|
|
27
24
|
"files": [
|
|
28
|
-
"
|
|
29
|
-
"addon",
|
|
25
|
+
"unstable-preview-types",
|
|
26
|
+
"addon-main.cjs",
|
|
27
|
+
"dist",
|
|
30
28
|
"README.md",
|
|
31
29
|
"LICENSE.md",
|
|
32
|
-
"
|
|
33
|
-
"ember-data-logo-light.svg"
|
|
30
|
+
"logos"
|
|
34
31
|
],
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"default": "./dist/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./*": {
|
|
37
|
+
"default": "./dist/*.js"
|
|
38
|
+
},
|
|
39
|
+
"./unstable-preview-types": {
|
|
40
|
+
"types": "./unstable-preview-types/index.d.ts"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
35
43
|
"ember-addon": {
|
|
36
|
-
"main": "addon-main.
|
|
44
|
+
"main": "addon-main.cjs",
|
|
37
45
|
"type": "addon",
|
|
38
|
-
"version":
|
|
46
|
+
"version": 2
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@ember/string": "^3.1.1 || ^4.0.0",
|
|
50
|
+
"@warp-drive/core-types": "5.5.0",
|
|
51
|
+
"@ember-data/request": "5.5.0",
|
|
52
|
+
"ember-inflector": "^4.0.2 || ^5.0.0 || ^6.0.0"
|
|
53
|
+
},
|
|
54
|
+
"peerDependenciesMeta": {
|
|
55
|
+
"ember-inflector": {
|
|
56
|
+
"optional": true
|
|
57
|
+
},
|
|
58
|
+
"@ember/string": {
|
|
59
|
+
"optional": true
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@embroider/macros": "^1.16.12",
|
|
64
|
+
"@warp-drive/build-config": "5.5.0"
|
|
39
65
|
},
|
|
40
66
|
"devDependencies": {
|
|
41
|
-
"@babel/
|
|
42
|
-
"@babel/
|
|
43
|
-
"@babel/
|
|
44
|
-
"@babel/
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"tslib": "^2.6.2",
|
|
55
|
-
"typescript": "^5.2.2",
|
|
56
|
-
"walk-sync": "^3.0.0"
|
|
67
|
+
"@babel/core": "^7.26.10",
|
|
68
|
+
"@babel/plugin-transform-typescript": "^7.27.0",
|
|
69
|
+
"@babel/preset-env": "^7.26.9",
|
|
70
|
+
"@babel/preset-typescript": "^7.27.0",
|
|
71
|
+
"@glimmer/component": "^2.0.0",
|
|
72
|
+
"@ember/string": "4.0.1",
|
|
73
|
+
"@warp-drive/core-types": "5.5.0",
|
|
74
|
+
"@ember-data/request": "5.5.0",
|
|
75
|
+
"@warp-drive/internal-config": "5.5.0",
|
|
76
|
+
"ember-source": "~6.3.0",
|
|
77
|
+
"ember-inflector": "6.0.0",
|
|
78
|
+
"typescript": "^5.8.3",
|
|
79
|
+
"vite": "^5.4.15"
|
|
57
80
|
},
|
|
58
81
|
"ember": {
|
|
59
82
|
"edition": "octane"
|
|
60
83
|
},
|
|
84
|
+
"typesVersions": {
|
|
85
|
+
"*": {
|
|
86
|
+
"unstable-preview-types": [
|
|
87
|
+
"./unstable-preview-types"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
61
91
|
"scripts": {
|
|
62
|
-
"
|
|
63
|
-
"
|
|
92
|
+
"lint": "eslint . --quiet --cache --cache-strategy=content",
|
|
93
|
+
"build:pkg": "vite build;",
|
|
94
|
+
"sync": "echo \"syncing\"",
|
|
95
|
+
"start": "vite"
|
|
64
96
|
}
|
|
65
97
|
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
declare module '@ember-data/request-utils/-private/handlers/auto-compress' {
|
|
2
|
+
/**
|
|
3
|
+
* @module @ember-data/request-utils/handlers
|
|
4
|
+
*/
|
|
5
|
+
import type { Future, Handler, NextFn, RequestContext } from '@ember-data/request';
|
|
6
|
+
export const SupportsRequestStreams: boolean;
|
|
7
|
+
interface Constraints {
|
|
8
|
+
/**
|
|
9
|
+
* The minimum size at which to compress blobs
|
|
10
|
+
*
|
|
11
|
+
* @default 1000
|
|
12
|
+
* @typedoc
|
|
13
|
+
*/
|
|
14
|
+
Blob?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The minimum size at which to compress array buffers
|
|
17
|
+
*
|
|
18
|
+
* @default 1000
|
|
19
|
+
* @typedoc
|
|
20
|
+
*/
|
|
21
|
+
ArrayBuffer?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The minimum size at which to compress typed arrays
|
|
24
|
+
*
|
|
25
|
+
* @default 1000
|
|
26
|
+
* @typedoc
|
|
27
|
+
*/
|
|
28
|
+
TypedArray?: number;
|
|
29
|
+
/**
|
|
30
|
+
* The minimum size at which to compress data views
|
|
31
|
+
*
|
|
32
|
+
* @default 1000
|
|
33
|
+
* @typedoc
|
|
34
|
+
*/
|
|
35
|
+
DataView?: number;
|
|
36
|
+
/**
|
|
37
|
+
* The minimum size at which to compress strings
|
|
38
|
+
*
|
|
39
|
+
* @default 1000
|
|
40
|
+
* @typedoc
|
|
41
|
+
*/
|
|
42
|
+
String?: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Options for configuring the AutoCompress handler.
|
|
46
|
+
*
|
|
47
|
+
* @typedoc
|
|
48
|
+
*/
|
|
49
|
+
interface CompressionOptions {
|
|
50
|
+
/**
|
|
51
|
+
* The compression format to use. Must be a valid
|
|
52
|
+
* compression format supported by [CompressionStream](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream)
|
|
53
|
+
*
|
|
54
|
+
* The default is `gzip`.
|
|
55
|
+
*
|
|
56
|
+
* @typedoc
|
|
57
|
+
*/
|
|
58
|
+
format?: CompressionFormat;
|
|
59
|
+
/**
|
|
60
|
+
* Some browsers support `ReadableStream` as a request body. This option
|
|
61
|
+
* enables passing the compression stream as the request body instead of
|
|
62
|
+
* the final compressed body when the browser supports doing so.
|
|
63
|
+
*
|
|
64
|
+
* This comes with several caveats:
|
|
65
|
+
*
|
|
66
|
+
* - the request will be put into `duplex: 'half'` mode. This should be
|
|
67
|
+
* transparent to you, but it is worth noting.
|
|
68
|
+
* - the request mode cannot be `no-cors` as requests with a `ReadableStream`
|
|
69
|
+
* have no content length and thus are a new form of request that triggers
|
|
70
|
+
* cors requirements and a preflight request.
|
|
71
|
+
* - http/1.x is not supported.
|
|
72
|
+
*
|
|
73
|
+
* For additional reading about the restrictions of using `ReadableStream`
|
|
74
|
+
* as a request body, see the [Chromium Documentation](https://developer.chrome.com/docs/capabilities/web-apis/fetch-streaming-requests#restrictions)
|
|
75
|
+
*
|
|
76
|
+
* Streaming can be enabled per-request in browsers which support it by
|
|
77
|
+
* setting `request.options.allowStreaming` to `true`.
|
|
78
|
+
*
|
|
79
|
+
* Streaming can be forced even when the browser does not support it by setting
|
|
80
|
+
* `request.options.forceStreaming` to `true`. This is useful if later handlers
|
|
81
|
+
* in the chain can handle the request body as a stream.
|
|
82
|
+
*
|
|
83
|
+
* @default false
|
|
84
|
+
* @typedoc
|
|
85
|
+
*/
|
|
86
|
+
allowStreaming?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* If `true`, the request will be forced into streaming mode even
|
|
89
|
+
* if the browser does not support it. This is useful if later handlers
|
|
90
|
+
* in the chain can handle the request body as a stream.
|
|
91
|
+
*
|
|
92
|
+
* @default false
|
|
93
|
+
* @typedoc
|
|
94
|
+
*/
|
|
95
|
+
forceStreaming?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* The constraints for the request body. This is used to determine
|
|
98
|
+
* whether to compress the request body or not.
|
|
99
|
+
*
|
|
100
|
+
* The defaults are:
|
|
101
|
+
*
|
|
102
|
+
* ```ts
|
|
103
|
+
* {
|
|
104
|
+
* Blob: 1000, // blob.size
|
|
105
|
+
* ArrayBuffer: 1000, // buffer.byteLength
|
|
106
|
+
* TypedArray: 1000, // array.byteLength
|
|
107
|
+
* DataView: 1000, // view.byteLength
|
|
108
|
+
* String: 1000, // string.length
|
|
109
|
+
* }
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* The following body types are never compressed unless explicitly
|
|
113
|
+
* configured by the request:
|
|
114
|
+
* - `FormData`
|
|
115
|
+
* - `URLSearchParams`
|
|
116
|
+
* - `ReadableStream`
|
|
117
|
+
*
|
|
118
|
+
* A request.options.compress value of `false` will disable
|
|
119
|
+
* compression for a request body of any type. While a value of
|
|
120
|
+
* `true` will enable compression for the request.
|
|
121
|
+
*
|
|
122
|
+
* An undefined value will use the default, a value of `0` will
|
|
123
|
+
* enable compression for all values, and a value of `-1` will
|
|
124
|
+
* disable compression.
|
|
125
|
+
*
|
|
126
|
+
* @typedoc
|
|
127
|
+
*/
|
|
128
|
+
constraints?: Constraints;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* A request handler that automatically compresses the request body
|
|
132
|
+
* if the request body is a string, array buffer, blob, or form data.
|
|
133
|
+
*
|
|
134
|
+
* This uses the [CompressionStream API](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream)
|
|
135
|
+
*
|
|
136
|
+
* The compression format as well as the kinds of data to compress can be
|
|
137
|
+
* configured using the `format` and `constraints` options.
|
|
138
|
+
*
|
|
139
|
+
* ```diff
|
|
140
|
+
* +import { AutoCompress } from '@ember-data/request-utils/handlers';
|
|
141
|
+
* import Fetch from '@ember-data/request/fetch';
|
|
142
|
+
* import RequestManager from '@ember-data/request';
|
|
143
|
+
* import Store from '@ember-data/store';
|
|
144
|
+
*
|
|
145
|
+
* class AppStore extends Store {
|
|
146
|
+
* requestManager = new RequestManager()
|
|
147
|
+
* .use([
|
|
148
|
+
* + new AutoCompress(),
|
|
149
|
+
* Fetch
|
|
150
|
+
* ]);
|
|
151
|
+
* }
|
|
152
|
+
* ```
|
|
153
|
+
*
|
|
154
|
+
* @class AutoCompress
|
|
155
|
+
* @extends Handler
|
|
156
|
+
* @public
|
|
157
|
+
* @since 5.5.0
|
|
158
|
+
*/
|
|
159
|
+
export class AutoCompress implements Handler {
|
|
160
|
+
options: Required<CompressionOptions> & {
|
|
161
|
+
constraints: Required<Constraints>;
|
|
162
|
+
};
|
|
163
|
+
constructor(options?: CompressionOptions);
|
|
164
|
+
request<T>({ request }: RequestContext, next: NextFn<T>): Promise<T> | Future<T>;
|
|
165
|
+
}
|
|
166
|
+
export {};
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=auto-compress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-compress.d.ts","sourceRoot":"","sources":["../../../src/-private/handlers/auto-compress.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAOnF,eAAO,MAAM,sBAAsB,SAc/B,CAAC;AAEL,UAAU,WAAW;IACnB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,UAAU,kBAAkB;IAC1B;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAWD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;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"}
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
* @method uncountable
|
|
7
|
+
* @public
|
|
8
|
+
* @static
|
|
9
|
+
* @for @ember-data/request-utils/string
|
|
10
|
+
* @param {String} word
|
|
11
|
+
* @return {void}
|
|
12
|
+
* @since 4.13.0
|
|
13
|
+
*/
|
|
14
|
+
export function uncountable(word: string): void;
|
|
15
|
+
/**
|
|
16
|
+
* Marks a list of words as uncountable. Uncountable words are not pluralized
|
|
17
|
+
* or singularized.
|
|
18
|
+
*
|
|
19
|
+
* @method loadUncountable
|
|
20
|
+
* @public
|
|
21
|
+
* @static
|
|
22
|
+
* @for @ember-data/request-utils/string
|
|
23
|
+
* @param {Array<String>} uncountables
|
|
24
|
+
* @return {void}
|
|
25
|
+
* @since 4.13.0
|
|
26
|
+
*/
|
|
27
|
+
export function loadUncountable(uncountables: string[]): void;
|
|
28
|
+
/**
|
|
29
|
+
* Marks a word as irregular. Irregular words have unique
|
|
30
|
+
* pluralization and singularization rules.
|
|
31
|
+
*
|
|
32
|
+
* @method irregular
|
|
33
|
+
* @public
|
|
34
|
+
* @static
|
|
35
|
+
* @for @ember-data/request-utils/string
|
|
36
|
+
* @param {String} single
|
|
37
|
+
* @param {String} plur
|
|
38
|
+
* @return {void}
|
|
39
|
+
* @since 4.13.0
|
|
40
|
+
*/
|
|
41
|
+
export function irregular(single: string, plur: string): void;
|
|
42
|
+
/**
|
|
43
|
+
* Marks a list of word pairs as irregular. Irregular words have unique
|
|
44
|
+
* pluralization and singularization rules.
|
|
45
|
+
*
|
|
46
|
+
* @method loadIrregular
|
|
47
|
+
* @public
|
|
48
|
+
* @static
|
|
49
|
+
* @for @ember-data/request-utils/string
|
|
50
|
+
* @param {Array<Array<String>>} irregularPairs
|
|
51
|
+
* @return {void}
|
|
52
|
+
* @since 4.13.0
|
|
53
|
+
*/
|
|
54
|
+
export function loadIrregular(irregularPairs: Array<[string, string]>): void;
|
|
55
|
+
/**
|
|
56
|
+
* Clears the caches for singularize and pluralize.
|
|
57
|
+
*
|
|
58
|
+
* @method clear
|
|
59
|
+
* @public
|
|
60
|
+
* @static
|
|
61
|
+
* @for @ember-data/request-utils/string
|
|
62
|
+
* @return {void}
|
|
63
|
+
* @since 4.13.0
|
|
64
|
+
*/
|
|
65
|
+
export function clear(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Resets the inflection rules to the defaults.
|
|
68
|
+
*
|
|
69
|
+
* @method resetToDefaults
|
|
70
|
+
* @public
|
|
71
|
+
* @static
|
|
72
|
+
* @for @ember-data/request-utils/string
|
|
73
|
+
* @return {void}
|
|
74
|
+
* @since 4.13.0
|
|
75
|
+
*/
|
|
76
|
+
export function resetToDefaults(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Clears all inflection rules
|
|
79
|
+
* and resets the caches for singularize and pluralize.
|
|
80
|
+
*
|
|
81
|
+
* @method clearRules
|
|
82
|
+
* @public
|
|
83
|
+
* @static
|
|
84
|
+
* @for @ember-data/request-utils/string
|
|
85
|
+
* @return {void}
|
|
86
|
+
* @since 4.13.0
|
|
87
|
+
*/
|
|
88
|
+
export function clearRules(): void;
|
|
89
|
+
/**
|
|
90
|
+
* Singularizes a word.
|
|
91
|
+
*
|
|
92
|
+
* @method singularize
|
|
93
|
+
* @public
|
|
94
|
+
* @static
|
|
95
|
+
* @for @ember-data/request-utils/string
|
|
96
|
+
* @param {String} word
|
|
97
|
+
* @return {String}
|
|
98
|
+
* @since 4.13.0
|
|
99
|
+
*/
|
|
100
|
+
export function singularize(word: string): string;
|
|
101
|
+
/**
|
|
102
|
+
* Pluralizes a word.
|
|
103
|
+
*
|
|
104
|
+
* @method pluralize
|
|
105
|
+
* @public
|
|
106
|
+
* @static
|
|
107
|
+
* @for @ember-data/request-utils/string
|
|
108
|
+
* @param {String} word
|
|
109
|
+
* @return {String}
|
|
110
|
+
* @since 4.13.0
|
|
111
|
+
*/
|
|
112
|
+
export function pluralize(word: string): string;
|
|
113
|
+
/**
|
|
114
|
+
* Adds a pluralization rule.
|
|
115
|
+
*
|
|
116
|
+
* @method plural
|
|
117
|
+
* @public
|
|
118
|
+
* @static
|
|
119
|
+
* @for @ember-data/request-utils/string
|
|
120
|
+
* @param {RegExp} regex
|
|
121
|
+
* @param {String} string
|
|
122
|
+
* @return {void}
|
|
123
|
+
* @since 4.13.0
|
|
124
|
+
*/
|
|
125
|
+
export function plural(regex: RegExp, string: string): void;
|
|
126
|
+
/**
|
|
127
|
+
* Adds a singularization rule.
|
|
128
|
+
*
|
|
129
|
+
* @method singular
|
|
130
|
+
* @public
|
|
131
|
+
* @static
|
|
132
|
+
* @for @ember-data/request-utils/string
|
|
133
|
+
* @param {RegExp} regex
|
|
134
|
+
* @param {String} string
|
|
135
|
+
* @return {void}
|
|
136
|
+
* @since 4.13.0
|
|
137
|
+
*/
|
|
138
|
+
export function singular(regex: RegExp, string: string): void;
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=inflect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inflect.d.ts","sourceRoot":"","sources":["../../../src/-private/string/inflect.ts"],"names":[],"mappings":"AAyBA;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,QAEvC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,QAIrD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAQrD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,QAUpE;AAGD;;;;;;;;;GASG;AACH,wBAAgB,KAAK,SAGpB;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,SAM9B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,SAQzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,UAIvC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,UAIrC;AAWD;;;;;;;;;;;GAWG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAQnD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAQrD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
* @method dasherize
|
|
28
|
+
* @public
|
|
29
|
+
* @static
|
|
30
|
+
* @for @ember-data/request-utils/string
|
|
31
|
+
* @param {String} str
|
|
32
|
+
* @return {String}
|
|
33
|
+
* @since 4.13.0
|
|
34
|
+
*/
|
|
35
|
+
export function dasherize(str: string): string;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the lowerCamelCase form of a string.
|
|
38
|
+
*
|
|
39
|
+
* ```js
|
|
40
|
+
* import { camelize } from '@ember-data/request-utils/string';
|
|
41
|
+
*
|
|
42
|
+
* camelize('innerHTML'); // 'innerHTML'
|
|
43
|
+
* camelize('action_name'); // 'actionName'
|
|
44
|
+
* camelize('css-class-name'); // 'cssClassName'
|
|
45
|
+
* camelize('my favorite items'); // 'myFavoriteItems'
|
|
46
|
+
* camelize('My Favorite Items'); // 'myFavoriteItems'
|
|
47
|
+
* camelize('private-docs/owner-invoice'); // 'privateDocs/ownerInvoice'
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @method camelize
|
|
51
|
+
* @public
|
|
52
|
+
* @static
|
|
53
|
+
* @for @ember-data/request-utils/string
|
|
54
|
+
* @param {String} str
|
|
55
|
+
* @return {String}
|
|
56
|
+
* @since 4.13.0
|
|
57
|
+
*/
|
|
58
|
+
export function camelize(str: string): string;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the lower\_case\_and\_underscored form of a string.
|
|
61
|
+
*
|
|
62
|
+
* ```js
|
|
63
|
+
* import { underscore } from '@ember-data/request-utils/string';
|
|
64
|
+
*
|
|
65
|
+
* underscore('innerHTML'); // 'inner_html'
|
|
66
|
+
* underscore('action_name'); // 'action_name'
|
|
67
|
+
* underscore('css-class-name'); // 'css_class_name'
|
|
68
|
+
* underscore('my favorite items'); // 'my_favorite_items'
|
|
69
|
+
* underscore('privateDocs/ownerInvoice'); // 'private_docs/owner_invoice'
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @method underscore
|
|
73
|
+
* @public
|
|
74
|
+
* @static
|
|
75
|
+
* @for @ember-data/request-utils/string
|
|
76
|
+
* @param {String} str
|
|
77
|
+
* @return {String}
|
|
78
|
+
* @since 4.13.0
|
|
79
|
+
*/
|
|
80
|
+
export function underscore(str: string): string;
|
|
81
|
+
/**
|
|
82
|
+
* Returns the Capitalized form of a string
|
|
83
|
+
*
|
|
84
|
+
* ```js
|
|
85
|
+
* import { capitalize } from '@ember-data/request-utils/string';
|
|
86
|
+
*
|
|
87
|
+
* capitalize('innerHTML') // 'InnerHTML'
|
|
88
|
+
* capitalize('action_name') // 'Action_name'
|
|
89
|
+
* capitalize('css-class-name') // 'Css-class-name'
|
|
90
|
+
* capitalize('my favorite items') // 'My favorite items'
|
|
91
|
+
* capitalize('privateDocs/ownerInvoice'); // 'PrivateDocs/ownerInvoice'
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @method capitalize
|
|
95
|
+
* @static
|
|
96
|
+
* @public
|
|
97
|
+
* @for @ember-data/request-utils/string
|
|
98
|
+
* @param {String} str
|
|
99
|
+
* @return {String}
|
|
100
|
+
* @since 4.13.0
|
|
101
|
+
*/
|
|
102
|
+
export function capitalize(str: string): string;
|
|
103
|
+
/**
|
|
104
|
+
* Sets the maximum size of the LRUCache for all string transformation functions.
|
|
105
|
+
* The default size is 10,000.
|
|
106
|
+
*
|
|
107
|
+
* @method setMaxLRUCacheSize
|
|
108
|
+
* @public
|
|
109
|
+
* @static
|
|
110
|
+
* @for @ember-data/request-utils/string
|
|
111
|
+
* @param {Number} size
|
|
112
|
+
* @return {void}
|
|
113
|
+
* @since 4.13.0
|
|
114
|
+
*/
|
|
115
|
+
export function setMaxLRUCacheSize(size: number): void;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../src/-private/string/transform.ts"],"names":[],"mappings":"AAMA,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;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,QAK9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deprecation-support.d.ts","sourceRoot":"","sources":["../src/deprecation-support.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare module '@ember-data/request-utils/handlers' {
|
|
2
|
+
/**
|
|
3
|
+
* A selection of pre-built request handlers for handling common
|
|
4
|
+
* request scenarios.
|
|
5
|
+
*
|
|
6
|
+
* @module @ember-data/request-utils/handlers
|
|
7
|
+
* @main @ember-data/request-utils/handlers
|
|
8
|
+
*/
|
|
9
|
+
export { AutoCompress, SupportsRequestStreams } from '@ember-data/request-utils/-private/handlers/auto-compress';
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=handlers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../src/handlers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC"}
|