New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@capacitor/filesystem

Package Overview
Dependencies
Maintainers
8
Versions
743
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor/filesystem - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [0.5.4](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/filesystem@0.5.3...@capacitor/filesystem@0.5.4) (2021-05-07)
### Bug Fixes
* **filesystem:** Make ctime optional ([#373](https://github.com/ionic-team/capacitor-plugins/issues/373)) ([e3c6212](https://github.com/ionic-team/capacitor-plugins/commit/e3c6212b94c75cf747a8768af5056963683953b2))
## [0.5.3](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/filesystem@0.5.2...@capacitor/filesystem@0.5.3) (2021-04-29)

@@ -8,0 +19,0 @@

6

dist/docs.json

@@ -821,5 +821,5 @@ {

],
"docs": "Time of creation in milliseconds",
"docs": "Time of creation in milliseconds.\n\nIt's not available on Android 7 and older devices.",
"complexTypes": [],
"type": "number"
"type": "number | undefined"
},

@@ -834,3 +834,3 @@ {

],
"docs": "Time of last modification in milliseconds",
"docs": "Time of last modification in milliseconds.",
"complexTypes": [],

@@ -837,0 +837,0 @@ "type": "number"

@@ -343,9 +343,11 @@ import type { PermissionState } from '@capacitor/core';

/**
* Time of creation in milliseconds
* Time of creation in milliseconds.
*
* It's not available on Android 7 and older devices.
*
* @since 1.0.0
*/
ctime: number;
ctime?: number;
/**
* Time of last modification in milliseconds
* Time of last modification in milliseconds.
*

@@ -352,0 +354,0 @@ * @since 1.0.0

@@ -401,2 +401,3 @@ import { WebPlugin } from '@capacitor/core';

};
const ctime = fromObj.ctime ? fromObj.ctime : Date.now();
switch (fromObj.type) {

@@ -425,3 +426,3 @@ // The "from" object is a file

if (doRename) {
await updateTime(to, fromObj.ctime, fromObj.mtime);
await updateTime(to, ctime, fromObj.mtime);
}

@@ -444,3 +445,3 @@ // Resolve promise

if (doRename) {
await updateTime(to, fromObj.ctime, fromObj.mtime);
await updateTime(to, ctime, fromObj.mtime);
}

@@ -447,0 +448,0 @@ }

@@ -501,2 +501,3 @@ 'use strict';

};
const ctime = fromObj.ctime ? fromObj.ctime : Date.now();
switch (fromObj.type) {

@@ -525,3 +526,3 @@ // The "from" object is a file

if (doRename) {
await updateTime(to, fromObj.ctime, fromObj.mtime);
await updateTime(to, ctime, fromObj.mtime);
}

@@ -544,3 +545,3 @@ // Resolve promise

if (doRename) {
await updateTime(to, fromObj.ctime, fromObj.mtime);
await updateTime(to, ctime, fromObj.mtime);
}

@@ -547,0 +548,0 @@ }

@@ -498,2 +498,3 @@ var capacitorFilesystem = (function (exports, core) {

};
const ctime = fromObj.ctime ? fromObj.ctime : Date.now();
switch (fromObj.type) {

@@ -522,3 +523,3 @@ // The "from" object is a file

if (doRename) {
await updateTime(to, fromObj.ctime, fromObj.mtime);
await updateTime(to, ctime, fromObj.mtime);
}

@@ -541,3 +542,3 @@ // Resolve promise

if (doRename) {
await updateTime(to, fromObj.ctime, fromObj.mtime);
await updateTime(to, ctime, fromObj.mtime);
}

@@ -544,0 +545,0 @@ }

{
"name": "@capacitor/filesystem",
"version": "0.5.3",
"version": "0.5.4",
"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-rc.1",
"@capacitor/core": "3.0.0-rc.1",
"@capacitor/android": "3.0.0-rc.2",
"@capacitor/core": "3.0.0-rc.2",
"@capacitor/docgen": "0.0.16",
"@capacitor/ios": "3.0.0-rc.1",
"@capacitor/ios": "3.0.0-rc.2",
"@ionic/eslint-config": "^0.3.0",

@@ -64,3 +64,3 @@ "@ionic/prettier-config": "~1.0.1",

"peerDependencies": {
"@capacitor/core": "3.0.0-rc.1"
"@capacitor/core": "3.0.0-rc.2"
},

@@ -83,3 +83,3 @@ "prettier": "@ionic/prettier-config",

},
"gitHead": "1434d3339dfd3324dd2f76037b4de7fdae08ca2e"
"gitHead": "d706c3bcd8ff12e5efdcaced33d80fe9de2bddf1"
}

@@ -423,9 +423,9 @@ # @capacitor/filesystem

| Prop | Type | Description | Since |
| ----------- | ------------------- | ----------------------------------------- | ----- |
| **`type`** | <code>string</code> | Type of the file | 1.0.0 |
| **`size`** | <code>number</code> | Size of the file | 1.0.0 |
| **`ctime`** | <code>number</code> | Time of creation in milliseconds | 1.0.0 |
| **`mtime`** | <code>number</code> | Time of last modification in milliseconds | 1.0.0 |
| **`uri`** | <code>string</code> | The uri of the file | 1.0.0 |
| Prop | Type | Description | Since |
| ----------- | ------------------- | ------------------------------------------------------------------------------------ | ----- |
| **`type`** | <code>string</code> | Type of the file | 1.0.0 |
| **`size`** | <code>number</code> | Size of the file | 1.0.0 |
| **`ctime`** | <code>number</code> | Time of creation in milliseconds. It's not available on Android 7 and older devices. | 1.0.0 |
| **`mtime`** | <code>number</code> | Time of last modification in milliseconds. | 1.0.0 |
| **`uri`** | <code>string</code> | The uri of the file | 1.0.0 |

@@ -432,0 +432,0 @@

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 not supported yet

Sorry, the diff of this file is not supported yet

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