cordova-fileutil
Advanced tools
Comparing version 1.0.3 to 2.0.0
'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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7863