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.7 to 2.21.8

7

changelog.md
# CloudRail SI Node.JS SDK changelog
* **2.21.8**
* Google Cloud Platform: Implement missing paging in listFiles() method
* Egnyte & Google Drive: Minor fixes
* Google Cloud Platform & Amazon S3: Add missing advanced request feature
* Microsoft Azure: Fix listFiles() method and implement advanced request
* Yelp: Update to a new API version including a different authentication
* **2.21.7**

@@ -4,0 +11,0 @@ * Add a new method to the CloudStorage interface that allows uploading files with a custom modified date

2

package.json

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

"engineStrict": true,
"version": "2.21.7",
"version": "2.21.8",
"main": "index.js",

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

@@ -324,2 +324,3 @@ "use strict";

["set", "$L0.method", "$P2.method"],
["if!=than", "$P2.body", null, 1],
["set", "$L0.requestBody", "$P2.body"],

@@ -326,0 +327,0 @@ ["if!=than", "$P2.appendAuthorization", 0, 23],

@@ -23,3 +23,6 @@ "use strict";

],
"CloudStorage:getUserLogin": [],
"CloudStorage:getUserLogin": [
["callFunc", "User:about", "$P0"],
["set", "$P1", "$P0.userInfo.email"]
],
"CloudStorage:getUserName": [

@@ -42,3 +45,3 @@ ["callFunc", "User:about", "$P0"],

["create", "$L0.requestHeaders", "Object"],
["string.concat", "$L0.requestHeaders.Authorization", "Bearer ", "$S0.accessToken"],
["string.concat", "$L0.requestHeaders.Authorization", "Bearer ", "$S0.access_token"],
["set", "$L0.method", "GET"],

@@ -51,3 +54,4 @@ ["http.requestCall", "$L1", "$L0"],

["set", "$P0.userInfo.lastUpdate", "$L3.Time"],
["set", "$P0.userInfo.displayName", "$L2.user.username"]
["set", "$P0.userInfo.displayName", "$L2.username"],
["set", "$P0.userInfo.email", "$L2.email"]
],

@@ -54,0 +58,0 @@ "CloudStorage:download": [

@@ -91,3 +91,11 @@ "use strict";

["math.add", "$L4", "$L4", 1],
["jumpRel", -7]
["jumpRel", -7],
["if!=than", "$L2.nextPageToken", null, 7],
["string.concat", "$L0.url", "$P0.storageBase", "/b/", "$P2.name", "/o?maxResults=1000", "&pageToken=", "$L2.nextPageToken"],
["create", "$L0.requestHeaders", "Object"],
["string.concat", "$L0.requestHeaders.Authorization", "Bearer ", "$P0.accessToken"],
["http.requestCall", "$L1", "$L0"],
["callFunc", "validateResponse", "$P0", "$L1"],
["json.parse", "$L2", "$L1.responseBody"],
["jumpRel", -17]
],

@@ -151,2 +159,3 @@ "getFileMetadata": [

["set", "$L0.method", "$P2.method"],
["if!=than", "$P2.body", null, 1],
["set", "$L0.requestBody", "$P2.body"],

@@ -153,0 +162,0 @@ ["if==than", "$L0.requestHeaders", null, 1],

@@ -200,13 +200,77 @@ "use strict";

["size", "$L10", "$L12.children.0.children"],
["if!=than", "$L10", 0, 8],
["if!=than", "$L10", 0, 19],
["math.add", "$L10", "$L10", -1],
["create", "$L13", "BusinessFileMetaData"],
["get", "$L15", "$L12.children.0.children", "$L10"],
["if==than", "$L15.name", "Directory", 8],
["callFunc", "getSubDirectories", "$P0", "$L30", "$P2", "$L15.children.0.text"],
["size", "$L50", "$L30"],
["if!=than", "$L50", 0, 4],
["math.add", "$L50", "$L50", -1],
["get", "$L51", "$L30", "$L50"],
["push", "$L14", "$L51"],
["jumpRel", -5],
["jumpRel", 6],
["set", "$L13.fileName", "$L15.children.0.text"],
["size", "$L16", "$L15.children.1.children"],
["if!=than", "$L16", 0, 2],
["math.add", "$L11", "$L15.children.1.children.0.text", 0],
["set", "$L13.size", "$L11"],
["push", "$L14", "$L13"],
["jumpRel", -9],
["jumpRel", -20],
["set", "$P1", "$L14"]
],
"getSubDirectories": [
["create", "$L1", "Date"],
["create", "$L4", "Object"],
["set", "$L4", "$L1.rfcTime1123", "x-ms-date"],
["set", "$L4", "2015-12-11", "x-ms-version"],
["create", "$L3", "String"],
["string.concat", "$L3", "/", "$P0.accountName", "/", "$P2.name", "/", "$P3", "\ncomp:list", "\nrestype:directory"],
["create", "$L2", "String"],
["callFunc", "signedString", "$L2", "GET", "", "$L4", "$L3", "$P0"],
["string.concat", "$L2", "SharedKey ", "$P0.accountName", ":", "$L2"],
["set", "$L4", "$L2", "Authorization"],
["create", "$L5", "Object"],
["string.concat", "$L0", "https://", "$P0.accountName", ".file.core.windows.net/", "$P2.name", "/", "$P3", "?restype=directory&comp=list"],
["set", "$L5.url", "$L0"],
["set", "$L5.method", "GET"],
["set", "$L5.requestHeaders", "$L4"],
["http.requestCall", "$L6", "$L5"],
["callFunc", "checkHttpErrors", "$P0", "$L6", "authentication", 200],
["create", "$L14", "Array"],
["stream.streamToString", "$L12", "$L6.responseBody"],
["xml.parse", "$L12", "$L12"],
["size", "$L10", "$L12.children.0.children"],
["if==than", "$L10", 0, 6],
["create", "$L40", "BusinessFileMetaData"],
["string.concat", "$L44", "$P3", "/"],
["set", "$L40.fileName", "$L44"],
["push", "$L14", "$L40"],
["set", "$P1", "$L14"],
["return"],
["if!=than", "$L10", 0, 21],
["math.add", "$L10", "$L10", -1],
["create", "$L13", "BusinessFileMetaData"],
["get", "$L15", "$L12.children.0.children", "$L10"],
["if==than", "$L15.name", "Directory", 9],
["string.concat", "$L41", "$P3", "/", "$L15.children.0.text"],
["callFunc", "getSubDirectories", "$P0", "$L42", "$P2", "$L41"],
["size", "$L50", "$L42"],
["if!=than", "$L50", 0, 4],
["math.add", "$L50", "$L50", -1],
["get", "$L51", "$L42", "$L50"],
["push", "$L14", "$L51"],
["jumpRel", -5],
["jumpRel", 7],
["string.concat", "$L43", "$P3", "/", "$L15.children.0.text"],
["set", "$L13.fileName", "$L43"],
["size", "$L16", "$L15.children.1.children"],
["if!=than", "$L16", 0, 2],
["math.add", "$L11", "$L15.children.1.children.0.text", 0],
["set", "$L13.size", "$L11"],
["push", "$L14", "$L13"],
["jumpRel", -22],
["set", "$P1", "$L14"]
],
"Storage:getFileMetadata": [

@@ -269,2 +333,3 @@ ["callFunc", "checkNull", "$P0", "$P3"],

["set", "$L0.method", "$P2.method"],
["if!=than", "$P2.body", null, 1],
["set", "$L0.requestBody", "$P2.body"],

@@ -278,11 +343,11 @@ ["if==than", "$L0.requestHeaders", null, 1],

["callFunc", "extractCanonicalResources", "$P0", "$L1", "$L0.url"],
["callFunc", "signedString", "$L1", "$L0.method", "", "$L0.requestHeaders", "$L1", "$P0"],
["string.concat", "$L0.requestHeaders.Authorization", "SharedKey ", "$P0.accountName", ":", "$L1"],
["http.requestCall", "$L1", "$L0"],
["callFunc", "signedString", "$L10", "$L0.method", "", "$L0.requestHeaders", "$L1", "$P0"],
["string.concat", "$L0.requestHeaders.Authorization", "SharedKey ", "$P0.accountName", ":", "$L10"],
["http.requestCall", "$L11", "$L0"],
["if!=than", "$P2.checkErrors", 0, 1],
["callFunc", "checkHttpErrors", "$P0", "$L1", "advancedRequest"],
["callFunc", "checkHttpErrors", "$P0", "$L11", "advancedRequest"],
["create", "$P1", "AdvancedRequestResponse"],
["set", "$P1.status", "$L1.code"],
["set", "$P1.headers", "$L1.responseHeaders"],
["set", "$P1.body", "$L1.responseBody"]
["set", "$P1.status", "$L11.code"],
["set", "$P1.headers", "$L11.responseHeaders"],
["set", "$P1.body", "$L11.responseBody"]
],

@@ -293,10 +358,11 @@ "extractCanonicalResources": [

["string.indexOf", "$L0", "$P2", "/", "$L0"],
["if!=than", "$L0", -1, 10],
["if!=than", "$L0", -1, 11],
["size", "$L1", "$P2"],
["math.add", "$L1", "$L1", -1],
["if!=than", "$L0", "$L1", 7],
["if!=than", "$L0", "$L1", 8],
["string.indexOf", "$L2", "$P2", "/", "$L1"],
["if==than", "$L2", -1, 5],
["if==than", "$L2", -1, 6],
["string.substring", "$L3", "$P2", "$L0"],
["string.concat", "$P1", "$P1", "$L3"],
["string.split", "$L20", "$L3", "\\?", 2],
["string.concat", "$P1", "$P1", "$L20.0"],
["jumpRel", 2],

@@ -312,9 +378,12 @@ ["string.substring", "$L3", "$P2", "$L0", "$L2"],

["create", "$L3", "Number", 0],
["if<than", "$L3", "$L2", 6],
["if<than", "$L3", "$L2", 11],
["get", "$L4", "$L1", "$L3"],
["string.split", "$L5", "$L4", "="],
["array.join", "$L6", "$L5", ":"],
["if>than", "$L10", 1, 3],
["get", "$L11", "$L5", 0],
["get", "$L12", "$L5", 1],
["string.concat", "$L6", "$L11", ":", "$L12"],
["string.concat", "$P1", "$P1", "\n", "$L6"],
["math.add", "$L3", "$L3", 1],
["jumpRel", -7]
["jumpRel", -12]
],

@@ -321,0 +390,0 @@ "signedString": [

@@ -313,5 +313,7 @@ "use strict";

["size", "$L8", "$L16"],
["if<than", "$L7", "$L8", 23],
["if<than", "$L7", "$L8", 31],
["create", "$L9", "CloudMetaData"],
["get", "$L10", "$L16", "$L7"],
["if!=than", "$L10.remoteItem", null, 1],
["jumpRel", 25],
["set", "$L9.Name", "$L10.name"],

@@ -322,2 +324,8 @@ ["set", "$L9.Size", "$L10.size"],

["set", "$L9.modifiedAt", "$L20.time"],
["if!=than", "$L10.fileSystemInfo", null, 5],
["create", "$L17", "Object"],
["set", "$L17", "$L10.fileSystemInfo"],
["if!=than", "$L17.lastModifiedDateTime", null, 2],
["create", "$L18", "Date", "$L17.lastModifiedDateTime"],
["set", "$L9.contentModifiedAt", "$L18.time"],
["if!=than", "$L10.image", null, 4],

@@ -338,3 +346,3 @@ ["get", "$L11", "$L10.image.height"],

["math.add", "$L7", "$L7", 1],
["jumpRel", -24],
["jumpRel", -32],
["set", "$P1", "$L6"]

@@ -465,4 +473,6 @@ ],

["create", "$L1", "Number", 0],
["if<than", "$L1", "$L0", 28],
["if<than", "$L1", "$L0", 36],
["get", "$L10", "$P2", "$L1"],
["if!=than", "$L10.remoteItem", null, 1],
["jumpRel", 31],
["create", "$L9", "CloudMetaData"],

@@ -474,2 +484,8 @@ ["set", "$L9.Name", "$L10.name"],

["set", "$L9.modifiedAt", "$L20.time"],
["if!=than", "$L10.fileSystemInfo", null, 5],
["create", "$L15", "Object"],
["set", "$L15", "$L10.fileSystemInfo"],
["if!=than", "$L15.lastModifiedDateTime", null, 2],
["create", "$L16", "Date", "$L15.lastModifiedDateTime"],
["set", "$L9.contentModifiedAt", "$L16.time"],
["if!=than", "$L10.image", null, 4],

@@ -495,3 +511,3 @@ ["get", "$L11", "$L10.image.height"],

["math.add", "$L1", "$L1", 1],
["jumpRel", -29]
["jumpRel", -37]
],

@@ -632,3 +648,3 @@ "exists": [

["set", "$L14", "$L5.fileSystemInfo"],
["if!=than", "$L14", null, 2],
["if!=than", "$L14.lastModifiedDateTime", null, 2],
["create", "$L15", "Date", "$L14.lastModifiedDateTime"],

@@ -688,4 +704,7 @@ ["set", "$P1.contentModifiedAt", "$L15.time"],

"validateResponse": [
["if>=than", "$P1.code", 400, 21],
["if>=than", "$P1.code", 400, 24],
["json.parse", "$L0", "$P1.responseBody"],
["if!=than", "$L0.error_codes", null, 2],
["set", "$L2", "$L0.error"],
["jumpRel", 2],
["set", "$L1", "$L0.error"],

@@ -692,0 +711,0 @@ ["set", "$L2", "$L1.message"],

@@ -292,5 +292,7 @@ "use strict";

["size", "$L8", "$L16"],
["if<than", "$L7", "$L8", 23],
["if<than", "$L7", "$L8", 31],
["create", "$L9", "CloudMetaData"],
["get", "$L10", "$L16", "$L7"],
["if!=than", "$L10.remoteItem", null, 1],
["jumpRel", 25],
["set", "$L9.Name", "$L10.name"],

@@ -301,2 +303,8 @@ ["set", "$L9.Size", "$L10.size"],

["set", "$L9.modifiedAt", "$L20.time"],
["if!=than", "$L10.fileSystemInfo", null, 5],
["create", "$L17", "Object"],
["set", "$L17", "$L10.fileSystemInfo"],
["if!=than", "$L17.lastModifiedDateTime", null, 2],
["create", "$L18", "Date", "$L17.lastModifiedDateTime"],
["set", "$L9.contentModifiedAt", "$L18.time"],
["if!=than", "$L10.image", null, 4],

@@ -317,3 +325,3 @@ ["get", "$L11", "$L10.image.height"],

["math.add", "$L7", "$L7", 1],
["jumpRel", -24],
["jumpRel", -32],
["set", "$P1", "$L6"]

@@ -440,4 +448,6 @@ ],

["create", "$L1", "Number", 0],
["if<than", "$L1", "$L0", 22],
["if<than", "$L1", "$L0", 30],
["get", "$L10", "$P2", "$L1"],
["if!=than", "$L10.remoteItem", null, 1],
["jumpRel", 25],
["create", "$L9", "CloudMetaData"],

@@ -449,2 +459,8 @@ ["set", "$L9.Name", "$L10.name"],

["set", "$L9.modifiedAt", "$L20.time"],
["if!=than", "$L10.fileSystemInfo", null, 5],
["create", "$L14", "Object"],
["set", "$L14", "$L5.fileSystemInfo"],
["if!=than", "$L14.lastModifiedDateTime", null, 2],
["create", "$L15", "Date", "$L14.lastModifiedDateTime"],
["set", "$L9.contentModifiedAt", "$L15.time"],
["if!=than", "$L10.image", null, 4],

@@ -464,3 +480,3 @@ ["get", "$L11", "$L10.image.height"],

["math.add", "$L1", "$L1", 1],
["jumpRel", -23]
["jumpRel", -31]
],

@@ -678,3 +694,3 @@ "exists": [

["set", "$L14", "$L5.fileSystemInfo"],
["if!=than", "$L14", null, 2],
["if!=than", "$L14.lastModifiedDateTime", null, 2],
["create", "$L15", "Date", "$L14.lastModifiedDateTime"],

@@ -771,4 +787,7 @@ ["set", "$P1.contentModifiedAt", "$L15.time"],

"validateResponse": [
["if>=than", "$P1.code", 400, 21],
["if>=than", "$P1.code", 400, 24],
["json.parse", "$L0", "$P1.responseBody"],
["if!=than", "$L0.error_codes", null, 2],
["set", "$L2", "$L0.error"],
["jumpRel", 2],
["set", "$L1", "$L0.error"],

@@ -775,0 +794,0 @@ ["set", "$L2", "$L1.message"],

@@ -94,5 +94,4 @@ "use strict";

["set", "$L0.requestBody", "$P2.body"],
["if!=than", "$P2.appendAuthorization", 0, 2],
["callFunc", "checkAuthentication", "$P0"],
["string.concat", "$L0.requestHeaders.Authorization", "Bearer ", "$S0.accessToken"],
["if!=than", "$P2.appendAuthorization", 0, 1],
["string.concat", "$L0.requestHeaders.Authorization", "Bearer ", "$P0.apiKey"],
["http.requestCall", "$L1", "$L0"],

@@ -132,6 +131,5 @@ ["if!=than", "$P2.checkErrors", 0, 1],

["string.concat", "$L1", "$L1", "&categories=", "$L2"],
["callFunc", "checkAuthentication", "$P0"],
["string.concat", "$L0.url", "$L0.url", "$L1"],
["create", "$L0.requestHeaders", "Object"],
["string.concat", "$L0.requestHeaders.Authorization", "Bearer ", "$S0.accessToken"],
["string.concat", "$L0.requestHeaders.Authorization", "Bearer ", "$P0.apiKey"],
["http.requestCall", "$L2", "$L0"],

@@ -175,31 +173,2 @@ ["callFunc", "checkHttpResponse", "$P0", "$L2"],

],
"checkAuthentication": [
["create", "$L0", "Date"],
["if==than", "$S0.accessToken", null, 2],
["callFunc", "authenticate", "$P0"],
["return"],
["create", "$L1", "Date"],
["set", "$L1.time", "$S0.expires_in"],
["if<than", "$L1", "$L0", 1],
["callFunc", "authenticate", "$P0"]
],
"authenticate": [
["create", "$L8", "String", ""],
["string.concat", "$L8", "$L8", "grant_type=client_credentials", "&client_id=", "$P0.clientID", "&client_secret=", "$P0.clientSecret"],
["stream.stringToStream", "$L9", "$L8"],
["create", "$L10", "Object"],
["set", "$L10.Accept", "application/json"],
["set", "$L10", "application/x-www-form-urlencoded", "Content-Type"],
["create", "$L11", "Object"],
["set", "$L11.url", "https://api.yelp.com/oauth2/token"],
["set", "$L11.method", "POST"],
["set", "$L11.requestBody", "$L9"],
["set", "$L11.requestHeaders", "$L10"],
["http.requestCall", "$L12", "$L11"],
["callFunc", "checkHttpResponse", "$P0", "$L12"],
["create", "$L13", "String"],
["stream.streamToString", "$L13", "$L12.responseBody"],
["json.parse", "$L14", "$L13"],
["set", "$S0.accessToken", "$L14.access_token"]
],
"checkHttpResponse": [

@@ -256,3 +225,3 @@ ["if>=than", "$P1.code", 400, 9],

var Yelp = (function () {
function Yelp(redirectReceiver, clientID, clientSecret) {
function Yelp(redirectReceiver, apiKey) {
this.interpreterStorage = {};

@@ -264,4 +233,3 @@ this.persistentStorage = [{}];

InitSelfTest_1.InitSelfTest.initTest("Yelp");
this.interpreterStorage["clientID"] = clientID;
this.interpreterStorage["clientSecret"] = clientSecret;
this.interpreterStorage["apiKey"] = apiKey;
var ip = new Interpreter_1.Interpreter(new Sandbox_1.Sandbox(SERVICE_CODE, this.persistentStorage, this.instanceDependencyStorage));

@@ -268,0 +236,0 @@ if (SERVICE_CODE["init"]) {

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

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