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

@smartface/smartface.updater

Package Overview
Dependencies
Maintainers
7
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smartface/smartface.updater - npm Package Compare versions

Comparing version 6.4.6 to 6.4.7

20

6.4.4/index.js

@@ -9,13 +9,3 @@ define(function(require, exports, module) {

var idMap = (function() {
var _idMap = {};
return {
get: function(key) {
return _idMap[key];
},
set: function(key, value) {
_idMap[key] = value;
}
};
})();
var idMap = {};

@@ -97,11 +87,7 @@ var listViewDefault = require("text!./listViewDefault.json");

var newID = guid();
component.id = newID;
idMap.set(oldID, newID);
component.id = idMap[oldID] = newID;
});
components.forEach(function(c) {
if (c.source && c.source.id) {
// TODO: Remove
if (!idMap.get(c.source.id))
debugger;
c.source.id = idMap.get(c.source.id);
c.source.id = idMap[c.source.id];
}

@@ -108,0 +94,0 @@ });

52

AutoUpdatePages.js

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

const LIB_NAME = "__library__";
const LIB_PATH = PGX_PATH + LIB_NAME + ".pgx";
const PGX_EXTENSION = ".pgx";
const LIB_PATH = PGX_PATH + LIB_NAME + PGX_EXTENSION;
var path = require("path");
var versions = require("./versions");

@@ -51,18 +53,23 @@ /**

self.fs.readdir(PGX_PATH, function(err, list) {
if (err) {
callback(err);
if (err || !list || list.length === 0) {
callback(err || "An error occurred");
}
else {
list = list || [];
var taskCount = list.length;
list.forEach(function(file) {
self.updatePage(file.name, function(err) {
if (err) {
callback(err);
}
if (--taskCount === 0) {
callback();
}
});
});
var updateChain = function(pageNameList) {
if (pageNameList.length === 0) {
callback();
}
else {
self.updatePage(pageNameList[0], function(err) {
if (err) {
callback(err);
}
else {
pageNameList.shift();
updateChain(pageNameList);
}
});
}
};
updateChain(getPageNamesFromList(list));
}

@@ -72,2 +79,13 @@ });

function getPageNamesFromList(list) {
var library = LIB_NAME + PGX_EXTENSION;
var newList = [library];
list.forEach(function(e) {
if (e.name !== library) {
newList.push(e.name);
}
});
return newList;
}
/**

@@ -84,3 +102,2 @@ * @callback updatePageCallback

var self = this;
var versions = self.versions;
var pagePath = path.join(PGX_PATH, pageName);

@@ -146,3 +163,3 @@ self.fs.readFile(pagePath, function(err, content) {

function AutoUpdatePages(modules, versions, editorVersion) {
function AutoUpdatePages(modules, editorVersion) {
this.fs = modules.fs;

@@ -152,3 +169,2 @@ this.tabManager = modules.tabManager;

this.dotObject = modules.dotObject;
this.versions = versions;
this.editorVersion = editorVersion;

@@ -155,0 +171,0 @@ }

{
"name": "@smartface/smartface.updater",
"version": "6.4.6",
"version": "6.4.7",
"description": "SmartfaceCloud Updater plugin",

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

@@ -50,3 +50,3 @@ define(function(require, exports, module) {

tabManager: tabManager
}, versions, editorVersion);
}, editorVersion);

@@ -53,0 +53,0 @@ autoUpdatePages.isUpdateRequired(function(shouldUpdate) {

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