cordova-plugin-file
Advanced tools
Comparing version 8.1.0 to 8.1.1
{ | ||
"name": "cordova-plugin-file", | ||
"version": "8.1.0", | ||
"version": "8.1.1", | ||
"description": "Cordova File Plugin", | ||
@@ -5,0 +5,0 @@ "types": "./types/index.d.ts", |
@@ -28,17 +28,10 @@ --- | ||
This plugin implements a File API allowing read/write access to files residing on the device. | ||
This plugin implements a File API allowing read/write access to files residing on the device, based on the following W3C specifications: | ||
This plugin is based on several specs, including : | ||
The HTML5 File API | ||
[http://www.w3.org/TR/FileAPI/](http://www.w3.org/TR/FileAPI/) | ||
- [HTML5 File API](http://www.w3.org/TR/FileAPI) | ||
- [File API: Directories and System](http://www.w3.org/TR/2012/WD-file-system-api-20120417)<sup>1</sup> | ||
- [File API: Writer](https://www.w3.org/TR/2012/WD-file-writer-api-20120417/)<sup>1</sup> | ||
The Directories and System extensions | ||
Latest: | ||
[http://www.w3.org/TR/2012/WD-file-system-api-20120417/](http://www.w3.org/TR/2012/WD-file-system-api-20120417/) | ||
Although most of the plugin code was written when an earlier spec was current: | ||
[http://www.w3.org/TR/2011/WD-file-system-api-20110419/](http://www.w3.org/TR/2011/WD-file-system-api-20110419/) | ||
<sup>1</sup> These specifications are discontinued and the file plugin may not have the entire specification implemented. | ||
It also implements the FileWriter spec : | ||
[http://dev.w3.org/2009/dap/file-system/file-writer.html](http://dev.w3.org/2009/dap/file-system/file-writer.html) | ||
>*Note* While the W3C FileSystem spec is deprecated for web browsers, the FileSystem APIs are supported in Cordova applications with this plugin for the platforms listed in the _Supported Platforms_ list, with the exception of the Browser platform. | ||
@@ -650,3 +643,3 @@ | ||
fileWriter.onwriteend = function() { | ||
fileWriter.onwrite = function() { | ||
console.log("Successful file write..."); | ||
@@ -715,4 +708,4 @@ readFile(fileEntry); | ||
fileWriter.onwriteend = function() { | ||
console.log("Successful file read..."); | ||
fileWriter.onwrite = function() { | ||
console.log("Successful file write..."); | ||
readFile(fileEntry); | ||
@@ -722,3 +715,3 @@ }; | ||
fileWriter.onerror = function (e) { | ||
console.log("Failed file read: " + e.toString()); | ||
console.log("Failed file write: " + e.toString()); | ||
}; | ||
@@ -797,3 +790,3 @@ | ||
fileWriter.onwriteend = function() { | ||
fileWriter.onwrite = function() { | ||
console.log("Successful file write..."); | ||
@@ -800,0 +793,0 @@ if (dataObj.type == "image/png") { |
@@ -23,2 +23,11 @@ <!-- | ||
### 8.1.1 (Oct 20, 2024) | ||
**Fixes:** | ||
* [GH-629](https://github.com/apache/cordova-plugin-file/pull/629) fix(android): Content FS support in PathHandler (#629) | ||
**Documentation:** | ||
* [GH-639](https://github.com/apache/cordova-plugin-file/pull/639) docs: Correct onwriteend to onwrite (#639) | ||
* [GH-628](https://github.com/apache/cordova-plugin-file/pull/638) docs: Reformatting specs (#638) | ||
### 8.1.0 (May 31, 2024) | ||
@@ -25,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
625995
890
1