@compilot/js-sdk 2.3.3-dev → 2.3.5-dev

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.
@@ -1400,17 +1400,20 @@ var getEnv = function getEnv() {
1400
1400
  *
1401
1401
  * @param config.apiKey The API key to use for the client
1402
1402
  * @param config.webhookSecret The webhook secret to use for the client
1403
+ * @param config.logLevel The log level to use for the client
1403
1404
  *
1404
1405
  * @returns The API client
1405
1406
  */
1406
1407
  var createSdk = function createSdk(_ref) {
1407
1408
  var apiKey = _ref.apiKey,
1408
- webhookSecret = _ref.webhookSecret;
1409
+ webhookSecret = _ref.webhookSecret,
1410
+ logLevel = _ref.logLevel;
1409
1411
  if (!apiKey) {
1410
1412
  throw new ApiKeyNotProvidedError();
1411
1413
  }
1412
1414
  var logger$1 = logger.createLogger({
1413
- name: "js-sdk"
1415
+ name: "js-sdk",
1416
+ level: logLevel
1414
1417
  });
1415
1418
  var compilotApiClient = apiClient.createNexeraAPIClient({
1416
1419
  env: getEnv(),
@@ -1400,17 +1400,20 @@ var getEnv = function getEnv() {
1400
1400
  *
1401
1401
  * @param config.apiKey The API key to use for the client
1402
1402
  * @param config.webhookSecret The webhook secret to use for the client
1403
+ * @param config.logLevel The log level to use for the client
1403
1404
  *
1404
1405
  * @returns The API client
1405
1406
  */
1406
1407
  var createSdk = function createSdk(_ref) {
1407
1408
  var apiKey = _ref.apiKey,
1408
- webhookSecret = _ref.webhookSecret;
1409
+ webhookSecret = _ref.webhookSecret,
1410
+ logLevel = _ref.logLevel;
1409
1411
  if (!apiKey) {
1410
1412
  throw new ApiKeyNotProvidedError();
1411
1413
  }
1412
1414
  var logger$1 = logger.createLogger({
1413
- name: "js-sdk"
1415
+ name: "js-sdk",
1416
+ level: logLevel
1414
1417
  });
1415
1418
  var compilotApiClient = apiClient.createNexeraAPIClient({
1416
1419
  env: getEnv(),
@@ -1398,17 +1398,20 @@ var getEnv = function getEnv() {
1398
1398
  *
1399
1399
  * @param config.apiKey The API key to use for the client
1400
1400
  * @param config.webhookSecret The webhook secret to use for the client
1401
+ * @param config.logLevel The log level to use for the client
1401
1402
  *
1402
1403
  * @returns The API client
1403
1404
  */
1404
1405
  var createSdk = function createSdk(_ref) {
1405
1406
  var apiKey = _ref.apiKey,
1406
- webhookSecret = _ref.webhookSecret;
1407
+ webhookSecret = _ref.webhookSecret,
1408
+ logLevel = _ref.logLevel;
1407
1409
  if (!apiKey) {
1408
1410
  throw new ApiKeyNotProvidedError();
1409
1411
  }
1410
1412
  var logger = createLogger({
1411
- name: "js-sdk"
1413
+ name: "js-sdk",
1414
+ level: logLevel
1412
1415
  });
1413
1416
  var compilotApiClient = createNexeraAPIClient({
1414
1417
  env: getEnv(),
@@ -1,14 +1,17 @@
1
+ import type { LoggerLevel } from "@nexeraid/logger";
1
2
  /**
2
3
  * Create an API client for the ComPilot API
3
4
  *
4
5
  * @param config.apiKey The API key to use for the client
5
6
  * @param config.webhookSecret The webhook secret to use for the client
7
+ * @param config.logLevel The log level to use for the client
6
8
  *
7
9
  * @returns The API client
8
10
  */
9
- export declare const createSdk: ({ apiKey, webhookSecret, }: {
11
+ export declare const createSdk: ({ apiKey, webhookSecret, logLevel, }: {
10
12
  apiKey: string;
11
13
  webhookSecret?: string;
14
+ logLevel?: LoggerLevel;
12
15
  }) => {
13
16
  createWeb3Challenge: import("../actions/createWeb3Challenge.js").CreateWeb3ChallengeFn;
14
17
  verifyWeb3Challenge: import("../actions/verifyWeb3Challenge.js").VerifyWeb3ChallengeFn;
@@ -1 +1 @@
1
- {"version":3,"file":"createSdk.d.ts","sourceRoot":"../../../../src/configuration","sources":["createSdk.ts"],"names":[],"mappings":"AAiBA;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,+BAGnB;IACD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;;;;;;;;;;;CA2CA,CAAC;AAEF,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,GAC7B,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"createSdk.d.ts","sourceRoot":"../../../../src/configuration","sources":["createSdk.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAgBpD;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,yCAInB;IACD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;CA2CA,CAAC;AAEF,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,GAC7B,MAAM,4BAA4B,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilot/js-sdk",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "description": "ComPilot JS SDK",
5
5
  "keywords": [],
6
6
  "license": "ISC",
@@ -34,7 +34,8 @@
34
34
  },
35
35
  "eslintConfig": {
36
36
  "extends": [
37
- "@unblokttechnology/eslint-config/base"
37
+ "@unblokttechnology/eslint-config/base",
38
+ "@unblokttechnology/eslint-config/public"
38
39
  ],
39
40
  "root": true
40
41
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilot/js-sdk",
3
- "version": "2.3.3-dev",
3
+ "version": "2.3.5-dev",
4
4
  "description": "ComPilot JS SDK",
5
5
  "keywords": [],
6
6
  "license": "ISC",
@@ -19,7 +19,8 @@
19
19
  ],
20
20
  "eslintConfig": {
21
21
  "extends": [
22
- "@unblokttechnology/eslint-config/base"
22
+ "@unblokttechnology/eslint-config/base",
23
+ "@unblokttechnology/eslint-config/public"
23
24
  ],
24
25
  "root": true
25
26
  },
@@ -29,7 +30,7 @@
29
30
  "zod": "^3.23.8",
30
31
  "@nexeraid/api-client": "2.3.0-dev",
31
32
  "@nexeraid/identity-api-client": "2.3.0-dev",
32
- "@nexeraid/identity-schemas": "2.3.3-dev",
33
+ "@nexeraid/identity-schemas": "2.3.5-dev",
33
34
  "@nexeraid/logger": "2.3.0-dev"
34
35
  },
35
36
  "devDependencies": {