Socket
Socket
Sign inDemoInstall

cloudrail-si

Package Overview
Dependencies
7
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.21.11 to 2.21.12

5

changelog.md
# CloudRail SI Node.JS SDK changelog
* **2.21.12**
* OneDriveBusiness: Fix Authentication process
* GoogleDrive: Fix fileExists method
* Backblaze: Fix an issue related to advanced request
* **2.21.11**

@@ -4,0 +9,0 @@ * OneDriveBusiness: Fix missing url encoding of the client secret on refreshing tokens

2

package.json

@@ -56,3 +56,3 @@ {

"engineStrict": true,
"version": "2.21.11",
"version": "2.21.12",
"main": "index.js",

@@ -59,0 +59,0 @@ "typings": "index.d.ts",

@@ -293,3 +293,3 @@ "use strict";

["set", "$L0.requestHeaders.Authorization", "$S0.authorizationToken"],
["if!=than", "P2.body", null, 6],
["if!=than", "$P2.body", null, 6],
["if==than", "$L0.requestHeaders.Content-Length", null, 5],

@@ -296,0 +296,0 @@ ["jumpRel", 1],

@@ -9,3 +9,3 @@ "use strict";

"init": [
["string.urlEncode", "$P0.redirectUri", "$P0.redirectUri"],
["string.urlEncode", "$P0.redirectUriEncoded", "$P0.redirectUri"],
["create", "$P0.paginationCache", "Object"],

@@ -579,6 +579,6 @@ ["create", "$P0.paginationCache.offset", "Number", 0],

["string.urlEncode", "$L12", "$P0.clientSecret"],
["if==than", "$P2", "accessToken", 39],
["string.concat", "$L0", "https://login.microsoftonline.com/common/oauth2/authorize?client_id=", "$P0.clientId", "&response_type=code&redirect_uri=", "$P0.redirectUri"],
["if==than", "$P2", "accessToken", 32],
["string.concat", "$L0", "https://login.microsoftonline.com/common/oauth2/authorize?client_id=", "$P0.clientId", "&response_type=code&redirect_uri=", "$P0.redirectUriEncoded"],
["awaitCodeRedirect", "$L1", "$L0", null, "$P0.redirectUri"],
["string.concat", "$L2", "client_id=", "$P0.clientId", "&redirect_uri=", "$P0.redirectUri", "&client_secret=", "$L12", "&code=", "$L1", "&grant_type=authorization_code&resource=https%3A%2F%2Fapi.office.com%2Fdiscovery%2F"],
["string.concat", "$L2", "client_id=", "$P0.clientId", "&redirect_uri=", "$P0.redirectUriEncoded", "&client_secret=", "$L12", "&code=", "$L1", "&grant_type=authorization_code&resource=https%3A%2F%2Fgraph.microsoft.com%2F"],
["stream.stringToStream", "$L3", "$L2"],

@@ -602,3 +602,3 @@ ["create", "$L4", "Object"],

["create", "$L5", "Object"],
["set", "$L5.url", "https://api.office.com/discovery/v2.0/me/services"],
["set", "$L5.url", "https://graph.microsoft.com/v1.0/me/drive/sharepointIds/siteUrl"],
["set", "$L5.method", "GET"],

@@ -610,14 +610,7 @@ ["set", "$L5.requestHeaders", "$L4"],

["json.parse", "$L8", "$L7"],
["set", "$L0", 0],
["size", "$L1", "$L8.value"],
["if<than", "$L0", "$L1", 8],
["get", "$L2", "$L8.value", "$L0"],
["if==than", "$L2.capability", "MyFiles", 4],
["if==than", "$L2.serviceApiVersion", "v2.0", 3],
["set", "$S0.url", "$L2.serviceEndpointUri"],
["string.urlEncode", "$S0.resource", "$L2.serviceResourceId"],
["jumpRel", 2],
["math.add", "$L0", "$L0", 1],
["jumpRel", -9],
["string.concat", "$L2", "client_id=", "$P0.clientId", "&redirect_uri=", "$P0.redirectUri", "&client_secret=", "$L12", "&refresh_token=", "$S0.refreshToken", "&grant_type=refresh_token&resource=", "$S0.resource"],
["string.concat", "$L2", "$L8.value", "/_api/v2.0"],
["set", "$S0.url", "$L2"],
["string.indexOf", "$L2", "$L8.value", "/", 8],
["string.substr", "$S0.resource", "$L8.value", 0, "$L2"],
["string.concat", "$L2", "client_id=", "$P0.clientId", "&redirect_uri=", "$P0.redirectUriEncoded", "&client_secret=", "$L12", "&refresh_token=", "$S0.refreshToken", "&grant_type=refresh_token&resource=", "$S0.resource"],
["stream.stringToStream", "$L3", "$L2"],

@@ -624,0 +617,0 @@ ["create", "$L4", "Object"],

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc