@sap-cloud-sdk/util
Advanced tools
Comparing version 1.18.2-alpha.13 to 1.18.2-alpha.19
@@ -48,3 +48,3 @@ import { Logger } from 'winston'; | ||
* Change the log level of a logger based on its message context. | ||
* E. g., to set the log level for the destination accessor module of the SDK to _debug_, simply call `setLogLevel('debug', 'destination-acessor')`. | ||
* E. g., to set the log level for the destination accessor module of the SDK to _debug_, simply call `setLogLevel('debug', 'destination-accessor')`. | ||
* @param level - level to set the logger to | ||
@@ -51,0 +51,0 @@ * @param messageContextOrLogger - Message context of the logger to change the log level for or the logger itself |
@@ -107,3 +107,3 @@ "use strict"; | ||
* Change the log level of a logger based on its message context. | ||
* E. g., to set the log level for the destination accessor module of the SDK to _debug_, simply call `setLogLevel('debug', 'destination-acessor')`. | ||
* E. g., to set the log level for the destination accessor module of the SDK to _debug_, simply call `setLogLevel('debug', 'destination-accessor')`. | ||
* @param level - level to set the logger to | ||
@@ -110,0 +110,0 @@ * @param messageContextOrLogger - Message context of the logger to change the log level for or the logger itself |
{ | ||
"name": "@sap-cloud-sdk/util", | ||
"version": "1.18.2-alpha.13+3715853", | ||
"version": "1.18.2-alpha.19+3cb32de", | ||
"description": "SAP Cloud SDK for JavaScript general utilities", | ||
@@ -45,3 +45,3 @@ "homepage": "https://community.sap.com/topics/cloud-sdk", | ||
}, | ||
"gitHead": "371585311c8ed4ac19c6759e7f428a9e83b87d38" | ||
"gitHead": "3cb32de106667546afd4dfe9fbd247b43222912e" | ||
} |
@@ -1,6 +0,24 @@ | ||
# cloud-sdk-utils | ||
<a href="https://sap.com/s4sdk"><img src="https://help.sap.com/doc/2324e9c3b28748a4ae2ad08166d77675/1.0/en-US/logo-with-js.svg" alt="SAP Cloud SDK for JavaScript Logo" height="122.92" width="226.773"/></a> | ||
# @sap-cloud-sdk/util | ||
Package that contains general utility functions that we reuse multiple times in the SDK. | ||
While primarily designed for internal usage, they might also be benefical for consumers of the SDK. | ||
While primarily designed for internal usage, they might also be beneficial for consumers of the SDK. | ||
### Installation | ||
``` | ||
$ npm install @sap-cloud-sdk/util | ||
``` | ||
### Usage | ||
The util package collects useful tools that help build your SAP Cloud Platform application. | ||
For example, the following code snippet changes the log level of the destination accessor of the SDK. | ||
``` | ||
import { setLogLevel } from '@sap-cloud-sdk/util'; | ||
setLogLevel('debug', 'destination-accessor'); | ||
``` | ||
### Api documentation | ||
https://sap.github.io/cloud-sdk/api/ | ||
### Helpful Links | ||
@@ -7,0 +25,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
51599
33