@pickaxeproject/react 2.1.2 → 2.1.3

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.
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var s=e(require("axios"));const t=process.env.NEXT_PUBLIC_API_URL||"";if(!t)throw new Error("[px/react] NEXT_PUBLIC_API_URL is not defined");const r=s.default.create(Object.assign({baseURL:t},(!process.env.NODE_ENV||"development"===process.env.NODE_ENV)&&process.env.NEXT_PUBLIC_PICKAXE_SESSION_TOKEN&&{headers:{"x-pickaxe-session-token":process.env.NEXT_PUBLIC_PICKAXE_SESSION_TOKEN}}));exports.default=r;
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var s=e(require("axios"));const t=process.env.NEXT_PUBLIC_API_URL||"";if(!t)throw new Error("[px/react] NEXT_PUBLIC_API_URL is not defined");const r=s.default.create(Object.assign({baseURL:t,withCredentials:!0},(!process.env.NODE_ENV||"development"===process.env.NODE_ENV)&&process.env.NEXT_PUBLIC_PICKAXE_SESSION_TOKEN&&{headers:{"x-pickaxe-session-token":process.env.NEXT_PUBLIC_PICKAXE_SESSION_TOKEN}}));exports.default=r;
@@ -1 +1 @@
1
- import e from"axios";const s=process.env.NEXT_PUBLIC_API_URL||"";if(!s)throw new Error("[px/react] NEXT_PUBLIC_API_URL is not defined");const o=e.create(Object.assign({baseURL:s},(!process.env.NODE_ENV||"development"===process.env.NODE_ENV)&&process.env.NEXT_PUBLIC_PICKAXE_SESSION_TOKEN&&{headers:{"x-pickaxe-session-token":process.env.NEXT_PUBLIC_PICKAXE_SESSION_TOKEN}}));export{o as default};
1
+ import e from"axios";const s=process.env.NEXT_PUBLIC_API_URL||"";if(!s)throw new Error("[px/react] NEXT_PUBLIC_API_URL is not defined");const o=e.create(Object.assign({baseURL:s,withCredentials:!0},(!process.env.NODE_ENV||"development"===process.env.NODE_ENV)&&process.env.NEXT_PUBLIC_PICKAXE_SESSION_TOKEN&&{headers:{"x-pickaxe-session-token":process.env.NEXT_PUBLIC_PICKAXE_SESSION_TOKEN}}));export{o as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pickaxeproject/react",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Client utility library for Pickaxe",
5
5
  "repository": {
6
6
  "type": "git",