Skip to content

Commit

Permalink
chore: release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonsaayman committed Oct 6, 2022
1 parent 52d64ac commit 9c3dce3
Show file tree
Hide file tree
Showing 14 changed files with 48 additions and 31 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "axios",
"main": "./dist/axios.js",
"version": "1.0.0",
"version": "1.1.0",
"homepage": "https://axios-http.com",
"authors": [
"Matt Zabriskie"
Expand Down
22 changes: 14 additions & 8 deletions dist/axios.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/axios.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/axios.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/axios.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/esm/axios.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/axios.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/axios.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/axios.min.js.map

Large diffs are not rendered by default.

25 changes: 18 additions & 7 deletions dist/node/axios.cjs
@@ -1,6 +1,8 @@
// Axios v1.0.0 Copyright (c) 2022 Matt Zabriskie and contributors
// Axios v1.1.0 Copyright (c) 2022 Matt Zabriskie and contributors
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const FormData$1 = require('form-data');
const url = require('url');
const proxyFromEnv = require('proxy-from-env');
Expand Down Expand Up @@ -158,7 +160,7 @@ const isPlainObject = (val) => {
}

const prototype = getPrototypeOf(val);
return prototype === null || prototype === Object.prototype;
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
};

/**
Expand Down Expand Up @@ -1313,7 +1315,7 @@ function buildFullPath(baseURL, requestedURL) {
return requestedURL;
}

const VERSION = "1.0.0";
const VERSION = "1.1.0";

/**
* A `CanceledError` is an object that is thrown when an operation is canceled.
Expand Down Expand Up @@ -2251,9 +2253,14 @@ function httpAdapter(config) {

auth && headers.delete('authorization');

const path = parsed.pathname.concat(parsed.searchParams);
let path;

try {
buildURL(path, config.params, config.paramsSerializer).replace(/^\?/, '');
path = buildURL(
parsed.pathname + parsed.search,
config.params,
config.paramsSerializer
).replace(/^\?/, '');
} catch (err) {
const customErr = new Error(err.message);
customErr.config = config;
Expand All @@ -2265,7 +2272,7 @@ function httpAdapter(config) {
headers.set('Accept-Encoding', 'gzip, deflate, br', false);

const options = {
path: buildURL(path, config.params, config.paramsSerializer).replace(/^\?/, ''),
path,
method: method,
headers: headers.toJSON(),
agents: { http: config.httpAgent, https: config.httpsAgent },
Expand Down Expand Up @@ -3746,5 +3753,9 @@ axios.formToJSON = thing => {
return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
};

module.exports = axios;
exports.Axios = Axios;
exports.AxiosError = AxiosError;
exports.AxiosHeaders = AxiosHeaders;
exports.CanceledError = CanceledError;
exports["default"] = axios;

This comment has been minimized.

Copy link
@benmotyka2

benmotyka2 Oct 7, 2022

so confusing

//# sourceMappingURL=axios.cjs.map
2 changes: 1 addition & 1 deletion dist/node/axios.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/env/data.js
@@ -1 +1 @@
export const VERSION = "1.0.0";
export const VERSION = "1.1.0";
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "axios",
"version": "1.0.0",
"version": "1.1.0",
"description": "Promise based HTTP client for the browser and node.js",
"main": "index.js",
"exports": {
Expand Down

0 comments on commit 9c3dce3

Please sign in to comment.