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

cordova-fileutil

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-fileutil - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

9

cordovaFileUtil.js
'use strict';
export class CordovaFileUtil {
static instance = null;
static getInstance() {
if (this.instance === null) this.instance = new this();
return this.instance;
static _instance = null;
constructor() {
if (CordovaFileUtil._instance) return CordovaFileUtil._instance;
CordovaFileUtil._instance = this;
}

@@ -9,0 +10,0 @@

{
"name": "cordova-fileutil",
"version": "1.0.3",
"version": "2.0.0",
"description": "This package makes it easy to use the 'cordova-plugin-file' plug-in",

@@ -5,0 +5,0 @@ "keywords": [

@@ -16,3 +16,3 @@ # cordova-FileUtil

// get instance
const cordovaFileUtil = CordovaFileUtil.getInstance();
const cordovaFileUtil = new CordovaFileUtil();

@@ -60,3 +60,3 @@ // get directory entry

#### getInstance()
#### new CordovaFileUtil()

@@ -67,3 +67,3 @@ Get "CordovaFileUtil" object. only one object is created using a single-tone pattern

// get instance
const cordovaFileUtil = CordovaFileUtil.getInstance();
const cordovaFileUtil = new CordovaFileUtil();
```

@@ -70,0 +70,0 @@

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