@lace-cloud/proto 0.25.0 → 0.26.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/index.cjs +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +307 -171
- package/dist/index.d.ts +307 -171
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -36,6 +36,7 @@ __export(index_exports, {
|
|
|
36
36
|
NODE_HEADER_HEIGHT: () => NODE_HEADER_HEIGHT,
|
|
37
37
|
NODE_ROW_HEIGHT: () => NODE_ROW_HEIGHT,
|
|
38
38
|
NODE_WIDTH: () => NODE_WIDTH,
|
|
39
|
+
apiFields: () => apiFields,
|
|
39
40
|
boxAt: () => boxAt,
|
|
40
41
|
callText: () => callText,
|
|
41
42
|
checkEngineProtocol: () => checkEngineProtocol,
|
|
@@ -124,6 +125,12 @@ var HOST_ONLY_METHOD_NAMES = HOST_ONLY_METHODS;
|
|
|
124
125
|
var BRIDGE_METHODS = ENGINE_METHODS.filter(
|
|
125
126
|
(m) => !HOST_ONLY_METHOD_NAMES.includes(m)
|
|
126
127
|
);
|
|
128
|
+
function apiFields(detail) {
|
|
129
|
+
return {
|
|
130
|
+
apiCode: detail.api_code === "" ? void 0 : detail.api_code,
|
|
131
|
+
requestId: detail.request_id === "" ? void 0 : detail.request_id
|
|
132
|
+
};
|
|
133
|
+
}
|
|
127
134
|
var CONNECT_CODE_NAMES = [
|
|
128
135
|
"ok",
|
|
129
136
|
"canceled",
|
|
@@ -5072,7 +5079,7 @@ function isSet3(value) {
|
|
|
5072
5079
|
var CanvasViewProto = CanvasView;
|
|
5073
5080
|
|
|
5074
5081
|
// src/protocol-version.ts
|
|
5075
|
-
var ENGINE_PROTOCOL_VERSION = String(
|
|
5082
|
+
var ENGINE_PROTOCOL_VERSION = String(6 /* PROTOCOL_VERSION_CURRENT */);
|
|
5076
5083
|
var EngineProtocolMismatchError = class extends Error {
|
|
5077
5084
|
constructor(engineVersion, engineProtocol, requiredProtocol) {
|
|
5078
5085
|
super(
|
|
@@ -5114,6 +5121,7 @@ function checkEngineProtocol(engineVersion, engineProtocol) {
|
|
|
5114
5121
|
NODE_HEADER_HEIGHT,
|
|
5115
5122
|
NODE_ROW_HEIGHT,
|
|
5116
5123
|
NODE_WIDTH,
|
|
5124
|
+
apiFields,
|
|
5117
5125
|
boxAt,
|
|
5118
5126
|
callText,
|
|
5119
5127
|
checkEngineProtocol,
|