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
6
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 1.0.6 to 1.0.7

11

CHANGELOG.md

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

## [1.0.7](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/filesystem@1.0.6...@capacitor/filesystem@1.0.7) (2022-01-10)
### Bug Fixes
* **filesystem:** Throw errors instead of strings ([#746](https://github.com/ionic-team/capacitor-plugins/issues/746)) ([af4b875](https://github.com/ionic-team/capacitor-plugins/commit/af4b8750be512b869af07bcf96c1602eedc6758e))
## [1.0.6](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/filesystem@1.0.5...@capacitor/filesystem@1.0.6) (2021-11-03)

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

4

dist/esm/web.js

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

if (occupiedEntry && occupiedEntry.type === 'directory')
throw 'The supplied path is a directory.';
throw Error('The supplied path is a directory.');
const encoding = options.encoding;

@@ -176,3 +176,3 @@ const parentPath = path.substr(0, path.lastIndexOf('/'));

if (occupiedEntry && occupiedEntry.type === 'directory')
throw 'The supplied path is a directory.';
throw Error('The supplied path is a directory.');
const parentEntry = (await this.dbRequest('get', [parentPath]));

@@ -179,0 +179,0 @@ if (parentEntry === undefined) {

@@ -233,3 +233,3 @@ 'use strict';

if (occupiedEntry && occupiedEntry.type === 'directory')
throw 'The supplied path is a directory.';
throw Error('The supplied path is a directory.');
const encoding = options.encoding;

@@ -278,3 +278,3 @@ const parentPath = path.substr(0, path.lastIndexOf('/'));

if (occupiedEntry && occupiedEntry.type === 'directory')
throw 'The supplied path is a directory.';
throw Error('The supplied path is a directory.');
const parentEntry = (await this.dbRequest('get', [parentPath]));

@@ -281,0 +281,0 @@ if (parentEntry === undefined) {

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

if (occupiedEntry && occupiedEntry.type === 'directory')
throw 'The supplied path is a directory.';
throw Error('The supplied path is a directory.');
const encoding = options.encoding;

@@ -275,3 +275,3 @@ const parentPath = path.substr(0, path.lastIndexOf('/'));

if (occupiedEntry && occupiedEntry.type === 'directory')
throw 'The supplied path is a directory.';
throw Error('The supplied path is a directory.');
const parentEntry = (await this.dbRequest('get', [parentPath]));

@@ -278,0 +278,0 @@ if (parentEntry === undefined) {

{
"name": "@capacitor/filesystem",
"version": "1.0.6",
"version": "1.0.7",
"description": "The Filesystem API provides a NodeJS-like API for working with files on the device.",

@@ -82,3 +82,3 @@ "main": "dist/plugin.cjs.js",

},
"gitHead": "64df93225736e9dfad336562f5e53e5a2243052b"
"gitHead": "e5b333320426ee120d4504c68c02bd5538b21c51"
}

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