Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/ocsdk

Package Overview
Dependencies
Maintainers
5
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/ocsdk - npm Package Compare versions

Comparing version 0.5.1-main.b008284 to 0.5.1-main.b31dcd6

4

lib/Utils/LoggingSanitizer.js

@@ -85,4 +85,2 @@ "use strict";

// eslint-disable-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
console.log("[stripRequestHeadersSensitiveProperties]");
console.log(headers);
LoggingSanitizer.stripAuthenticationUserToken(headers);

@@ -169,2 +167,2 @@

exports.LoggingSanitizer = LoggingSanitizer;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9Mb2dnaW5nU2FuaXRpemVyLnRzIl0sIm5hbWVzIjpbIkxvZ2dpbmdTYW5pdGl6ZXIiLCJjdXN0b21Db250ZXh0RGF0YSIsIk9iamVjdCIsImtleXMiLCJmb3JFYWNoIiwiY29udGV4dEtleSIsInZhbHVlIiwiQ29uc3RhbnRzIiwiaGlkZGVuQ29udGVudFBsYWNlaG9sZGVyIiwicHJlQ2hhdFJlc3BvbnNlIiwicmVzcG9uc2VLZXkiLCJkYXRhIiwiaW5jbHVkZXMiLCJoZWFkZXJzIiwiT21uaWNoYW5uZWxIVFRQSGVhZGVycyIsImF1dGhlbnRpY2F0ZWRVc2VyVG9rZW4iLCJhdXRoQ29kZU5vbmNlIiwiY29uc29sZSIsImxvZyIsInN0cmlwQXV0aGVudGljYXRpb25Vc2VyVG9rZW4iLCJhdXRob3JpemF0aW9uIiwiY29uZmlnT2JqZWN0IiwiSlNPTiIsInBhcnNlIiwidW5kZWZpbmVkIiwic3RyaXBQcmVDaGF0UmVzcG9uc2UiLCJzdHJpcEN1c3RvbUNvbnRleHREYXRhVmF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RpY2F0aW9uVXNlclRva2VuKGVycm9yT2JqZWN0Py5yZXNwb25zZT8uY29uZmlnPy5oZWFkZXJzKTtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBwdWJsaWMgc3RhdGljIHN0cmlwRXJyb3JTZW5zaXRpdmVQcm9wZXJ0aWVzKGVycm9yT2JqZWN0OiBhbnkpOiB2b2lkIHsgLy8gZXNsaW50LWRpc2FibGUtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tZXhwbGljaXQtYW55LCBAdHlwZXNjcmlwdC1lc2xpbnQvZXhwbGljaXQtbW9kdWxlLWJvdW5kYXJ5LXR5cGVzXG4gICAgaWYgKGVycm9yT2JqZWN0ICYmIHR5cGVvZiBlcnJvck9iamVjdCA9PT0gJ29iamVjdCcgJiYgT2JqZWN0LmtleXMoZXJyb3JPYmplY3QpPy5sZW5ndGggPiAwKSB7XG4gICAgICB0aGlzLnN0cmlwQXhpb3NFcnJvclNlbnNpdGl2ZVByb3BlcnRpZXMoZXJyb3JPYmplY3QpO1xuICAgIH1cbiAgfVxufVxuIl19
{
"name": "@microsoft/ocsdk",
"version": "0.5.1-main.b008284",
"version": "0.5.1-main.b31dcd6",
"description": "Microsoft Omnichannel SDK",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc