Socket
Socket
Sign inDemoInstall

cloudrail-si

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudrail-si - npm Package Compare versions

Comparing version 2.17.2 to 2.17.3

4

changelog.md
# CloudRail SI Node.JS SDK changelog
* **2.17.3**
* Fixed issues with OneDrive for files and folders having whitespace in their names. Caused by an unannounced API change by Microsoft.
* Downloading a Google Documents file with Google Drive now downloads an export of the file as PDF.
* **2.17.2**

@@ -4,0 +8,0 @@ * Minor fix for an issue where potential errors would be misattributed to another service

2

package.json

@@ -47,3 +47,3 @@ {

"engineStrict": true,
"version": "2.17.2",
"version": "2.17.3",
"main": "index.js",

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

@@ -75,8 +75,19 @@ "use strict";

["create", "$L0", "String"],
["callFunc", "resolvePath", "$P0", "$L0", "$P2"],
["callFunc", "resolvePath", "$P0", "$L0", "$P2", null, "$L10"],
["set", "$L11", 0],
["if==than", "$L10", "application/vnd.google-apps.document", 1],
["set", "$L11", 1],
["if==than", "$L10", "application/vnd.google-apps.drawing", 1],
["set", "$L11", 1],
["if==than", "$L10", "application/vnd.google-apps.presentation", 1],
["set", "$L11", 1],
["if==than", "$L10", "application/vnd.google-apps.spreadsheet", 1],
["set", "$L11", 1],
["create", "$L1", "Object"],
["set", "$L1.method", "GET"],
["create", "$L2", "String"],
["string.concat", "$L2", "https://www.googleapis.com/drive/v3/files/", "$L0", "?alt=media"],
["set", "$L1.url", "$L2"],
["string.concat", "$L1.url", "https://www.googleapis.com/drive/v3/files/", "$L0"],
["if==than", "$L11", 0, 2],
["string.concat", "$L1.url", "$L1.url", "?alt=media"],
["jumpRel", 1],
["string.concat", "$L1.url", "$L1.url", "/export?alt=media&mimeType=application%2Fpdf"],
["create", "$L3", "Object"],

@@ -600,3 +611,3 @@ ["set", "$L1.requestHeaders", "$L3"],

["string.substring", "$L5", "$P2", 0, "$L0"],
["if<than", "$L3", "$L4", 9],
["if<than", "$L3", "$L4", 10],
["create", "$L6", "Object"],

@@ -606,7 +617,8 @@ ["get", "$L6", "$L2", "$L3"],

["callFunc", "validateParents", "$P0", "$L7", "$L6", "$L5"],
["if==than", "$L7", 1, 2],
["if==than", "$L7", 1, 3],
["set", "$P1", "$L6.id"],
["set", "$P4", "$L6.mimeType"],
["return"],
["math.add", "$L3", "$L3", 1],
["jumpRel", -10],
["jumpRel", -11],
["if!=than", "$P3", null, 2],

@@ -613,0 +625,0 @@ ["set", "$P1", null],

@@ -21,3 +21,8 @@ "use strict";

["math.add", "$L1", "$L1", 1],
["jumpRel", -7]
["jumpRel", -7],
["callFunc", "urlEncode", "$P0", "$P0.redirectUri", "$P0.redirectUri"],
["create", "$P0.paginationCache", "Object"],
["create", "$P0.paginationCache.offset", "Number", 0],
["create", "$P0.paginationCache.path", "String", "grgerfefrgerhggerger"],
["create", "$P0.paginationCache.metaCache", "Array"]
],

@@ -58,2 +63,8 @@ "CloudStorage:getUserLogin": [

["callFunc", "checkAuth", "$P0", "$L30"],
["set", "$L9", "$P1"],
["callFunc", "getParentPath", "$P0", "$L27", "$L9"],
["callFunc", "checkIfPathExists", "$P0", "$L10", "$L27"],
["if==than", "$L10", "false", 2],
["create", "$L31", "Error", "Parent path does not exist.", "NotFound"],
["throwError", "$L31"],
["if<=than", "$P3", 10000000, 2],

@@ -69,4 +80,4 @@ ["callFunc", "simpleUpload", "$P0", "$P1", "$P2", "$P3", "$P4"],

["create", "$L1", "String"],
["string.urlEncode", "$P2", "$P2"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$P2", ":/content?access_token=", "$L30"],
["callFunc", "urlEncode", "$P0", "$L10", "$P2"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$L10", ":/content?access_token=", "$L30"],
["set", "$L0.url", "$L1"],

@@ -91,3 +102,3 @@ ["set", "$L0.method", "GET"],

["set", "$L7.X-HTTP-METHOD-OVERRIDE", "PATCH"],
["string.urlEncode", "$L20", "$P1"],
["callFunc", "urlEncode", "$P0", "$L20", "$P1"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$L20", "?access_token=", "$L30"],

@@ -132,4 +143,4 @@ ["set", "$L22", "$P2"],

["create", "$L1", "String"],
["string.urlEncode", "$P1", "$P1"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$P1", "?access_token=", "$L30"],
["callFunc", "urlEncode", "$P0", "$L5", "$P1"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$L5", "?access_token=", "$L30"],
["set", "$L0.url", "$L1"],

@@ -153,3 +164,3 @@ ["set", "$L0.method", "DELETE"],

["set", "$L7.Prefer", "respond-async"],
["string.urlEncode", "$L20", "$P1"],
["callFunc", "urlEncode", "$P0", "$L20", "$P1"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$L20", ":/action.copy", "?access_token=", "$L30"],

@@ -206,5 +217,5 @@ ["set", "$L22", "$P2"],

["callFunc", "getParentPath", "$P0", "$L2", "$L15"],
["string.urlEncode", "$L2", "$L2"],
["callFunc", "urlEncode", "$P0", "$L20", "$L2"],
["callFunc", "getItemNameFromPath", "$P0", "$L3", "$L16"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$L2", ":/children?access_token=", "$L30"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$L20", ":/children?access_token=", "$L30"],
["create", "$L4", "Object"],

@@ -239,3 +250,3 @@ ["set", "$L4.Content-Type", "application/json"],

["create", "$L1", "String"],
["string.urlEncode", "$L28", "$P2"],
["callFunc", "urlEncode", "$P0", "$L28", "$P2"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$L28"],

@@ -382,4 +393,3 @@ ["string.concat", "$L1", "$L1", ":/children?access_token=", "$L30"],

["throwError", "$L31"],
["set", "$L0", "$P2"],
["string.urlEncode", "$L0", "$L0"],
["callFunc", "urlEncode", "$P0", "$L0", "$P2"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$L0", ":/action.createLink", "?access_token=", "$L12"],

@@ -443,3 +453,3 @@ ["create", "$L3", "Object"],

["callFunc", "validatePath", "$P0", "$P2"],
["string.urlEncode", "$L0", "$P2"],
["callFunc", "urlEncode", "$P0", "$L0", "$P2"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$L0", "?access_token=", "$S0.accessToken"],

@@ -519,3 +529,3 @@ ["create", "$L2", "Object"],

["create", "$L1", "String"],
["string.urlEncode", "$L10", "$P2"],
["callFunc", "urlEncode", "$P0", "$L10", "$P2"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$L10", "?access_token=", "$P3"],

@@ -550,3 +560,3 @@ ["set", "$L0.url", "$L1"],

["create", "$L1", "String"],
["string.urlEncode", "$L22", "$P2"],
["callFunc", "urlEncode", "$P0", "$L22", "$P2"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$L22", "?access_token=", "$S0.accessToken"],

@@ -618,4 +628,4 @@ ["set", "$L0.url", "$L1"],

["create", "$L0", "Object"],
["string.urlEncode", "$P1", "$P1"],
["string.concat", "$L20", "https://api.onedrive.com/v1.0/drive/root:", "$P1", ":/content"],
["callFunc", "urlEncode", "$P0", "$L10", "$P1"],
["string.concat", "$L20", "https://api.onedrive.com/v1.0/drive/root:", "$L10", ":/content"],
["if==than", "$P4", 0, 1],

@@ -655,3 +665,3 @@ ["string.concat", "$L20", "$L20", "?%40name.conflictBehavior=fail"],

["create", "$L0", "Object"],
["string.urlEncode", "$L15", "$P2"],
["callFunc", "urlEncode", "$P0", "$L15", "$P2"],
["string.concat", "$L1", "https://api.onedrive.com/v1.0/drive/root:", "$L15", ":/upload.createSession?access_token=", "$S0.accessToken"],

@@ -770,2 +780,19 @@ ["create", "$L2", "Object"],

["string.concat", "$P1", "$P1"]
],
"urlEncode": [
["string.urlEncode", "$L0", "$P2"],
["string.split", "$L0", "$L0", "\\+"],
["size", "$L1", "$L0"],
["create", "$L2", "Number"],
["set", "$L2", 0],
["create", "$L4", "String"],
["if<than", "$L2", "$L1", 7],
["get", "$L5", "$L0", "$L2"],
["if==than", "$L2", 0, 2],
["set", "$L4", "$L5"],
["jumpRel", 1],
["string.concat", "$L4", "$L4", "%20", "$L5"],
["math.add", "$L2", "$L2", 1],
["jumpRel", -8],
["set", "$P1", "$L4"]
]

@@ -772,0 +799,0 @@ };

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