@data-fair/lib-node 1.1.0 → 1.2.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/axios-auth.d.ts CHANGED
@@ -7,6 +7,7 @@ export interface AxiosAuthOptions {
7
7
  adminMode?: boolean;
8
8
  directoryUrl?: string;
9
9
  axiosOpts?: any;
10
+ orgStorage?: boolean;
10
11
  }
11
12
  export declare function axiosAuth(opts: AxiosAuthOptions): Promise<AxiosInstance>;
12
13
  export default axiosAuth;
package/axios-auth.js CHANGED
@@ -7,6 +7,7 @@ export async function axiosAuth (opts) {
7
7
  if (opts.org) { body.org = opts.org }
8
8
  if (opts.dep) { body.dep = opts.dep }
9
9
  if (opts.adminMode) { body.adminMode = opts.adminMode }
10
+ if (opts.orgStorage) { body.orgStorage = opts.orgStorage }
10
11
  const axiosOpts = {
11
12
  httpAgent: new Agent({ keepAlive: false }),
12
13
  ...opts.axiosOpts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-node",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Small nodejs related utility functions for the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@data-fair/lib-common-types": "^1.1.0",
18
- "@data-fair/lib-utils": "1.0.0",
18
+ "@data-fair/lib-utils": "^1.1.0",
19
19
  "agentkeepalive": "^4.5.0",
20
20
  "ajv-formats": "^3.0.1",
21
21
  "ajv-i18n": "^4.2.0",