cordova-plugin-file
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -20,5 +20,4 @@ <!-- | ||
### Checklist | ||
- [ ] [ICLA](http://www.apache.org/licenses/icla.txt) has been signed and submitted to secretary@apache.org. | ||
- [ ] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database | ||
- [ ] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected. | ||
- [ ] Added automated test coverage as appropriate for this change. |
{ | ||
"name": "cordova-plugin-file", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "Cordova File Plugin", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -23,2 +23,10 @@ <!-- | ||
### 4.3.1 (Dec 07, 2016) | ||
* [CB-12112](https://issues.apache.org/jira/browse/CB-12112) windows: Make available to move folder trees | ||
* fix ENCODING_ERR for applicationDirectory | ||
* [CB-11848](https://issues.apache.org/jira/browse/CB-11848) windows: Remove duplicate slash after file system path | ||
* [CB-11917](https://issues.apache.org/jira/browse/CB-11917) - Remove pull request template checklist item: "iCLA has been submitted…" | ||
* [CB-11947](https://issues.apache.org/jira/browse/CB-11947) fixed typo that occurs when adding file-transfer plugin | ||
* [CB-11832](https://issues.apache.org/jira/browse/CB-11832) Incremented plugin version. | ||
### 4.3.0 (Sep 08, 2016) | ||
@@ -25,0 +33,0 @@ * [CB-11795](https://issues.apache.org/jira/browse/CB-11795) Add 'protective' entry to cordovaDependencies |
@@ -157,4 +157,9 @@ /* | ||
} | ||
this.makeNativeURL = function(path) { | ||
return FileSystem.encodeURIPath(this.root.nativeURL + sanitize(path.replace(':','%3A')));}; | ||
this.makeNativeURL = function (path) { | ||
//CB-11848: This RE supposed to match all leading slashes in sanitized path. | ||
//Removing leading slash to avoid duplicating because this.root.nativeURL already has trailing slash | ||
var regLeadingSlashes = /^\/*/; | ||
var sanitizedPath = sanitize(path.replace(':', '%3A')).replace(regLeadingSlashes, ''); | ||
return FileSystem.encodeURIPath(this.root.nativeURL + sanitizedPath); | ||
}; | ||
root.fullPath = '/'; | ||
@@ -199,2 +204,8 @@ if (!root.nativeURL) | ||
})), | ||
'application': | ||
Object.freeze(new WinFS('application', { | ||
name: 'application', | ||
nativeURL: 'ms-appx:///', | ||
winpath: nativePathToCordova(Windows.ApplicationModel.Package.current.installedLocation.path) | ||
})), | ||
'root': | ||
@@ -249,3 +260,3 @@ Object.freeze(new WinFS('root', { | ||
['file://','ms-appdata:///','cdvfile://localhost/'].every(function(p) { | ||
['file://','ms-appdata:///','ms-appx://','cdvfile://localhost/'].every(function(p) { | ||
if (path.indexOf(p)!==0) | ||
@@ -399,4 +410,4 @@ return true; | ||
} | ||
moveFolder(the.folders[todo],dst) | ||
.done(movefolders,failed); | ||
moveFolder(the.folders[todo], the.fld) | ||
.done(movefolders,failed); | ||
}; | ||
@@ -403,0 +414,0 @@ var movefiles = function() { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
1580401
10375
1