museria 0.2.45 → 0.2.47
Sign up to get free protection for your applications and to get access to all the features.
package/dist/face/style.css
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "museria",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.47",
|
4
4
|
"description": "Decentralized music storage",
|
5
5
|
"main": "./src/index.js",
|
6
6
|
"bin": {
|
@@ -77,16 +77,16 @@
|
|
77
77
|
"express": "^4.17.1",
|
78
78
|
"fs-extra": "^9.0.1",
|
79
79
|
"lodash": "^4.17.20",
|
80
|
-
"metastocle": "^0.2.
|
80
|
+
"metastocle": "^0.2.31",
|
81
81
|
"music-metadata": "^6.4.0",
|
82
82
|
"node-fetch": "^2.6.1",
|
83
83
|
"node-id3": "^0.2.2",
|
84
84
|
"sanitize-filename": "^1.6.3",
|
85
85
|
"serve-favicon": "^2.5.0",
|
86
|
-
"sharp": "^0.
|
86
|
+
"sharp": "^0.30.0",
|
87
87
|
"splaytree": "^3.1.0",
|
88
|
-
"spreadable": "^0.2.
|
89
|
-
"storacle": "^0.2.
|
88
|
+
"spreadable": "^0.2.27",
|
89
|
+
"storacle": "^0.2.27",
|
90
90
|
"transliteration": "^2.2.0"
|
91
91
|
},
|
92
92
|
"repository": {
|
package/src/client.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
const fs = require('fs');
|
2
2
|
const merge = require('lodash/merge');
|
3
|
+
const omit = require('lodash/omit');
|
3
4
|
const ClientMetastocle= require('metastocle/src/client')();
|
4
5
|
const ClientStoracle = require('storacle/src/client')(ClientMetastocle);
|
5
6
|
const utils = require('./utils');
|
@@ -290,11 +291,13 @@ module.exports = (Parent) => {
|
|
290
291
|
if(typeof file == 'string') {
|
291
292
|
file = fs.createReadStream(file);
|
292
293
|
}
|
293
|
-
|
294
|
-
const
|
294
|
+
|
295
|
+
const priority = String(options.priority);
|
296
|
+
const controlled = options.controlled? '1': '';
|
297
|
+
const result = await this.request('add-song', Object.assign({}, omit(options, ['priority']), {
|
295
298
|
formData: {
|
296
|
-
priority
|
297
|
-
controlled
|
299
|
+
priority,
|
300
|
+
controlled,
|
298
301
|
file: {
|
299
302
|
value: file,
|
300
303
|
options: {
|
package/src/node.js
CHANGED
@@ -733,8 +733,8 @@ module.exports = (Parent) => {
|
|
733
733
|
},
|
734
734
|
responseSchema: schema.getSongAdditionResponse()
|
735
735
|
}, options);
|
736
|
-
|
737
|
-
const result = await super.duplicateFile(servers, file, info, options);
|
736
|
+
|
737
|
+
const result = await super.duplicateFile(servers, file, info, _.omit(options, ['priority']));
|
738
738
|
result && options.cache && await this.updateSongCache(result.title, result);
|
739
739
|
return result;
|
740
740
|
}
|