@node-red/runtime
Advanced tools
Comparing version 0.20.0-beta.2 to 0.20.0-beta.3
@@ -212,2 +212,3 @@ /** | ||
} else { | ||
self._flushPendingWrites = function() { } | ||
return fs.ensureDir(self.storageBaseDir); | ||
@@ -223,2 +224,8 @@ } | ||
this.flushInterval = 0; | ||
self.writePromise = self.writePromise.then(function(){ | ||
return self._flushPendingWrites.call(self).catch(function(err) { | ||
log.error(log._("context.localfilesystem.error-write",{message:err.toString()})); | ||
}); | ||
}); | ||
} | ||
@@ -225,0 +232,0 @@ return this.writePromise; |
@@ -154,4 +154,4 @@ /** | ||
function installModule(module,version) { | ||
var ex_module = registry.getModuleInfo(module); | ||
var isUpgrade = !!ex_module; | ||
var existingModule = registry.getModuleInfo(module); | ||
var isUpgrade = !!existingModule; | ||
return registry.installModule(module,version).then(function(info) { | ||
@@ -158,0 +158,0 @@ if (isUpgrade) { |
@@ -37,3 +37,3 @@ /** | ||
var remaining = ""; | ||
var buffer = Buffer(length); | ||
var buffer = Buffer.alloc(length); | ||
while(read < size) { | ||
@@ -67,3 +67,3 @@ read+=fs.readSync(fd,buffer,0,length); | ||
var remaining = ""; | ||
var buffer = Buffer(length); | ||
var buffer = Buffer.alloc(length); | ||
while(read < size) { | ||
@@ -70,0 +70,0 @@ var thisRead = fs.readSync(fd,buffer,0,length); |
@@ -140,13 +140,17 @@ /** | ||
// if it resolves to a dir - use it | ||
var stat = fs.statSync(fspath.join(projectsDir,settings.flowFile)); | ||
if (stat && stat.isDirectory()) { | ||
activeProject = settings.flowFile; | ||
globalSettings.projects.activeProject = activeProject; | ||
// Now check for a credentialSecret | ||
if (settings.credentialSecret !== undefined) { | ||
globalSettings.projects.projects[settings.flowFile] = { | ||
credentialSecret: settings.credentialSecret | ||
try { | ||
var stat = fs.statSync(fspath.join(projectsDir,settings.flowFile)); | ||
if (stat && stat.isDirectory()) { | ||
activeProject = settings.flowFile; | ||
globalSettings.projects.activeProject = activeProject; | ||
// Now check for a credentialSecret | ||
if (settings.credentialSecret !== undefined) { | ||
globalSettings.projects.projects[settings.flowFile] = { | ||
credentialSecret: settings.credentialSecret | ||
} | ||
saveSettings = true; | ||
} | ||
saveSettings = true; | ||
} | ||
} catch(err) { | ||
// Doesn't exist, handle as a flow file to be created | ||
} | ||
@@ -153,0 +157,0 @@ } |
@@ -15,3 +15,4 @@ { | ||
"disabled": "パレットエディタを無効化 : ユーザ設定", | ||
"npm-not-found": "バレットエディタを無効化 : npmコマンドが見つかりません" | ||
"npm-not-found": "パレットエディタを無効化 : npmコマンドが見つかりません", | ||
"npm-too-old": "パレットエディタを無効化 : npmのバージョンが古過ぎます。npm 3.x以上が必要です" | ||
}, | ||
@@ -18,0 +19,0 @@ "errors": "__count__ 個のノードの登録に失敗しました", |
{ | ||
"name": "@node-red/runtime", | ||
"version": "0.20.0-beta.2", | ||
"version": "0.20.0-beta.3", | ||
"license": "Apache-2.0", | ||
@@ -19,4 +19,4 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@node-red/registry": "0.20.0-beta.2", | ||
"@node-red/util": "0.20.0-beta.2", | ||
"@node-red/registry": "0.20.0-beta.3", | ||
"@node-red/util": "0.20.0-beta.3", | ||
"clone": "2.1.2", | ||
@@ -23,0 +23,0 @@ "express": "4.16.4", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
392944
9684
+ Added@node-red/registry@0.20.0-beta.3(transitive)
+ Added@node-red/util@0.20.0-beta.3(transitive)
+ Addedi18next@13.1.0(transitive)
+ Addedjsonata@1.6.3(transitive)
- Removed@node-red/registry@0.20.0-beta.2(transitive)
- Removed@node-red/util@0.20.0-beta.2(transitive)
- Removedi18next@12.1.0(transitive)
- Removedjsonata@1.5.4(transitive)
Updated@node-red/util@0.20.0-beta.3