@driveflux/fetch 6.4.0 → 6.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/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -15
- package/package.json +7 -7
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,OAAO,EAEZ,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAExD,KAAK,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG;IACtD,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,CAAA;CACnC,CAAA;AAED,KAAK,aAAa,GAAG;IACpB,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAA;IAC5B,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,IAAI,MAAM,CACvD,CAAC,EACD,CAAC,GAAG,OAAO,EACX,aAAa,CACb,CAAA;AAaD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,OAAO,EAEZ,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAExD,KAAK,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG;IACtD,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,CAAA;CACnC,CAAA;AAED,KAAK,aAAa,GAAG;IACpB,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAA;IAC5B,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,IAAI,MAAM,CACvD,CAAC,EACD,CAAC,GAAG,OAAO,EACX,aAAa,CACb,CAAA;AAaD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAU,CAAC,GAAG,MAAM,EAAE,CAAC,GAAG,OAAO,EAC1D,KAAK,MAAM,EACX,kBAAkB,mBAAmB,KACnC,OAAO,CAAC,mBAAmB,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAgF7C,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -114,7 +114,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
114
114
|
return target;
|
|
115
115
|
}
|
|
116
116
|
function _ts_generator(thisArg, body) {
|
|
117
|
-
var f, y, t,
|
|
117
|
+
var f, y, t, _ = {
|
|
118
118
|
label: 0,
|
|
119
119
|
sent: function() {
|
|
120
120
|
if (t[0] & 1) throw t[1];
|
|
@@ -122,12 +122,8 @@ function _ts_generator(thisArg, body) {
|
|
|
122
122
|
},
|
|
123
123
|
trys: [],
|
|
124
124
|
ops: []
|
|
125
|
-
};
|
|
126
|
-
return g = {
|
|
127
|
-
next: verb(0),
|
|
128
|
-
"throw": verb(1),
|
|
129
|
-
"return": verb(2)
|
|
130
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
125
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
126
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
131
127
|
return this;
|
|
132
128
|
}), g;
|
|
133
129
|
function verb(n) {
|
|
@@ -140,7 +136,7 @@ function _ts_generator(thisArg, body) {
|
|
|
140
136
|
}
|
|
141
137
|
function step(op) {
|
|
142
138
|
if (f) throw new TypeError("Generator is already executing.");
|
|
143
|
-
while(_)try {
|
|
139
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
144
140
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
145
141
|
if (y = 0, t) op = [
|
|
146
142
|
op[0] & 2,
|
|
@@ -226,8 +222,8 @@ import { Err, Ok } from '@driveflux/result';
|
|
|
226
222
|
* @param [options] The options we want to pass to "fetch"
|
|
227
223
|
*
|
|
228
224
|
* @return The response data
|
|
229
|
-
*/ export var enhancedFetch =
|
|
230
|
-
|
|
225
|
+
*/ export var enhancedFetch = function(url, providedOptions) {
|
|
226
|
+
return _async_to_generator(function() {
|
|
231
227
|
var _ref, body, rest, options, finalBody, response, e, metadata, responseBody, textBody, e1;
|
|
232
228
|
return _ts_generator(this, function(_state) {
|
|
233
229
|
switch(_state.label){
|
|
@@ -353,8 +349,5 @@ import { Err, Ok } from '@driveflux/result';
|
|
|
353
349
|
];
|
|
354
350
|
}
|
|
355
351
|
});
|
|
356
|
-
});
|
|
357
|
-
|
|
358
|
-
return _ref.apply(this, arguments);
|
|
359
|
-
};
|
|
360
|
-
}();
|
|
352
|
+
})();
|
|
353
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@driveflux/fetch",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./package.json": "./package.json",
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@driveflux/problem": "4.
|
|
17
|
-
"@driveflux/result": "4.
|
|
16
|
+
"@driveflux/problem": "4.5.0",
|
|
17
|
+
"@driveflux/result": "4.5.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@driveflux/fab": "2.
|
|
21
|
-
"@driveflux/tsconfig": "1.
|
|
22
|
-
"@types/node": "^22.
|
|
20
|
+
"@driveflux/fab": "2.5.0",
|
|
21
|
+
"@driveflux/tsconfig": "1.4.0",
|
|
22
|
+
"@types/node": "^22.15.16",
|
|
23
23
|
"del-cli": "^6.0.0",
|
|
24
|
-
"typescript": "^5.
|
|
24
|
+
"typescript": "^5.8.3"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "fab",
|