@capacitor/filesystem
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.5.2](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/filesystem@0.5.1...@capacitor/filesystem@0.5.2) (2021-03-10) | ||
**Note:** Version bump only for package @capacitor/filesystem | ||
## [0.5.1](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/filesystem@0.5.0...@capacitor/filesystem@0.5.1) (2021-03-02) | ||
@@ -8,0 +16,0 @@ |
@@ -1105,3 +1105,4 @@ { | ||
} | ||
] | ||
], | ||
"pluginConfigs": [] | ||
} |
{ | ||
"name": "@capacitor/filesystem", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "The Filesystem API provides a NodeJS-like API for working with files on the device.", | ||
@@ -47,6 +47,6 @@ "main": "dist/plugin.cjs.js", | ||
"devDependencies": { | ||
"@capacitor/android": "3.0.0-beta.6", | ||
"@capacitor/core": "3.0.0-beta.6", | ||
"@capacitor/docgen": "0.0.15", | ||
"@capacitor/ios": "3.0.0-beta.6", | ||
"@capacitor/android": "3.0.0-rc.0", | ||
"@capacitor/core": "3.0.0-rc.0", | ||
"@capacitor/docgen": "0.0.16", | ||
"@capacitor/ios": "3.0.0-rc.0", | ||
"@ionic/eslint-config": "^0.3.0", | ||
@@ -64,3 +64,3 @@ "@ionic/prettier-config": "~1.0.1", | ||
"peerDependencies": { | ||
"@capacitor/core": "^3.0.0-beta.6" | ||
"@capacitor/core": "3.0.0-rc.0" | ||
}, | ||
@@ -83,3 +83,3 @@ "prettier": "@ionic/prettier-config", | ||
}, | ||
"gitHead": "c704ab6c24723c3f46aac07bc949aac00ca631cd" | ||
"gitHead": "94a39a9300beb941a43ba30d6505d9fefaff0b98" | ||
} |
@@ -23,3 +23,3 @@ # @capacitor/filesystem | ||
const writeSecretFile = async () { | ||
const writeSecretFile = async () => { | ||
await Filesystem.writeFile({ | ||
@@ -33,3 +33,3 @@ path: 'secrets/text.txt', | ||
const readSecretFile = async () { | ||
const readSecretFile = async () => { | ||
const contents = await Filesystem.readFile({ | ||
@@ -44,3 +44,3 @@ path: 'secrets/text.txt', | ||
const deleteSecretFile = async () { | ||
const deleteSecretFile = async () => { | ||
await Filesystem.deleteFile({ | ||
@@ -52,3 +52,3 @@ path: 'secrets/text.txt', | ||
const readFilePath = async () { | ||
const readFilePath = async () => { | ||
// Here's an example of reading a file with a full file path. Use this to | ||
@@ -55,0 +55,0 @@ // read binary data (base64 encoded) from plugins that return File URIs, such as |
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
285211
3410
0