@ember-data/request-utils 5.4.0-alpha.87 → 5.4.0-alpha.89
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.
|
@@ -16,6 +16,108 @@ if (macroCondition(getGlobalConfig().WarpDrive.deprecations.DEPRECATE_EMBER_INFL
|
|
|
16
16
|
const originalIrregular = inflector.irregular;
|
|
17
17
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
18
18
|
const originalUncountable = inflector.uncountable;
|
|
19
|
+
|
|
20
|
+
// copy over any already registered rules
|
|
21
|
+
|
|
22
|
+
const {
|
|
23
|
+
defaultRules
|
|
24
|
+
} = Inflector;
|
|
25
|
+
const {
|
|
26
|
+
rules
|
|
27
|
+
} = inflector;
|
|
28
|
+
const pluralMap = new Map(defaultRules.plurals);
|
|
29
|
+
const singularMap = new Map(defaultRules.singular);
|
|
30
|
+
const irregularMap = new Map();
|
|
31
|
+
const toIgnore = new Set();
|
|
32
|
+
const uncountableSet = new Set(defaultRules.uncountable);
|
|
33
|
+
defaultRules.irregularPairs.forEach(([single, plur]) => {
|
|
34
|
+
irregularMap.set(single.toLowerCase(), plur);
|
|
35
|
+
toIgnore.add(plur.toLowerCase());
|
|
36
|
+
});
|
|
37
|
+
const irregularLookups = new Map();
|
|
38
|
+
Object.keys(rules.irregular).forEach(single => {
|
|
39
|
+
const plur = rules.irregular[single];
|
|
40
|
+
irregularLookups.set(single, plur);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// load plurals
|
|
44
|
+
rules.plurals.forEach(([regex, replacement]) => {
|
|
45
|
+
if (pluralMap.has(regex)) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
plural(regex, replacement);
|
|
49
|
+
deprecate(`WarpDrive/EmberData no longer uses ember-inflector for pluralization.\nPlease \`import { plural } from '@ember-data/request-utils/string';\` instead to register a custom pluralization rule for use with EmberData.`, false, {
|
|
50
|
+
id: 'warp-drive.ember-inflector',
|
|
51
|
+
until: '6.0.0',
|
|
52
|
+
for: 'warp-drive',
|
|
53
|
+
since: {
|
|
54
|
+
enabled: '5.3.4',
|
|
55
|
+
available: '5.3.4'
|
|
56
|
+
},
|
|
57
|
+
url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector'
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// load singulars
|
|
62
|
+
rules.singular.forEach(([regex, replacement]) => {
|
|
63
|
+
if (singularMap.has(regex)) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
singular(regex, replacement);
|
|
67
|
+
deprecate(`WarpDrive/EmberData no longer uses ember-inflector for singularization.\nPlease \`import { singular } from '@ember-data/request-utils/string';\` instead to register a custom singularization rule for use with EmberData.`, false, {
|
|
68
|
+
id: 'warp-drive.ember-inflector',
|
|
69
|
+
until: '6.0.0',
|
|
70
|
+
for: 'warp-drive',
|
|
71
|
+
since: {
|
|
72
|
+
enabled: '5.3.4',
|
|
73
|
+
available: '5.3.4'
|
|
74
|
+
},
|
|
75
|
+
url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector'
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// load irregulars
|
|
80
|
+
Object.keys(rules.irregular).forEach(single => {
|
|
81
|
+
const plur = rules.irregular[single];
|
|
82
|
+
const defaultPlur = irregularMap.get(single);
|
|
83
|
+
if (defaultPlur && defaultPlur === plur) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (toIgnore.has(single)) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const actualSingle = irregularLookups.get(plur.toLowerCase()) || single;
|
|
90
|
+
toIgnore.add(plur.toLowerCase());
|
|
91
|
+
irregular(actualSingle, plur);
|
|
92
|
+
deprecate(`WarpDrive/EmberData no longer uses ember-inflector for irregular rules.\nPlease \`import { irregular } from '@ember-data/request-utils/string';\` instead to register a custom irregular rule for use with EmberData for '${actualSingle}' <=> '${plur}'.`, false, {
|
|
93
|
+
id: 'warp-drive.ember-inflector',
|
|
94
|
+
until: '6.0.0',
|
|
95
|
+
for: 'warp-drive',
|
|
96
|
+
since: {
|
|
97
|
+
enabled: '5.3.4',
|
|
98
|
+
available: '5.3.4'
|
|
99
|
+
},
|
|
100
|
+
url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector'
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
// load uncountables
|
|
105
|
+
Object.keys(rules.uncountable).forEach(word => {
|
|
106
|
+
if (uncountableSet.has(word) || rules.uncountable[word] !== true) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
uncountable(word);
|
|
110
|
+
deprecate(`WarpDrive/EmberData no longer uses ember-inflector for uncountable rules.\nPlease \`import { uncountable } from '@ember-data/request-utils/string';\` instead to register a custom uncountable rule for '${word}' for use with EmberData.`, false, {
|
|
111
|
+
id: 'warp-drive.ember-inflector',
|
|
112
|
+
until: '6.0.0',
|
|
113
|
+
for: 'warp-drive',
|
|
114
|
+
since: {
|
|
115
|
+
enabled: '5.3.4',
|
|
116
|
+
available: '5.3.4'
|
|
117
|
+
},
|
|
118
|
+
url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector'
|
|
119
|
+
});
|
|
120
|
+
});
|
|
19
121
|
inflector.plural = function (...args) {
|
|
20
122
|
plural(...args);
|
|
21
123
|
deprecate(`WarpDrive/EmberData no longer uses ember-inflector for pluralization.\nPlease \`import { plural } from '@ember-data/request-utils/string';\` instead to register a custom pluralization rule for use with EmberData.`, false, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecation-support.js","sources":["../src/deprecation-support.ts"],"sourcesContent":["import { deprecate } from '@ember/debug';\n\nimport { dependencySatisfies, importSync, macroCondition } from '@embroider/macros';\n\nimport { DEPRECATE_EMBER_INFLECTOR } from '@warp-drive/build-config/deprecations';\n\nimport { irregular, plural, singular, uncountable } from './string';\n\nif (DEPRECATE_EMBER_INFLECTOR) {\n if (macroCondition(dependencySatisfies('ember-inflector', '*'))) {\n const Inflector = (importSync('ember-inflector') as { default: typeof import('ember-inflector').default }).default;\n const { inflector } = Inflector;\n\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const originalPlural = inflector.plural;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const originalSingular = inflector.singular;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const originalIrregular = inflector.irregular;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const originalUncountable = inflector.uncountable;\n\n inflector.plural = function (...args: Parameters<typeof originalPlural>) {\n plural(...args);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for pluralization.\\nPlease \\`import { plural } from '@ember-data/request-utils/string';\\` instead to register a custom pluralization rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '5.3.4',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n\n return originalPlural.apply(inflector, args);\n };\n\n inflector.singular = function (...args: Parameters<typeof originalSingular>) {\n singular(...args);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for singularization.\\nPlease \\`import { singular } from '@ember-data/request-utils/string';\\` instead to register a custom singularization rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '5.3.4',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n\n return originalSingular.apply(inflector, args);\n };\n\n inflector.irregular = function (...args: Parameters<typeof originalIrregular>) {\n irregular(...args);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for irregular rules.\\nPlease \\`import { irregular } from '@ember-data/request-utils/string';\\` instead to register a custom irregular rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '5.3.4',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n\n return originalIrregular.apply(inflector, args);\n };\n\n inflector.uncountable = function (...args: Parameters<typeof originalUncountable>) {\n uncountable(...args);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for uncountable rules.\\nPlease \\`import { uncountable } from '@ember-data/request-utils/string';\\` instead to register a custom uncountable rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '5.3.4',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n\n return originalUncountable.apply(inflector, args);\n };\n }\n}\n"],"names":["macroCondition","getGlobalConfig","WarpDrive","deprecations","DEPRECATE_EMBER_INFLECTOR","dependencySatisfies","Inflector","importSync","default","inflector","originalPlural","plural","originalSingular","singular","originalIrregular","irregular","originalUncountable","uncountable","args","deprecate","id","until","for","since","enabled","available","url","apply"],"mappings":";;;;AAQA,IAAAA,cAAA,CAAAC,eAAA,EAAA,CAAAC,SAAA,CAAAC,YAAA,CAAAC,yBAAA,CAA+B,EAAA;EAC7B,IAAIJ,cAAc,CAACK,mBAAmB,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC,EAAE;AAC/D,IAAA,MAAMC,SAAS,GAAIC,UAAU,CAAC,iBAAiB,CAAC,CAA2DC,OAAO,CAAA;IAClH,MAAM;AAAEC,MAAAA,SAAAA;AAAU,KAAC,GAAGH,SAAS,CAAA;;AAE/B;AACA,IAAA,MAAMI,cAAc,GAAGD,SAAS,CAACE,MAAM,CAAA;AACvC;AACA,IAAA,MAAMC,gBAAgB,GAAGH,SAAS,CAACI,QAAQ,CAAA;AAC3C;AACA,IAAA,MAAMC,iBAAiB,GAAGL,SAAS,CAACM,SAAS,CAAA;AAC7C;AACA,IAAA,MAAMC,mBAAmB,GAAGP,SAAS,CAACQ,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AE,4BAA4B;AAChCC,QAAAA,KAAK,EAAE,OAAO;AACdC,QAAAA,GAAG,EAAE,YAAY;AACjBC,QAAAA,KAAK,EAAE;AACLC,UAAAA,OAAO,EAAE,OAAO;AAChBC,UAAAA,SAAS,EAAE,OAAA;SACZ;AACDC,QAAAA,GAAG,EAAE,gEAAA;AACP,OACF,CAAC,CAAA;AAED,MAAA,OAAOZ,iBAAiB,CAACa,KAAK,CAAClB,SAAS,EAAES,IAAI,CAAC,CAAA;KAChD,CAAA;AAEDT,IAAAA,SAAS,CAACQ,WAAW,GAAG,UAAU,GAAGC,IAA4C,EAAE;MACjFD,WAAW,CAAC,GAAGC,IAAI,CAAC,CAAA;AAEpBC,MAAAA,SAAS,CACN,CAAA,2NAAA,CAA4N,EAC7N,KAAK,EACL;AACEC,QAAAA,EAAE,EAAE,4BAA4B;AAChCC,QAAAA,KAAK,EAAE,OAAO;AACdC,QAAAA,GAAG,EAAE,YAAY;AACjBC,QAAAA,KAAK,EAAE;AACLC,UAAAA,OAAO,EAAE,OAAO;AAChBC,UAAAA,SAAS,EAAE,OAAA;SACZ;AACDC,QAAAA,GAAG,EAAE,gEAAA;AACP,OACF,CAAC,CAAA;AAED,MAAA,OAAOV,mBAAmB,CAACW,KAAK,CAAClB,SAAS,EAAES,IAAI,CAAC,CAAA;KAClD,CAAA;AACH,GAAA;AACF"}
|
|
1
|
+
{"version":3,"file":"deprecation-support.js","sources":["../src/deprecation-support.ts"],"sourcesContent":["import { deprecate } from '@ember/debug';\n\nimport { dependencySatisfies, importSync, macroCondition } from '@embroider/macros';\n\nimport { DEPRECATE_EMBER_INFLECTOR } from '@warp-drive/build-config/deprecations';\n\nimport { irregular, plural, singular, uncountable } from './string';\n\nif (DEPRECATE_EMBER_INFLECTOR) {\n if (macroCondition(dependencySatisfies('ember-inflector', '*'))) {\n const Inflector = (importSync('ember-inflector') as { default: typeof import('ember-inflector').default }).default;\n const { inflector } = Inflector;\n\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const originalPlural = inflector.plural;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const originalSingular = inflector.singular;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const originalIrregular = inflector.irregular;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const originalUncountable = inflector.uncountable;\n\n // copy over any already registered rules\n type DefaultRules = {\n plurals: [RegExp, string][];\n singular: [RegExp, string][];\n irregularPairs: [string, string][];\n uncountable: string[];\n };\n type InternalRules = {\n plurals: [RegExp, string][];\n singular: [RegExp, string][];\n\n // [str1, str2] =>\n // { [str1.lower]: str2 }\n // { [str2.lower]: str2 }\n irregular: Record<string, string>;\n\n // [str1, str2] =>\n // { [str2.lower]: str1 }\n // { [str1.lower]: str1 }\n irregularInverse: Record<string, string>;\n\n // lower cased string\n uncountable: Record<string, boolean>;\n };\n const { defaultRules } = Inflector as unknown as { defaultRules: DefaultRules };\n const { rules } = inflector as unknown as { rules: InternalRules };\n\n const pluralMap = new Map(defaultRules.plurals);\n const singularMap = new Map(defaultRules.singular);\n const irregularMap = new Map<string, string>();\n const toIgnore = new Set<string>();\n const uncountableSet = new Set(defaultRules.uncountable);\n\n defaultRules.irregularPairs.forEach(([single, plur]) => {\n irregularMap.set(single.toLowerCase(), plur);\n toIgnore.add(plur.toLowerCase());\n });\n const irregularLookups = new Map<string, string>();\n Object.keys(rules.irregular).forEach((single) => {\n const plur = rules.irregular[single];\n irregularLookups.set(single, plur);\n });\n\n // load plurals\n rules.plurals.forEach(([regex, replacement]) => {\n if (pluralMap.has(regex)) {\n return;\n }\n\n plural(regex, replacement);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for pluralization.\\nPlease \\`import { plural } from '@ember-data/request-utils/string';\\` instead to register a custom pluralization rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '5.3.4',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n });\n\n // load singulars\n rules.singular.forEach(([regex, replacement]) => {\n if (singularMap.has(regex)) {\n return;\n }\n\n singular(regex, replacement);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for singularization.\\nPlease \\`import { singular } from '@ember-data/request-utils/string';\\` instead to register a custom singularization rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '5.3.4',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n });\n\n // load irregulars\n Object.keys(rules.irregular).forEach((single) => {\n const plur = rules.irregular[single];\n const defaultPlur = irregularMap.get(single);\n if (defaultPlur && defaultPlur === plur) {\n return;\n }\n\n if (toIgnore.has(single)) {\n return;\n }\n\n const actualSingle = irregularLookups.get(plur.toLowerCase()) || single;\n toIgnore.add(plur.toLowerCase());\n irregular(actualSingle, plur);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for irregular rules.\\nPlease \\`import { irregular } from '@ember-data/request-utils/string';\\` instead to register a custom irregular rule for use with EmberData for '${actualSingle}' <=> '${plur}'.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '5.3.4',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n });\n\n // load uncountables\n Object.keys(rules.uncountable).forEach((word) => {\n if (uncountableSet.has(word) || rules.uncountable[word] !== true) {\n return;\n }\n\n uncountable(word);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for uncountable rules.\\nPlease \\`import { uncountable } from '@ember-data/request-utils/string';\\` instead to register a custom uncountable rule for '${word}' for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '5.3.4',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n });\n\n inflector.plural = function (...args: Parameters<typeof originalPlural>) {\n plural(...args);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for pluralization.\\nPlease \\`import { plural } from '@ember-data/request-utils/string';\\` instead to register a custom pluralization rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '5.3.4',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n\n return originalPlural.apply(inflector, args);\n };\n\n inflector.singular = function (...args: Parameters<typeof originalSingular>) {\n singular(...args);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for singularization.\\nPlease \\`import { singular } from '@ember-data/request-utils/string';\\` instead to register a custom singularization rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '5.3.4',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n\n return originalSingular.apply(inflector, args);\n };\n\n inflector.irregular = function (...args: Parameters<typeof originalIrregular>) {\n irregular(...args);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for irregular rules.\\nPlease \\`import { irregular } from '@ember-data/request-utils/string';\\` instead to register a custom irregular rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '5.3.4',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n\n return originalIrregular.apply(inflector, args);\n };\n\n inflector.uncountable = function (...args: Parameters<typeof originalUncountable>) {\n uncountable(...args);\n\n deprecate(\n `WarpDrive/EmberData no longer uses ember-inflector for uncountable rules.\\nPlease \\`import { uncountable } from '@ember-data/request-utils/string';\\` instead to register a custom uncountable rule for use with EmberData.`,\n false,\n {\n id: 'warp-drive.ember-inflector',\n until: '6.0.0',\n for: 'warp-drive',\n since: {\n enabled: '5.3.4',\n available: '5.3.4',\n },\n url: 'https://deprecations.emberjs.com/id/warp-drive.ember-inflector',\n }\n );\n\n return originalUncountable.apply(inflector, args);\n };\n }\n}\n"],"names":["macroCondition","getGlobalConfig","WarpDrive","deprecations","DEPRECATE_EMBER_INFLECTOR","dependencySatisfies","Inflector","importSync","default","inflector","originalPlural","plural","originalSingular","singular","originalIrregular","irregular","originalUncountable","uncountable","defaultRules","rules","pluralMap","Map","plurals","singularMap","irregularMap","toIgnore","Set","uncountableSet","irregularPairs","forEach","single","plur","set","toLowerCase","add","irregularLookups","Object","keys","regex","replacement","has","deprecate","id","until","for","since","enabled","available","url","defaultPlur","get","actualSingle","word","args","apply"],"mappings":";;;;AAQA,IAAAA,cAAA,CAAAC,eAAA,EAAA,CAAAC,SAAA,CAAAC,YAAA,CAAAC,yBAAA,CAA+B,EAAA;EAC7B,IAAIJ,cAAc,CAACK,mBAAmB,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC,EAAE;AAC/D,IAAA,MAAMC,SAAS,GAAIC,UAAU,CAAC,iBAAiB,CAAC,CAA2DC,OAAO,CAAA;IAClH,MAAM;AAAEC,MAAAA,SAAAA;AAAU,KAAC,GAAGH,SAAS,CAAA;;AAE/B;AACA,IAAA,MAAMI,cAAc,GAAGD,SAAS,CAACE,MAAM,CAAA;AACvC;AACA,IAAA,MAAMC,gBAAgB,GAAGH,SAAS,CAACI,QAAQ,CAAA;AAC3C;AACA,IAAA,MAAMC,iBAAiB,GAAGL,SAAS,CAACM,SAAS,CAAA;AAC7C;AACA,IAAA,MAAMC,mBAAmB,GAAGP,SAAS,CAACQ,WAAW,CAAA;;AAEjD;;IAwBA,MAAM;AAAEC,MAAAA,YAAAA;AAAa,KAAC,GAAGZ,SAAsD,CAAA;IAC/E,MAAM;AAAEa,MAAAA,KAAAA;AAAM,KAAC,GAAGV,SAAgD,CAAA;IAElE,MAAMW,SAAS,GA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;AAElBZ,MAAAA,SAAS,CACN,CAAA,qNAAA,CAAsN,EACvN,KAAK,EACL;AACEC,QAAAA,EAAE,EAAE,4BAA4B;AAChCC,QAAAA,KAAK,EAAE,OAAO;AACdC,QAAAA,GAAG,EAAE,YAAY;AACjBC,QAAAA,KAAK,EAAE;AACLC,UAAAA,OAAO,EAAE,OAAO;AAChBC,UAAAA,SAAS,EAAE,OAAA;SACZ;AACDC,QAAAA,GAAG,EAAE,gEAAA;AACP,OACF,CAAC,CAAA;AAED,MAAA,OAAOlC,iBAAiB,CAACwC,KAAK,CAAC7C,SAAS,EAAE4C,IAAI,CAAC,CAAA;KAChD,CAAA;AAED5C,IAAAA,SAAS,CAACQ,WAAW,GAAG,UAAU,GAAGoC,IAA4C,EAAE;MACjFpC,WAAW,CAAC,GAAGoC,IAAI,CAAC,CAAA;AAEpBZ,MAAAA,SAAS,CACN,CAAA,2NAAA,CAA4N,EAC7N,KAAK,EACL;AACEC,QAAAA,EAAE,EAAE,4BAA4B;AAChCC,QAAAA,KAAK,EAAE,OAAO;AACdC,QAAAA,GAAG,EAAE,YAAY;AACjBC,QAAAA,KAAK,EAAE;AACLC,UAAAA,OAAO,EAAE,OAAO;AAChBC,UAAAA,SAAS,EAAE,OAAA;SACZ;AACDC,QAAAA,GAAG,EAAE,gEAAA;AACP,OACF,CAAC,CAAA;AAED,MAAA,OAAOhC,mBAAmB,CAACsC,KAAK,CAAC7C,SAAS,EAAE4C,IAAI,CAAC,CAAA;KAClD,CAAA;AACH,GAAA;AACF"}
|
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.89",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Chris Thoburn <runspired@users.noreply.github.com>",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@ember/string": "3.1.1",
|
|
53
|
-
"@warp-drive/core-types": "0.0.0-alpha.
|
|
53
|
+
"@warp-drive/core-types": "0.0.0-alpha.75",
|
|
54
54
|
"ember-inflector": "4.0.2"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@embroider/macros": "^1.16.1",
|
|
66
|
-
"@warp-drive/build-config": "0.0.0-alpha.
|
|
66
|
+
"@warp-drive/build-config": "0.0.0-alpha.26"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@babel/core": "^7.24.5",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"@babel/preset-typescript": "^7.24.1",
|
|
73
73
|
"@glimmer/component": "^1.1.2",
|
|
74
74
|
"@ember/string": "3.1.1",
|
|
75
|
-
"@warp-drive/core-types": "0.0.0-alpha.
|
|
76
|
-
"@warp-drive/internal-config": "5.4.0-alpha.
|
|
75
|
+
"@warp-drive/core-types": "0.0.0-alpha.75",
|
|
76
|
+
"@warp-drive/internal-config": "5.4.0-alpha.89",
|
|
77
77
|
"ember-source": "~5.8.0",
|
|
78
78
|
"ember-inflector": "4.0.2",
|
|
79
79
|
"pnpm-sync-dependencies-meta-injected": "0.0.14",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference path="./deprecation-support.d.ts" />
|
|
2
1
|
/// <reference path="./string.d.ts" />
|
|
3
|
-
/// <reference path="
|
|
2
|
+
/// <reference path="./deprecation-support.d.ts" />
|
|
4
3
|
/// <reference path="./-private/string/inflections.d.ts" />
|
|
5
4
|
/// <reference path="./-private/string/inflect.d.ts" />
|
|
5
|
+
/// <reference path="./-private/string/transform.d.ts" />
|
|
6
6
|
declare module '@ember-data/request-utils' {
|
|
7
7
|
import type { Cache } from '@warp-drive/core-types/cache';
|
|
8
8
|
import type { StableDocumentIdentifier } from '@warp-drive/core-types/identifier';
|