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

expo-file-system

Package Overview
Dependencies
Maintainers
17
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-file-system - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0

unimodule.json

2

build/ExponentFileSystem.js

@@ -1,2 +0,2 @@

import { NativeModulesProxy } from 'expo-core';
import { NativeModulesProxy } from '@unimodules/core';
import ExponentFileSystemShim from './ExponentFileSystemShim';

@@ -3,0 +3,0 @@ let platformModule;

@@ -1,2 +0,2 @@

import { EventEmitter, Subscription } from 'expo-core';
import { EventEmitter, Subscription } from '@unimodules/core';
import { DownloadOptions, DownloadResult, DownloadProgressCallback, DownloadProgressData, DownloadPauseState, FileInfo, EncodingType, ReadingOptions, WritingOptions, ProgressEvent } from './FileSystem.types';

@@ -3,0 +3,0 @@ export { DownloadOptions, DownloadResult, DownloadProgressCallback, DownloadProgressData, DownloadPauseState, FileInfo, EncodingType, ReadingOptions, WritingOptions, ProgressEvent, };

@@ -1,3 +0,3 @@

import { UnavailabilityError } from 'expo-errors';
import { EventEmitter } from 'expo-core';
import { UnavailabilityError } from '@unimodules/core';
import { EventEmitter } from '@unimodules/core';
import UUID from 'uuid-js';

@@ -9,2 +9,4 @@ import ExponentFileSystem from './ExponentFileSystem';

}
// Prevent webpack from pruning this.
const _unused = new EventEmitter(ExponentFileSystem);
export { EncodingType, };

@@ -11,0 +13,0 @@ function normalizeEndingSlash(p) {

import * as FileSystem from './FileSystem';
export * from './FileSystem';
let wasImportWarningShown = false;
// @ts-ignore: Temporarily define an export named "FileSystem" for legacy compatibility
Object.defineProperty(exports, 'FileSystem', {
get() {
if (!wasImportWarningShown) {
console.warn(`The syntax "import { FileSystem } from 'expo-file-system'" is deprecated. Use "import * as FileSystem from 'expo-file-system'" or import named exports instead. Support for the old syntax will be removed in SDK 34.`);
wasImportWarningShown = true;
}
return FileSystem;
},
});
if (module && module.exports) {
let wasImportWarningShown = false;
// @ts-ignore: Temporarily define an export named "FileSystem" for legacy compatibility
Object.defineProperty(module.exports, 'FileSystem', {
get() {
if (!wasImportWarningShown) {
console.warn(`The syntax "import { FileSystem } from 'expo-file-system'" is deprecated. Use "import * as FileSystem from 'expo-file-system'" or import named exports instead. Support for the old syntax will be removed in SDK 34.`);
wasImportWarningShown = true;
}
return FileSystem;
},
});
}
//# sourceMappingURL=index.js.map
{
"name": "expo-file-system",
"version": "3.0.1",
"version": "4.0.0",
"description": "Provides access to the local file system on the device.",
"main": "build/index.js",
"types": "build/index.d.ts",
"sideEffects": false,
"scripts": {

@@ -41,3 +42,3 @@ "build": "expo-module build",

},
"gitHead": "d87c47ba13c7dde7a5d120caf873c98258a42710"
"gitHead": "8413e821076a2eca36b302e68dd628ce2e1f591a"
}

@@ -46,3 +46,3 @@ # expo-file-system

```java
import expo.modules.expo.modules.filesystem.FileSystemPackage;
import expo.modules.filesystem.FileSystemPackage;
```

@@ -49,0 +49,0 @@ ```java

@@ -1,2 +0,2 @@

import { NativeModulesProxy } from 'expo-core';
import { NativeModulesProxy } from '@unimodules/core';

@@ -3,0 +3,0 @@ import ExponentFileSystemShim from './ExponentFileSystemShim';

@@ -1,3 +0,3 @@

import { UnavailabilityError } from 'expo-errors';
import { EventEmitter, Subscription } from 'expo-core';
import { UnavailabilityError } from '@unimodules/core';
import { EventEmitter, Subscription } from '@unimodules/core';
import UUID from 'uuid-js';

@@ -24,2 +24,4 @@ import ExponentFileSystem from './ExponentFileSystem';

}
// Prevent webpack from pruning this.
const _unused = new EventEmitter(ExponentFileSystem);

@@ -26,0 +28,0 @@ export {

import * as FileSystem from './FileSystem';
export * from './FileSystem';
let wasImportWarningShown = false;
// @ts-ignore: Temporarily define an export named "FileSystem" for legacy compatibility
Object.defineProperty(exports, 'FileSystem', {
get() {
if (!wasImportWarningShown) {
console.warn(
`The syntax "import { FileSystem } from 'expo-file-system'" is deprecated. Use "import * as FileSystem from 'expo-file-system'" or import named exports instead. Support for the old syntax will be removed in SDK 34.`
);
wasImportWarningShown = true;
}
return FileSystem;
},
});
declare var module: any;
if (module && module.exports) {
let wasImportWarningShown = false;
// @ts-ignore: Temporarily define an export named "FileSystem" for legacy compatibility
Object.defineProperty(module.exports, 'FileSystem', {
get() {
if (!wasImportWarningShown) {
console.warn(
`The syntax "import { FileSystem } from 'expo-file-system'" is deprecated. Use "import * as FileSystem from 'expo-file-system'" or import named exports instead. Support for the old syntax will be removed in SDK 34.`
);
wasImportWarningShown = true;
}
return FileSystem;
},
});
}

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

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

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

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