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

disklet

Package Overview
Dependencies
Maintainers
6
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disklet - npm Package Compare versions

Comparing version 0.4.5 to 0.4.6

4

CHANGELOG.md
# Disklet
## 0.4.6 (2020-10-06)
- Stop using deprecated Gradle features for React Native Android.
## 0.4.5 (2020-05-25)

@@ -4,0 +8,0 @@

68

lib/disklet.cjs.js

@@ -160,4 +160,4 @@ 'use strict';

},
list: function () {
var _list = _asyncToGenerator(function* (path) {
list: function list(path) {
return _asyncToGenerator(function* () {
if (path === void 0) {

@@ -184,10 +184,4 @@ path = '';

return Promise.resolve(out);
});
function list(_x) {
return _list.apply(this, arguments);
}
return list;
}(),
})();
},
setData: function setData(path, data) {

@@ -258,4 +252,4 @@ return this.setText(path, rfc4648.base64.stringify(data));

},
list: function () {
var _list = _asyncToGenerator(function* (path) {
list: function list(path) {
return _asyncToGenerator(function* () {
if (path === void 0) {

@@ -282,10 +276,4 @@ path = '';

return Promise.resolve(out);
});
function list(_x) {
return _list.apply(this, arguments);
}
return list;
}(),
})();
},
setData: function setData(path, data) {

@@ -312,2 +300,3 @@ // We use `any` here becase Flow is too dumb to know that `ArrayLike`

// Promise versions of node.js file operations: -----------------------------
function mkdir(path) {

@@ -345,5 +334,3 @@ return new Promise(function (resolve, reject) {

var Queue =
/*#__PURE__*/
function () {
var Queue = /*#__PURE__*/function () {
function Queue() {

@@ -539,5 +526,3 @@ this.callBackList = [];

var File =
/*#__PURE__*/
function () {
var File = /*#__PURE__*/function () {
function File(disklet, path) {

@@ -573,5 +558,3 @@ this._disklet = disklet;

var Folder =
/*#__PURE__*/
function () {
var Folder = /*#__PURE__*/function () {
function Folder(disklet, path) {

@@ -623,2 +606,6 @@ this._disklet = disklet;

/**
* Interprets a path as a series of folder lookups,
* handling special components like `.` and `..`.
*/
function followPath(folder, parts) {

@@ -720,5 +707,3 @@ var i = 0; // Read index

var LoggedFile =
/*#__PURE__*/
function () {
var LoggedFile = /*#__PURE__*/function () {
function LoggedFile(file, path, opts) {

@@ -764,5 +749,3 @@ this._file = file;

var LoggedFolder =
/*#__PURE__*/
function () {
var LoggedFolder = /*#__PURE__*/function () {
function LoggedFolder(folder, path, opts) {

@@ -831,5 +814,3 @@ this._folder = folder;

var UnionFile =
/*#__PURE__*/
function () {
var UnionFile = /*#__PURE__*/function () {
function UnionFile(master, fallback, whiteout) {

@@ -893,5 +874,3 @@ this._master = master;

var UnionFolder =
/*#__PURE__*/
function () {
var UnionFolder = /*#__PURE__*/function () {
function UnionFolder(master, fallback) {

@@ -909,3 +888,5 @@ this._master = master;

return folder["delete"]();
})]).then(function () {});
})]).then(function () {
return undefined;
});
};

@@ -939,2 +920,5 @@

/**
* Recursively lists a folder.
*/
function deepList(disklet, path) {

@@ -941,0 +925,0 @@ return disklet.list(path).then(function (list) {

@@ -154,4 +154,4 @@ import { base64 } from 'rfc4648';

},
list: function () {
var _list = _asyncToGenerator(function* (path) {
list: function list(path) {
return _asyncToGenerator(function* () {
if (path === void 0) {

@@ -178,10 +178,4 @@ path = '';

return Promise.resolve(out);
});
function list(_x) {
return _list.apply(this, arguments);
}
return list;
}(),
})();
},
setData: function setData(path, data) {

@@ -252,4 +246,4 @@ return this.setText(path, base64.stringify(data));

},
list: function () {
var _list = _asyncToGenerator(function* (path) {
list: function list(path) {
return _asyncToGenerator(function* () {
if (path === void 0) {

@@ -276,10 +270,4 @@ path = '';

return Promise.resolve(out);
});
function list(_x) {
return _list.apply(this, arguments);
}
return list;
}(),
})();
},
setData: function setData(path, data) {

@@ -306,2 +294,3 @@ // We use `any` here becase Flow is too dumb to know that `ArrayLike`

// Promise versions of node.js file operations: -----------------------------
function mkdir(path) {

@@ -339,5 +328,3 @@ return new Promise(function (resolve, reject) {

var Queue =
/*#__PURE__*/
function () {
var Queue = /*#__PURE__*/function () {
function Queue() {

@@ -533,5 +520,3 @@ this.callBackList = [];

var File =
/*#__PURE__*/
function () {
var File = /*#__PURE__*/function () {
function File(disklet, path) {

@@ -567,5 +552,3 @@ this._disklet = disklet;

var Folder =
/*#__PURE__*/
function () {
var Folder = /*#__PURE__*/function () {
function Folder(disklet, path) {

@@ -617,2 +600,6 @@ this._disklet = disklet;

/**
* Interprets a path as a series of folder lookups,
* handling special components like `.` and `..`.
*/
function followPath(folder, parts) {

@@ -714,5 +701,3 @@ var i = 0; // Read index

var LoggedFile =
/*#__PURE__*/
function () {
var LoggedFile = /*#__PURE__*/function () {
function LoggedFile(file, path, opts) {

@@ -758,5 +743,3 @@ this._file = file;

var LoggedFolder =
/*#__PURE__*/
function () {
var LoggedFolder = /*#__PURE__*/function () {
function LoggedFolder(folder, path, opts) {

@@ -825,5 +808,3 @@ this._folder = folder;

var UnionFile =
/*#__PURE__*/
function () {
var UnionFile = /*#__PURE__*/function () {
function UnionFile(master, fallback, whiteout) {

@@ -887,5 +868,3 @@ this._master = master;

var UnionFolder =
/*#__PURE__*/
function () {
var UnionFolder = /*#__PURE__*/function () {
function UnionFolder(master, fallback) {

@@ -903,3 +882,5 @@ this._master = master;

return folder["delete"]();
})]).then(function () {});
})]).then(function () {
return undefined;
});
};

@@ -933,2 +914,5 @@

/**
* Recursively lists a folder.
*/
function deepList(disklet, path) {

@@ -935,0 +919,0 @@ return disklet.list(path).then(function (list) {

@@ -157,4 +157,4 @@ 'use strict';

},
list: function () {
var _list = _asyncToGenerator(function* (path) {
list: function list(path) {
return _asyncToGenerator(function* () {
if (path === void 0) {

@@ -181,10 +181,4 @@ path = '';

return Promise.resolve(out);
});
function list(_x) {
return _list.apply(this, arguments);
}
return list;
}(),
})();
},
setData: function setData(path, data) {

@@ -255,4 +249,4 @@ return this.setText(path, rfc4648.base64.stringify(data));

},
list: function () {
var _list = _asyncToGenerator(function* (path) {
list: function list(path) {
return _asyncToGenerator(function* () {
if (path === void 0) {

@@ -279,10 +273,4 @@ path = '';

return Promise.resolve(out);
});
function list(_x) {
return _list.apply(this, arguments);
}
return list;
}(),
})();
},
setData: function setData(path, data) {

@@ -341,5 +329,3 @@ // We use `any` here becase Flow is too dumb to know that `ArrayLike`

var File =
/*#__PURE__*/
function () {
var File = /*#__PURE__*/function () {
function File(disklet, path) {

@@ -375,5 +361,3 @@ this._disklet = disklet;

var Folder =
/*#__PURE__*/
function () {
var Folder = /*#__PURE__*/function () {
function Folder(disklet, path) {

@@ -425,2 +409,6 @@ this._disklet = disklet;

/**
* Interprets a path as a series of folder lookups,
* handling special components like `.` and `..`.
*/
function followPath(folder, parts) {

@@ -522,5 +510,3 @@ var i = 0; // Read index

var LoggedFile =
/*#__PURE__*/
function () {
var LoggedFile = /*#__PURE__*/function () {
function LoggedFile(file, path, opts) {

@@ -566,5 +552,3 @@ this._file = file;

var LoggedFolder =
/*#__PURE__*/
function () {
var LoggedFolder = /*#__PURE__*/function () {
function LoggedFolder(folder, path, opts) {

@@ -633,5 +617,3 @@ this._folder = folder;

var UnionFile =
/*#__PURE__*/
function () {
var UnionFile = /*#__PURE__*/function () {
function UnionFile(master, fallback, whiteout) {

@@ -695,5 +677,3 @@ this._master = master;

var UnionFolder =
/*#__PURE__*/
function () {
var UnionFolder = /*#__PURE__*/function () {
function UnionFolder(master, fallback) {

@@ -711,3 +691,5 @@ this._master = master;

return folder["delete"]();
})]).then(function () {});
})]).then(function () {
return undefined;
});
};

@@ -741,2 +723,5 @@

/**
* Recursively lists a folder.
*/
function deepList(disklet, path) {

@@ -743,0 +728,0 @@ return disklet.list(path).then(function (list) {

@@ -159,4 +159,4 @@ 'use strict';

},
list: function () {
var _list = _asyncToGenerator(function* (path) {
list: function list(path) {
return _asyncToGenerator(function* () {
if (path === void 0) {

@@ -183,10 +183,4 @@ path = '';

return Promise.resolve(out);
});
function list(_x) {
return _list.apply(this, arguments);
}
return list;
}(),
})();
},
setData: function setData(path, data) {

@@ -257,4 +251,4 @@ return this.setText(path, rfc4648.base64.stringify(data));

},
list: function () {
var _list = _asyncToGenerator(function* (path) {
list: function list(path) {
return _asyncToGenerator(function* () {
if (path === void 0) {

@@ -281,10 +275,4 @@ path = '';

return Promise.resolve(out);
});
function list(_x) {
return _list.apply(this, arguments);
}
return list;
}(),
})();
},
setData: function setData(path, data) {

@@ -309,5 +297,3 @@ // We use `any` here becase Flow is too dumb to know that `ArrayLike`

var File =
/*#__PURE__*/
function () {
var File = /*#__PURE__*/function () {
function File(disklet, path) {

@@ -343,5 +329,3 @@ this._disklet = disklet;

var Folder =
/*#__PURE__*/
function () {
var Folder = /*#__PURE__*/function () {
function Folder(disklet, path) {

@@ -393,2 +377,6 @@ this._disklet = disklet;

/**
* Interprets a path as a series of folder lookups,
* handling special components like `.` and `..`.
*/
function followPath(folder, parts) {

@@ -490,5 +478,3 @@ var i = 0; // Read index

var LoggedFile =
/*#__PURE__*/
function () {
var LoggedFile = /*#__PURE__*/function () {
function LoggedFile(file, path, opts) {

@@ -534,5 +520,3 @@ this._file = file;

var LoggedFolder =
/*#__PURE__*/
function () {
var LoggedFolder = /*#__PURE__*/function () {
function LoggedFolder(folder, path, opts) {

@@ -601,5 +585,3 @@ this._folder = folder;

var UnionFile =
/*#__PURE__*/
function () {
var UnionFile = /*#__PURE__*/function () {
function UnionFile(master, fallback, whiteout) {

@@ -663,5 +645,3 @@ this._master = master;

var UnionFolder =
/*#__PURE__*/
function () {
var UnionFolder = /*#__PURE__*/function () {
function UnionFolder(master, fallback) {

@@ -679,3 +659,5 @@ this._master = master;

return folder["delete"]();
})]).then(function () {});
})]).then(function () {
return undefined;
});
};

@@ -709,2 +691,5 @@

/**
* Recursively lists a folder.
*/
function deepList(disklet, path) {

@@ -711,0 +696,0 @@ return disklet.list(path).then(function (list) {

{
"name": "disklet",
"version": "0.4.5",
"version": "0.4.6",
"description": "A tiny, composable filesystem API",

@@ -36,3 +36,3 @@ "homepage": "https://github.com/EdgeApp/disklet",

"fix": "npm run lint -- --fix",
"lint": "eslint --ext .js,.ts .",
"lint": "eslint .",
"precommit": "lint-staged && npm test && npm run prepare",

@@ -54,39 +54,39 @@ "prepare": "rimraf lib && rollup -c && tsc",

"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-transform-object-assign": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-typescript": "^7.0.0",
"@types/chai": "^4.2.3",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.8",
"@types/react-native": "^0.60.16",
"@types/rimraf": "^2.0.2",
"@types/tmp": "^0.1.0",
"@typescript-eslint/eslint-plugin": ">=2.0.0",
"@typescript-eslint/parser": "^2.0.0",
"babel-eslint": ">=10.0.0",
"@babel/core": "^7.9.6",
"@babel/plugin-transform-object-assign": "^7.8.3",
"@babel/preset-env": "^7.9.6",
"@babel/preset-typescript": "^7.9.0",
"@types/chai": "^4.2.11",
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.5",
"@types/react-native": "^0.62.11",
"@types/rimraf": "^3.0.0",
"@types/tmp": "^0.2.0",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^3.0.1",
"babel-eslint": "^10.1.0",
"chai": "^4.2.0",
"eslint": ">=6.2.2",
"eslint-config-standard-kit": ">=0.14.2",
"eslint-plugin-flowtype": ">=4.3.0",
"eslint-plugin-import": ">=2.18.0",
"eslint-plugin-prettier": ">=3.0.0",
"eslint-plugin-promise": ">=4.2.1",
"eslint-plugin-simple-import-sort": ">=4.0.0",
"eslint-plugin-standard": ">=4.0.0",
"husky": ">=3.0.0",
"lint-staged": ">=9.0.0",
"mocha": "^6.2.0",
"prettier": ">=1.0.0",
"rimraf": "^3.0.0",
"rollup": "^1.21.4",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-filesize": "^6.2.0",
"rollup-plugin-flow-entry": "^0.3.3",
"eslint": "^7.1.0",
"eslint-config-standard-kit": "^0.14.4",
"eslint-plugin-flowtype": "^5.1.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-simple-import-sort": "^5.0.3",
"eslint-plugin-standard": "^4.0.1",
"husky": "^4.2.5",
"lint-staged": "^10.2.6",
"mocha": "^7.2.0",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"rollup": "^2.10.9",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-filesize": "^9.0.0",
"rollup-plugin-flow-entry": "^0.3.4",
"rollup-plugin-node-resolve": "^5.2.0",
"sucrase": "^3.10.1",
"tmp": "^0.0.31",
"typescript": "^3.6.3"
"sucrase": "^3.15.0",
"tmp": "^0.2.1",
"typescript": "^3.9.3"
},
"react-native": "lib/disklet.rn.js"
}

@@ -18,4 +18,7 @@ import { Disklet, DiskletListing } from '../index'

list(path?: string): Promise<DiskletListing> {
return Promise.all([master.list(path), fallback.list(path)]).then(
([masterList, fallbackList]) => Object.assign(fallbackList, masterList)
return Promise.all([
master.list(path),
fallback.list(path)
]).then(([masterList, fallbackList]) =>
Object.assign(fallbackList, masterList)
)

@@ -22,0 +25,0 @@ },

@@ -100,3 +100,3 @@ import { mapFiles, mapFolders } from './helpers'

mapFolders(this, folder => folder.delete())
]).then(() => {})
]).then(() => undefined)
}

@@ -103,0 +103,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

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