Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-file

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-file - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

1

.github/PULL_REQUEST_TEMPLATE.md

@@ -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.

2

package.json
{
"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

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