2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-08 17:22:34 +03:00

chore(ci): fix release action;

* chore(ci): Add release-it script;
* fix(utils): redesigned logic for obtaining the global link;;
* chore(git): updated .gitignore;
chore(npm): updated .npmignore;
* chore(git): fix husky prepare script;
* chore(github): reworked npm release action step;
* chore(ci): add CHANGELOG.md contributors section generator;
* chore(deps): add `auto-changelog` to package.json;
This commit is contained in:
Dmitriy Mozgovoy
2022-12-20 20:45:24 +02:00
committed by GitHub
parent f12d01eed1
commit 46085e6ffc
10 changed files with 275 additions and 30 deletions
+5 -1
View File
@@ -277,7 +277,11 @@ function findKey(obj, key) {
return null;
}
const _global = typeof self === "undefined" ? typeof global === "undefined" ? this : global : self;
const _global = (() => {
/*eslint no-undef:0*/
if (typeof globalThis !== "undefined") return globalThis;
return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
})();
const isContextDefined = (context) => !isUndefined(context) && context !== _global;