@itentialopensource/adapter-utils 5.0.0 → 5.0.2
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/CHANGELOG.md +61 -17
- package/lib/genericHandler.js +2 -2
- package/package.json +1 -1
- package/refs?service=git-upload-pack +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## 5.0.2 [07-17-2023]
|
|
3
|
+
|
|
4
|
+
* remove ds files and fix to expanded generic
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapter-utils!262
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 5.0.1 [07-14-2023]
|
|
11
|
+
|
|
12
|
+
* Update file CHANGELOG.md
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapter-utils!261
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 5.0.0 [07-14-2023]
|
|
3
19
|
|
|
4
20
|
* Resolve ADAPT-2341 "Major/" - Cache, broker, generic, etc
|
|
@@ -7,6 +23,34 @@ Closes ADAPT-2341
|
|
|
7
23
|
|
|
8
24
|
See merge request itentialopensource/adapter-utils!260
|
|
9
25
|
|
|
26
|
+
- Change to order or precedence for service config vs endpoint config for the following props
|
|
27
|
+
- token endpoint config
|
|
28
|
+
- healthcehck endpoint
|
|
29
|
+
- sso properties
|
|
30
|
+
|
|
31
|
+
- Scrub sensitive data from logs
|
|
32
|
+
- Default array of sensitive keyworkds
|
|
33
|
+
- Service instance config property to add sensitive keywords
|
|
34
|
+
|
|
35
|
+
- Add generic handler
|
|
36
|
+
|
|
37
|
+
- Add broker handler
|
|
38
|
+
|
|
39
|
+
- Add cache handler
|
|
40
|
+
- Broker usage
|
|
41
|
+
- Service instance config usage
|
|
42
|
+
|
|
43
|
+
- Update dependencies
|
|
44
|
+
- Minor version update
|
|
45
|
+
- Major version update
|
|
46
|
+
- Replace deprecated dependencies
|
|
47
|
+
Note - this does not cover all dependencies
|
|
48
|
+
|
|
49
|
+
- Compatibilty with Node 14,16 and 18
|
|
50
|
+
|
|
51
|
+
- Fix: Handle empty mock data files
|
|
52
|
+
|
|
53
|
+
|
|
10
54
|
---
|
|
11
55
|
|
|
12
56
|
## 4.49.0 [05-15-2023]
|
|
@@ -1615,32 +1659,32 @@ See merge request itentialopensource/adapter-utils!68
|
|
|
1615
1659
|
# Current Version: 4.3.1 [03-26-2019]
|
|
1616
1660
|
|
|
1617
1661
|
## New Features
|
|
1618
|
-
* __3.10.0 [12-05-2018]__ - New methods have been add to:
|
|
1619
|
-
|
|
1620
|
-
support failover - there is a method (setFailover) that can be called by adapters to get the proper failover code.
|
|
1621
|
-
support verifying capabilities - there is a method (verifyCapability) which will verify that the adapter supports the entity, action and specific entities (Array).
|
|
1622
|
-
support caching entities - the verifyCapability used a cache of entities. This cache can be 'local' memory or in 'redis' based on the cache_location property. You can add entity lists into the cache using the addEntityCache method.
|
|
1662
|
+
* __3.10.0 [12-05-2018]__ - New methods have been add to:
|
|
1663
|
+
|
|
1664
|
+
support failover - there is a method (setFailover) that can be called by adapters to get the proper failover code.
|
|
1665
|
+
support verifying capabilities - there is a method (verifyCapability) which will verify that the adapter supports the entity, action and specific entities (Array).
|
|
1666
|
+
support caching entities - the verifyCapability used a cache of entities. This cache can be 'local' memory or in 'redis' based on the cache_location property. You can add entity lists into the cache using the addEntityCache method.
|
|
1623
1667
|
[PH-21980](http://itential.atlassian.net/browse/PH-21980)
|
|
1624
|
-
* __3.9.0 [12-04-2018]__ - The external name on schemas can now be at the same level or lower --
|
|
1668
|
+
* __3.9.0 [12-04-2018]__ - The external name on schemas can now be at the same level or lower --
|
|
1625
1669
|
It can still be sys_id or it can be something like ticket.sys_id this allows translation to be done at different levels. [PH-20788](http://itential.atlassian.net/browse/PH-20788)
|
|
1626
1670
|
* __3.6.0 [11-16-2018]__ - The process to check the action files for validity has been moved into adapter-utils to reduce the code in the adapter-template. This also moves the actionSchema.json into the adapter-utils. [PH-20797](http://itential.atlassian.net/browse/PH-20797)
|
|
1627
1671
|
* __3.5.0 [11-16-2018]__ - Removed the requirement for the properties -authentication.token_URI_path, healthcheck.URI_path and healthcheck.protocol. These can now be taken care of in the .system entity. [PH-20778](http://itential.atlassian.net/browse/PH-20778)
|
|
1628
1672
|
* __2.1.0 [08-17-2018]__ - These libraries now support token re-use and expiration during the calls to the external system. [PH-14296](http://itential.atlassian.net/browse/PH-14296)
|
|
1629
|
-
* __2.0.0 [08-13-2018]__ - The following issues are in this Sprint Branch
|
|
1630
|
-
PH-16044 -- Add Generic call that is protocol and method independent
|
|
1631
|
-
PH-16024 -- Mock data should not have to include the internal response information
|
|
1632
|
-
PH-16125 -- Add Proxy capability to the connection
|
|
1633
|
-
PH-15075 -- Support Base64 encoding on authentication
|
|
1634
|
-
PH-14311 -- Adapter not returning errors on two phase calls (need to get token and then make call) and it is then running the second call.
|
|
1635
|
-
PH-16053 -- Ability to encrypt/decrypt properties (passwords)
|
|
1636
|
-
PH-16141 -- converted actions to an array and removed redundant data from response object
|
|
1637
|
-
PH-16239 -- Change the path to read {} instead of <> when going through the entitypath
|
|
1638
|
-
PH-16268 -- Change the type in the action.json response as single and multiple are confusing
|
|
1673
|
+
* __2.0.0 [08-13-2018]__ - The following issues are in this Sprint Branch
|
|
1674
|
+
PH-16044 -- Add Generic call that is protocol and method independent
|
|
1675
|
+
PH-16024 -- Mock data should not have to include the internal response information
|
|
1676
|
+
PH-16125 -- Add Proxy capability to the connection
|
|
1677
|
+
PH-15075 -- Support Base64 encoding on authentication
|
|
1678
|
+
PH-14311 -- Adapter not returning errors on two phase calls (need to get token and then make call) and it is then running the second call.
|
|
1679
|
+
PH-16053 -- Ability to encrypt/decrypt properties (passwords)
|
|
1680
|
+
PH-16141 -- converted actions to an array and removed redundant data from response object
|
|
1681
|
+
PH-16239 -- Change the path to read {} instead of <> when going through the entitypath
|
|
1682
|
+
PH-16268 -- Change the type in the action.json response as single and multiple are confusing
|
|
1639
1683
|
PH-15718 -- Consistent returns that include status and code [PH-16131](http://itential.atlassian.net/browse/PH-16131)
|
|
1640
1684
|
|
|
1641
1685
|
## Improvements
|
|
1642
1686
|
* __4.2.1 [03-19-2019]__ - Updated calls to support MongoDB driver 3.1.7. [PH-28266](http://itential.atlassian.net/browse/PH-28266)
|
|
1643
|
-
* __4.2.0 [02-25-2019]__ - Added getAllCapability call for IAP
|
|
1687
|
+
* __4.2.0 [02-25-2019]__ - Added getAllCapability call for IAP
|
|
1644
1688
|
Added refreshProperties so the adapter can take in new properties without having to restart it. [PH-24808](http://itential.atlassian.net/browse/PH-24808)
|
|
1645
1689
|
* __4.0.0 [02-08-2019]__ - Adapter-utils changed error and response objects to match the new standard. This is a breaking change so when using this with your adapter, make sure you handle these new objects. [PH-25372](http://itential.atlassian.net/browse/PH-25372)
|
|
1646
1690
|
* __3.13.2 [01-16-2019]__ - Added other REST Methods that were not available - OPTIONS, HEAD, TRACE, CONNECT. [PH-24158](http://itential.atlassian.net/browse/PH-24158)
|
package/lib/genericHandler.js
CHANGED
|
@@ -62,10 +62,10 @@ class GenericHandler {
|
|
|
62
62
|
|
|
63
63
|
// if metadata says not to use BasePath
|
|
64
64
|
if (metadata && metadata.basepath && metadata.basepath.toUpperCase() === 'NOBASE') {
|
|
65
|
-
this.genericAdapterRequestNoBasePath(uriPath, restMethod, queryData, requestBody, addlHeaders, callback);
|
|
65
|
+
return this.genericAdapterRequestNoBasePath(uriPath, restMethod, queryData, requestBody, addlHeaders, callback);
|
|
66
66
|
}
|
|
67
67
|
// use BasePath
|
|
68
|
-
this.genericAdapterRequest(uriPath, restMethod, queryData, requestBody, addlHeaders, callback);
|
|
68
|
+
return this.genericAdapterRequest(uriPath, restMethod, queryData, requestBody, addlHeaders, callback);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/**
|
package/package.json
CHANGED
|
Binary file
|