Skip to content
Open
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
3 changes: 1 addition & 2 deletions lib/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const url = require('url');
const fetch = require('node-fetch');
const utils = require('./utils.js');
const config = require('./config.js');

/** @typedef {import('./view.js')} View */
Expand All @@ -25,7 +24,7 @@ class List {
constructor(name, view) {
this.name = name;
this.view = view;
this.config = utils.clone(config);
this.config = {...config};
this.config.pathname += '/_list/' + this.view.name + '/' + this.name;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/models/maintainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Maintainer extends Base {
constructor(name) {
super();
this.name = name;
this.config = utils.clone(config);
this.config = {...config};
}

/**
Expand Down
3 changes: 1 addition & 2 deletions lib/registry.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const fetch = require('node-fetch');
const utils = require('./utils.js');
const config = require('./config.js');

/**
Expand All @@ -18,7 +17,7 @@ const config = require('./config.js');

class Registry {
constructor() {
this.config = utils.clone(config);
this.config = {...config};
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const config = require('./config.js');
class View {
constructor(name) {
this.name = name;
this.config = utils.clone(config);
this.config = {...config};
this.config.pathname += '/_view/' + this.name;
}

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"mocha": "^6.1.4"
},
"dependencies": {
"clone-deep": "^4.0.1",
"download-stats": "^0.3.4",
"JSONStream": "^1.3.5",
"moment": "^2.24.0",
Expand Down