@jupyterlab/filebrowser
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -236,5 +236,5 @@ "use strict"; | ||
var promises = []; | ||
var names = event.mimeData.getData(CONTENTS_MIME); | ||
var _loop_1 = function (name_1) { | ||
var oldPath = coreutils_1.PathExt.join(this_1._model.path, name_1); | ||
var oldPaths = event.mimeData.getData(CONTENTS_MIME); | ||
var _loop_1 = function (oldPath) { | ||
var name_1 = coreutils_1.PathExt.basename(oldPath); | ||
var newPath = coreutils_1.PathExt.join(path, name_1); | ||
@@ -264,6 +264,5 @@ promises.push(model.manager.rename(oldPath, newPath).catch(function (error) { | ||
}; | ||
var this_1 = this; | ||
for (var _i = 0, names_1 = names; _i < names_1.length; _i++) { | ||
var name_1 = names_1[_i]; | ||
_loop_1(name_1); | ||
for (var _i = 0, oldPaths_1 = oldPaths; _i < oldPaths_1.length; _i++) { | ||
var oldPath = oldPaths_1[_i]; | ||
_loop_1(oldPath); | ||
} | ||
@@ -270,0 +269,0 @@ Promise.all(promises).catch(function (err) { |
{ | ||
"name": "@jupyterlab/filebrowser", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "JupyterLab - FileBrowser Widget", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
140443
4101