bamboohr.com 1.5.2 → 1.5.4

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 -1
  2. package/package.json +6 -4
package/dist/BambooHR.js CHANGED
@@ -1,8 +1,12 @@
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;
4
7
  const api_client_1 = require("@ffflorian/api-client");
5
8
  const api_1 = require("./api");
9
+ const crypto_1 = __importDefault(require("crypto"));
6
10
  class BambooHR {
7
11
  constructor(options) {
8
12
  this.options = options;
@@ -10,7 +14,7 @@ class BambooHR {
10
14
  this.apiClient = new api_client_1.APIClient(baseURL, {
11
15
  auth: {
12
16
  // eslint-disable-next-line no-magic-numbers
13
- password: Math.random().toString(36).substring(7),
17
+ password: crypto_1.default.randomBytes(16).toString('base64').substring(0, 7),
14
18
  username: this.options.apiKey,
15
19
  },
16
20
  headers: {
package/package.json CHANGED
@@ -15,18 +15,20 @@
15
15
  "engines": {
16
16
  "node": ">= 21"
17
17
  },
18
+ "exports": "./dist/index.js",
18
19
  "files": [
19
20
  "dist"
20
21
  ],
21
22
  "keywords": [
22
23
  "api",
24
+ "api-client",
23
25
  "bamboohr.com",
24
26
  "bamboohr"
25
27
  ],
26
28
  "license": "GPL-3.0",
27
- "main": "dist/index.js",
28
29
  "name": "bamboohr.com",
29
- "repository": "https://github.com/ffflorian/api-clients/tree/main/packages/bamboohr.com",
30
+ "readme": "https://github.com/ffflorian/api-clients#readme",
31
+ "repository": "https://github.com/ffflorian/api-clients.git",
30
32
  "scripts": {
31
33
  "build:ts": "tsc -p tsconfig.build.json",
32
34
  "build:docs": "typedoc --tsconfig tsconfig.build.json --options ../../typedoc.json --out ../../docs/packages/bamboohr.com src/index.ts",
@@ -34,6 +36,6 @@
34
36
  "dist": "yarn clean && yarn build:ts",
35
37
  "test": "exit 0"
36
38
  },
37
- "version": "1.5.2",
38
- "gitHead": "a0b23d2b7c06cdabfeefd728a56b8a910b6e282e"
39
+ "version": "1.5.4",
40
+ "gitHead": "12bebfb90528bb894bccb99670373af33c6a5159"
39
41
  }