@edirect/dynamics 11.0.24 → 11.0.26

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/README.md CHANGED
@@ -39,11 +39,12 @@ import { DynamicsService } from '@edirect/dynamics';
39
39
 
40
40
  @Controller('cats')
41
41
  export class CatsController {
42
- constructor(private readonly dynamicsService: DynamicsService) {}
42
+ constructor(private readonly dynamicsService: DynamicsService) {}
43
43
 
44
- postSomethingToDynamics(): Promise<any> {
45
- return this.dynamicsService
46
- .post('YOUR_URL', { YOUR_ATTRIBUTE: 'YOUR_VALUE' })
47
- }
44
+ postSomethingToDynamics(): Promise<any> {
45
+ return this.dynamicsService.post('YOUR_URL', {
46
+ YOUR_ATTRIBUTE: 'YOUR_VALUE',
47
+ });
48
+ }
48
49
  }
49
50
  ```
package/dist/README.md CHANGED
@@ -39,11 +39,12 @@ import { DynamicsService } from '@edirect/dynamics';
39
39
 
40
40
  @Controller('cats')
41
41
  export class CatsController {
42
- constructor(private readonly dynamicsService: DynamicsService) {}
42
+ constructor(private readonly dynamicsService: DynamicsService) {}
43
43
 
44
- postSomethingToDynamics(): Promise<any> {
45
- return this.dynamicsService
46
- .post('YOUR_URL', { YOUR_ATTRIBUTE: 'YOUR_VALUE' })
47
- }
44
+ postSomethingToDynamics(): Promise<any> {
45
+ return this.dynamicsService.post('YOUR_URL', {
46
+ YOUR_ATTRIBUTE: 'YOUR_VALUE',
47
+ });
48
+ }
48
49
  }
49
50
  ```
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edirect/dynamics",
3
- "version": "11.0.24",
3
+ "version": "11.0.25",
4
4
  "main": "./dist/src/index.js",
5
5
  "types": "./dist/src/index.d.ts",
6
6
  "exports": {
@@ -16,7 +16,7 @@
16
16
  "dist"
17
17
  ],
18
18
  "dependencies": {
19
- "@edirect/config": "^11.0.24",
19
+ "@edirect/config": "^11.0.25",
20
20
  "@nestjs/common": "^11.1.6",
21
21
  "@nestjs/axios": "^4.0.1",
22
22
  "axios": "^1.11.0",
@@ -32,7 +32,7 @@ let DynamicsService = class DynamicsService {
32
32
  'Content-Type': 'application/x-www-form-urlencoded',
33
33
  },
34
34
  })
35
- .then(response => response.data);
35
+ .then((response) => response.data);
36
36
  return this.tokenSet;
37
37
  }
38
38
  async getAccessTokenByClientCredentials() {
@@ -47,7 +47,7 @@ let DynamicsService = class DynamicsService {
47
47
  'Content-Type': 'application/x-www-form-urlencoded',
48
48
  },
49
49
  })
50
- .then(response => response.data);
50
+ .then((response) => response.data);
51
51
  return this.tokenSet;
52
52
  }
53
53
  async getRefreshToken() {
@@ -63,7 +63,7 @@ let DynamicsService = class DynamicsService {
63
63
  'Content-Type': 'application/x-www-form-urlencoded',
64
64
  },
65
65
  })
66
- .then(response => response.data);
66
+ .then((response) => response.data);
67
67
  }
68
68
  catch {
69
69
  return this.getAccessToken();
@@ -84,7 +84,7 @@ let DynamicsService = class DynamicsService {
84
84
  const config = (0, merge_1.default)(defaultConfig, options);
85
85
  return this.httpService.axiosRef
86
86
  .get(url, config)
87
- .then(response => response.data);
87
+ .then((response) => response.data);
88
88
  }
89
89
  async post(url, data, options, grantType) {
90
90
  if (!this.configService.get('DYNAMICS_ENABLED') ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edirect/dynamics",
3
- "version": "11.0.24",
3
+ "version": "11.0.26",
4
4
  "packageScope": "@edirect",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "axios": "^1.11.0",
23
23
  "lodash": "^4.17.21",
24
24
  "tslib": "^2.8.1",
25
- "@edirect/config": "11.0.24"
25
+ "@edirect/config": "11.0.26"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/express": "^5.0.3",