@bleedingdev/modern-js-create-request 3.8.1-ultramodern.2 → 3.8.1-ultramodern.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/browser.js +1 -1
- package/dist/cjs/requestFactory.js +3 -1
- package/dist/esm/browser.mjs +1 -1
- package/dist/esm/requestFactory.mjs +3 -1
- package/dist/esm-node/browser.mjs +1 -1
- package/dist/esm-node/requestFactory.mjs +3 -1
- package/dist/types/requestFactory.d.ts +1 -0
- package/package.json +4 -4
package/dist/cjs/browser.js
CHANGED
|
@@ -126,7 +126,7 @@ var __webpack_exports__ = {};
|
|
|
126
126
|
createInputParamsBody: (args)=>JSON.stringify({
|
|
127
127
|
args
|
|
128
128
|
}),
|
|
129
|
-
resolveRequestUrl: ({ configDomain, path })=>`${configDomain || ''}${path}`,
|
|
129
|
+
resolveRequestUrl: ({ configDomain, domain, path })=>`${configDomain || domain || ''}${path}`,
|
|
130
130
|
resolveUploadUrl: ({ configDomain, domain, path })=>`${configDomain || domain || ''}${path}`
|
|
131
131
|
});
|
|
132
132
|
const { configure, createRequest, createUploader } = requestFactory;
|
|
@@ -184,7 +184,7 @@ const createRequestFactory = (environment)=>{
|
|
|
184
184
|
requestId: args[5],
|
|
185
185
|
operationContext: args[6]
|
|
186
186
|
};
|
|
187
|
-
const { path, method, port, httpMethodDecider = 'functionName', fetch = environment.originFetch, requestId = 'default', operationContext } = options;
|
|
187
|
+
const { path, method, port, httpMethodDecider = 'functionName', fetch = environment.originFetch, domain, requestId = 'default', operationContext } = options;
|
|
188
188
|
const getFinalPath = (0, external_path_to_regexp_namespaceObject.compile)(path, {
|
|
189
189
|
encode: encodeURIComponent
|
|
190
190
|
});
|
|
@@ -200,6 +200,7 @@ const createRequestFactory = (environment)=>{
|
|
|
200
200
|
if ('default' !== requestId && (0, external_policyCore_js_namespaceObject.isEmptyDomain)(configDomain)) throw new external_policyCore_js_namespaceObject.ProducerDomainNotConfiguredError(requestId);
|
|
201
201
|
url = environment.resolveRequestUrl({
|
|
202
202
|
configDomain,
|
|
203
|
+
domain,
|
|
203
204
|
port,
|
|
204
205
|
path
|
|
205
206
|
});
|
|
@@ -240,6 +241,7 @@ const createRequestFactory = (environment)=>{
|
|
|
240
241
|
if ('default' !== requestId && (0, external_policyCore_js_namespaceObject.isEmptyDomain)(configDomain)) throw new external_policyCore_js_namespaceObject.ProducerDomainNotConfiguredError(requestId);
|
|
241
242
|
url = environment.resolveRequestUrl({
|
|
242
243
|
configDomain,
|
|
244
|
+
domain,
|
|
243
245
|
port,
|
|
244
246
|
path: finalPath
|
|
245
247
|
});
|
package/dist/esm/browser.mjs
CHANGED
|
@@ -18,7 +18,7 @@ const requestFactory = createRequestFactory({
|
|
|
18
18
|
createInputParamsBody: (args)=>JSON.stringify({
|
|
19
19
|
args
|
|
20
20
|
}),
|
|
21
|
-
resolveRequestUrl: ({ configDomain, path })=>`${configDomain || ''}${path}`,
|
|
21
|
+
resolveRequestUrl: ({ configDomain, domain, path })=>`${configDomain || domain || ''}${path}`,
|
|
22
22
|
resolveUploadUrl: ({ configDomain, domain, path })=>`${configDomain || domain || ''}${path}`
|
|
23
23
|
});
|
|
24
24
|
const { configure: configure, createRequest: createRequest, createUploader: createUploader } = requestFactory;
|
|
@@ -151,7 +151,7 @@ const createRequestFactory = (environment)=>{
|
|
|
151
151
|
requestId: args[5],
|
|
152
152
|
operationContext: args[6]
|
|
153
153
|
};
|
|
154
|
-
const { path, method, port, httpMethodDecider = 'functionName', fetch = environment.originFetch, requestId = 'default', operationContext } = options;
|
|
154
|
+
const { path, method, port, httpMethodDecider = 'functionName', fetch = environment.originFetch, domain, requestId = 'default', operationContext } = options;
|
|
155
155
|
const getFinalPath = compile(path, {
|
|
156
156
|
encode: encodeURIComponent
|
|
157
157
|
});
|
|
@@ -167,6 +167,7 @@ const createRequestFactory = (environment)=>{
|
|
|
167
167
|
if ('default' !== requestId && isEmptyDomain(configDomain)) throw new ProducerDomainNotConfiguredError(requestId);
|
|
168
168
|
url = environment.resolveRequestUrl({
|
|
169
169
|
configDomain,
|
|
170
|
+
domain,
|
|
170
171
|
port,
|
|
171
172
|
path
|
|
172
173
|
});
|
|
@@ -207,6 +208,7 @@ const createRequestFactory = (environment)=>{
|
|
|
207
208
|
if ('default' !== requestId && isEmptyDomain(configDomain)) throw new ProducerDomainNotConfiguredError(requestId);
|
|
208
209
|
url = environment.resolveRequestUrl({
|
|
209
210
|
configDomain,
|
|
211
|
+
domain,
|
|
210
212
|
port,
|
|
211
213
|
path: finalPath
|
|
212
214
|
});
|
|
@@ -19,7 +19,7 @@ const requestFactory = createRequestFactory({
|
|
|
19
19
|
createInputParamsBody: (args)=>JSON.stringify({
|
|
20
20
|
args
|
|
21
21
|
}),
|
|
22
|
-
resolveRequestUrl: ({ configDomain, path })=>`${configDomain || ''}${path}`,
|
|
22
|
+
resolveRequestUrl: ({ configDomain, domain, path })=>`${configDomain || domain || ''}${path}`,
|
|
23
23
|
resolveUploadUrl: ({ configDomain, domain, path })=>`${configDomain || domain || ''}${path}`
|
|
24
24
|
});
|
|
25
25
|
const { configure: configure, createRequest: createRequest, createUploader: createUploader } = requestFactory;
|
|
@@ -152,7 +152,7 @@ const createRequestFactory = (environment)=>{
|
|
|
152
152
|
requestId: args[5],
|
|
153
153
|
operationContext: args[6]
|
|
154
154
|
};
|
|
155
|
-
const { path, method, port, httpMethodDecider = 'functionName', fetch = environment.originFetch, requestId = 'default', operationContext } = options;
|
|
155
|
+
const { path, method, port, httpMethodDecider = 'functionName', fetch = environment.originFetch, domain, requestId = 'default', operationContext } = options;
|
|
156
156
|
const getFinalPath = compile(path, {
|
|
157
157
|
encode: encodeURIComponent
|
|
158
158
|
});
|
|
@@ -168,6 +168,7 @@ const createRequestFactory = (environment)=>{
|
|
|
168
168
|
if ('default' !== requestId && isEmptyDomain(configDomain)) throw new ProducerDomainNotConfiguredError(requestId);
|
|
169
169
|
url = environment.resolveRequestUrl({
|
|
170
170
|
configDomain,
|
|
171
|
+
domain,
|
|
171
172
|
port,
|
|
172
173
|
path
|
|
173
174
|
});
|
|
@@ -208,6 +209,7 @@ const createRequestFactory = (environment)=>{
|
|
|
208
209
|
if ('default' !== requestId && isEmptyDomain(configDomain)) throw new ProducerDomainNotConfiguredError(requestId);
|
|
209
210
|
url = environment.resolveRequestUrl({
|
|
210
211
|
configDomain,
|
|
212
|
+
domain,
|
|
211
213
|
port,
|
|
212
214
|
path: finalPath
|
|
213
215
|
});
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.8.1-ultramodern.
|
|
20
|
+
"version": "3.8.1-ultramodern.4",
|
|
21
21
|
"modern:source": "./src/node.ts",
|
|
22
22
|
"types": "./dist/types/browser.d.ts",
|
|
23
23
|
"main": "./dist/cjs/node.js",
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.8.1-ultramodern.
|
|
59
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.8.1-ultramodern.
|
|
58
|
+
"@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.8.1-ultramodern.4",
|
|
59
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.8.1-ultramodern.4",
|
|
60
60
|
"@swc/helpers": "^0.5.23",
|
|
61
61
|
"encoding": "^0.1.13",
|
|
62
62
|
"path-to-regexp": "^8.4.2",
|
|
63
63
|
"qs": "^6.15.3"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.8.1-ultramodern.
|
|
66
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.8.1-ultramodern.4",
|
|
67
67
|
"@rslib/core": "0.23.2",
|
|
68
68
|
"@scripts/rstest-config": "2.66.0",
|
|
69
69
|
"@types/node": "^26.2.0",
|