This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree 25 files changed +50
-50
lines changed
25 files changed +50
-50
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ const nextTick = require('async/nextTick')
11
11
const errcode = require ( 'err-code' )
12
12
13
13
const debug = require ( 'debug' )
14
- const log = debug ( 'jsipfs :dht' )
15
- log . error = debug ( 'jsipfs :dht:error' )
14
+ const log = debug ( 'ipfs :dht' )
15
+ log . error = debug ( 'ipfs :dht:error' )
16
16
17
17
module . exports = ( self ) => {
18
18
return {
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ const promisify = require('promisify-es6')
6
6
7
7
const IpnsPubsubDatastore = require ( '../ipns/routing/pubsub-datastore' )
8
8
9
- const log = debug ( 'jsipfs :name-pubsub' )
10
- log . error = debug ( 'jsipfs :name-pubsub:error' )
9
+ const log = debug ( 'ipfs :name-pubsub' )
10
+ log . error = debug ( 'ipfs :name-pubsub:error' )
11
11
12
12
// Is pubsub enabled
13
13
const isNamePubsubEnabled = ( node ) => {
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ const human = require('human-to-milliseconds')
8
8
const crypto = require ( 'libp2p-crypto' )
9
9
const errcode = require ( 'err-code' )
10
10
11
- const log = debug ( 'jsipfs :name' )
12
- log . error = debug ( 'jsipfs :name:error' )
11
+ const log = debug ( 'ipfs :name' )
12
+ log . error = debug ( 'ipfs :name:error' )
13
13
14
14
const namePubsub = require ( './name-pubsub' )
15
15
const utils = require ( '../utils' )
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ const PeerId = require('peer-id')
6
6
const pull = require ( 'pull-stream' )
7
7
const Pushable = require ( 'pull-pushable' )
8
8
9
- const log = debug ( 'jsipfs :pingPullStream' )
10
- log . error = debug ( 'jsipfs :pingPullStream:error' )
9
+ const log = debug ( 'ipfs :pingPullStream' )
10
+ log . error = debug ( 'ipfs :pingPullStream:error' )
11
11
12
12
module . exports = function pingPullStream ( self ) {
13
13
return ( peerId , opts ) => {
Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ class IPFS extends EventEmitter {
95
95
}
96
96
97
97
// IPFS utils
98
- this . log = debug ( 'jsipfs ' )
99
- this . log . err = debug ( 'jsipfs :err' )
98
+ this . log = debug ( 'ipfs ' )
99
+ this . log . err = debug ( 'ipfs :err' )
100
100
101
101
// IPFS Core Internals
102
102
// this._repo - assigned above
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ const Receptacle = require('receptacle')
6
6
7
7
const errcode = require ( 'err-code' )
8
8
const debug = require ( 'debug' )
9
- const log = debug ( 'jsipfs :ipns' )
10
- log . error = debug ( 'jsipfs :ipns:error' )
9
+ const log = debug ( 'ipfs :ipns' )
10
+ log . error = debug ( 'ipfs :ipns:error' )
11
11
12
12
const IpnsPublisher = require ( './publisher' )
13
13
const IpnsRepublisher = require ( './republisher' )
Original file line number Diff line number Diff line change 3
3
const isIPFS = require ( 'is-ipfs' )
4
4
5
5
const debug = require ( 'debug' )
6
- const log = debug ( 'jsipfs :ipns:path' )
7
- log . error = debug ( 'jsipfs :ipns:path:error' )
6
+ const log = debug ( 'ipfs :ipns:path' )
7
+ log . error = debug ( 'ipfs :ipns:path:error' )
8
8
9
9
// resolves the given path by parsing out protocol-specific entries
10
10
// (e.g. /ipns/<node-key>) and then going through the /ipfs/ entries and returning the final node
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ const series = require('async/series')
6
6
const errcode = require ( 'err-code' )
7
7
8
8
const debug = require ( 'debug' )
9
- const log = debug ( 'jsipfs :ipns:publisher' )
10
- log . error = debug ( 'jsipfs :ipns:publisher:error' )
9
+ const log = debug ( 'ipfs :ipns:publisher' )
10
+ log . error = debug ( 'ipfs :ipns:publisher:error' )
11
11
12
12
const ipns = require ( 'ipns' )
13
13
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ const errcode = require('err-code')
8
8
const debug = require ( 'debug' )
9
9
const each = require ( 'async/each' )
10
10
const waterfall = require ( 'async/waterfall' )
11
- const log = debug ( 'jsipfs :ipns:republisher' )
12
- log . error = debug ( 'jsipfs :ipns:republisher:error' )
11
+ const log = debug ( 'ipfs :ipns:republisher' )
12
+ log . error = debug ( 'ipfs :ipns:republisher:error' )
13
13
14
14
const minute = 60 * 1000
15
15
const hour = 60 * minute
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ const PeerId = require('peer-id')
6
6
const errcode = require ( 'err-code' )
7
7
8
8
const debug = require ( 'debug' )
9
- const log = debug ( 'jsipfs :ipns:resolver' )
10
- log . error = debug ( 'jsipfs :ipns:resolver:error' )
9
+ const log = debug ( 'ipfs :ipns:resolver' )
10
+ log . error = debug ( 'ipfs :ipns:resolver:error' )
11
11
12
12
const defaultMaximumRecursiveDepth = 32
13
13
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ const { encodeBase32 } = require('./utils')
6
6
7
7
const errcode = require ( 'err-code' )
8
8
const debug = require ( 'debug' )
9
- const log = debug ( 'jsipfs :ipns:offline-datastore' )
10
- log . error = debug ( 'jsipfs :ipns:offline-datastore:error' )
9
+ const log = debug ( 'ipfs :ipns:offline-datastore' )
10
+ log . error = debug ( 'ipfs :ipns:offline-datastore:error' )
11
11
12
12
// Offline datastore aims to mimic the same encoding as routing when storing records
13
13
// to the local datastore
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ const withIs = require('class-is')
8
8
9
9
const errcode = require ( 'err-code' )
10
10
const debug = require ( 'debug' )
11
- const log = debug ( 'jsipfs :ipns:pubsub' )
12
- log . error = debug ( 'jsipfs :ipns:pubsub:error' )
11
+ const log = debug ( 'ipfs :ipns:pubsub' )
12
+ log . error = debug ( 'ipfs :ipns:pubsub:error' )
13
13
14
14
// Pubsub datastore aims to manage the pubsub subscriptions for IPNS
15
15
class IpnsPubsubDatastore {
Original file line number Diff line number Diff line change 2
2
3
3
const debug = require ( 'debug' )
4
4
5
- const log = debug ( 'jsipfs :mfs-preload' )
6
- log . error = debug ( 'jsipfs :mfs-preload:error' )
5
+ const log = debug ( 'ipfs :mfs-preload' )
6
+ log . error = debug ( 'ipfs :mfs-preload:error' )
7
7
8
8
module . exports = ( self ) => {
9
9
const options = self . _options . preload || { }
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ const debug = require('debug')
7
7
const CID = require ( 'cids' )
8
8
const preload = require ( './runtime/preload-nodejs' )
9
9
10
- const log = debug ( 'jsipfs :preload' )
11
- log . error = debug ( 'jsipfs :preload:error' )
10
+ const log = debug ( 'ipfs :preload' )
11
+ log . error = debug ( 'ipfs :preload:error' )
12
12
13
13
const noop = ( err ) => { if ( err ) log . error ( err ) }
14
14
Original file line number Diff line number Diff line change 3
3
4
4
const debug = require ( 'debug' )
5
5
6
- const log = debug ( 'jsipfs :preload' )
7
- log . error = debug ( 'jsipfs :preload:error' )
6
+ const log = debug ( 'ipfs :preload' )
7
+ log . error = debug ( 'ipfs :preload:error' )
8
8
9
9
module . exports = function preload ( url , callback ) {
10
10
log ( url )
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ const { URL } = require('url')
6
6
const debug = require ( 'debug' )
7
7
const setImmediate = require ( 'async/setImmediate' )
8
8
9
- const log = debug ( 'jsipfs :preload' )
10
- log . error = debug ( 'jsipfs :preload:error' )
9
+ const log = debug ( 'ipfs :preload' )
10
+ log . error = debug ( 'ipfs :preload:error' )
11
11
12
12
module . exports = function preload ( url , callback ) {
13
13
log ( url )
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
const debug = require ( 'debug' )
4
- const log = debug ( 'jsipfs :state' )
5
- log . error = debug ( 'jsipfs :state:error' )
4
+ const log = debug ( 'ipfs :state' )
5
+ log . error = debug ( 'ipfs :state:error' )
6
6
7
7
const fsm = require ( 'fsm-event' )
8
8
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ const multibase = require('multibase')
7
7
const Boom = require ( 'boom' )
8
8
const { cidToString } = require ( '../../../utils/cid' )
9
9
const debug = require ( 'debug' )
10
- const log = debug ( 'jsipfs :http-api:block' )
11
- log . error = debug ( 'jsipfs :http-api:block:error' )
10
+ const log = debug ( 'ipfs :http-api:block' )
11
+ log . error = debug ( 'ipfs :http-api:block:error' )
12
12
13
13
// common pre request handler that parses the args and returns `key` which is assigned to `request.pre.args`
14
14
exports . parseKey = ( request , h ) => {
Original file line number Diff line number Diff line change 3
3
const debug = require ( 'debug' )
4
4
const get = require ( 'lodash/get' )
5
5
const set = require ( 'lodash/set' )
6
- const log = debug ( 'jsipfs :http-api:config' )
7
- log . error = debug ( 'jsipfs :http-api:config:error' )
6
+ const log = debug ( 'ipfs :http-api:config' )
7
+ log . error = debug ( 'ipfs :http-api:config:error' )
8
8
const multipart = require ( 'ipfs-multipart' )
9
9
const Boom = require ( 'boom' )
10
10
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ const Boom = require('boom')
6
6
const CID = require ( 'cids' )
7
7
8
8
const debug = require ( 'debug' )
9
- const log = debug ( 'jsipfs :http-api:dht' )
10
- log . error = debug ( 'jsipfs :http-api:dht:error' )
9
+ const log = debug ( 'ipfs :http-api:dht' )
10
+ log . error = debug ( 'ipfs :http-api:dht:error' )
11
11
12
12
exports = module . exports
13
13
Original file line number Diff line number Diff line change 3
3
const multipart = require ( 'ipfs-multipart' )
4
4
const debug = require ( 'debug' )
5
5
const tar = require ( 'tar-stream' )
6
- const log = debug ( 'jsipfs :http-api:files' )
7
- log . error = debug ( 'jsipfs :http-api:files:error' )
6
+ const log = debug ( 'ipfs :http-api:files' )
7
+ log . error = debug ( 'ipfs :http-api:files:error' )
8
8
const pull = require ( 'pull-stream' )
9
9
const toPull = require ( 'stream-to-pull-stream' )
10
10
const pushable = require ( 'pull-pushable' )
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ const multibase = require('multibase')
13
13
const Boom = require ( 'boom' )
14
14
const { cidToString } = require ( '../../../utils/cid' )
15
15
const debug = require ( 'debug' )
16
- const log = debug ( 'jsipfs :http-api:object' )
17
- log . error = debug ( 'jsipfs :http-api:object:error' )
16
+ const log = debug ( 'ipfs :http-api:object' )
17
+ log . error = debug ( 'ipfs :http-api:object:error' )
18
18
19
19
// common pre request handler that parses the args and returns `key` which is assigned to `request.pre.args`
20
20
exports . parseKey = ( request , h ) => {
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ const Joi = require('joi')
4
4
const debug = require ( 'debug' )
5
5
const multibase = require ( 'multibase' )
6
6
7
- const log = debug ( 'jsipfs :http-api:resolve' )
8
- log . error = debug ( 'jsipfs :http-api:resolve:error' )
7
+ const log = debug ( 'ipfs :http-api:resolve' )
8
+ log . error = debug ( 'ipfs :http-api:resolve:error' )
9
9
10
10
module . exports = {
11
11
validate : {
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
const debug = require ( 'debug' )
4
- const log = debug ( 'jsipfs :http-gateway' )
5
- log . error = debug ( 'jsipfs :http-gateway:error' )
4
+ const log = debug ( 'ipfs :http-gateway' )
5
+ log . error = debug ( 'ipfs :http-gateway:error' )
6
6
const pull = require ( 'pull-stream' )
7
7
const pushable = require ( 'pull-pushable' )
8
8
const toStream = require ( 'pull-stream-to-stream' )
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ function hapiInfoToMultiaddr (info) {
32
32
class HttpApi {
33
33
constructor ( options ) {
34
34
this . _options = options || { }
35
- this . _log = debug ( 'jsipfs :http-api' )
36
- this . _log . error = debug ( 'jsipfs :http-api:error' )
35
+ this . _log = debug ( 'ipfs :http-api' )
36
+ this . _log . error = debug ( 'ipfs :http-api:error' )
37
37
38
38
if ( process . env . IPFS_MONITORING ) {
39
39
// Setup debug metrics collection
You can’t perform that action at this time.
0 commit comments