@kohost/api-client 0.6.5-alpha.4 → 0.7.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/package.json +4 -1
- package/bitbucket-pipelines.yml +0 -24
- package/dist/bundle.js +0 -1
- package/dist/bundle.node.js +0 -1
- package/src/client.js +0 -263
- package/src/interceptors.js +0 -71
- package/src/methods/Admin.js +0 -3
- package/src/methods/Auth.js +0 -149
- package/src/methods/Commands.js +0 -12
- package/src/methods/Concierge.js +0 -50
- package/src/methods/Controller.js +0 -3
- package/src/methods/Group.js +0 -49
- package/src/methods/Guest.js +0 -25
- package/src/methods/HotelRoom.js +0 -88
- package/src/methods/Image.js +0 -14
- package/src/methods/Integrations.js +0 -56
- package/src/methods/Light.js +0 -5
- package/src/methods/Lock.js +0 -5
- package/src/methods/Manager.js +0 -3
- package/src/methods/Manifest.js +0 -11
- package/src/methods/Media.js +0 -28
- package/src/methods/Notifications.js +0 -18
- package/src/methods/Privacy.js +0 -5
- package/src/methods/Reports.js +0 -18
- package/src/methods/Room.js +0 -102
- package/src/methods/Settings.js +0 -16
- package/src/methods/Shade.js +0 -5
- package/src/methods/Source.js +0 -45
- package/src/methods/Structure.js +0 -20
- package/src/methods/Subscriptions.js +0 -21
- package/src/methods/Thermostat.js +0 -5
- package/src/methods/User.js +0 -72
- package/src/utils/generate.js +0 -156
- package/webpack.config.js +0 -36
package/src/methods/Room.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import generateFunctions from "../utils/generate";
|
|
2
|
-
|
|
3
|
-
const base = "/rooms";
|
|
4
|
-
const Room = generateFunctions(base);
|
|
5
|
-
|
|
6
|
-
Room.Scenes = {
|
|
7
|
-
getAll: function (roomId) {
|
|
8
|
-
const url = `${base}/${roomId}/scenes`;
|
|
9
|
-
return this.get(url);
|
|
10
|
-
},
|
|
11
|
-
get: function (roomId, id) {
|
|
12
|
-
const url = `${base}/${roomId}/scenes/${id}`;
|
|
13
|
-
return this.get(url);
|
|
14
|
-
},
|
|
15
|
-
trigger: function (roomId, id) {
|
|
16
|
-
const url = `${base}/${roomId}/scenes/${id}/trigger`;
|
|
17
|
-
return this.post(url, {});
|
|
18
|
-
},
|
|
19
|
-
update: function (roomId, id, body) {
|
|
20
|
-
const url = `${base}/${roomId}/scenes/${id}`;
|
|
21
|
-
return this.put(url, body);
|
|
22
|
-
},
|
|
23
|
-
add: function (roomId, body) {
|
|
24
|
-
const url = `${base}/${roomId}/scenes`;
|
|
25
|
-
return this.post(url, body);
|
|
26
|
-
},
|
|
27
|
-
delete: function (roomId, id) {
|
|
28
|
-
const url = `${base}/${roomId}/scenes/${id}`;
|
|
29
|
-
return this.delete(url);
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
Room.Media = {
|
|
33
|
-
getAll: function (roomId) {
|
|
34
|
-
const url = `${base}/${roomId}/media`;
|
|
35
|
-
return this.get(url);
|
|
36
|
-
},
|
|
37
|
-
update: function (roomId, body) {
|
|
38
|
-
const url = `${base}/${roomId}/media`;
|
|
39
|
-
return this.put(url, body);
|
|
40
|
-
},
|
|
41
|
-
trigger: function (roomId, body) {
|
|
42
|
-
const url = `${base}/${roomId}/media`;
|
|
43
|
-
return this.post(url, body);
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
Room.Security = {
|
|
48
|
-
getAll: function (roomId) {
|
|
49
|
-
const url = `${base}/${roomId}/security`;
|
|
50
|
-
return this.get(url);
|
|
51
|
-
},
|
|
52
|
-
Locks: {
|
|
53
|
-
getAll: function (roomId) {
|
|
54
|
-
const url = `${base}/${roomId}/security/locks`;
|
|
55
|
-
return this.get(url);
|
|
56
|
-
},
|
|
57
|
-
get: function (roomId, id) {
|
|
58
|
-
const url = `${base}/${roomId}/security/locks/${id}`;
|
|
59
|
-
return this.get(url);
|
|
60
|
-
},
|
|
61
|
-
update: function (roomId, id, body) {
|
|
62
|
-
const url = `${base}/${roomId}/security/locks/${id}`;
|
|
63
|
-
return this.put(url, body);
|
|
64
|
-
},
|
|
65
|
-
add: function (roomId, body) {
|
|
66
|
-
const url = `${base}/${roomId}/security/locks`;
|
|
67
|
-
return this.post(url, body);
|
|
68
|
-
},
|
|
69
|
-
delete: function (roomId, id) {
|
|
70
|
-
const url = `${base}/${roomId}/security/locks/${id}`;
|
|
71
|
-
return this.delete(url);
|
|
72
|
-
},
|
|
73
|
-
trigger: function (roomId, id) {
|
|
74
|
-
const url = `${base}/${roomId}/security/locks/${id}`;
|
|
75
|
-
return this.post(url, {});
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
Cameras: {
|
|
79
|
-
getAll: function (roomId) {
|
|
80
|
-
const url = `${base}/${roomId}/security/cameras`;
|
|
81
|
-
return this.get(url);
|
|
82
|
-
},
|
|
83
|
-
get: function (roomId, id) {
|
|
84
|
-
const url = `${base}/${roomId}/security/cameras/${id}`;
|
|
85
|
-
return this.get(url);
|
|
86
|
-
},
|
|
87
|
-
update: function (roomId, id, body) {
|
|
88
|
-
const url = `${base}/${roomId}/security/cameras/${id}`;
|
|
89
|
-
return this.put(url, body);
|
|
90
|
-
},
|
|
91
|
-
add: function (roomId, body) {
|
|
92
|
-
const url = `${base}/${roomId}/security/cameras`;
|
|
93
|
-
return this.post(url, body);
|
|
94
|
-
},
|
|
95
|
-
delete: function (roomId, id) {
|
|
96
|
-
const url = `${base}/${roomId}/security/cameras/${id}`;
|
|
97
|
-
return this.delete(url);
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
export default Room;
|
package/src/methods/Settings.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const base = "/settings";
|
|
2
|
-
|
|
3
|
-
function getAll() {
|
|
4
|
-
return this.http.get(`${base}`, {});
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function get(settingId) {
|
|
8
|
-
return this.http.get(`${base}/${settingId}`, {});
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function save(settingId, body) {
|
|
12
|
-
return this.http.post(`${base}/${settingId}`, body);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const Settings = { getAll, get, save };
|
|
16
|
-
export default Settings;
|
package/src/methods/Shade.js
DELETED
package/src/methods/Source.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import generateFunctions from "../utils/generate";
|
|
2
|
-
|
|
3
|
-
const base = "sources";
|
|
4
|
-
const Sources = generateFunctions(base);
|
|
5
|
-
|
|
6
|
-
Sources.updatePlayer = function (sourceId) {
|
|
7
|
-
return this.post(`${base}/${sourceId}/player`, {});
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
Sources.browse = {
|
|
11
|
-
get: function (sourceId) {
|
|
12
|
-
const url = `${base}/${sourceId}/browse`;
|
|
13
|
-
return this.get(url);
|
|
14
|
-
},
|
|
15
|
-
genres: {
|
|
16
|
-
getAll: function (sourceId) {
|
|
17
|
-
const url = `${base}/${sourceId}/browse/genres`;
|
|
18
|
-
return this.get(url);
|
|
19
|
-
},
|
|
20
|
-
get: function (sourceId, genreId) {
|
|
21
|
-
const url = `${base}/${sourceId}/browse/genres/${genreId}`;
|
|
22
|
-
return this.get(url);
|
|
23
|
-
},
|
|
24
|
-
getStations: function (sourceId, genreId) {
|
|
25
|
-
const url = `${base}/${sourceId}/browse/genres/${genreId}/stations`;
|
|
26
|
-
return this.get(url);
|
|
27
|
-
},
|
|
28
|
-
update: function (sourceId, body) {
|
|
29
|
-
const url = `${base}/${sourceId}/browse/genres`;
|
|
30
|
-
return this.post(url, body);
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
stations: {
|
|
34
|
-
update: function (sourceId, body) {
|
|
35
|
-
const url = `${base}/${sourceId}/browse/stations`;
|
|
36
|
-
return this.post(url, body);
|
|
37
|
-
},
|
|
38
|
-
getAll: function (sourceId) {
|
|
39
|
-
const url = `${base}/${sourceId}/browse/stations`;
|
|
40
|
-
return this.get(url);
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export default Sources;
|
package/src/methods/Structure.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const base = "/structure";
|
|
2
|
-
const Structure = {};
|
|
3
|
-
|
|
4
|
-
function getRoomList() {
|
|
5
|
-
return this.http.get(`${base}/roomList`, {});
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function summary() {
|
|
9
|
-
return this.http.get(`${base}/summary`, {});
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function deviceCount() {
|
|
13
|
-
return this.http.get(`${base}/deviceCount`, {});
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
Structure.getRoomList = getRoomList;
|
|
17
|
-
Structure.getSummary = summary;
|
|
18
|
-
Structure.getDeviceCount = deviceCount;
|
|
19
|
-
|
|
20
|
-
export default Structure;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const base = "/subscription";
|
|
2
|
-
|
|
3
|
-
function getAll() {
|
|
4
|
-
return this.http.get(`${base}`, {});
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function get(user) {
|
|
8
|
-
return this.http.get(`${base}/${user}`, {});
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function add(body) {
|
|
12
|
-
return this.http.post(`${base}`, body);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function deleteSubscription(id) {
|
|
16
|
-
return this.http.delete(`${base}/${id}`, {});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const Subscriptions = { add, get, getAll, delete: deleteSubscription };
|
|
20
|
-
|
|
21
|
-
export default Subscriptions;
|
package/src/methods/User.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import generateFunctions from "../utils/generate";
|
|
2
|
-
|
|
3
|
-
const base = "/users";
|
|
4
|
-
|
|
5
|
-
const Users = generateFunctions(base);
|
|
6
|
-
|
|
7
|
-
function changeAvatar(data) {
|
|
8
|
-
const url = `${base}/change-avatar`;
|
|
9
|
-
return this.http.post(url, data);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function checkout() {
|
|
13
|
-
const url = `${base}/checkout`;
|
|
14
|
-
return this.http.post(url);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function invite(id) {
|
|
18
|
-
const url = `${base}/${id}/invite`;
|
|
19
|
-
return this.post(url);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function resetPassword(userID, { password, resetToken }) {
|
|
23
|
-
const url = base + `/${userID}/reset-password`;
|
|
24
|
-
return this.post(url, { password, resetToken }).then((response) => {
|
|
25
|
-
if (response.status >= 400 && response.status <= 500) {
|
|
26
|
-
body.error = response.data.error;
|
|
27
|
-
return body;
|
|
28
|
-
} else {
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function saveUserData(id, response) {
|
|
35
|
-
// save the new data back to LS if the user is updating itself
|
|
36
|
-
if (id === this.getCurrentUser()._id) {
|
|
37
|
-
const { data, headers } = response;
|
|
38
|
-
// save the current user object
|
|
39
|
-
if (data) {
|
|
40
|
-
const user = data && data[0];
|
|
41
|
-
this.setCurrentUser(user);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
if (headers) {
|
|
45
|
-
// if the user updates itself, the API will send back a new token, lets save it
|
|
46
|
-
const authToken = headers[this.authTokenKey];
|
|
47
|
-
const refreshToken = headers[this.refreshTokenKey];
|
|
48
|
-
if (authToken) this.setAuthToken(authToken);
|
|
49
|
-
if (refreshToken) this.setRefreshToken(refreshToken);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return response;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
Users.update = function (id, body) {
|
|
56
|
-
const url = `${base}/${id}`;
|
|
57
|
-
const saveUser = saveUserData.bind(this);
|
|
58
|
-
return this.put(url, body).then((response) => saveUser(id, response));
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
Users.get = function (id) {
|
|
62
|
-
const url = `${base}/${id}`;
|
|
63
|
-
const saveUser = saveUserData.bind(this);
|
|
64
|
-
return this.get(url).then((response) => saveUser(id, response));
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
Users.changeAvatar = changeAvatar;
|
|
68
|
-
Users.checkout = checkout;
|
|
69
|
-
Users.resetPassword = resetPassword;
|
|
70
|
-
Users.invite = invite;
|
|
71
|
-
|
|
72
|
-
export default Users;
|
package/src/utils/generate.js
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
export default function generateFunctions(baseUrl) {
|
|
2
|
-
return {
|
|
3
|
-
getAll: function () {
|
|
4
|
-
return this.get(baseUrl);
|
|
5
|
-
},
|
|
6
|
-
get: function (id) {
|
|
7
|
-
const url = `${baseUrl}/${id}`;
|
|
8
|
-
return this.get(url);
|
|
9
|
-
},
|
|
10
|
-
update: function (id, body) {
|
|
11
|
-
const url = `${baseUrl}/${id}`;
|
|
12
|
-
return this.put(url, body);
|
|
13
|
-
},
|
|
14
|
-
add: function (body) {
|
|
15
|
-
return this.post(baseUrl, body);
|
|
16
|
-
},
|
|
17
|
-
delete: function (id) {
|
|
18
|
-
const url = `${baseUrl}/${id}`;
|
|
19
|
-
return this.delete(url);
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export function generateDeviceFunctions(path) {
|
|
25
|
-
const base = "/rooms";
|
|
26
|
-
return {
|
|
27
|
-
getAll: function (roomId) {
|
|
28
|
-
const url = `${base}/${roomId}/${path}`;
|
|
29
|
-
return this.get(url);
|
|
30
|
-
},
|
|
31
|
-
get: function (roomId, id) {
|
|
32
|
-
const url = `${base}/${roomId}/${path}/${id}`;
|
|
33
|
-
return this.get(url);
|
|
34
|
-
},
|
|
35
|
-
update: function (roomId, id, body) {
|
|
36
|
-
const url = `${base}/${roomId}/${path}/${id}`;
|
|
37
|
-
return this.put(url, body);
|
|
38
|
-
},
|
|
39
|
-
add: function (roomId, body) {
|
|
40
|
-
const url = `${base}/${roomId}/${path}`;
|
|
41
|
-
return this.post(url, body);
|
|
42
|
-
},
|
|
43
|
-
delete: function (roomId, id) {
|
|
44
|
-
const url = `${base}/${roomId}/${path}/${id}`;
|
|
45
|
-
return this.delete(url);
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function generateGroupDeviceFunctions(path) {
|
|
51
|
-
const base = "/groups";
|
|
52
|
-
return {
|
|
53
|
-
getAll: function (groupId, roomId) {
|
|
54
|
-
const url = `${base}/${groupId}/rooms/${roomId}/${path}`;
|
|
55
|
-
return this.get(url);
|
|
56
|
-
},
|
|
57
|
-
get: function (groupId, roomId, id) {
|
|
58
|
-
const url = `${base}/${groupId}/rooms/${roomId}/${path}/${id}`;
|
|
59
|
-
return this.get(url);
|
|
60
|
-
},
|
|
61
|
-
update: function (groupId, roomId, id, body) {
|
|
62
|
-
const url = `${base}/${groupId}/rooms/${roomId}/${path}/${id}`;
|
|
63
|
-
return this.put(url, body);
|
|
64
|
-
},
|
|
65
|
-
add: function (groupId, roomId, body) {
|
|
66
|
-
const url = `${base}/${groupId}/rooms/${roomId}/${path}`;
|
|
67
|
-
return this.post(url, body);
|
|
68
|
-
},
|
|
69
|
-
delete: function (groupId, roomId, id) {
|
|
70
|
-
const url = `${base}/${groupId}/rooms/${roomId}/${path}/${id}`;
|
|
71
|
-
return this.delete(url);
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function generateGroupRoomFunctions() {
|
|
77
|
-
const base = "/groups";
|
|
78
|
-
return {
|
|
79
|
-
getAll: function (groupId) {
|
|
80
|
-
const url = `${base}/${groupId}/rooms`;
|
|
81
|
-
return this.get(url);
|
|
82
|
-
},
|
|
83
|
-
get: function (groupId, roomId) {
|
|
84
|
-
const url = `${base}/${groupId}/rooms/${roomId}`;
|
|
85
|
-
return this.get(url);
|
|
86
|
-
},
|
|
87
|
-
update: function (groupId, roomId, body) {
|
|
88
|
-
const url = `${base}/${groupId}/rooms/${roomId}`;
|
|
89
|
-
return this.put(url, body);
|
|
90
|
-
},
|
|
91
|
-
add: function (groupId, body) {
|
|
92
|
-
const url = `${base}/${groupId}/rooms`;
|
|
93
|
-
return this.post(url, body);
|
|
94
|
-
},
|
|
95
|
-
delete: function (groupId, roomId) {
|
|
96
|
-
const url = `${base}/${groupId}/rooms/${roomId}`;
|
|
97
|
-
return this.delete(url);
|
|
98
|
-
},
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export function generateSceneFunctions() {
|
|
103
|
-
const base = "/hotel-rooms";
|
|
104
|
-
return {
|
|
105
|
-
getAll: function (roomId) {
|
|
106
|
-
const url = `${base}/${roomId}/scenes`;
|
|
107
|
-
return this.get(url);
|
|
108
|
-
},
|
|
109
|
-
get: function (roomId, id) {
|
|
110
|
-
const url = `${base}/${roomId}/scenes/${id}`;
|
|
111
|
-
return this.get(url);
|
|
112
|
-
},
|
|
113
|
-
trigger: function (roomId, id) {
|
|
114
|
-
const url = `${base}/${roomId}/scenes/${id}/trigger`;
|
|
115
|
-
return this.post(url, {});
|
|
116
|
-
},
|
|
117
|
-
update: function (roomId, id, body) {
|
|
118
|
-
const url = `${base}/${roomId}/scenes/${id}`;
|
|
119
|
-
return this.put(url, body);
|
|
120
|
-
},
|
|
121
|
-
add: function (roomId, body) {
|
|
122
|
-
const url = `${base}/${roomId}/scenes`;
|
|
123
|
-
return this.post(url, body);
|
|
124
|
-
},
|
|
125
|
-
delete: function (roomId, id) {
|
|
126
|
-
const url = `${base}/${roomId}/scenes/${id}`;
|
|
127
|
-
return this.delete(url);
|
|
128
|
-
},
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export function generateIntegrationFunctions() {
|
|
133
|
-
const base = "/hotel-rooms";
|
|
134
|
-
return {
|
|
135
|
-
getAll: function (roomId) {
|
|
136
|
-
const url = `${base}/${roomId}/integrations`;
|
|
137
|
-
return this.get(url);
|
|
138
|
-
},
|
|
139
|
-
get: function (roomId, id) {
|
|
140
|
-
const url = `${base}/${roomId}/integrations/${id}`;
|
|
141
|
-
return this.get(url);
|
|
142
|
-
},
|
|
143
|
-
update: function (roomId, id, body) {
|
|
144
|
-
const url = `${base}/${roomId}/integrations/${id}`;
|
|
145
|
-
return this.put(url, body);
|
|
146
|
-
},
|
|
147
|
-
add: function (roomId, body) {
|
|
148
|
-
const url = `${base}/${roomId}/integrations`;
|
|
149
|
-
return this.post(url, body);
|
|
150
|
-
},
|
|
151
|
-
delete: function (roomId, id) {
|
|
152
|
-
const url = `${base}/${roomId}/integrations/${id}`;
|
|
153
|
-
return this.delete(url);
|
|
154
|
-
},
|
|
155
|
-
};
|
|
156
|
-
}
|
package/webpack.config.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
|
|
3
|
-
const serverConfig = {
|
|
4
|
-
target: "node",
|
|
5
|
-
entry: "./src/client.js",
|
|
6
|
-
output: {
|
|
7
|
-
path: path.resolve(__dirname, "dist"),
|
|
8
|
-
filename: "bundle.node.js",
|
|
9
|
-
libraryTarget: "commonjs2",
|
|
10
|
-
},
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const clientConfig = {
|
|
14
|
-
target: "web", // <=== can be omitted as default is 'web'
|
|
15
|
-
entry: "./src/client.js",
|
|
16
|
-
resolve: {
|
|
17
|
-
modules: ["node_modules"],
|
|
18
|
-
fallback: {
|
|
19
|
-
http: require.resolve("stream-http"),
|
|
20
|
-
https: require.resolve("https-browserify"),
|
|
21
|
-
stream: require.resolve("stream-browserify"),
|
|
22
|
-
assert: require.resolve("assert/"),
|
|
23
|
-
tty: require.resolve("tty-browserify"),
|
|
24
|
-
util: require.resolve("util/"),
|
|
25
|
-
os: require.resolve("os-browserify/browser"),
|
|
26
|
-
zlib: require.resolve("browserify-zlib"),
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
output: {
|
|
30
|
-
path: path.resolve(__dirname, "dist"),
|
|
31
|
-
filename: "bundle.js",
|
|
32
|
-
libraryTarget: "umd",
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
module.exports = [clientConfig, serverConfig];
|