bamboohr.com 1.5.4 → 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 +2 -3
  2. package/package.json +2 -2
package/dist/BambooHR.js CHANGED
@@ -4,17 +4,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.BambooHR = void 0;
7
+ const node_crypto_1 = __importDefault(require("node:crypto"));
7
8
  const api_client_1 = require("@ffflorian/api-client");
8
9
  const api_1 = require("./api");
9
- const crypto_1 = __importDefault(require("crypto"));
10
10
  class BambooHR {
11
11
  constructor(options) {
12
12
  this.options = options;
13
13
  const baseURL = `https://api.bamboohr.com/api/gateway.php/${options.companyDomain}/v1/`;
14
14
  this.apiClient = new api_client_1.APIClient(baseURL, {
15
15
  auth: {
16
- // eslint-disable-next-line no-magic-numbers
17
- password: crypto_1.default.randomBytes(16).toString('base64').substring(0, 7),
16
+ password: node_crypto_1.default.randomBytes(16).toString('base64').substring(0, 7),
18
17
  username: this.options.apiKey,
19
18
  },
20
19
  headers: {
package/package.json CHANGED
@@ -36,6 +36,6 @@
36
36
  "dist": "yarn clean && yarn build:ts",
37
37
  "test": "exit 0"
38
38
  },
39
- "version": "1.5.4",
40
- "gitHead": "12bebfb90528bb894bccb99670373af33c6a5159"
39
+ "version": "1.5.5",
40
+ "gitHead": "8d7471cbe490305b3e441c27acbc81e36a4bd9df"
41
41
  }