comty.js 0.52.2 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/music/index.js +17 -0
- package/dist/remotes.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _request = require('../../handlers/request'); var _request2 = _interopRequireDefault(_request);
|
|
2
|
+
|
|
3
|
+
class MusicModel {
|
|
4
|
+
static get api_instance() {
|
|
5
|
+
return globalThis.__comty_shared_state.instances["music"]
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
static __initStatic() {this.getFavorites = async () => {
|
|
9
|
+
const { data } = await _request2.default.call(void 0, {
|
|
10
|
+
instance: MusicModel.api_instance,
|
|
11
|
+
method: "GET",
|
|
12
|
+
url: `/tracks/liked`,
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
return data
|
|
16
|
+
}}
|
|
17
|
+
} MusicModel.__initStatic(); exports.default = MusicModel;
|
package/dist/remotes.js
CHANGED
|
@@ -26,7 +26,7 @@ const envOrigins = {
|
|
|
26
26
|
files: `http://${getCurrentHostname()}:3060`,
|
|
27
27
|
},
|
|
28
28
|
"indev": {
|
|
29
|
-
default: `https://indev_api.comty.app/
|
|
29
|
+
default: `https://indev_api.comty.app/main`,
|
|
30
30
|
chat: `https://indev_api.comty.app/chat`,
|
|
31
31
|
livestreaming: `https://indev_api.comty.app/livestreaming`,
|
|
32
32
|
marketplace: `https://indev_api.comty.app/marketplace`,
|