You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

@smartface/smartface.updater

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smartface/smartface.updater - npm Package Compare versions

Comparing version

to
6.3.4

@@ -5,4 +5,4 @@ define(function(require, exports, module) {

updateComponents: function(components) {
// FlexLayout must have children
components.map(function(comp) {
// FlexLayout must have children
var children = comp.props.children;

@@ -12,2 +12,9 @@ if (comp.type === "FlexLayout" && !children) {

}
// userProps shouldn't have one of "excludedFromUserProps"
const excludedFromUserProps = ["children", "parent", "name"];
var userProps = comp.userProps;
userProps && excludedFromUserProps.map(function(prop) {
userProps[prop] && (delete userProps[prop]);
});
});

@@ -21,24 +28,23 @@

updateWorkspace: function(params) {
return;
var fs = params.fs;
var proc = params.proc;
var c9 = params.c9;
var themesURL = "https://az793023.vo.msecnd.net/common/ide/themes/themes.zip";
proc.execFile("wget", {
args: [themesURL],
cwd: c9.workspaceDir
}, function(error, stdout, stderr) {
proc.execFile("unzip", {
args: ["themes.zip"],
cwd: c9.workspaceDir
}, function(error, stdout, stderr) {
proc.execFile("rm", {
args: ["-rf", "themes.zip"],
cwd: c9.workspaceDir
}, function(error, stdout, stderr) {});
});
});
// var fs = params.fs;
// var proc = params.proc;
// var c9 = params.c9;
// var themesURL = "https://az793023.vo.msecnd.net/common/ide/themes/themes.zip";
//
// proc.execFile("wget", {
// args: [themesURL],
// cwd: c9.workspaceDir
// }, function(error, stdout, stderr) {
// proc.execFile("unzip", {
// args: ["themes.zip"],
// cwd: c9.workspaceDir
// }, function(error, stdout, stderr) {
// proc.execFile("rm", {
// args: ["-rf", "themes.zip"],
// cwd: c9.workspaceDir
// }, function(error, stdout, stderr) {});
// });
// });
}
};
});
{
"name": "@smartface/smartface.updater",
"version": "6.3.3",
"version": "6.3.4",
"description": "SmartfaceCloud Updater plugin",

@@ -5,0 +5,0 @@ "main": "smf.updater.js",