@sap-cloud-sdk/connectivity 2.5.0 → 2.5.1-20220615110033.0

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 (28) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +2 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/scp-cf/cache.d.ts +10 -7
  7. package/dist/scp-cf/cache.d.ts.map +1 -1
  8. package/dist/scp-cf/cache.js +5 -7
  9. package/dist/scp-cf/cache.js.map +1 -1
  10. package/dist/scp-cf/client-credentials-token-cache.d.ts.map +1 -1
  11. package/dist/scp-cf/client-credentials-token-cache.js +6 -1
  12. package/dist/scp-cf/client-credentials-token-cache.js.map +1 -1
  13. package/dist/scp-cf/destination/destination-accessor.js +1 -1
  14. package/dist/scp-cf/destination/destination-accessor.js.map +1 -1
  15. package/dist/scp-cf/destination/destination-cache.d.ts +56 -8
  16. package/dist/scp-cf/destination/destination-cache.d.ts.map +1 -1
  17. package/dist/scp-cf/destination/destination-cache.js +64 -9
  18. package/dist/scp-cf/destination/destination-cache.js.map +1 -1
  19. package/dist/scp-cf/destination/destination-from-registration.d.ts +2 -2
  20. package/dist/scp-cf/destination/destination-from-registration.d.ts.map +1 -1
  21. package/dist/scp-cf/destination/destination-from-registration.js +5 -6
  22. package/dist/scp-cf/destination/destination-from-registration.js.map +1 -1
  23. package/dist/scp-cf/destination/destination-from-service.js +9 -9
  24. package/dist/scp-cf/destination/destination-from-service.js.map +1 -1
  25. package/dist/scp-cf/destination/destination-service-cache.d.ts.map +1 -1
  26. package/dist/scp-cf/destination/destination-service-cache.js +1 -1
  27. package/dist/scp-cf/destination/destination-service-cache.js.map +1 -1
  28. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @sap-cloud-sdk/connectivity
2
2
 
3
+ ## 2.5.1-20220615110033.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Canary release
8
+ - Updated dependencies
9
+ - @sap-cloud-sdk/util@2.5.1-20220615110033.0
10
+
3
11
  ## 2.5.0
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * @packageDocumentation
4
4
  * @module @sap-cloud-sdk/connectivity
5
5
  */
6
- export { parseDestination, toDestinationNameUrl, sanitizeDestination, CachingOptions, getDestination, useOrFetchDestination, getDestinationFromDestinationService, alwaysProvider, alwaysSubscriber, subscriberFirst, parseProxyEnv, Protocol, IsolationStrategy, decodeJwt, retrieveJwt, jwtBearerToken, serviceToken, Destination, DestinationFetchOptions, DestinationAccessorOptions, DestinationSelectionStrategies, JwtPayload, ProxyConfiguration, ProxyConfigurationHeaders, ResilienceOptions, Service, VerifyJwtOptions, buildHeadersForDestination, getClientCredentialsToken, getUserToken, registerDestination } from './scp-cf';
6
+ export { parseDestination, toDestinationNameUrl, sanitizeDestination, DestinationCacheInterface, CacheEntry, CachingOptions, getDestination, useOrFetchDestination, getDestinationFromDestinationService, alwaysProvider, alwaysSubscriber, subscriberFirst, parseProxyEnv, Protocol, IsolationStrategy, decodeJwt, retrieveJwt, jwtBearerToken, serviceToken, Destination, DestinationFetchOptions, DestinationAccessorOptions, DestinationSelectionStrategies, JwtPayload, ProxyConfiguration, ProxyConfigurationHeaders, ResilienceOptions, Service, VerifyJwtOptions, buildHeadersForDestination, getClientCredentialsToken, getUserToken, registerDestination, setDestinationCache } from './scp-cf';
7
7
  export type { DestinationRetrievalOptions, DestinationSelectionStrategy, DestinationOrFetchOptions, DestinationOptions, ServiceCredentials } from './scp-cf';
8
8
  export { getAgentConfig } from './http-agent';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,oCAAoC,EACpC,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,cAAc,EACd,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,0BAA0B,EAC1B,8BAA8B,EAC9B,UAAU,EACV,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,OAAO,EACP,gBAAgB,EAChB,0BAA0B,EAC1B,yBAAyB,EACzB,YAAY,EACZ,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,UAAU,EACV,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,oCAAoC,EACpC,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,cAAc,EACd,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,0BAA0B,EAC1B,8BAA8B,EAC9B,UAAU,EACV,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,OAAO,EACP,gBAAgB,EAChB,0BAA0B,EAC1B,yBAAyB,EACzB,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * @module @sap-cloud-sdk/connectivity
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.getAgentConfig = exports.registerDestination = exports.getUserToken = exports.getClientCredentialsToken = exports.buildHeadersForDestination = exports.DestinationSelectionStrategies = exports.serviceToken = exports.jwtBearerToken = exports.retrieveJwt = exports.decodeJwt = exports.IsolationStrategy = exports.Protocol = exports.parseProxyEnv = exports.subscriberFirst = exports.alwaysSubscriber = exports.alwaysProvider = exports.getDestinationFromDestinationService = exports.useOrFetchDestination = exports.getDestination = exports.sanitizeDestination = exports.toDestinationNameUrl = exports.parseDestination = void 0;
8
+ exports.getAgentConfig = exports.setDestinationCache = exports.registerDestination = exports.getUserToken = exports.getClientCredentialsToken = exports.buildHeadersForDestination = exports.DestinationSelectionStrategies = exports.serviceToken = exports.jwtBearerToken = exports.retrieveJwt = exports.decodeJwt = exports.IsolationStrategy = exports.Protocol = exports.parseProxyEnv = exports.subscriberFirst = exports.alwaysSubscriber = exports.alwaysProvider = exports.getDestinationFromDestinationService = exports.useOrFetchDestination = exports.getDestination = exports.sanitizeDestination = exports.toDestinationNameUrl = exports.parseDestination = void 0;
9
9
  var scp_cf_1 = require("./scp-cf");
10
10
  Object.defineProperty(exports, "parseDestination", { enumerable: true, get: function () { return scp_cf_1.parseDestination; } });
11
11
  Object.defineProperty(exports, "toDestinationNameUrl", { enumerable: true, get: function () { return scp_cf_1.toDestinationNameUrl; } });
@@ -28,6 +28,7 @@ Object.defineProperty(exports, "buildHeadersForDestination", { enumerable: true,
28
28
  Object.defineProperty(exports, "getClientCredentialsToken", { enumerable: true, get: function () { return scp_cf_1.getClientCredentialsToken; } });
29
29
  Object.defineProperty(exports, "getUserToken", { enumerable: true, get: function () { return scp_cf_1.getUserToken; } });
30
30
  Object.defineProperty(exports, "registerDestination", { enumerable: true, get: function () { return scp_cf_1.registerDestination; } });
31
+ Object.defineProperty(exports, "setDestinationCache", { enumerable: true, get: function () { return scp_cf_1.setDestinationCache; } });
31
32
  var http_agent_1 = require("./http-agent");
32
33
  Object.defineProperty(exports, "getAgentConfig", { enumerable: true, get: function () { return http_agent_1.getAgentConfig; } });
33
34
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,mCAgCkB;AA/BhB,0GAAA,gBAAgB,OAAA;AAChB,8GAAA,oBAAoB,OAAA;AACpB,6GAAA,mBAAmB,OAAA;AAEnB,wGAAA,cAAc,OAAA;AACd,+GAAA,qBAAqB,OAAA;AACrB,8HAAA,oCAAoC,OAAA;AACpC,wGAAA,cAAc,OAAA;AACd,0GAAA,gBAAgB,OAAA;AAChB,yGAAA,eAAe,OAAA;AACf,uGAAA,aAAa,OAAA;AACb,kGAAA,QAAQ,OAAA;AACR,2GAAA,iBAAiB,OAAA;AACjB,mGAAA,SAAS,OAAA;AACT,qGAAA,WAAW,OAAA;AACX,wGAAA,cAAc,OAAA;AACd,sGAAA,YAAY,OAAA;AAIZ,wHAAA,8BAA8B,OAAA;AAO9B,oHAAA,0BAA0B,OAAA;AAC1B,mHAAA,yBAAyB,OAAA;AACzB,sGAAA,YAAY,OAAA;AACZ,6GAAA,mBAAmB,OAAA;AAWrB,2CAA8C;AAArC,4GAAA,cAAc,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,mCAmCkB;AAlChB,0GAAA,gBAAgB,OAAA;AAChB,8GAAA,oBAAoB,OAAA;AACpB,6GAAA,mBAAmB,OAAA;AAInB,wGAAA,cAAc,OAAA;AACd,+GAAA,qBAAqB,OAAA;AACrB,8HAAA,oCAAoC,OAAA;AACpC,wGAAA,cAAc,OAAA;AACd,0GAAA,gBAAgB,OAAA;AAChB,yGAAA,eAAe,OAAA;AACf,uGAAA,aAAa,OAAA;AACb,kGAAA,QAAQ,OAAA;AACR,2GAAA,iBAAiB,OAAA;AACjB,mGAAA,SAAS,OAAA;AACT,qGAAA,WAAW,OAAA;AACX,wGAAA,cAAc,OAAA;AACd,sGAAA,YAAY,OAAA;AAIZ,wHAAA,8BAA8B,OAAA;AAO9B,oHAAA,0BAA0B,OAAA;AAC1B,mHAAA,yBAAyB,OAAA;AACzB,sGAAA,YAAY,OAAA;AACZ,6GAAA,mBAAmB,OAAA;AACnB,6GAAA,mBAAmB,OAAA;AAWrB,2CAA8C;AAArC,4GAAA,cAAc,OAAA"}
@@ -1,16 +1,20 @@
1
1
  interface CacheInterface<T> {
2
2
  hasKey(key: string): boolean;
3
- get(key: string): T | undefined;
4
- set(key: string, item: T, expirationTime?: number): void;
3
+ get(key: string | undefined): T | undefined;
4
+ set(key: string | undefined, item: CacheEntry<T>): void;
5
+ clear(): void;
5
6
  }
6
- interface DateInputObject {
7
+ /**
8
+ * @internal
9
+ */
10
+ export interface DateInputObject {
7
11
  hours?: number;
8
12
  minutes?: number;
9
13
  seconds?: number;
10
14
  milliseconds?: number;
11
15
  }
12
16
  /**
13
- * @internal
17
+ * Respresentation of a cached object.
14
18
  */
15
19
  export interface CacheEntry<T> {
16
20
  expires?: number;
@@ -60,10 +64,9 @@ export declare class Cache<T> implements CacheInterface<T> {
60
64
  /**
61
65
  * Setter of entries in cache.
62
66
  * @param key - The entry's key.
63
- * @param entry - The entry to cache.
64
- * @param expirationTime - The time expressed in UTC in which the given entry expires.
67
+ * @param item - The entry to cache.
65
68
  */
66
- set(key: string | undefined, entry: T, expirationTime?: number): void;
69
+ set(key: string | undefined, item: CacheEntry<T>): void;
67
70
  }
68
71
  export {};
69
72
  //# sourceMappingURL=cache.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/scp-cf/cache.ts"],"names":[],"mappings":"AAAA,UAAU,c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@ -38,15 +38,13 @@ class Cache {
38
38
  /**
39
39
  * Setter of entries in cache.
40
40
  * @param key - The entry's key.
41
- * @param entry - The entry to cache.
42
- * @param expirationTime - The time expressed in UTC in which the given entry expires.
41
+ * @param item - The entry to cache.
43
42
  */
44
- set(key, entry, expirationTime) {
43
+ set(key, item) {
44
+ var _a;
45
45
  if (key) {
46
- const expires = expirationTime
47
- ? expirationTime
48
- : inferExpirationTime(this.defaultValidityTime);
49
- this.cache[key] = { entry, expires };
46
+ const expires = (_a = item.expires) !== null && _a !== void 0 ? _a : inferExpirationTime(this.defaultValidityTime);
47
+ this.cache[key] = { entry: item.entry, expires };
50
48
  }
51
49
  }
52
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cache.js","sourceRoot":"","sources":["../../src/scp-cf/cache.ts"],"names":[],"mappings":";;;AA+BA;;;;GAIG;AACH,MAAa,KAAK;IAYhB,YAAY,YAA8B;QACxC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC,mBAAmB,GAAG,YAAY,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,GAAW;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,GAAuB;QACzB,OAAO,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC3D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK;YACvB,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAC,GAAuB,EAAE,KAAQ,EAAE,cAAuB;QAC5D,IAAI,GAAG,EAAE;YACP,MA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,CAAC,cAAc,CAAC;QAC7C,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AAED,SAAS,2BAA2B,CAAC,cAA+B;;IAClE,MAAM,WAAW,GAAG,IAAI,IAAI,EAAE,CAAC;IAC/B,MAAM,YAAY,GAChB,CAAC,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,KAAK,mCAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI;QAC7C,CAAC,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,OAAO,mCAAI,CAAC,CAAC,GAAG,EAAE,GAAG,IAAI;QAC1C,CAAC,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,OAAO,mCAAI,CAAC,CAAC,GAAG,IAAI;QACrC,CAAC,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,YAAY,mCAAI,CAAC,CAAC,CAAC;IAEtC,OAAO,WAAW;SACf,eAAe,CAAC,WAAW,CAAC,eAAe,EAAE,GAAG,YAAY,CAAC;SAC7D,OAAO,EAAE,CAAC;AACf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"client-credentials-token-cache.d.ts","sourceRoot":"","sources":["../../src/scp-cf/client-credentials-token-cache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AA8BlE;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAU7E;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B;mCAzCZ,MAAM,KAAG,yBAAyB,GAAG,SAAS;qCAK5D,MAAM,SACT,yBAAyB,KAC/B,IAAI;iBAOI,IAAI;;CA6BhB,CAAC"}
1
+ {"version":3,"file":"client-credentials-token-cache.d.ts","sourceRoot":"","sources":["../../src/scp-cf/client-credentials-token-cache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AA+BlE;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAU7E;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B;mCA1CZ,MAAM,KAAG,yBAAyB,GAAG,SAAS;qCAK5D,MAAM,SACT,yBAAyB,KAC/B,IAAI;iBAQI,IAAI;;CA6BhB,CAAC"}
@@ -10,7 +10,12 @@ const logger = (0, util_1.createLogger)({
10
10
  const ClientCredentialsTokenCache = (cache) => ({
11
11
  getToken: (url, clientId) => cache.get(getCacheKey(url, clientId)),
12
12
  cacheToken: (url, clientId, token) => {
13
- cache.set(getCacheKey(url, clientId), token, token.expires_in ? Date.now() + token.expires_in * 1000 : undefined);
13
+ cache.set(getCacheKey(url, clientId), {
14
+ entry: token,
15
+ expires: token.expires_in
16
+ ? Date.now() + token.expires_in * 1000
17
+ : undefined
18
+ });
14
19
  },
15
20
  clear: () => {
16
21
  cache.clear();
@@ -1 +1 @@
1
- {"version":3,"file":"client-credentials-token-cache.js","sourceRoot":"","sources":["../../src/scp-cf/client-credentials-token-cache.ts"],"names":[],"mappings":";;;AAAA,8CAAmD;AACnD,mCAAgC;AAGhC,MAAM,MAAM,GAAG,IAAA,mBAAY,EAAC;IAC1B,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE,gCAAgC;CACjD,CAAC,CAAC;AAEH,MAAM,2BAA2B,GAAG,CAClC,KAAuC,EACvC,EAAE,CAAC,CAAC;IACJ,QAAQ,EAAE,CAAC,GAAG,EAAE,QAAgB,EAAyC,EAAE,CACzE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAEvC,UAAU,EAAE,CACV,GAAG,EACH,QAAgB,EAChB,KAAgC,EAC1B,EAAE;QACR,KAAK,CAAC,GAAG,CACP,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,EAC1B,KAAK,EACL,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,CACpE,CAAC;IACJ,CAAC;IACD,KAAK,EAAE,GAAS,EAAE;QAChB,KAAK,CAAC,KAAK,EAAE,CAAC;IAChB,CAAC;IACD,gBAAgB,EAAE,GAAG,EAAE,CAAC,KAAK;CAC9B,CAAC,CAAC;AAEH;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,GAAW,EAAE,QAAgB;IACvD,IAAI,CAAC,GAAG,EAAE;QACR,MAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;QAC5D,OAAO;KACR;IACD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,CAAC,IAAI,CAAC,mDAAmD,CAAC,CAAC;QACjE,OAAO;KACR;IACD,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACnC,CAAC;AAVD,kCAUC;AAED;;GAEG;AACU,QAAA,2BAA2B,GAAG,2BAA2B,CACpE,IAAI,aAAK,EAA6B,CACvC,CAAC"}
1
+ {"version":3,"file":"client-credentials-token-cache.js","sourceRoot":"","sources":["../../src/scp-cf/client-credentials-token-cache.ts"],"names":[],"mappings":";;;AAAA,8CAAmD;AACnD,mCAAgC;AAGhC,MAAM,MAAM,GAAG,IAAA,mBAAY,EAAC;IAC1B,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE,gCAAgC;CACjD,CAAC,CAAC;AAEH,MAAM,2BAA2B,GAAG,CAClC,KAAuC,EACvC,EAAE,CAAC,CAAC;IACJ,QAAQ,EAAE,CAAC,GAAG,EAAE,QAAgB,EAAyC,EAAE,CACzE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAEvC,UAAU,EAAE,CACV,GAAG,EACH,QAAgB,EAChB,KAAgC,EAC1B,EAAE;QACR,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE;YACpC,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,KAAK,CAAC,UAAU;gBACvB,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,UAAU,GAAG,IAAI;gBACtC,CAAC,CAAC,SAAS;SACd,CAAC,CAAC;IACL,CAAC;IACD,KAAK,EAAE,GAAS,EAAE;QAChB,KAAK,CAAC,KAAK,EAAE,CAAC;IAChB,CAAC;IACD,gBAAgB,EAAE,GAAG,EAAE,CAAC,KAAK;CAC9B,CAAC,CAAC;AAEH;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,GAAW,EAAE,QAAgB;IACvD,IAAI,CAAC,GAAG,EAAE;QACR,MAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;QAC5D,OAAO;KACR;IACD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,CAAC,IAAI,CAAC,mDAAmD,CAAC,CAAC;QACjE,OAAO;KACR;IACD,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACnC,CAAC;AAVD,kCAUC;AAED;;GAEG;AACU,QAAA,2BAA2B,GAAG,2BAA2B,CACpE,IAAI,aAAK,EAA6B,CACvC,CAAC"}
@@ -38,7 +38,7 @@ exports.useOrFetchDestination = useOrFetchDestination;
38
38
  */
39
39
  async function getDestination(options) {
40
40
  return ((0, destination_from_env_1.searchEnvVariablesForDestination)(options) ||
41
- (0, destination_from_registration_1.searchRegisteredDestination)(options) ||
41
+ (await (0, destination_from_registration_1.searchRegisteredDestination)(options)) ||
42
42
  (0, destination_from_vcap_1.searchServiceBindingForDestination)(options.destinationName) ||
43
43
  (0, destination_from_service_1.getDestinationFromDestinationService)(options));
44
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"destination-accessor.js","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-accessor.ts"],"names":[],"mappings":";;;AAAA,+CAA+E;AAE/E,iEAA0E;AAC1E,mEAA6E;AAC7E,yEAAkF;AAClF,6EAGsC;AACtC,mFAA8E;AAE9E;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,qBAAqB,CACzC,WAAsC;IAEtC,OAAO,IAAA,sDAAyB,EAAC,WAAW,CAAC;QAC3C,CAAC,CAAC,cAAc,CAAC,WAAW,CAAC;QAC7B,CAAC,CAAC,IAAA,iCAAmB,EAAC,WAAW,CAAC,CAAC;AACvC,CAAC;AAND,sDAMC;AAED;;;;;;;;;;GAUG;AACI,KAAK,UAAU,cAAc,CAClC,OAAgC;IAEhC,OAAO,CACL,IAAA,uDAAgC,EAAC,OAAO,CAAC;QACzC,IAAA,2DAA2B,EAAC,OAAO,CAAC;QACpC,IAAA,0DAAkC,EAAC,OAAO,CAAC,eAAe,CAAC;QAC3D,IAAA,+DAAoC,EAAC,OAAO,CAAC,CAC9C,CAAC;AACJ,CAAC;AATD,wCASC"}
1
+ {"version":3,"file":"destination-accessor.js","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-accessor.ts"],"names":[],"mappings":";;;AAAA,+CAA+E;AAE/E,iEAA0E;AAC1E,mEAA6E;AAC7E,yEAAkF;AAClF,6EAGsC;AACtC,mFAA8E;AAE9E;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,qBAAqB,CACzC,WAAsC;IAEtC,OAAO,IAAA,sDAAyB,EAAC,WAAW,CAAC;QAC3C,CAAC,CAAC,cAAc,CAAC,WAAW,CAAC;QAC7B,CAAC,CAAC,IAAA,iCAAmB,EAAC,WAAW,CAAC,CAAC;AACvC,CAAC;AAND,sDAMC;AAED;;;;;;;;;;GAUG;AACI,KAAK,UAAU,cAAc,CAClC,OAAgC;IAEhC,OAAO,CACL,IAAA,uDAAgC,EAAC,OAAO,CAAC;QACzC,CAAC,MAAM,IAAA,2DAA2B,EAAC,OAAO,CAAC,CAAC;QAC5C,IAAA,0DAAkC,EAAC,OAAO,CAAC,eAAe,CAAC;QAC3D,IAAA,+DAAoC,EAAC,OAAO,CAAC,CAC9C,CAAC;AACJ,CAAC;AATD,wCASC"}
@@ -1,4 +1,4 @@
1
- import { Cache } from '../cache';
1
+ import { Cache, CacheEntry, DateInputObject } from '../cache';
2
2
  import { JwtPayload } from '../jsonwebtoken-type';
3
3
  import { Destination } from './destination-service-types';
4
4
  import { DestinationsByType } from './destination-accessor-types';
@@ -10,15 +10,55 @@ export declare enum IsolationStrategy {
10
10
  Tenant = "Tenant",
11
11
  Tenant_User = "TenantUser"
12
12
  }
13
+ /**
14
+ * Interface to implement custom destination caching.
15
+ * To set a custom implementation, call method [[setDestinationCache]] and pass the cache instance.
16
+ */
17
+ export interface DestinationCacheInterface {
18
+ hasKey(key: string): Promise<boolean>;
19
+ get(key: string | undefined): Promise<Destination | undefined>;
20
+ set(key: string | undefined, item: CacheEntry<Destination>): Promise<void>;
21
+ clear(): Promise<void>;
22
+ }
23
+ /**
24
+ * @internal
25
+ * This wrapper class wraps methods of [[Cache]] class as asynchronous methods.
26
+ */
27
+ export declare class DefaultDestinationCache implements DestinationCacheInterface {
28
+ cache: Cache<Destination>;
29
+ constructor(validityTime?: DateInputObject);
30
+ /**
31
+ * Specifies whether an entry with a given key is defined in cache.
32
+ * @param key - The entry's key.
33
+ * @returns A boolean value that indicates whether the entry exists in cache.
34
+ */
35
+ hasKey(key: string): Promise<boolean>;
36
+ /**
37
+ * Getter of cached entries.
38
+ * @param key - The key of the entry to retrieve.
39
+ * @returns The corresponding entry to the provided key if it is still valid, returns `undefined` otherwise.
40
+ */
41
+ get(key: string | undefined): Promise<Destination | undefined>;
42
+ /**
43
+ * Setter of entries in cache.
44
+ * @param key - The entry's key.
45
+ * @param item - The entry to cache.
46
+ */
47
+ set(key: string | undefined, item: CacheEntry<Destination>): Promise<void>;
48
+ /**
49
+ * Clear all cached items.
50
+ */
51
+ clear(): Promise<void>;
52
+ }
13
53
  /**
14
54
  * @internal
15
55
  */
16
56
  export interface DestinationCacheType {
17
- retrieveDestinationFromCache: (decodedJwt: Record<string, any>, name: string, isolation: IsolationStrategy) => Destination | undefined;
18
- cacheRetrievedDestination: (decodedJwt: Record<string, any>, destination: Destination, isolation: IsolationStrategy) => void;
19
- cacheRetrievedDestinations: (decodedJwt: Record<string, any>, retrievedDestinations: DestinationsByType, isolation: IsolationStrategy) => void;
20
- clear: () => void;
21
- getCacheInstance: () => Cache<Destination>;
57
+ retrieveDestinationFromCache: (decodedJwt: Record<string, any>, name: string, isolation: IsolationStrategy) => Promise<Destination | undefined>;
58
+ cacheRetrievedDestination: (decodedJwt: Record<string, any>, destination: Destination, isolation: IsolationStrategy) => Promise<void>;
59
+ cacheRetrievedDestinations: (decodedJwt: Record<string, any>, retrievedDestinations: DestinationsByType, isolation: IsolationStrategy) => Promise<void>;
60
+ clear: () => Promise<void>;
61
+ getCacheInstance: () => DestinationCacheInterface;
22
62
  }
23
63
  /**
24
64
  * DestinationCache constructor.
@@ -26,7 +66,7 @@ export interface DestinationCacheType {
26
66
  * @returns A destination cache object.
27
67
  * @internal
28
68
  */
29
- export declare const DestinationCache: (cache: Cache<Destination>) => DestinationCacheType;
69
+ export declare const DestinationCache: (cache?: DestinationCacheInterface) => DestinationCacheType;
30
70
  /**
31
71
  * Calculates a cache key based on the jwt and destination name for the given isolation strategy.
32
72
  * Cache keys for strategies are non-overlapping, i.e. using a cache key for strategy [[IsolationStrategy.Tenant]]
@@ -38,10 +78,18 @@ export declare const DestinationCache: (cache: Cache<Destination>) => Destinatio
38
78
  * @internal
39
79
  */
40
80
  export declare function getDestinationCacheKey(decodedJwt: Record<string, any>, destinationName: string, isolationStrategy?: IsolationStrategy): string | undefined;
81
+ /**
82
+ * Sets the custom destination cache instance.
83
+ * Call this method with an instance of [[DestinationCacheInterface]] to override the default cache instance set by the SDK.
84
+ *
85
+ * NOTE: This function should be called at the beginning before any calls to either [[getDestination]] or [[executeHttpRequest]].
86
+ * @param cache - An instance of [[DestinationCacheInterface]].
87
+ */
88
+ export declare function setDestinationCache(cache: DestinationCacheInterface): void;
41
89
  /**
42
90
  * @internal
43
91
  */
44
- export declare const destinationCache: DestinationCacheType;
92
+ export declare let destinationCache: DestinationCacheType;
45
93
  /**
46
94
  * Determin the default Isolation strategy if not given as option.
47
95
  * @param jwt - JWT to determine the default isolation strategy
@@ -1 +1 @@
1
- {"version":3,"file":"destination-cache.d.ts","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-cache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAOlE;;;GAGG;AACH,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,WAAW,eAAe;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,4BAA4B,EAAE,CAC5B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/B,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,iBAAiB,KACzB,WAAW,GAAG,SAAS,CAAC;IAC7B,yBAAyB,EAAE,CACzB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/B,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,iBAAiB,KACzB,IAAI,CAAC;IACV,0BAA0B,EAAE,CAC1B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/B,qBAAqB,EAAE,kBAAkB,EACzC,SAAS,EAAE,iBAAiB,KACzB,IAAI,CAAC;IACV,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,gBAAgB,EAAE,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC;CAC5C;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,UACpB,MAAM,WAAW,CAAC,KACxB,oBA8BD,CAAC;AAEH;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/B,eAAe,EAAE,MAAM,EACvB,iBAAiB,oBAAgC,GAChD,MAAM,GAAG,SAAS,CA0BpB;AAoBD;;GAEG;AACH,eAAO,MAAM,gBAAgB,sBAE5B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,UAAU,GAAG,SAAS,GAC1B,iBAAiB,CAInB"}
1
+ {"version":3,"file":"destination-cache.d.ts","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-cache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG9D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAOlE;;;GAGG;AACH,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,WAAW,eAAe;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACtC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IAC/D,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,KAAK,IAAI,OAAO,CA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B,yBAAyB,KAK/B,oBA8BD,CAAC;AAEH;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/B,eAAe,EAAE,MAAM,EACvB,iBAAiB,oBAAgC,GAChD,MAAM,GAAG,SAAS,CA0BpB;AAoBD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,yBAAyB,GAAG,IAAI,CAE1E;AAED;;GAEG;AACH,eAAO,IAAI,gBAAgB,EAAE,oBAAyC,CAAC;AACvE;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,UAAU,GAAG,SAAS,GAC1B,iBAAiB,CAInB"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getDefaultIsolationStrategy = exports.destinationCache = exports.getDestinationCacheKey = exports.DestinationCache = exports.IsolationStrategy = void 0;
3
+ exports.getDefaultIsolationStrategy = exports.destinationCache = exports.setDestinationCache = exports.getDestinationCacheKey = exports.DestinationCache = exports.DefaultDestinationCache = exports.IsolationStrategy = void 0;
4
4
  const util_1 = require("@sap-cloud-sdk/util");
5
5
  const cache_1 = require("../cache");
6
6
  const tenant_1 = require("../tenant");
@@ -18,22 +18,66 @@ var IsolationStrategy;
18
18
  IsolationStrategy["Tenant"] = "Tenant";
19
19
  IsolationStrategy["Tenant_User"] = "TenantUser";
20
20
  })(IsolationStrategy = exports.IsolationStrategy || (exports.IsolationStrategy = {}));
21
+ /**
22
+ * @internal
23
+ * This wrapper class wraps methods of [[Cache]] class as asynchronous methods.
24
+ */
25
+ class DefaultDestinationCache {
26
+ constructor(validityTime) {
27
+ this.cache = new cache_1.Cache(validityTime);
28
+ }
29
+ /**
30
+ * Specifies whether an entry with a given key is defined in cache.
31
+ * @param key - The entry's key.
32
+ * @returns A boolean value that indicates whether the entry exists in cache.
33
+ */
34
+ async hasKey(key) {
35
+ return this.cache.hasKey(key);
36
+ }
37
+ /**
38
+ * Getter of cached entries.
39
+ * @param key - The key of the entry to retrieve.
40
+ * @returns The corresponding entry to the provided key if it is still valid, returns `undefined` otherwise.
41
+ */
42
+ async get(key) {
43
+ return this.cache.get(key);
44
+ }
45
+ /**
46
+ * Setter of entries in cache.
47
+ * @param key - The entry's key.
48
+ * @param item - The entry to cache.
49
+ */
50
+ async set(key, item) {
51
+ return this.cache.set(key, item);
52
+ }
53
+ /**
54
+ * Clear all cached items.
55
+ */
56
+ async clear() {
57
+ return this.cache.clear();
58
+ }
59
+ }
60
+ exports.DefaultDestinationCache = DefaultDestinationCache;
21
61
  /**
22
62
  * DestinationCache constructor.
23
63
  * @param cache - Cache object which is used in DestiantionCache
24
64
  * @returns A destination cache object.
25
65
  * @internal
26
66
  */
27
- const DestinationCache = (cache) => ({
28
- retrieveDestinationFromCache: (decodedJwt, name, isolation) => cache.get(getDestinationCacheKey(decodedJwt, name, isolation)),
29
- cacheRetrievedDestination: (decodedJwt, destination, isolation) => {
67
+ const DestinationCache = (cache = new DefaultDestinationCache({
68
+ hours: 0,
69
+ minutes: 5,
70
+ seconds: 0
71
+ })) => ({
72
+ retrieveDestinationFromCache: async (decodedJwt, name, isolation) => cache.get(getDestinationCacheKey(decodedJwt, name, isolation)),
73
+ cacheRetrievedDestination: async (decodedJwt, destination, isolation) => {
30
74
  cacheRetrievedDestination(decodedJwt, destination, isolation, cache);
31
75
  },
32
- cacheRetrievedDestinations: (decodedJwt, retrievedDestinations, isolation) => {
76
+ cacheRetrievedDestinations: async (decodedJwt, retrievedDestinations, isolation) => {
33
77
  retrievedDestinations.subaccount.forEach(dest => cacheRetrievedDestination(decodedJwt, dest, isolation, cache));
34
78
  retrievedDestinations.instance.forEach(dest => cacheRetrievedDestination(decodedJwt, dest, isolation, cache));
35
79
  },
36
- clear: () => {
80
+ clear: async () => {
37
81
  cache.clear();
38
82
  },
39
83
  getCacheInstance: () => cache
@@ -71,7 +115,7 @@ function getDestinationCacheKey(decodedJwt, destinationName, isolationStrategy =
71
115
  }
72
116
  }
73
117
  exports.getDestinationCacheKey = getDestinationCacheKey;
74
- function cacheRetrievedDestination(decodedJwt, destination, isolation, cache) {
118
+ async function cacheRetrievedDestination(decodedJwt, destination, isolation, cache) {
75
119
  var _a;
76
120
  if (!destination.name) {
77
121
  throw new Error('The destination name is undefined.');
@@ -81,12 +125,23 @@ function cacheRetrievedDestination(decodedJwt, destination, isolation, cache) {
81
125
  const expirationTime = expiresIn
82
126
  ? Date.now() + parseInt(expiresIn) * 1000
83
127
  : undefined;
84
- cache.set(key, destination, expirationTime);
128
+ cache.set(key, { entry: destination, expires: expirationTime });
129
+ }
130
+ /**
131
+ * Sets the custom destination cache instance.
132
+ * Call this method with an instance of [[DestinationCacheInterface]] to override the default cache instance set by the SDK.
133
+ *
134
+ * NOTE: This function should be called at the beginning before any calls to either [[getDestination]] or [[executeHttpRequest]].
135
+ * @param cache - An instance of [[DestinationCacheInterface]].
136
+ */
137
+ function setDestinationCache(cache) {
138
+ exports.destinationCache = (0, exports.DestinationCache)(cache);
85
139
  }
140
+ exports.setDestinationCache = setDestinationCache;
86
141
  /**
87
142
  * @internal
88
143
  */
89
- exports.destinationCache = (0, exports.DestinationCache)(new cache_1.Cache({ hours: 0, minutes: 5, seconds: 0 }));
144
+ exports.destinationCache = (0, exports.DestinationCache)();
90
145
  /**
91
146
  * Determin the default Isolation strategy if not given as option.
92
147
  * @param jwt - JWT to determine the default isolation strategy
@@ -1 +1 @@
1
- {"version":3,"file":"destination-cache.js","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-cache.ts"],"names":[],"mappings":";;;AAAA,8CAA0D;AAC1D,oCAAiC;AACjC,sCAAqC;AACrC,kCAAiC;AAKjC,MAAM,MAAM,GAAG,IAAA,mBAAY,EAAC;IAC1B,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE,mBAAmB;CACpC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAY,iBAGX;AAHD,WAAY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gBAAgB,GAAG,IAAA,wBAAgB,EAC9C,IAAI,aAAK,CAAc,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAC7D,CAAC;AAEF;;;;;GAKG;AACH,SAAgB,2BAA2B,CACzC,GAA2B;IAE3B,OAAO,GAAG,IAAI,IAAA,aAAM,EAAC,GAAG,CAAC;QACvB,CAAC,CAAC,iBAAiB,CAAC,WAAW;QAC/B,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC;AAC/B,CAAC;AAND,kEAMC"}
1
+ {"version":3,"file":"destination-cache.js","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-cache.ts"],"names":[],"mappings":";;;AAAA,8CAA0D;AAC1D,oCAA8D;AAC9D,sCAAqC;AACrC,kCAAiC;AAKjC,MAAM,MAAM,GAAG,IAAA,mBAAY,EAAC;IAC1B,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE,mBAAmB;CACpC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,+CAA0B,CAAA;AAC5B,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B;AAaD;;;GAGG;AACH,MAAa,uBAAuB;IAGlC,YAAY,YAA8B;QACxC,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAc,YAAY,CAAC,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,GAAW;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,GAAG,CAAC,GAAuB;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,GAAG,CACP,GAAuB,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Ac,GAAG,SAAS;QAC9B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI;QACzC,CAAC,CAAC,SAAS,CAAC;IACd,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,mBAAmB,CAAC,KAAgC;IAClE,wBAAgB,GAAG,IAAA,wBAAgB,EAAC,KAAK,CAAC,CAAC;AAC7C,CAAC;AAFD,kDAEC;AAED;;GAEG;AACQ,QAAA,gBAAgB,GAAyB,IAAA,wBAAgB,GAAE,CAAC;AACvE;;;;;GAKG;AACH,SAAgB,2BAA2B,CACzC,GAA2B;IAE3B,OAAO,GAAG,IAAI,IAAA,aAAM,EAAC,GAAG,CAAC;QACvB,CAAC,CAAC,iBAAiB,CAAC,WAAW;QAC/B,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC;AAC/B,CAAC;AAND,kEAMC"}
@@ -12,7 +12,7 @@ declare type RegisterDestinationOptions = Pick<DestinationFetchOptions, 'jwt' |
12
12
  * @param destination - A destination to add to the `destinations` cache.
13
13
  * @param options - Options how to cache the destination.
14
14
  */
15
- export declare function registerDestination(destination: DestinationWithName, options?: RegisterDestinationOptions): void;
15
+ export declare function registerDestination(destination: DestinationWithName, options?: RegisterDestinationOptions): Promise<void>;
16
16
  /**
17
17
  * @internal
18
18
  */
@@ -24,6 +24,6 @@ export declare type DestinationWithName = Destination & {
24
24
  * @param options - The options for searching the cahce
25
25
  * @returns Destination - the destination from cache
26
26
  */
27
- export declare function searchRegisteredDestination(options: DestinationFetchOptions): Destination | null;
27
+ export declare function searchRegisteredDestination(options: DestinationFetchOptions): Promise<Destination | null>;
28
28
  export {};
29
29
  //# sourceMappingURL=destination-from-registration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"destination-from-registration.d.ts","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-from-registration.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAwB,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAiBvE;;GAEG;AACH,eAAO,MAAM,wBAAwB,oDAEpC,CAAC;AAEF,aAAK,0BAA0B,GAAG,IAAI,CACpC,uBAAuB,EACvB,KAAK,GAAG,mBAAmB,CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,mBAAmB,EAChC,OAAO,CAAC,EAAE,0BAA0B,GACnC,IAAI,CAYN;AAED;;GAEG;AACH,oBAAY,mBAAmB,GAAG,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjE;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,uBAAuB,GAC/B,WAAW,GAAG,IAAI,CAoBpB"}
1
+ {"version":3,"file":"destination-from-registration.d.ts","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-from-registration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAwB,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAkBvE;;GAEG;AACH,eAAO,MAAM,wBAAwB,oDAEpC,CAAC;AAEF,aAAK,0BAA0B,GAAG,IAAI,CACpC,uBAAuB,EACvB,KAAK,GAAG,mBAAmB,CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,mBAAmB,EAChC,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,IAAI,CAAC,CAYf;AAED;;GAEG;AACH,oBAAY,mBAAmB,GAAG,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjE;;;;GAIG;AACH,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAoB7B"}
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.searchRegisteredDestination = exports.registerDestination = exports.registerDestinationCache = void 0;
4
4
  const util_1 = require("@sap-cloud-sdk/util");
5
- const cache_1 = require("../cache");
6
5
  const jwt_1 = require("../jwt");
7
6
  const environment_accessor_1 = require("../environment-accessor");
8
7
  const subdomain_replacer_1 = require("../subdomain-replacer");
@@ -15,7 +14,7 @@ const logger = (0, util_1.createLogger)({
15
14
  /**
16
15
  * @internal
17
16
  */
18
- exports.registerDestinationCache = (0, destination_cache_1.DestinationCache)(new cache_1.Cache(undefined));
17
+ exports.registerDestinationCache = (0, destination_cache_1.DestinationCache)(new destination_cache_1.DefaultDestinationCache(undefined));
19
18
  /**
20
19
  * Registers a destination in a cache for later usage.
21
20
  *
@@ -23,11 +22,11 @@ exports.registerDestinationCache = (0, destination_cache_1.DestinationCache)(new
23
22
  * @param destination - A destination to add to the `destinations` cache.
24
23
  * @param options - Options how to cache the destination.
25
24
  */
26
- function registerDestination(destination, options) {
25
+ async function registerDestination(destination, options) {
27
26
  if (!destination.name || !destination.url) {
28
27
  throw Error('Registering destinations requires a destination name and url.');
29
28
  }
30
- exports.registerDestinationCache.cacheRetrievedDestination(decodedJwtOrZid(options), destination, isolationStrategy(options));
29
+ await exports.registerDestinationCache.cacheRetrievedDestination(decodedJwtOrZid(options), destination, isolationStrategy(options));
31
30
  }
32
31
  exports.registerDestination = registerDestination;
33
32
  /**
@@ -35,8 +34,8 @@ exports.registerDestination = registerDestination;
35
34
  * @param options - The options for searching the cahce
36
35
  * @returns Destination - the destination from cache
37
36
  */
38
- function searchRegisteredDestination(options) {
39
- const destination = exports.registerDestinationCache.retrieveDestinationFromCache(decodedJwtOrZid(options), options.destinationName, isolationStrategy(options)) || null;
37
+ async function searchRegisteredDestination(options) {
38
+ const destination = (await exports.registerDestinationCache.retrieveDestinationFromCache(decodedJwtOrZid(options), options.destinationName, isolationStrategy(options))) || null;
40
39
  if (destination === null || destination === void 0 ? void 0 : destination.forwardAuthToken) {
41
40
  destination.authTokens = destinationAuthToken(options.jwt);
42
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"destination-from-registration.js","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-from-registration.ts"],"names":[],"mappings":";;;AAAA,8CAAmD;AACnD,oCAAiC;AACjC,gCAAmC;AACnC,kEAAqE;AACrE,8DAAuD;AAGvD,2DAI6B;AAC7B,6CAIsB;AAEtB,MAAM,MAAM,GAAG,IAAA,mBAAY,EAAC;IAC1B,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE,sBAAsB;CACvC,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,wBAAwB,GAAG,IAAA,oCAAgB,EACtD,IAAI,aAAK,CAAc,SAAS,CAAC,CAClC,CAAC;AAOF;;;;;;GAMG;AACH,SAAgB,mBAAmB,CACjC,WAAgC,EAChC,OAAoC;IAEpC,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE;QACzC,MAAM,KAAK,CACT,+DAA+D,CAChE,CAAC;KACH;IAED,gCAAwB,CAAC,yBAAyB,CAChD,eAAe,CAAC,OAAO,CAAC,EACxB,WAAW,EACX,iBAAiB,CAAC,OAAO,CAAC,CAC3B,CAAC;AACJ,CAAC;AAfD,kDAeC;AAOD;;;;GAIG;AACH,SAAgB,2BAA2B,CACzC,OAAgC;IAEhC,MAAM,WAAW,GACf,gCAAwB,CAAC,4BAA4B,CACnD,eAAe,CAAC,OAAO,CAAC,EACxB,OAAO,CAAC,eAAe,EACvB,iBAAiB,CAAC,OAAO,CAAC,CAC3B,IAAI,IAAI,CAAC;IAEZ,IAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,gBAAgB,EAAE;QACjC,WAAW,CAAC,UAAU,GAAG,oBAAoB,CAAC,OAAO,CAAC,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K,CAAC,CAAC;QACjC,MAAM,CAAC,KAAK,CACV,gGAAgG,CACjG,CAAC;QACF,OAAO;YACL;gBACE,KAAK,EAAE,KAAK;gBACZ,SAAS,EAAE,OAAO,CAAC,GAAI,CAAC,QAAQ,EAAE;gBAClC,KAAK,EAAE,IAAI;gBACX,WAAW,EAAE,EAAE,GAAG,EAAE,eAAe,EAAE,KAAK,EAAE,UAAU,KAAK,EAAE,EAAE;gBAC/D,IAAI,EAAE,QAAQ;aACf;SACF,CAAC;KACH;IACD,MAAM,CAAC,IAAI,CACT,oLAAoL,CACrL,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"destination-from-registration.js","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-from-registration.ts"],"names":[],"mappings":";;;AAAA,8CAAmD;AACnD,gCAAmC;AACnC,kEAAqE;AACrE,8DAAuD;AAGvD,2DAK6B;AAC7B,6CAIsB;AAEtB,MAAM,MAAM,GAAG,IAAA,mBAAY,EAAC;IAC1B,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE,sBAAsB;CACvC,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,wBAAwB,GAAG,IAAA,oCAAgB,EACtD,IAAI,2CAAuB,CAAC,SAAS,CAAC,CACvC,CAAC;AAOF;;;;;;GAMG;AACI,KAAK,UAAU,mBAAmB,CACvC,WAAgC,EAChC,OAAoC;IAEpC,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE;QACzC,MAAM,KAAK,CACT,+DAA+D,CAChE,CAAC;KACH;IAED,MAAM,gCAAwB,CAAC,yBAAyB,CACtD,eAAe,CAAC,OAAO,CAAC,EACxB,WAAW,EACX,iBAAiB,CAAC,OAAO,CAAC,CAC3B,CAAC;AACJ,CAAC;AAfD,kDAeC;AAOD;;;;GAIG;AACI,KAAK,UAAU,2BAA2B,CAC/C,OAAgC;IAEhC,MAAM,WAAW,GACf,CAAC,MAAM,gCAAwB,CAAC,4BAA4B,CA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AAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,CAAC,GAAG,CAC7C,CAAC;IAEF,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,CAAC;AACnC,CAAC;AAED,SAAS,oBAAoB,CAC3B,KAAc;IAEd,IAAI,KAAK,EAAE;QACT,MAAM,OAAO,GAAG,IAAA,eAAS,EAAC,KAAK,CAAC,CAAC;QACjC,MAAM,CAAC,KAAK,CACV,gGAAgG,CACjG,CAAC;QACF,OAAO;YACL;gBACE,KAAK,EAAE,KAAK;gBACZ,SAAS,EAAE,OAAO,CAAC,GAAI,CAAC,QAAQ,EAAE;gBAClC,KAAK,EAAE,IAAI;gBACX,WAAW,EAAE,EAAE,GAAG,EAAE,eAAe,EAAE,KAAK,EAAE,UAAU,KAAK,EAAE,EAAE;gBAC/D,IAAI,EAAE,QAAQ;aACf;SACF,CAAC;KACH;IACD,MAAM,CAAC,IAAI,CACT,oLAAoL,CACrL,CAAC;AACJ,CAAC"}
@@ -79,7 +79,7 @@ class DestinationFromServiceRetriever {
79
79
  }
80
80
  const withProxySetting = await da.addProxyConfiguration(destination);
81
81
  const withTrustStore = await da.addTrustStoreConfiguration(withProxySetting, destinationResult.origin);
82
- da.updateDestinationCache(withProxySetting, destinationResult.origin);
82
+ await da.updateDestinationCache(withProxySetting, destinationResult.origin);
83
83
  return withProxySetting;
84
84
  }
85
85
  static async getSubscriberToken(options) {
@@ -260,11 +260,11 @@ Possible alternatives for such technical user authentication are BasicAuthentica
260
260
  return (((_a = this.subscriberToken.userJwt) === null || _a === void 0 ? void 0 : _a.decoded) ||
261
261
  this.subscriberToken.serviceJwt.decoded);
262
262
  }
263
- updateDestinationCache(destination, destinationOrigin) {
263
+ async updateDestinationCache(destination, destinationOrigin) {
264
264
  if (!this.options.useCache) {
265
265
  return destination;
266
266
  }
267
- destination_cache_1.destinationCache.cacheRetrievedDestination(destinationOrigin === 'subscriber'
267
+ await destination_cache_1.destinationCache.cacheRetrievedDestination(destinationOrigin === 'subscriber'
268
268
  ? this.selectSubscriberJwt()
269
269
  : this.providerServiceToken.decoded, destination, this.options.isolationStrategy);
270
270
  }
@@ -282,8 +282,8 @@ Possible alternatives for such technical user authentication are BasicAuthentica
282
282
  };
283
283
  }
284
284
  }
285
- getProviderDestinationCache() {
286
- const destination = destination_cache_1.destinationCache.retrieveDestinationFromCache(this.providerServiceToken.decoded, this.options.destinationName, this.options.isolationStrategy);
285
+ async getProviderDestinationCache() {
286
+ const destination = await destination_cache_1.destinationCache.retrieveDestinationFromCache(this.providerServiceToken.decoded, this.options.destinationName, this.options.isolationStrategy);
287
287
  if (destination) {
288
288
  return { destination, fromCache: true, origin: 'subscriber' };
289
289
  }
@@ -301,8 +301,8 @@ Possible alternatives for such technical user authentication are BasicAuthentica
301
301
  return { destination, fromCache: false, origin: 'subscriber' };
302
302
  }
303
303
  }
304
- getSubscriberDestinationCache() {
305
- const destination = destination_cache_1.destinationCache.retrieveDestinationFromCache(this.selectSubscriberJwt(), this.options.destinationName, this.options.isolationStrategy);
304
+ async getSubscriberDestinationCache() {
305
+ const destination = await destination_cache_1.destinationCache.retrieveDestinationFromCache(this.selectSubscriberJwt(), this.options.destinationName, this.options.isolationStrategy);
306
306
  if (destination) {
307
307
  return { destination, fromCache: true, origin: 'subscriber' };
308
308
  }
@@ -331,11 +331,11 @@ Possible alternatives for such technical user authentication are BasicAuthentica
331
331
  return true;
332
332
  }
333
333
  async searchProviderAccountForDestination() {
334
- return ((this.options.useCache && this.getProviderDestinationCache()) ||
334
+ return ((this.options.useCache && (await this.getProviderDestinationCache())) ||
335
335
  this.getProviderDestinationService());
336
336
  }
337
337
  async searchSubscriberAccountForDestination() {
338
- return ((this.options.useCache && this.getSubscriberDestinationCache()) ||
338
+ return ((this.options.useCache && (await this.getSubscriberDestinationCache())) ||
339
339
  this.getSubscriberDestinationService());
340
340
  }
341
341
  async addTrustStoreConfiguration(destination, origin) {
@@ -1 +1 @@
1
- {"version":3,"file":"destination-from-service.js","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AAW,CAAC;IACrB,CAAC;CACF"}
1
+ {"version":3,"file":"destination-from-service.js","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-from-service.ts"],"names":[],"mappings":";;;AAAA,8CAAmD;AAEnD,gCAAoE;AACpE,sDAAiE;AACjE,kEAAsE;AACtE,kEAGiC;AACjC,sCAA8C;AAE9C,0DAA4E;AAC5E,oDAAyD;AAEzD,yFAI4C;AAK5C,+DAM+B;AAC/B,2DAG6B;AAC7B,6CAIsB;AAOtB,MAAM,MAAM,GAAG,IAAA,mBAAY,EAAC;IAC1B,OAAO,EAAE,cAAc;IACvB,cAAc,EAAE,8BAA8B;CAC/C,CAAC,CAAC;AAYH,MAAM,sBAAsB,GAAuB;IACjD,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;CACf,CAAC;AAEF;;;;;;;GAOG;AACI,KAAK,UAAU,oCAAoC,CACxD,OAAgC;IAEhC,MAAM,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;IAC7E,OAAO,+BAA+B,CAAC,oCAAoC,CACzE,OAAO,CACR,CAAC;AACJ,CAAC;AAPD,oFAOC;AAED;;GAEG;AACH,MAAM,+BAA+B;IAmHnC,YACE,OAAgC,EACvB,eAA6C,EAC7C,oBAA6B;;QAD7B,oBAAe,GAAf,eAAe,CAA8B;QAC7C,yBAAoB,GAApB,oBAAoB,CAAS;QAEtC,MAAM,cAAc,GAAG;YACrB,iBAAiB,EAAE,IAAA,+CAA2B,EAC5C,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,OAAO,0CAAE,OAAO,CAClC;YACD,iBAAiB,EAAE,kDAAe;YAClC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB;SACtC,CAAC;QACF,IAAI,CAAC,OAAO,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,OAAO,EAAE,CAAC;IACnD,CAAC;IA/HM,MAAM,CAAC,KAAK,CAAC,oCAAoC,CACtD,OAAgC;QAEhC,IAAI,I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C,IAAI,CAAC,oBAAoB,CAAC,OAAO,EACrC,WAAW,CAAC,kBAAkB,CAAC,kBAAkB,CAClD,CAAC;YACF,WAAW,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;SAC3D;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"destination-service-cache.d.ts","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-service-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AA6B1D;;GAEG;AACH,eAAO,MAAM,uBAAuB;+CA3BrB,MAAM,cACL,UAAU,KACrB,WAAW,EAAE,GAAG,SAAS;wDAKH,MAAM,cACjB,UAAU,gBACR,WAAW,EAAE,KAC1B,IAAI;;;CAmBR,CAAC"}
1
+ {"version":3,"file":"destination-service-cache.d.ts","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-service-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AA6B1D;;GAEG;AACH,eAAO,MAAM,uBAAuB;+CA3BrB,MAAM,cACL,UAAU,KACrB,WAAW,EAAE,GAAG,SAAS;wDAKH,MAAM,cACjB,UAAU,gBACR,WAAW,EAAE,KAC1B,IAAI;iBAQI,IAAI;;CAWhB,CAAC"}
@@ -7,7 +7,7 @@ const DestinationServiceCache = (cache) => ({
7
7
  retrieveDestinationsFromCache: (targetUrl, decodedJwt) => cache.get((0, destination_cache_1.getDestinationCacheKey)(decodedJwt, targetUrl, destination_cache_1.IsolationStrategy.Tenant)),
8
8
  cacheRetrievedDestinations: (destinationServiceUri, decodedJwt, destinations) => {
9
9
  const key = (0, destination_cache_1.getDestinationCacheKey)(decodedJwt, destinationServiceUri, destination_cache_1.IsolationStrategy.Tenant);
10
- cache.set(key, destinations);
10
+ cache.set(key, { entry: destinations });
11
11
  },
12
12
  clear: () => {
13
13
  cache.clear();
@@ -1 +1 @@
1
- {"version":3,"file":"destination-service-cache.js","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-service-cache.ts"],"names":[],"mappings":";;;AACA,oCAAiC;AAEjC,2DAAgF;AAEhF,MAAM,uBAAuB,GAAG,CAAC,KAA2B,EAAE,EAAE,CAAC,CAAC;IAChE,6BAA6B,EAAE,CAC7B,SAAiB,EACjB,UAAsB,EACK,EAAE,CAC7B,KAAK,CAAC,GAAG,CACP,IAAA,0CAAsB,EAAC,UAAU,EAAE,SAAS,EAAE,qCAAiB,CAAC,MAAM,CAAC,CACxE;IACH,0BAA0B,EAAE,CAC1B,qBAA6B,EAC7B,UAAsB,EACtB,YAA2B,EACrB,EAAE;QACR,MAAM,GAAG,GAAG,IAAA,0CAAsB,EAChC,UAAU,EACV,qBAAqB,EACrB,qCAAiB,CAAC,MAAM,CACzB,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;IAC/B,CAAC;IACD,KAAK,EAAE,GAAG,EAAE;QACV,KAAK,CAAC,KAAK,EAAE,CAAC;IAChB,CAAC;IACD,gBAAgB,EAAE,GAAG,EAAE,CAAC,KAAK;CAC9B,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,uBAAuB,GAAG,uBAAuB,CAC5D,IAAI,aAAK,CAAgB,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAC/D,CAAC"}
1
+ {"version":3,"file":"destination-service-cache.js","sourceRoot":"","sources":["../../../src/scp-cf/destination/destination-service-cache.ts"],"names":[],"mappings":";;;AACA,oCAAiC;AAEjC,2DAAgF;AAEhF,MAAM,uBAAuB,GAAG,CAAC,KAA2B,EAAE,EAAE,CAAC,CAAC;IAChE,6BAA6B,EAAE,CAC7B,SAAiB,EACjB,UAAsB,EACK,EAAE,CAC7B,KAAK,CAAC,GAAG,CACP,IAAA,0CAAsB,EAAC,UAAU,EAAE,SAAS,EAAE,qCAAiB,CAAC,MAAM,CAAC,CACxE;IACH,0BAA0B,EAAE,CAC1B,qBAA6B,EAC7B,UAAsB,EACtB,YAA2B,EACrB,EAAE;QACR,MAAM,GAAG,GAAG,IAAA,0CAAsB,EAChC,UAAU,EACV,qBAAqB,EACrB,qCAAiB,CAAC,MAAM,CACzB,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,CAAC;IAC1C,CAAC;IACD,KAAK,EAAE,GAAS,EAAE;QAChB,KAAK,CAAC,KAAK,EAAE,CAAC;IAChB,CAAC;IACD,gBAAgB,EAAE,GAAG,EAAE,CAAC,KAAK;CAC9B,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,uBAAuB,GAAG,uBAAuB,CAC5D,IAAI,aAAK,CAAgB,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAC/D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-cloud-sdk/connectivity",
3
- "version": "2.5.0",
3
+ "version": "2.5.1-20220615110033.0",
4
4
  "description": "SAP Cloud SDK for JavaScript connectivity",
5
5
  "homepage": "https://sap.github.io/cloud-sdk/docs/js/overview-cloud-sdk-for-javascript",
6
6
  "license": "Apache-2.0",
@@ -37,7 +37,7 @@
37
37
  "readme": "ts-node ../../scripts/replace-common-readme.ts"
38
38
  },
39
39
  "dependencies": {
40
- "@sap-cloud-sdk/util": "^2.5.0",
40
+ "@sap-cloud-sdk/util": "^2.5.1-20220615110033.0",
41
41
  "@sap/xsenv": "^3.3.1",
42
42
  "@sap/xssec": "^3.2.7",
43
43
  "axios": "^0.27.1",