bamboohr.com 1.5.3 → 1.5.5

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.
Files changed (2) hide show
  1. package/dist/BambooHR.js +5 -2
  2. package/package.json +3 -3
package/dist/BambooHR.js CHANGED
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.BambooHR = void 0;
7
+ const node_crypto_1 = __importDefault(require("node:crypto"));
4
8
  const api_client_1 = require("@ffflorian/api-client");
5
9
  const api_1 = require("./api");
6
10
  class BambooHR {
@@ -9,8 +13,7 @@ class BambooHR {
9
13
  const baseURL = `https://api.bamboohr.com/api/gateway.php/${options.companyDomain}/v1/`;
10
14
  this.apiClient = new api_client_1.APIClient(baseURL, {
11
15
  auth: {
12
- // eslint-disable-next-line no-magic-numbers
13
- password: Math.random().toString(36).substring(7),
16
+ password: node_crypto_1.default.randomBytes(16).toString('base64').substring(0, 7),
14
17
  username: this.options.apiKey,
15
18
  },
16
19
  headers: {
package/package.json CHANGED
@@ -27,8 +27,8 @@
27
27
  ],
28
28
  "license": "GPL-3.0",
29
29
  "name": "bamboohr.com",
30
- "repository": "https://github.com/ffflorian/api-clients.git",
31
30
  "readme": "https://github.com/ffflorian/api-clients#readme",
31
+ "repository": "https://github.com/ffflorian/api-clients.git",
32
32
  "scripts": {
33
33
  "build:ts": "tsc -p tsconfig.build.json",
34
34
  "build:docs": "typedoc --tsconfig tsconfig.build.json --options ../../typedoc.json --out ../../docs/packages/bamboohr.com src/index.ts",
@@ -36,6 +36,6 @@
36
36
  "dist": "yarn clean && yarn build:ts",
37
37
  "test": "exit 0"
38
38
  },
39
- "version": "1.5.3",
40
- "gitHead": "3a8697be82ab0cbb28bc02e420b52254146649b3"
39
+ "version": "1.5.5",
40
+ "gitHead": "8d7471cbe490305b3e441c27acbc81e36a4bd9df"
41
41
  }