@rpgjs/client 5.0.0-alpha.22 → 5.0.0-alpha.24
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/Game/Object.d.ts +2 -0
- package/dist/RpgClientEngine.d.ts +115 -9
- package/dist/components/gui/mobile/index.d.ts +8 -0
- package/dist/components/prebuilt/index.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/dist/index10.js +1 -1
- package/dist/index11.js +6 -5
- package/dist/index11.js.map +1 -1
- package/dist/index12.js +2 -2
- package/dist/index13.js +102 -10
- package/dist/index13.js.map +1 -1
- package/dist/index14.js +67 -9
- package/dist/index14.js.map +1 -1
- package/dist/index15.js +10 -263
- package/dist/index15.js.map +1 -1
- package/dist/index16.js +9 -97
- package/dist/index16.js.map +1 -1
- package/dist/index17.js +300 -89
- package/dist/index17.js.map +1 -1
- package/dist/index18.js +63 -80
- package/dist/index18.js.map +1 -1
- package/dist/index19.js +96 -348
- package/dist/index19.js.map +1 -1
- package/dist/index2.js +176 -24
- package/dist/index2.js.map +1 -1
- package/dist/index20.js +360 -17
- package/dist/index20.js.map +1 -1
- package/dist/index21.js +19 -50
- package/dist/index21.js.map +1 -1
- package/dist/index22.js +212 -5
- package/dist/index22.js.map +1 -1
- package/dist/index23.js +6 -395
- package/dist/index23.js.map +1 -1
- package/dist/index24.js +4 -39
- package/dist/index24.js.map +1 -1
- package/dist/index25.js +19 -20
- package/dist/index25.js.map +1 -1
- package/dist/index26.js +43 -2624
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +5 -110
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +394 -65
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +40 -15
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +3 -3
- package/dist/index30.js +21 -23
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +2624 -86
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +107 -34
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +69 -22
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +19 -3
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +21 -329
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +91 -30
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +37 -7
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +22 -9
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +139 -10
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +3 -3
- package/dist/index40.js +16 -6
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +1 -325
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +530 -3680
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +24 -67
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +9 -184
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +6 -503
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +325 -2
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +3687 -17
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +69 -202
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +182 -7
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +1 -1
- package/dist/index50.js +497 -106
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +48 -130
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +17 -134
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +3 -109
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +9 -138
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +111 -7
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +130 -48
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +137 -0
- package/dist/index57.js.map +1 -0
- package/dist/index58.js +112 -0
- package/dist/index58.js.map +1 -0
- package/dist/index59.js +9 -0
- package/dist/index59.js.map +1 -0
- package/dist/index6.js +1 -1
- package/dist/index7.js +1 -1
- package/dist/index8.js +17 -2
- package/dist/index8.js.map +1 -1
- package/dist/index9.js +10 -27
- package/dist/index9.js.map +1 -1
- package/dist/services/keyboardControls.d.ts +1 -2
- package/dist/services/mmorpg.d.ts +1 -1
- package/dist/services/standalone.d.ts +1 -1
- package/package.json +9 -9
- package/src/Game/Object.ts +8 -0
- package/src/Gui/Gui.ts +4 -31
- package/src/RpgClientEngine.ts +193 -20
- package/src/components/character.ce +146 -9
- package/src/components/gui/mobile/index.ts +24 -0
- package/src/components/gui/mobile/mobile.ce +80 -0
- package/src/components/prebuilt/index.ts +1 -0
- package/src/components/prebuilt/light-halo.ce +148 -0
- package/src/components/scenes/canvas.ce +2 -2
- package/src/components/scenes/event-layer.ce +1 -0
- package/src/components/scenes/transition.ce +60 -0
- package/src/index.ts +6 -1
- package/src/module.ts +15 -0
- package/src/services/keyboardControls.ts +1 -1
package/dist/index43.js
CHANGED
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { useProps, useDefineProps,
|
|
2
|
-
import component$1 from './index47.js';
|
|
3
|
-
import { RpgClientEngine } from './index2.js';
|
|
1
|
+
import { useProps, useDefineProps, computed, signal, h, Container, loop } from 'canvasengine';
|
|
4
2
|
import { inject } from './index6.js';
|
|
3
|
+
import { RpgClientEngine } from './index2.js';
|
|
5
4
|
|
|
6
5
|
function component($$props) {
|
|
7
6
|
useProps($$props);
|
|
8
|
-
|
|
9
|
-
var _a
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
7
|
+
useDefineProps($$props);
|
|
8
|
+
var _a;
|
|
9
|
+
var engine = inject(RpgClientEngine);
|
|
10
|
+
var componentAnimations = engine.componentAnimations;
|
|
11
|
+
var map = engine.sceneMap.data;
|
|
12
|
+
var sceneComponent = computed(function () { var _a; return (_a = map()) === null || _a === void 0 ? void 0 : _a.component; });
|
|
13
|
+
(_a = map()) === null || _a === void 0 ? void 0 : _a.params;
|
|
14
|
+
var mapParams = map().params;
|
|
15
|
+
engine.sceneMap.animations;
|
|
16
|
+
var backgroundMusic = { src: mapParams === null || mapParams === void 0 ? void 0 : mapParams.backgroundMusic, autoplay: true, loop: true };
|
|
17
|
+
var backgroundAmbientSound = { src: mapParams === null || mapParams === void 0 ? void 0 : mapParams.backgroundAmbientSound, autoplay: true, loop: true };
|
|
18
|
+
signal(map().data);
|
|
19
|
+
var scale = (mapParams === null || mapParams === void 0 ? void 0 : mapParams.scale) || 1;
|
|
20
|
+
((mapParams === null || mapParams === void 0 ? void 0 : mapParams.width) || 2048) * scale;
|
|
21
|
+
((mapParams === null || mapParams === void 0 ? void 0 : mapParams.height) || 2048) * scale;
|
|
22
|
+
var shakeConfig = {
|
|
23
|
+
trigger: engine.mapShakeTrigger,
|
|
24
|
+
intensity: 10,
|
|
25
|
+
duration: 500,
|
|
26
|
+
frequency: 10,
|
|
27
|
+
direction: 'both'
|
|
29
28
|
};
|
|
30
|
-
|
|
31
|
-
return function () {
|
|
32
|
-
element.directives.controls.onDestroy();
|
|
33
|
-
};
|
|
34
|
-
});
|
|
35
|
-
var controls = signal({
|
|
36
|
-
down: {
|
|
37
|
-
bind: keyboardControls.down,
|
|
38
|
-
keyDown: function () {
|
|
39
|
-
playDialogBoxSound(dialogBoxCursorSound);
|
|
40
|
-
selectedIndex.update(function (currentIndex) {
|
|
41
|
-
if (wrapAround) {
|
|
42
|
-
return (currentIndex + 1) % items().length;
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return Math.min(currentIndex + 1, items().length - 1);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
up: {
|
|
51
|
-
bind: keyboardControls.up,
|
|
52
|
-
keyDown: function () {
|
|
53
|
-
playDialogBoxSound(dialogBoxCursorSound);
|
|
54
|
-
selectedIndex.update(function (currentIndex) {
|
|
55
|
-
if (wrapAround) {
|
|
56
|
-
return (currentIndex - 1 + items().length) % items().length;
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
return Math.max(currentIndex - 1, 0);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
enter: {
|
|
65
|
-
bind: keyboardControls.action,
|
|
66
|
-
keyDown: function () {
|
|
67
|
-
onSelect === null || onSelect === void 0 ? void 0 : onSelect(selectedIndex());
|
|
68
|
-
playDialogBoxSound(dialogBoxCursorSelectSound);
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
let $this = h(Container, { controls, flexDirection: 'column', margin: [0, 0, 0, 50] }, loop(items, (item, index) => h(component$1, { text: item.text, isSelected: selected(index) })));
|
|
29
|
+
let $this = h(Container, { sound: backgroundMusic, shake: shakeConfig }, [h(Container, { sound: backgroundAmbientSound }), h(sceneComponent(), { data: computed(() => map().data), params: computed(() => map().params) }), loop(componentAnimations, componentAnimation => h(Container, null, loop(componentAnimation.current, animation => h(componentAnimation.component, animation))))]);
|
|
73
30
|
return $this
|
|
74
31
|
}
|
|
75
32
|
|
package/dist/index43.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index43.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index43.js","sources":["../src/components/scenes/draw-map.ce"],"sourcesContent":["<Container sound={backgroundMusic} shake={shakeConfig}>\n <Container sound={backgroundAmbientSound} />\n\n <sceneComponent() data={map.@data} params={map.@params} />\n \n @for (componentAnimation of componentAnimations) {\n <Container>\n @for (animation of componentAnimation.current) {\n <componentAnimation.component ...animation />\n }\n </Container>\n }\n</Container>\n\n<script>\n import { NoiseFilter } from 'pixi-filters';\n import { effect, signal, computed, mount, on, tick } from 'canvasengine'\n import { inject } from \"../../core/inject\";\n import { RpgClientEngine } from \"../../RpgClientEngine\";\n\n const engine = inject(RpgClientEngine);\n const componentAnimations = engine.componentAnimations\n const map = engine.sceneMap.data\n const sceneComponent = computed(() => map()?.component)\n const sceneParams = map()?.params\n const mapParams = map().params\n const animations = engine.sceneMap.animations\n const backgroundMusic = { src: mapParams?.backgroundMusic, autoplay: true, loop: true }\n const backgroundAmbientSound = { src: mapParams?.backgroundAmbientSound, autoplay: true, loop: true }\n\n const data = signal(map().data)\n\n const scale = mapParams?.scale || 1\n const worldWidth = (mapParams?.width || 2048) * scale\n const worldHeight = (mapParams?.height || 2048) * scale\n \n const clamp = {\n direction: \"all\"\n }\n\n const shakeConfig = {\n trigger: engine.mapShakeTrigger,\n intensity: 10,\n duration: 500,\n frequency: 10,\n direction: 'both'\n }\n</script>"],"names":[],"mappings":";;;;AAQqB,SAAS,SAAS,CAAC,OAAO,EAAE;AACjD,QAAuB,QAAQ,CAAC,OAAO;AACvC,QAA4B,cAAc,CAAC,OAAO;AAClD,QAAQ,IAAI,EAAE;AACd,IAAI,MAAM,GAAG,MAAM,CAAC,eAAe,CAAC;AACpC,IAAI,mBAAmB,GAAG,MAAM,CAAC,mBAAmB;AACpD,IAAI,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI;AAC9B,IAAI,cAAc,GAAG,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,GAAG,EAAE,MAAM,IAAI,IAAI,EAAE,KAAK,MAAM,GAAG,MAAM,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAC3G,CAAC,EAAE,GAAG,GAAG,EAAE,MAAM,IAAI,IAAI,EAAE,KAAK,MAAM,GAAG,MAAM,GAAG,EAAE,CAAC;AACvE,IAAI,SAAS,GAAG,GAAG,EAAE,CAAC,MAAM;AACX,MAAM,CAAC,QAAQ,CAAC;AACjC,IAAI,eAAe,GAAG,EAAE,GAAG,EAAE,SAAS,K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AAM,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,IAAI,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,SAAS,IAAI,CAAC,CAAC,kBAAkB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AACnY,QAAQ,OAAO;AACf,MAAM;;;;"}
|
package/dist/index44.js
CHANGED
|
@@ -1,187 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
let d = /* @__PURE__ */ new Date().getTime();
|
|
11
|
-
let d2 =
|
|
12
|
-
(typeof performance !== "undefined" &&
|
|
13
|
-
performance.now &&
|
|
14
|
-
performance.now() * 1e3) ||
|
|
15
|
-
0;
|
|
16
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
17
|
-
let r = Math.random() * 16;
|
|
18
|
-
if (d > 0) {
|
|
19
|
-
r = (d + r) % 16 | 0;
|
|
20
|
-
d = Math.floor(d / 16);
|
|
21
|
-
} else {
|
|
22
|
-
r = (d2 + r) % 16 | 0;
|
|
23
|
-
d2 = Math.floor(d2 / 16);
|
|
24
|
-
}
|
|
25
|
-
return (c === "x" ? r : (r & 3) | 8).toString(16);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function getPartyInfo(partySocketOptions, defaultProtocol, defaultParams = {}) {
|
|
29
|
-
const {
|
|
30
|
-
host: rawHost,
|
|
31
|
-
path: rawPath,
|
|
32
|
-
protocol: rawProtocol,
|
|
33
|
-
room,
|
|
34
|
-
party,
|
|
35
|
-
basePath,
|
|
36
|
-
prefix,
|
|
37
|
-
query
|
|
38
|
-
} = partySocketOptions;
|
|
39
|
-
let host = rawHost.replace(/^(http|https|ws|wss):\/\//, "");
|
|
40
|
-
if (host.endsWith("/")) {
|
|
41
|
-
host = host.slice(0, -1);
|
|
42
|
-
}
|
|
43
|
-
if (rawPath == null ? void 0 : rawPath.startsWith("/")) {
|
|
44
|
-
throw new Error("path must not start with a slash");
|
|
45
|
-
}
|
|
46
|
-
const name = party ?? "main";
|
|
47
|
-
const path = rawPath ? `/${rawPath}` : "";
|
|
48
|
-
const protocol =
|
|
49
|
-
rawProtocol ||
|
|
50
|
-
(host.startsWith("localhost:") ||
|
|
51
|
-
host.startsWith("127.0.0.1:") ||
|
|
52
|
-
host.startsWith("192.168.") ||
|
|
53
|
-
host.startsWith("10.") ||
|
|
54
|
-
(host.startsWith("172.") &&
|
|
55
|
-
host.split(".")[1] >= "16" &&
|
|
56
|
-
host.split(".")[1] <= "31") ||
|
|
57
|
-
host.startsWith("[::ffff:7f00:1]:")
|
|
58
|
-
? // http / ws
|
|
59
|
-
defaultProtocol
|
|
60
|
-
: // https / wss
|
|
61
|
-
`${defaultProtocol}s`);
|
|
62
|
-
const baseUrl = `${protocol}://${host}/${basePath || `${prefix || "parties"}/${name}/${room}`}${path}`;
|
|
63
|
-
const makeUrl = (query2 = {}) =>
|
|
64
|
-
`${baseUrl}?${new URLSearchParams([
|
|
65
|
-
...Object.entries(defaultParams),
|
|
66
|
-
...Object.entries(query2).filter(valueIsNotNil)
|
|
67
|
-
])}`;
|
|
68
|
-
const urlProvider =
|
|
69
|
-
typeof query === "function"
|
|
70
|
-
? async () => makeUrl(await query())
|
|
71
|
-
: makeUrl(query);
|
|
72
|
-
return {
|
|
73
|
-
host,
|
|
74
|
-
path,
|
|
75
|
-
room,
|
|
76
|
-
name,
|
|
77
|
-
protocol,
|
|
78
|
-
partyUrl: baseUrl,
|
|
79
|
-
urlProvider
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
var PartySocket = class extends ReconnectingWebSocket {
|
|
83
|
-
constructor(partySocketOptions) {
|
|
84
|
-
var _a, _b;
|
|
85
|
-
const wsOptions = getWSOptions(partySocketOptions);
|
|
86
|
-
super(wsOptions.urlProvider, wsOptions.protocols, wsOptions.socketOptions);
|
|
87
|
-
this.partySocketOptions = partySocketOptions;
|
|
88
|
-
this.setWSProperties(wsOptions);
|
|
89
|
-
if (!partySocketOptions.disableNameValidation) {
|
|
90
|
-
if ((_a = partySocketOptions.party) == null ? void 0 : _a.includes("/")) {
|
|
91
|
-
console.warn(
|
|
92
|
-
`PartySocket: party name "${partySocketOptions.party}" contains forward slash which may cause routing issues. Consider using a name without forward slashes or set disableNameValidation: true to bypass this warning.`
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
if ((_b = partySocketOptions.room) == null ? void 0 : _b.includes("/")) {
|
|
96
|
-
console.warn(
|
|
97
|
-
`PartySocket: room name "${partySocketOptions.room}" contains forward slash which may cause routing issues. Consider using a name without forward slashes or set disableNameValidation: true to bypass this warning.`
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
_pk;
|
|
103
|
-
_pkurl;
|
|
104
|
-
name;
|
|
105
|
-
room;
|
|
106
|
-
host;
|
|
107
|
-
path;
|
|
108
|
-
updateProperties(partySocketOptions) {
|
|
109
|
-
const wsOptions = getWSOptions({
|
|
110
|
-
...this.partySocketOptions,
|
|
111
|
-
...partySocketOptions,
|
|
112
|
-
host: partySocketOptions.host ?? this.host,
|
|
113
|
-
room: partySocketOptions.room ?? this.room,
|
|
114
|
-
path: partySocketOptions.path ?? this.path
|
|
115
|
-
});
|
|
116
|
-
this._url = wsOptions.urlProvider;
|
|
117
|
-
this._protocols = wsOptions.protocols;
|
|
118
|
-
this._options = wsOptions.socketOptions;
|
|
119
|
-
this.setWSProperties(wsOptions);
|
|
120
|
-
}
|
|
121
|
-
setWSProperties(wsOptions) {
|
|
122
|
-
const { _pk, _pkurl, name, room, host, path } = wsOptions;
|
|
123
|
-
this._pk = _pk;
|
|
124
|
-
this._pkurl = _pkurl;
|
|
125
|
-
this.name = name;
|
|
126
|
-
this.room = room;
|
|
127
|
-
this.host = host;
|
|
128
|
-
this.path = path;
|
|
129
|
-
}
|
|
130
|
-
reconnect(code, reason) {
|
|
131
|
-
if (!this.room || !this.host) {
|
|
132
|
-
throw new Error(
|
|
133
|
-
"The room and host must be set before connecting, use `updateProperties` method to set them or pass them to the constructor."
|
|
134
|
-
);
|
|
135
|
-
}
|
|
136
|
-
super.reconnect(code, reason);
|
|
137
|
-
}
|
|
138
|
-
get id() {
|
|
139
|
-
return this._pk;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Exposes the static PartyKit room URL without applying query parameters.
|
|
143
|
-
* To access the currently connected WebSocket url, use PartySocket#url.
|
|
144
|
-
*/
|
|
145
|
-
get roomUrl() {
|
|
146
|
-
return this._pkurl;
|
|
147
|
-
}
|
|
148
|
-
// a `fetch` method that uses (almost) the same options as `PartySocket`
|
|
149
|
-
static async fetch(options, init) {
|
|
150
|
-
const party = getPartyInfo(options, "http");
|
|
151
|
-
const url =
|
|
152
|
-
typeof party.urlProvider === "string"
|
|
153
|
-
? party.urlProvider
|
|
154
|
-
: await party.urlProvider();
|
|
155
|
-
const doFetch = options.fetch ?? fetch;
|
|
156
|
-
return doFetch(url, init);
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
function getWSOptions(partySocketOptions) {
|
|
160
|
-
const {
|
|
161
|
-
id,
|
|
162
|
-
host: _host,
|
|
163
|
-
path: _path,
|
|
164
|
-
party: _party,
|
|
165
|
-
room: _room,
|
|
166
|
-
protocol: _protocol,
|
|
167
|
-
query: _query,
|
|
168
|
-
protocols,
|
|
169
|
-
...socketOptions
|
|
170
|
-
} = partySocketOptions;
|
|
171
|
-
const _pk = id || generateUUID();
|
|
172
|
-
const party = getPartyInfo(partySocketOptions, "ws", { _pk });
|
|
173
|
-
return {
|
|
174
|
-
_pk,
|
|
175
|
-
_pkurl: party.partyUrl,
|
|
176
|
-
name: party.name,
|
|
177
|
-
room: party.room,
|
|
178
|
-
host: party.host,
|
|
179
|
-
path: party.path,
|
|
180
|
-
protocols,
|
|
181
|
-
socketOptions,
|
|
182
|
-
urlProvider: party.urlProvider
|
|
183
|
-
};
|
|
1
|
+
function dset(obj, keys, val) {
|
|
2
|
+
keys.split && (keys=keys.split('.'));
|
|
3
|
+
var i=0, l=keys.length, t=obj, x, k;
|
|
4
|
+
while (i < l) {
|
|
5
|
+
k = ''+keys[i++];
|
|
6
|
+
if (k === '__proto__' || k === 'constructor' || k === 'prototype') break;
|
|
7
|
+
t = t[k] = (i === l) ? val : (typeof(x=t[k])===typeof(keys)) ? x : (keys[i]*0 !== 0 || !!~(''+keys[i]).indexOf('.')) ? {} : [];
|
|
8
|
+
}
|
|
184
9
|
}
|
|
185
10
|
|
|
186
|
-
export {
|
|
11
|
+
export { dset };
|
|
187
12
|
//# sourceMappingURL=index44.js.map
|
package/dist/index44.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index44.js","sources":["../../../node_modules/.pnpm/partysocket@1.1.5/node_modules/partysocket/dist/chunk-NLWAO4PP.mjs"],"sourcesContent":["import { ReconnectingWebSocket } from \"./chunk-ZCZZNAX5.mjs\";\n\n// src/index.ts\nvar valueIsNotNil = (keyValuePair) =>\n keyValuePair[1] !== null && keyValuePair[1] !== void 0;\nfunction generateUUID() {\n if (typeof crypto !== \"undefined\" && crypto.randomUUID) {\n return crypto.randomUUID();\n }\n let d = /* @__PURE__ */ new Date().getTime();\n let d2 =\n (typeof performance !== \"undefined\" &&\n performance.now &&\n performance.now() * 1e3) ||\n 0;\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function (c) {\n let r = Math.random() * 16;\n if (d > 0) {\n r = (d + r) % 16 | 0;\n d = Math.floor(d / 16);\n } else {\n r = (d2 + r) % 16 | 0;\n d2 = Math.floor(d2 / 16);\n }\n return (c === \"x\" ? r : (r & 3) | 8).toString(16);\n });\n}\nfunction getPartyInfo(partySocketOptions, defaultProtocol, defaultParams = {}) {\n const {\n host: rawHost,\n path: rawPath,\n protocol: rawProtocol,\n room,\n party,\n basePath,\n prefix,\n query\n } = partySocketOptions;\n let host = rawHost.replace(/^(http|https|ws|wss):\\/\\//, \"\");\n if (host.endsWith(\"/\")) {\n host = host.slice(0, -1);\n }\n if (rawPath == null ? void 0 : rawPath.startsWith(\"/\")) {\n throw new Error(\"path must not start with a slash\");\n }\n const name = party ?? \"main\";\n const path = rawPath ? `/${rawPath}` : \"\";\n const protocol =\n rawProtocol ||\n (host.startsWith(\"localhost:\") ||\n host.startsWith(\"127.0.0.1:\") ||\n host.startsWith(\"192.168.\") ||\n host.startsWith(\"10.\") ||\n (host.startsWith(\"172.\") &&\n host.split(\".\")[1] >= \"16\" &&\n host.split(\".\")[1] <= \"31\") ||\n host.startsWith(\"[::ffff:7f00:1]:\")\n ? // http / ws\n defaultProtocol\n : // https / wss\n `${defaultProtocol}s`);\n const baseUrl = `${protocol}://${host}/${basePath || `${prefix || \"parties\"}/${name}/${room}`}${path}`;\n const makeUrl = (query2 = {}) =>\n `${baseUrl}?${new URLSearchParams([\n ...Object.entries(defaultParams),\n ...Object.entries(query2).filter(valueIsNotNil)\n ])}`;\n const urlProvider =\n typeof query === \"function\"\n ? async () => makeUrl(await query())\n : makeUrl(query);\n return {\n host,\n path,\n room,\n name,\n protocol,\n partyUrl: baseUrl,\n urlProvider\n };\n}\nvar PartySocket = class extends ReconnectingWebSocket {\n constructor(partySocketOptions) {\n var _a, _b;\n const wsOptions = getWSOptions(partySocketOptions);\n super(wsOptions.urlProvider, wsOptions.protocols, wsOptions.socketOptions);\n this.partySocketOptions = partySocketOptions;\n this.setWSProperties(wsOptions);\n if (!partySocketOptions.disableNameValidation) {\n if ((_a = partySocketOptions.party) == null ? void 0 : _a.includes(\"/\")) {\n console.warn(\n `PartySocket: party name \"${partySocketOptions.party}\" contains forward slash which may cause routing issues. Consider using a name without forward slashes or set disableNameValidation: true to bypass this warning.`\n );\n }\n if ((_b = partySocketOptions.room) == null ? void 0 : _b.includes(\"/\")) {\n console.warn(\n `PartySocket: room name \"${partySocketOptions.room}\" contains forward slash which may cause routing issues. Consider using a name without forward slashes or set disableNameValidation: true to bypass this warning.`\n );\n }\n }\n }\n _pk;\n _pkurl;\n name;\n room;\n host;\n path;\n updateProperties(partySocketOptions) {\n const wsOptions = getWSOptions({\n ...this.partySocketOptions,\n ...partySocketOptions,\n host: partySocketOptions.host ?? this.host,\n room: partySocketOptions.room ?? this.room,\n path: partySocketOptions.path ?? this.path\n });\n this._url = wsOptions.urlProvider;\n this._protocols = wsOptions.protocols;\n this._options = wsOptions.socketOptions;\n this.setWSProperties(wsOptions);\n }\n setWSProperties(wsOptions) {\n const { _pk, _pkurl, name, room, host, path } = wsOptions;\n this._pk = _pk;\n this._pkurl = _pkurl;\n this.name = name;\n this.room = room;\n this.host = host;\n this.path = path;\n }\n reconnect(code, reason) {\n if (!this.room || !this.host) {\n throw new Error(\n \"The room and host must be set before connecting, use `updateProperties` method to set them or pass them to the constructor.\"\n );\n }\n super.reconnect(code, reason);\n }\n get id() {\n return this._pk;\n }\n /**\n * Exposes the static PartyKit room URL without applying query parameters.\n * To access the currently connected WebSocket url, use PartySocket#url.\n */\n get roomUrl() {\n return this._pkurl;\n }\n // a `fetch` method that uses (almost) the same options as `PartySocket`\n static async fetch(options, init) {\n const party = getPartyInfo(options, \"http\");\n const url =\n typeof party.urlProvider === \"string\"\n ? party.urlProvider\n : await party.urlProvider();\n const doFetch = options.fetch ?? fetch;\n return doFetch(url, init);\n }\n};\nfunction getWSOptions(partySocketOptions) {\n const {\n id,\n host: _host,\n path: _path,\n party: _party,\n room: _room,\n protocol: _protocol,\n query: _query,\n protocols,\n ...socketOptions\n } = partySocketOptions;\n const _pk = id || generateUUID();\n const party = getPartyInfo(partySocketOptions, \"ws\", { _pk });\n return {\n _pk,\n _pkurl: party.partyUrl,\n name: party.name,\n room: party.room,\n host: party.host,\n path: party.path,\n protocols,\n socket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AK;AACnC,UAAU,KAAK,CAAC;AAChB,UAAU,MAAM,KAAK,CAAC,WAAW,EAAE;AACnC,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,KAAK;AAC1C,IAAI,OAAO,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC;AAC7B,EAAE;AACF;AACA,SAAS,YAAY,CAAC,kBAAkB,EAAE;AAC1C,EAAE,MAAM;AACR,IAAI,EAAE;AACN,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,KAAK,EAAE,MAAM;AACjB,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,QAAQ,EAAE,SAAS;AACvB,IAAI,KAAK,EAAE,MAAM;AACjB,IAAI,SAAS;AACb,IAAI,GAAG;AACP,GAAG,GAAG,kBAAkB;AACxB,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,YAAY,EAAE;AAClC,EAAE,MAAM,KAAK,GAAG,YAAY,CAAC,kBAAkB,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC;AAC/D,EAAE,OAAO;AACT,IAAI,GAAG;AACP,IAAI,MAAM,EAAE,KAAK,CAAC,QAAQ;AAC1B,IAAI,IAAI,EAAE,KAAK,CAAC,IAAI;AACpB,IAAI,IAAI,EAAE,KAAK,CAAC,IAAI;AACpB,IAAI,IAAI,EAAE,KAAK,CAAC,IAAI;AACpB,IAAI,IAAI,EAAE,KAAK,CAAC,IAAI;AACpB,IAAI,SAAS;AACb,IAAI,aAAa;AACjB,IAAI,WAAW,EAAE,KAAK,CAAC;AACvB,GAAG;AACH;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index44.js","sources":["../../../node_modules/.pnpm/dset@3.1.4/node_modules/dset/dist/index.mjs"],"sourcesContent":["export function dset(obj, keys, val) {\n\tkeys.split && (keys=keys.split('.'));\n\tvar i=0, l=keys.length, t=obj, x, k;\n\twhile (i < l) {\n\t\tk = ''+keys[i++];\n\t\tif (k === '__proto__' || k === 'constructor' || k === 'prototype') break;\n\t\tt = t[k] = (i === l) ? val : (typeof(x=t[k])===typeof(keys)) ? x : (keys[i]*0 !== 0 || !!~(''+keys[i]).indexOf('.')) ? {} : [];\n\t}\n}\n"],"names":[],"mappings":"AAAO,SAAS,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE;AACrC,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;AACpC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;AACf,EAAE,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;AAClB,EAAE,IAAI,CAAC,KAAK,WAAW,IAAI,CAAC,KAAK,aAAa,IAAI,CAAC,KAAK,WAAW,EAAE;AACrE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE;AAChI,CAAC;AACD;;;;","x_google_ignoreList":[0]}
|