fix: furioos in window
This commit is contained in:
Родитель
1beb50f6d6
Коммит
7168255af5
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -836,8 +836,8 @@
|
|||
"dev": true
|
||||
},
|
||||
"furioos-sdk": {
|
||||
"version": "git+https://github.com/Unity-Technologies/furioos-sdk-js.git#5d8a3ce7173cf1f28571c057ccb4b4a04e9a31fe",
|
||||
"from": "git+https://github.com/Unity-Technologies/furioos-sdk-js.git#feature/rework"
|
||||
"version": "git+https://github.com/Unity-Technologies/furioos-sdk-js.git#1beb50f6d6f8363f4e7fe2b47b72c85f86a53258",
|
||||
"from": "git+https://github.com/Unity-Technologies/furioos-sdk-js.git#feature/bundle-sdk"
|
||||
},
|
||||
"get-assigned-identifiers": {
|
||||
"version": "1.2.0",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"express": "^4.18.1",
|
||||
"furioos-sdk": "git+https://github.com/Unity-Technologies/furioos-sdk-js.git#feature/rework",
|
||||
"furioos-sdk": "git+https://github.com/Unity-Technologies/furioos-sdk-js.git#feature/bundle-sdk",
|
||||
"ws": "^8.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
8
index.js
8
index.js
|
@ -7,11 +7,3 @@ module.exports = {
|
|||
FS_REGIONS,
|
||||
QUALITY_VALUES,
|
||||
}
|
||||
|
||||
window.furioos = {
|
||||
Player,
|
||||
FS_SDK_EVENTS_NAME,
|
||||
FS_QUALITY_VALUES,
|
||||
FS_REGIONS,
|
||||
QUALITY_VALUES,
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
const { Player, FS_QUALITY_VALUES, FS_SDK_EVENTS_NAME, FS_REGIONS, QUALITY_VALUES } = require("./classes/Player.js");
|
||||
|
||||
module.exports = {
|
||||
Player,
|
||||
FS_SDK_EVENTS_NAME,
|
||||
FS_QUALITY_VALUES,
|
||||
FS_REGIONS,
|
||||
QUALITY_VALUES,
|
||||
}
|
||||
|
||||
window.furioos = {
|
||||
Player,
|
||||
FS_SDK_EVENTS_NAME,
|
||||
FS_QUALITY_VALUES,
|
||||
FS_REGIONS,
|
||||
QUALITY_VALUES,
|
||||
}
|
|
@ -5,7 +5,7 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build": "webpack ./index.js --output-filename=furioos.bundle.js --mode=production"
|
||||
"build": "webpack ./index.webpack.js --output-filename=furioos.bundle.js --mode=production"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Загрузка…
Ссылка в новой задаче