Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update deps #263

Merged
merged 2 commits into from
Nov 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"npm": ">=3.0.0"
},
"devDependencies": {
"aegir": "^25.0.0",
"aegir": "^28.1.0",
"it-all": "^1.0.2",
"it-drain": "^1.0.1",
"it-first": "^1.0.2",
Expand All @@ -65,8 +65,8 @@
"err-code": "^2.0.0",
"interface-datastore": "^2.0.0",
"ipfs-repo-migrations": "^5.0.3",
"ipfs-utils": "^2.3.1",
"ipld-block": "^0.10.0",
"ipfs-utils": "^4.0.0",
"ipld-block": "^0.11.0",
"it-map": "^1.0.2",
"it-pushable": "^1.4.0",
"just-safe-get": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/api-addr.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = (store) => {
/**
* Get the current configuration from the repo.
*
* @returns {Promise<String>}
* @returns {Promise<string>}
*/
async get () {
const value = await store.get(apiFile)
Expand Down
4 changes: 2 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = (store) => {
/**
* Get the value for the passed configuration key from the repo.
*
* @param {String} key - the config key to get
* @param {string} key - the config key to get
* @param {Object} options - options
* @param {AbortSignal} options.signal - abort this config read
* @returns {Promise<Object>}
Expand Down Expand Up @@ -57,7 +57,7 @@ module.exports = (store) => {
/**
* Set the current configuration for this repo.
*
* @param {String} key - the config key to be written
* @param {string} key - the config key to be written
* @param {Object} value - the config value to be written
* @param {Object} options - options
* @param {AbortSignal} options.signal - abort this config write
Expand Down
9 changes: 6 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const lockers = {
*/
class IpfsRepo {
/**
* @param {String} repoPath - path where the repo is stored
* @param {string} repoPath - path where the repo is stored
* @param {Object} options - Configuration
*/
constructor (repoPath, options) {
Expand Down Expand Up @@ -71,7 +71,8 @@ class IpfsRepo {

/**
* Check if the repo is already initialized.
* @returns {Promise<Boolean>}
*
* @returns {Promise<boolean>}
*/
async isInitialized () {
if (!this.closed) {
Expand Down Expand Up @@ -174,6 +175,7 @@ class IpfsRepo {

/**
* Opens the root backend, catching and ignoring an 'Already open' error
*
* @returns {Promise}
*/
async _openRoot () {
Expand All @@ -190,7 +192,7 @@ class IpfsRepo {
* Creates a lock on the repo if a locker is specified. The lockfile object will
* be returned in the callback if one has been created.
*
* @param {String} path
* @param {string} path
* @returns {Promise<lockfile>}
*/
async _openLock (path) {
Expand All @@ -214,6 +216,7 @@ class IpfsRepo {

/**
* Check if the repo is already initialized.
*
* @private
* @returns {Promise}
*/
Expand Down
4 changes: 2 additions & 2 deletions src/lock-memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const LOCKS = {}
/**
* Lock the repo in the given dir.
*
* @param {String} dir
* @param {string} dir
* @returns {Promise<Object>}
*/
exports.lock = async (dir) => { // eslint-disable-line require-await
Expand All @@ -37,7 +37,7 @@ exports.lock = async (dir) => { // eslint-disable-line require-await
/**
* Check if the repo in the given directory is locked.
*
* @param {String} dir
* @param {string} dir
* @returns {bool}
*/
exports.locked = async (dir) => { // eslint-disable-line require-await
Expand Down
3 changes: 2 additions & 1 deletion src/lock.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const lockFile = 'repo.lock'

/**
* Duration in milliseconds in which the lock is considered stale
*
* @see https://github.com/moxystudio/node-proper-lockfile#lockfile-options
* The default value of 10000 was too low for ipfs and sometimes `proper-lockfile`
* would throw an exception because it couldn't update the lock file mtime within
Expand All @@ -22,7 +23,7 @@ const STALE_TIME = 20000
/**
* Lock the repo in the given dir.
*
* @param {String} dir
* @param {string} dir
* @returns {Promise<Object>}
*/
exports.lock = async (dir) => {
Expand Down
1 change: 1 addition & 0 deletions src/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module.exports = (store) => {
/**
* Set the datastore spec of the repo, writing it to the underlying store.
* TODO unclear on what the type should be or if it's required
*
* @param {number} spec
* @returns {Promise<void>}
*/
Expand Down
1 change: 1 addition & 0 deletions src/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = (store) => {
},
/**
* Check the current version, and returns true if versions matches
*
* @param {number} expected
* @returns {boolean}
*/
Expand Down