web3dlink 2.1.8 → 2.1.9
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/web3dlink.js +36 -6
- package/dist/web3dlink.js.map +1 -1
- package/package.json +3 -1
package/dist/web3dlink.js
CHANGED
|
@@ -1,8 +1,38 @@
|
|
|
1
1
|
//#region \0rolldown/runtime.js
|
|
2
|
-
var __commonJSMin = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports)
|
|
2
|
+
var __commonJSMin = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), name = "web3dlink", version$1 = "2.1.9", description = "LarkSR / ZS 推流 GameAPI SDK", type = "module", main = "./dist/web3dlink.js", module$1 = "./dist/web3dlink.js", exports$1 = { ".": {
|
|
3
|
+
import: "./dist/web3dlink.js",
|
|
4
|
+
default: "./dist/web3dlink.js"
|
|
5
|
+
} }, files = ["dist"], scripts = {
|
|
6
|
+
build: "vite build",
|
|
7
|
+
prepublishOnly: "npm run build"
|
|
8
|
+
}, keywords = [
|
|
9
|
+
"larksr",
|
|
10
|
+
"zs-stream",
|
|
11
|
+
"game-api",
|
|
12
|
+
"streaming",
|
|
13
|
+
"web3dlink"
|
|
14
|
+
], license = "MIT", sideEffects = [
|
|
15
|
+
"./dist/web3dlink.js",
|
|
16
|
+
"./index.js",
|
|
17
|
+
"./version.js",
|
|
18
|
+
"./zs-stream-parent.js"
|
|
19
|
+
], package_default = {
|
|
20
|
+
name,
|
|
21
|
+
version: version$1,
|
|
22
|
+
description,
|
|
23
|
+
type,
|
|
24
|
+
main,
|
|
25
|
+
module: module$1,
|
|
26
|
+
exports: exports$1,
|
|
27
|
+
files,
|
|
28
|
+
scripts,
|
|
29
|
+
keywords,
|
|
30
|
+
license: "MIT",
|
|
31
|
+
sideEffects
|
|
32
|
+
}, version = package_default.version;
|
|
3
33
|
//#endregion
|
|
4
34
|
//#region zs-stream-parent.js
|
|
5
|
-
(function(e) {
|
|
35
|
+
console.log(`[web3dlink] version: ${version}`), (function(e) {
|
|
6
36
|
let t = "zs-stream-parent", n = "zs-stream-embed";
|
|
7
37
|
function r(e) {
|
|
8
38
|
return e ? typeof e == "string" ? document.querySelector(e) : e : null;
|
|
@@ -9661,7 +9691,7 @@ var validator = {
|
|
|
9661
9691
|
1724: function(e, t, n) {
|
|
9662
9692
|
n(9656)("iterator");
|
|
9663
9693
|
},
|
|
9664
|
-
1734: function(module$
|
|
9694
|
+
1734: function(module$2) {
|
|
9665
9695
|
function inquire(moduleName) {
|
|
9666
9696
|
try {
|
|
9667
9697
|
var mod = eval("quire".replace(/^/, "re"))(moduleName);
|
|
@@ -9669,7 +9699,7 @@ var validator = {
|
|
|
9669
9699
|
} catch {}
|
|
9670
9700
|
return null;
|
|
9671
9701
|
}
|
|
9672
|
-
module$
|
|
9702
|
+
module$2.exports = inquire;
|
|
9673
9703
|
},
|
|
9674
9704
|
1818: function(e) {
|
|
9675
9705
|
e.exports = !1;
|
|
@@ -24188,7 +24218,7 @@ var LoadStream = class {
|
|
|
24188
24218
|
init(e) {
|
|
24189
24219
|
try {
|
|
24190
24220
|
let t = new CommandManager(createLarkSRTransport(e));
|
|
24191
|
-
return this._gameApi = new GameAPI(t), console.log(
|
|
24221
|
+
return this._gameApi = new GameAPI(t), console.log(`插件初始化成功 [web3dlink@${version}]`), this._gameApi;
|
|
24192
24222
|
} catch (e) {
|
|
24193
24223
|
throw console.error("插件初始化失败", e), e;
|
|
24194
24224
|
}
|
|
@@ -24235,6 +24265,6 @@ function getLarkSR() {
|
|
|
24235
24265
|
}
|
|
24236
24266
|
var web3dlink_default = loadStream;
|
|
24237
24267
|
//#endregion
|
|
24238
|
-
export { CommandManager, GameAPI, ZsStreamDestroy, ZsStreamMount, closeGameApi, createAndInitLarkSR, createLarkSRTransport, createZsStreamTransport, web3dlink_default as default, getLarkSR };
|
|
24268
|
+
export { CommandManager, GameAPI, ZsStreamDestroy, ZsStreamMount, closeGameApi, createAndInitLarkSR, createLarkSRTransport, createZsStreamTransport, web3dlink_default as default, getLarkSR, version };
|
|
24239
24269
|
|
|
24240
24270
|
//# sourceMappingURL=web3dlink.js.map
|