New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ryuu-client

Package Overview
Dependencies
Maintainers
7
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ryuu-client - npm Package Compare versions

Comparing version 4.3.4-beta.2 to 4.3.4-beta.3

2

lib/domoapps-client.d.ts

@@ -33,3 +33,3 @@ import { AxiosRequestConfig, AxiosResponse } from 'axios';

uploadAsset(designId: string, version: string, file: string, contents?: string): Promise<File>;
uploadAllAssets(manifest: manifest): Promise<File[]>;
uploadAllAssets(manifest: manifest): Promise<any[]>;
getAsset(designId: string, version: string, file: string): Promise<unknown>;

@@ -36,0 +36,0 @@ /**

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

Domo.prototype.uploadAllAssets = function (manifest) {
var _this_1 = this;
var _this = this;

@@ -328,15 +329,49 @@ var ignore = ['**/*/node_modules/**/*', 'node_modules/**/*'];

var manifestUpload = _this.uploadAsset(manifest.id, manifest.version, 'manifest.json', JSON.stringify(manifest));
return manifestUpload.then(function () {
var rest = glob
.sync('**/*', { ignore: ignore })
.filter(function (file) {
return !fs.lstatSync(file).isDirectory() && file !== 'manifest.json';
})
.map(function (file) {
//CATCH THE ERROR HERE
return _this.uploadAsset(manifest.id, manifest.version, file);
var chunkArray = function (array, chunkSize) {
var results = [];
for (var i = 0; i < array.length; i += chunkSize) {
results.push(array.slice(i, i + chunkSize));
}
return results;
};
return manifestUpload.then(function () { return __awaiter(_this_1, void 0, void 0, function () {
var rest, chunkedFiles, allPromisesResults, _i, chunkedFiles_1, chunk, chunkResults;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
rest = glob
.sync('**/*', { ignore: ignore })
.filter(function (file) {
return !fs.lstatSync(file).isDirectory() && file !== 'manifest.json';
});
chunkedFiles = chunkArray(rest, 25);
allPromisesResults = [];
_i = 0, chunkedFiles_1 = chunkedFiles;
_a.label = 1;
case 1:
if (!(_i < chunkedFiles_1.length)) return [3 /*break*/, 4];
chunk = chunkedFiles_1[_i];
return [4 /*yield*/, Promise.all(chunk.map(function (file) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, _this.uploadAsset(manifest.id, manifest.version, file)];
case 1:
// CATCH THE ERROR HERE
return [2 /*return*/, _a.sent()];
}
});
});
}))];
case 2:
chunkResults = _a.sent();
allPromisesResults = allPromisesResults.concat(chunkResults);
_a.label = 3;
case 3:
_i++;
return [3 /*break*/, 1];
case 4: return [2 /*return*/, allPromisesResults];
}
});
var combined = [manifestUpload].concat(rest);
return Promise.all(combined);
});
}); });
};

@@ -343,0 +378,0 @@ Domo.prototype.getAsset = function (designId, version, file) {

{
"name": "ryuu-client",
"version": "4.3.4-beta.2",
"version": "4.3.4-beta.3",
"description": "Node client for ryuu services",

@@ -5,0 +5,0 @@ "author": "Domo",

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