@vxrn/vite-native-hmr 1.27.1 → 2.0.0-beta.100.1

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.
Files changed (37) hide show
  1. package/dist/cjs/devServerClient.cjs +113 -129
  2. package/dist/cjs/devServerClient.native.cjs +214 -0
  3. package/dist/cjs/devServerClient.native.js +184 -199
  4. package/dist/cjs/devServerClient.native.js.map +1 -1
  5. package/dist/cjs/getDevServerLocation.cjs +32 -43
  6. package/dist/cjs/getDevServerLocation.native.cjs +50 -0
  7. package/dist/cjs/getDevServerLocation.native.js +32 -42
  8. package/dist/cjs/getDevServerLocation.native.js.map +1 -1
  9. package/dist/cjs/hmr-client.cjs +155 -175
  10. package/dist/cjs/hmr-client.native.cjs +231 -0
  11. package/dist/cjs/hmr-client.native.js +210 -224
  12. package/dist/cjs/hmr-client.native.js.map +1 -1
  13. package/dist/cjs/index.cjs +14 -18
  14. package/dist/cjs/index.native.cjs +29 -0
  15. package/dist/cjs/index.native.js +14 -17
  16. package/dist/cjs/index.native.js.map +1 -1
  17. package/dist/esm/devServerClient.mjs +93 -100
  18. package/dist/esm/devServerClient.mjs.map +1 -1
  19. package/dist/esm/devServerClient.native.js +164 -171
  20. package/dist/esm/devServerClient.native.js.map +1 -1
  21. package/dist/esm/getDevServerLocation.mjs +17 -17
  22. package/dist/esm/getDevServerLocation.mjs.map +1 -1
  23. package/dist/esm/getDevServerLocation.native.js +17 -17
  24. package/dist/esm/getDevServerLocation.native.js.map +1 -1
  25. package/dist/esm/hmr-client.mjs +143 -157
  26. package/dist/esm/hmr-client.mjs.map +1 -1
  27. package/dist/esm/hmr-client.native.js +198 -207
  28. package/dist/esm/hmr-client.native.js.map +1 -1
  29. package/dist/esm/index.js +4 -1
  30. package/dist/esm/index.js.map +1 -1
  31. package/dist/esm/index.mjs +4 -1
  32. package/dist/esm/index.mjs.map +1 -1
  33. package/dist/esm/index.native.js +4 -1
  34. package/dist/esm/index.native.js.map +1 -1
  35. package/package.json +4 -4
  36. package/types/devServerClient.d.ts.map +1 -1
  37. package/types/index.d.ts.map +1 -1
@@ -5,243 +5,229 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
13
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
21
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
23
  var hmr_client_exports = {};
26
- __export(hmr_client_exports, {
27
- loadHMRClient: () => loadHMRClient
28
- });
24
+ __export(hmr_client_exports, { loadHMRClient: () => loadHMRClient });
29
25
  module.exports = __toCommonJS(hmr_client_exports);
30
26
  var import_getDevServerLocation = require("./getDevServerLocation.native.js");
31
27
  function _class_call_check(instance, Constructor) {
32
- if (!(instance instanceof Constructor)) {
33
- throw new TypeError("Cannot call a class as a function");
34
- }
28
+ if (!(instance instanceof Constructor)) {
29
+ throw new TypeError("Cannot call a class as a function");
30
+ }
35
31
  }
36
32
  function _defineProperties(target, props) {
37
- for (var i = 0; i < props.length; i++) {
38
- var descriptor = props[i];
39
- descriptor.enumerable = descriptor.enumerable || false;
40
- descriptor.configurable = true;
41
- if ("value" in descriptor) descriptor.writable = true;
42
- Object.defineProperty(target, descriptor.key, descriptor);
43
- }
33
+ for (var i = 0; i < props.length; i++) {
34
+ var descriptor = props[i];
35
+ descriptor.enumerable = descriptor.enumerable || false;
36
+ descriptor.configurable = true;
37
+ if ("value" in descriptor) descriptor.writable = true;
38
+ Object.defineProperty(target, descriptor.key, descriptor);
39
+ }
44
40
  }
45
41
  function _create_class(Constructor, protoProps, staticProps) {
46
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
47
- if (staticProps) _defineProperties(Constructor, staticProps);
48
- return Constructor;
42
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
43
+ if (staticProps) _defineProperties(Constructor, staticProps);
44
+ return Constructor;
49
45
  }
50
46
  function _define_property(obj, key, value) {
51
- if (key in obj) {
52
- Object.defineProperty(obj, key, {
53
- value,
54
- enumerable: true,
55
- configurable: true,
56
- writable: true
57
- });
58
- } else {
59
- obj[key] = value;
60
- }
61
- return obj;
47
+ if (key in obj) {
48
+ Object.defineProperty(obj, key, {
49
+ value,
50
+ enumerable: true,
51
+ configurable: true,
52
+ writable: true
53
+ });
54
+ } else {
55
+ obj[key] = value;
56
+ }
57
+ return obj;
62
58
  }
63
- var HMRClient = /* @__PURE__ */function () {
64
- "use strict";
65
-
66
- function HMRClient2(app) {
67
- var _this = this;
68
- _class_call_check(this, HMRClient2);
69
- _define_property(this, "app", void 0);
70
- _define_property(this, "url", void 0);
71
- _define_property(this, "socket", void 0);
72
- _define_property(this, "lastHash", void 0);
73
- this.app = app;
74
- this.lastHash = "";
75
- var port = process.env.REACT_NATIVE_SERVER_PUBLIC_PORT || 8081;
76
- this.url = `ws://${(0, import_getDevServerLocation.getDevServerLocation)().hostname}:${port}/__hmr?platform=${process.env.REACT_NATIVE_PLATFORM || "ios"}`;
77
- this.socket = new WebSocket(this.url);
78
- console.info(" \u24F5 [hmr] connecting...");
79
- this.socket.onopen = function () {
80
- console.info(" \u24F5 [hmr] connected");
81
- };
82
- this.socket.onclose = function () {
83
- console.info(` \u24F5 [hmr] disconnected ${_this.url}`);
84
- };
85
- this.socket.onerror = function (event) {
86
- console.error(" \u24F5 [hmr] error", event);
87
- };
88
- this.socket.onmessage = function (event) {
89
- try {
90
- var data = JSON.parse(event.data.toString());
91
- _this.processMessage(data);
92
- } catch (error) {
93
- console.warn(" \u24F5 [hmr] invalid message", error);
94
- }
95
- };
96
- }
97
- _create_class(HMRClient2, [{
98
- key: "upToDate",
99
- value: function upToDate(hash) {
100
- if (hash) {
101
- this.lastHash = hash;
102
- }
103
- return this.lastHash === __webpack_hash__;
104
- }
105
- }, {
106
- key: "processMessage",
107
- value: function processMessage(message) {
108
- switch (message.action) {
109
- case "building":
110
- var _message_body;
111
- this.app.LoadingView.showMessage("Rebuilding...", "refresh");
112
- console.info(" \u24F5 [hmr] bundle rebuilding", {
113
- name: (_message_body = message.body) === null || _message_body === void 0 ? void 0 : _message_body.name
114
- });
115
- break;
116
- // biome-ignore lint/suspicious/noFallthroughSwitchClause: <explanation>
117
- case "built":
118
- var _message_body1, _message_body2;
119
- console.info(" \u24F5 [hmr] bundle rebuilt", {
120
- name: (_message_body1 = message.body) === null || _message_body1 === void 0 ? void 0 : _message_body1.name,
121
- time: (_message_body2 = message.body) === null || _message_body2 === void 0 ? void 0 : _message_body2.time
122
- });
123
- // Fall through
124
- case "sync":
125
- var _message_body_errors, _message_body_warnings;
126
- if (!message.body) {
127
- console.warn(" \u24F5 [hmr] message body is empty");
128
- return;
129
- }
130
- if ((_message_body_errors = message.body.errors) === null || _message_body_errors === void 0 ? void 0 : _message_body_errors.length) {
131
- message.body.errors.forEach(function (error) {
132
- console.error("Cannot apply update due to error:", error);
133
- });
134
- this.app.LoadingView.hide();
135
- return;
136
- }
137
- if ((_message_body_warnings = message.body.warnings) === null || _message_body_warnings === void 0 ? void 0 : _message_body_warnings.length) {
138
- message.body.warnings.forEach(function (warning) {
139
- console.warn(" \u24F5 [hmr] bundle contains warnings:", warning);
140
- });
141
- }
142
- this.applyUpdate(message.body);
143
- }
144
- }
145
- }, {
146
- key: "applyUpdate",
147
- value: function applyUpdate(update) {
148
- if (!module.hot) {
149
- throw new Error(" \u24F5 [hmr] hot Module Replacement is disabled.");
150
- }
151
- if (!this.upToDate(update.hash) && module.hot.status() === "idle") {
152
- console.info(" \u24F5 [hmr] checking for updates on the server...");
153
- this.checkUpdates(update);
154
- }
155
- }
156
- }, {
157
- key: "checkUpdates",
158
- value: function checkUpdates(update) {
159
- var _this = this;
160
- try {
161
- var _module_hot;
162
- this.app.LoadingView.showMessage("Refreshing...", "refresh");
163
- (_module_hot = module.hot) === null || _module_hot === void 0 ? void 0 : _module_hot.check(false).then(function (updatedModules) {
164
- var _module_hot3;
165
- if (!updatedModules) {
166
- console.warn(" \u24F5 [hmr] cannot find update - full reload needed");
167
- _this.app.reload();
168
- return;
169
- }
170
- (_module_hot3 = module.hot) === null || _module_hot3 === void 0 ? void 0 : _module_hot3.apply({
171
- ignoreDeclined: true,
172
- ignoreUnaccepted: false,
173
- ignoreErrored: false,
174
- onDeclined: function (data) {
175
- console.warn(" \u24F5 [hmr] ignored an update due to declined module", {
176
- chain: data.chain
177
- });
178
- }
179
- }).then(function (renewedModules) {
180
- if (!_this.upToDate()) {
181
- _this.checkUpdates(update);
182
- }
183
- var unacceptedModules = updatedModules.filter(function (moduleId) {
184
- return renewedModules && renewedModules.indexOf(moduleId) < 0;
185
- });
186
- if (unacceptedModules.length) {
187
- console.warn(" \u24F5 [hmr] not every module was accepted - full reload needed", {
188
- unacceptedModules
189
- });
190
- _this.app.reload();
191
- } else {
192
- console.info(" \u24F5 [hmr] renewed modules - app is up to date", {
193
- renewedModules
194
- });
195
- _this.app.dismissErrors();
196
- }
197
- });
198
- });
199
- } catch (error) {
200
- var _module_hot1, _module_hot2;
201
- if (((_module_hot1 = module.hot) === null || _module_hot1 === void 0 ? void 0 : _module_hot1.status()) === "fail" || ((_module_hot2 = module.hot) === null || _module_hot2 === void 0 ? void 0 : _module_hot2.status()) === "abort") {
202
- console.warn(" \u24F5 [hmr] cannot check for update - full reload needed");
203
- console.warn("[hmr]", error);
204
- this.app.reload();
205
- } else {
206
- console.warn(" \u24F5 [hmr] update check failed", {
207
- error
208
- });
209
- }
210
- } finally {
211
- this.app.LoadingView.hide();
212
- }
213
- }
214
- }]);
215
- return HMRClient2;
216
- }();
217
- var loadHMRClient = function () {
218
- var {
219
- DevSettings,
220
- Platform
221
- } = require("react-native");
222
- var LoadingView = {
223
- showMessage: function () {},
224
- hide: function () {}
225
- };
226
- var reload = function () {
227
- return DevSettings.reload();
228
- };
229
- var dismissErrors = function () {
230
- if (Platform.OS === "ios") {
231
- var _NativeRedBox_dismiss;
232
- var NativeRedBox = require("react-native/Libraries/NativeModules/specs/NativeRedBox").default;
233
- NativeRedBox === null || NativeRedBox === void 0 ? void 0 : (_NativeRedBox_dismiss = NativeRedBox.dismiss) === null || _NativeRedBox_dismiss === void 0 ? void 0 : _NativeRedBox_dismiss.call(NativeRedBox);
234
- } else {
235
- var NativeExceptionsManager = require("react-native/Libraries/Core/NativeExceptionsManager").default;
236
- NativeExceptionsManager === null || NativeExceptionsManager === void 0 ? void 0 : NativeExceptionsManager.dismissRedbox();
237
- }
238
- var LogBoxData = require("react-native/Libraries/LogBox/Data/LogBoxData");
239
- LogBoxData.clear();
240
- };
241
- new HMRClient({
242
- reload,
243
- dismissErrors,
244
- LoadingView
245
- });
59
+ var HMRClient = /* @__PURE__ */ (function() {
60
+ "use strict";
61
+ function HMRClient2(app) {
62
+ var _this = this;
63
+ _class_call_check(this, HMRClient2);
64
+ _define_property(this, "app", void 0);
65
+ _define_property(this, "url", void 0);
66
+ _define_property(this, "socket", void 0);
67
+ _define_property(this, "lastHash", void 0);
68
+ this.app = app;
69
+ this.lastHash = "";
70
+ var port = process.env.REACT_NATIVE_SERVER_PUBLIC_PORT || 8081;
71
+ this.url = `ws://${(0, import_getDevServerLocation.getDevServerLocation)().hostname}:${port}/__hmr?platform=${process.env.REACT_NATIVE_PLATFORM || "ios"}`;
72
+ this.socket = new WebSocket(this.url);
73
+ console.info(" ⓵ [hmr] connecting...");
74
+ this.socket.onopen = function() {
75
+ console.info(" ⓵ [hmr] connected");
76
+ };
77
+ this.socket.onclose = function() {
78
+ console.info(` \u24F5 [hmr] disconnected ${_this.url}`);
79
+ };
80
+ this.socket.onerror = function(event) {
81
+ console.error(" ⓵ [hmr] error", event);
82
+ };
83
+ this.socket.onmessage = function(event) {
84
+ try {
85
+ var data = JSON.parse(event.data.toString());
86
+ _this.processMessage(data);
87
+ } catch (error) {
88
+ console.warn(" ⓵ [hmr] invalid message", error);
89
+ }
90
+ };
91
+ }
92
+ _create_class(HMRClient2, [
93
+ {
94
+ key: "upToDate",
95
+ value: function upToDate(hash) {
96
+ if (hash) {
97
+ this.lastHash = hash;
98
+ }
99
+ return this.lastHash === __webpack_hash__;
100
+ }
101
+ },
102
+ {
103
+ key: "processMessage",
104
+ value: function processMessage(message) {
105
+ switch (message.action) {
106
+ case "building":
107
+ var _message_body;
108
+ this.app.LoadingView.showMessage("Rebuilding...", "refresh");
109
+ console.info(" ⓵ [hmr] bundle rebuilding", { name: (_message_body = message.body) === null || _message_body === void 0 ? void 0 : _message_body.name });
110
+ break;
111
+ case "built":
112
+ var _message_body1, _message_body2;
113
+ console.info(" ⓵ [hmr] bundle rebuilt", {
114
+ name: (_message_body1 = message.body) === null || _message_body1 === void 0 ? void 0 : _message_body1.name,
115
+ time: (_message_body2 = message.body) === null || _message_body2 === void 0 ? void 0 : _message_body2.time
116
+ });
117
+ case "sync":
118
+ var _message_body_errors, _message_body_warnings;
119
+ if (!message.body) {
120
+ console.warn(" ⓵ [hmr] message body is empty");
121
+ return;
122
+ }
123
+ if ((_message_body_errors = message.body.errors) === null || _message_body_errors === void 0 ? void 0 : _message_body_errors.length) {
124
+ message.body.errors.forEach(function(error) {
125
+ console.error("Cannot apply update due to error:", error);
126
+ });
127
+ this.app.LoadingView.hide();
128
+ return;
129
+ }
130
+ if ((_message_body_warnings = message.body.warnings) === null || _message_body_warnings === void 0 ? void 0 : _message_body_warnings.length) {
131
+ message.body.warnings.forEach(function(warning) {
132
+ console.warn(" ⓵ [hmr] bundle contains warnings:", warning);
133
+ });
134
+ }
135
+ this.applyUpdate(message.body);
136
+ }
137
+ }
138
+ },
139
+ {
140
+ key: "applyUpdate",
141
+ value: function applyUpdate(update) {
142
+ if (!module.hot) {
143
+ throw new Error(" ⓵ [hmr] hot Module Replacement is disabled.");
144
+ }
145
+ if (!this.upToDate(update.hash) && module.hot.status() === "idle") {
146
+ console.info(" ⓵ [hmr] checking for updates on the server...");
147
+ this.checkUpdates(update);
148
+ }
149
+ }
150
+ },
151
+ {
152
+ key: "checkUpdates",
153
+ value: function checkUpdates(update) {
154
+ var _this = this;
155
+ try {
156
+ var _module_hot;
157
+ this.app.LoadingView.showMessage("Refreshing...", "refresh");
158
+ (_module_hot = module.hot) === null || _module_hot === void 0 ? void 0 : _module_hot.check(false).then(function(updatedModules) {
159
+ var _module_hot3;
160
+ if (!updatedModules) {
161
+ console.warn(" ⓵ [hmr] cannot find update - full reload needed");
162
+ _this.app.reload();
163
+ return;
164
+ }
165
+ (_module_hot3 = module.hot) === null || _module_hot3 === void 0 ? void 0 : _module_hot3.apply({
166
+ ignoreDeclined: true,
167
+ ignoreUnaccepted: false,
168
+ ignoreErrored: false,
169
+ onDeclined: function(data) {
170
+ console.warn(" ⓵ [hmr] ignored an update due to declined module", { chain: data.chain });
171
+ }
172
+ }).then(function(renewedModules) {
173
+ if (!_this.upToDate()) {
174
+ _this.checkUpdates(update);
175
+ }
176
+ var unacceptedModules = updatedModules.filter(function(moduleId) {
177
+ return renewedModules && renewedModules.indexOf(moduleId) < 0;
178
+ });
179
+ if (unacceptedModules.length) {
180
+ console.warn(" ⓵ [hmr] not every module was accepted - full reload needed", { unacceptedModules });
181
+ _this.app.reload();
182
+ } else {
183
+ console.info(" ⓵ [hmr] renewed modules - app is up to date", { renewedModules });
184
+ _this.app.dismissErrors();
185
+ }
186
+ });
187
+ });
188
+ } catch (error) {
189
+ var _module_hot1, _module_hot2;
190
+ if (((_module_hot1 = module.hot) === null || _module_hot1 === void 0 ? void 0 : _module_hot1.status()) === "fail" || ((_module_hot2 = module.hot) === null || _module_hot2 === void 0 ? void 0 : _module_hot2.status()) === "abort") {
191
+ console.warn(" ⓵ [hmr] cannot check for update - full reload needed");
192
+ console.warn("[hmr]", error);
193
+ this.app.reload();
194
+ } else {
195
+ console.warn(" ⓵ [hmr] update check failed", { error });
196
+ }
197
+ } finally {
198
+ this.app.LoadingView.hide();
199
+ }
200
+ }
201
+ }
202
+ ]);
203
+ return HMRClient2;
204
+ })();
205
+ var loadHMRClient = function() {
206
+ var { DevSettings, Platform } = require("react-native");
207
+ var LoadingView = {
208
+ showMessage: function() {},
209
+ hide: function() {}
210
+ };
211
+ var reload = function() {
212
+ return DevSettings.reload();
213
+ };
214
+ var dismissErrors = function() {
215
+ if (Platform.OS === "ios") {
216
+ var _NativeRedBox_dismiss;
217
+ var NativeRedBox = require("react-native/Libraries/NativeModules/specs/NativeRedBox").default;
218
+ NativeRedBox === null || NativeRedBox === void 0 ? void 0 : (_NativeRedBox_dismiss = NativeRedBox.dismiss) === null || _NativeRedBox_dismiss === void 0 ? void 0 : _NativeRedBox_dismiss.call(NativeRedBox);
219
+ } else {
220
+ var NativeExceptionsManager = require("react-native/Libraries/Core/NativeExceptionsManager").default;
221
+ NativeExceptionsManager === null || NativeExceptionsManager === void 0 ? void 0 : NativeExceptionsManager.dismissRedbox();
222
+ }
223
+ var LogBoxData = require("react-native/Libraries/LogBox/Data/LogBoxData");
224
+ LogBoxData.clear();
225
+ };
226
+ new HMRClient({
227
+ reload,
228
+ dismissErrors,
229
+ LoadingView
230
+ });
246
231
  };
232
+
247
233
  //# sourceMappingURL=hmr-client.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","hmr_client_exports","__export","loadHMRClient","module","exports","import_getDevServerLocation","require","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","_define_property","obj","HMRClient","HMRClient2","app","_this","lastHash","port","process","env","REACT_NATIVE_SERVER_PUBLIC_PORT","url","getDevServerLocation","hostname","REACT_NATIVE_PLATFORM","socket","WebSocket","console","info","onopen","onclose","onerror","event","error","onmessage","data","JSON","parse","toString","processMessage","warn","upToDate","hash","__webpack_hash__","message","action","_message_body","LoadingView","showMessage","name","body","_message_body1","_message_body2","time","_message_body_errors","_message_body_warnings","errors","forEach","hide","warnings","warning","applyUpdate","update","hot","Error","status","checkUpdates","_module_hot","check","then","updatedModules","_module_hot3","reload","apply","ignoreDeclined","ignoreUnaccepted","ignoreErrored","onDeclined","chain","renewedModules"],"sources":["../../src/hmr-client.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAA,CAAAK,kBAAqC;AAqCrC,IAAAK,2BAAgB,GAAAC,OAAA;AAAA,SAKdC,iBASEA,CAAAC,QAAA,EAAAC,WAAA;EARQ,MAAAD,QAAA,YAAAC,WAAA;IASR,MAAM,IAAAC,SAAO,oCAAY;EACzB;AAIA;AAEA,SAAAC,iBAAaA,CAAAC,MAAA,EAAAC,KAAA;EAEb,SAAKC,CAAA,IAAO,EAAAA,CAAA,GAAAD,KAAS,CAAAE,MAAM,EAAAD,CAAA;IACzB,IAAAE,UAAQ,GAAKH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IACF;EACF,GACE;IACFzD,GAAA;IACFvB,KAAA,WAAAoF,aAAAJ,MAAA;MACF,IAAA/C,KAAA;MAEa;QACH,IAAAoD,WAAa;QAGf,KAAArD,GAAA,CAAAiC,WAAc,CAAAC,WAAA;QAClB,CAAAmB,WAAa,GAAMjF,MAAA,CAAA6E,GAAA,cAAAI,WAAA,uBAAAA,WAAA,CAAAC,KAAA,QAAAC,IAAA,WAAAC,cAAA;UAAC,IAAAC,YAAA;UACd,IAAM,CAAAD,cAAA;YAAC3C,OAAA,CAAAa,IAAA;YACfzB,KAAA,CAAAD,GAAA,CAAA0D,MAAA;YAEM;UACA;UACA,CAAAD,YAAgB,GAAArF,MAAO,CAAA6E,GAAA,cAAAQ,YAAA,uBAAAA,YAAA,CAAAE,KAAA;YACnBC,cACJ;YACFC,gBAAwB;YACnBC,aAAA;YACCC,UAAA,WAAAA,CAAA1C,IACJ;cACFR,OAAA,CAAAa,IAAA,yDAAuC;gBACzCsC,KAAA,EAAA3C,IAAA,CAAA2C;cAEM;YACN;UACF,GAAAT,IAAA,WAAAU,cAAA;YAEI,IAAY,CAAAhE,KAAA,CAAA0B,QAAQ;cAC1B1B,KAAA,CAAAmD,YAAA,CAAAJ,MAAA","ignoreList":[]}
1
+ {"version":3,"file":"hmr-client.native.js","names":[],"sources":["cjs/hmr-client.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar hmr_client_exports = {};\n__export(hmr_client_exports, {\n loadHMRClient: () => loadHMRClient\n});\nmodule.exports = __toCommonJS(hmr_client_exports);\nvar import_getDevServerLocation = require(\"./getDevServerLocation\");\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nvar HMRClient = /* @__PURE__ */ (function() {\n \"use strict\";\n function HMRClient2(app) {\n var _this = this;\n _class_call_check(this, HMRClient2);\n _define_property(this, \"app\", void 0);\n _define_property(this, \"url\", void 0);\n _define_property(this, \"socket\", void 0);\n _define_property(this, \"lastHash\", void 0);\n this.app = app;\n this.lastHash = \"\";\n var port = process.env.REACT_NATIVE_SERVER_PUBLIC_PORT || 8081;\n this.url = `ws://${(0, import_getDevServerLocation.getDevServerLocation)().hostname}:${port}/__hmr?platform=${process.env.REACT_NATIVE_PLATFORM || \"ios\"}`;\n this.socket = new WebSocket(this.url);\n console.info(\" \\u24F5 [hmr] connecting...\");\n this.socket.onopen = function() {\n console.info(\" \\u24F5 [hmr] connected\");\n };\n this.socket.onclose = function() {\n console.info(` \\u24F5 [hmr] disconnected ${_this.url}`);\n };\n this.socket.onerror = function(event) {\n console.error(\" \\u24F5 [hmr] error\", event);\n };\n this.socket.onmessage = function(event) {\n try {\n var data = JSON.parse(event.data.toString());\n _this.processMessage(data);\n } catch (error) {\n console.warn(\" \\u24F5 [hmr] invalid message\", error);\n }\n };\n }\n _create_class(HMRClient2, [\n {\n key: \"upToDate\",\n value: function upToDate(hash) {\n if (hash) {\n this.lastHash = hash;\n }\n return this.lastHash === __webpack_hash__;\n }\n },\n {\n key: \"processMessage\",\n value: function processMessage(message) {\n switch (message.action) {\n case \"building\":\n var _message_body;\n this.app.LoadingView.showMessage(\"Rebuilding...\", \"refresh\");\n console.info(\" \\u24F5 [hmr] bundle rebuilding\", {\n name: (_message_body = message.body) === null || _message_body === void 0 ? void 0 : _message_body.name\n });\n break;\n // biome-ignore lint/suspicious/noFallthroughSwitchClause: <explanation>\n case \"built\":\n var _message_body1, _message_body2;\n console.info(\" \\u24F5 [hmr] bundle rebuilt\", {\n name: (_message_body1 = message.body) === null || _message_body1 === void 0 ? void 0 : _message_body1.name,\n time: (_message_body2 = message.body) === null || _message_body2 === void 0 ? void 0 : _message_body2.time\n });\n // Fall through\n case \"sync\":\n var _message_body_errors, _message_body_warnings;\n if (!message.body) {\n console.warn(\" \\u24F5 [hmr] message body is empty\");\n return;\n }\n if ((_message_body_errors = message.body.errors) === null || _message_body_errors === void 0 ? void 0 : _message_body_errors.length) {\n message.body.errors.forEach(function(error) {\n console.error(\"Cannot apply update due to error:\", error);\n });\n this.app.LoadingView.hide();\n return;\n }\n if ((_message_body_warnings = message.body.warnings) === null || _message_body_warnings === void 0 ? void 0 : _message_body_warnings.length) {\n message.body.warnings.forEach(function(warning) {\n console.warn(\" \\u24F5 [hmr] bundle contains warnings:\", warning);\n });\n }\n this.applyUpdate(message.body);\n }\n }\n },\n {\n key: \"applyUpdate\",\n value: function applyUpdate(update) {\n if (!module.hot) {\n throw new Error(\" \\u24F5 [hmr] hot Module Replacement is disabled.\");\n }\n if (!this.upToDate(update.hash) && module.hot.status() === \"idle\") {\n console.info(\" \\u24F5 [hmr] checking for updates on the server...\");\n this.checkUpdates(update);\n }\n }\n },\n {\n key: \"checkUpdates\",\n value: function checkUpdates(update) {\n var _this = this;\n try {\n var _module_hot;\n this.app.LoadingView.showMessage(\"Refreshing...\", \"refresh\");\n (_module_hot = module.hot) === null || _module_hot === void 0 ? void 0 : _module_hot.check(false).then(function(updatedModules) {\n var _module_hot3;\n if (!updatedModules) {\n console.warn(\" \\u24F5 [hmr] cannot find update - full reload needed\");\n _this.app.reload();\n return;\n }\n (_module_hot3 = module.hot) === null || _module_hot3 === void 0 ? void 0 : _module_hot3.apply({\n ignoreDeclined: true,\n ignoreUnaccepted: false,\n ignoreErrored: false,\n onDeclined: function(data) {\n console.warn(\" \\u24F5 [hmr] ignored an update due to declined module\", {\n chain: data.chain\n });\n }\n }).then(function(renewedModules) {\n if (!_this.upToDate()) {\n _this.checkUpdates(update);\n }\n var unacceptedModules = updatedModules.filter(function(moduleId) {\n return renewedModules && renewedModules.indexOf(moduleId) < 0;\n });\n if (unacceptedModules.length) {\n console.warn(\" \\u24F5 [hmr] not every module was accepted - full reload needed\", {\n unacceptedModules\n });\n _this.app.reload();\n } else {\n console.info(\" \\u24F5 [hmr] renewed modules - app is up to date\", {\n renewedModules\n });\n _this.app.dismissErrors();\n }\n });\n });\n } catch (error) {\n var _module_hot1, _module_hot2;\n if (((_module_hot1 = module.hot) === null || _module_hot1 === void 0 ? void 0 : _module_hot1.status()) === \"fail\" || ((_module_hot2 = module.hot) === null || _module_hot2 === void 0 ? void 0 : _module_hot2.status()) === \"abort\") {\n console.warn(\" \\u24F5 [hmr] cannot check for update - full reload needed\");\n console.warn(\"[hmr]\", error);\n this.app.reload();\n } else {\n console.warn(\" \\u24F5 [hmr] update check failed\", {\n error\n });\n }\n } finally {\n this.app.LoadingView.hide();\n }\n }\n }\n ]);\n return HMRClient2;\n})();\nvar loadHMRClient = function() {\n var { DevSettings, Platform } = require(\"react-native\");\n var LoadingView = {\n showMessage: function() {\n },\n hide: function() {\n }\n };\n var reload = function() {\n return DevSettings.reload();\n };\n var dismissErrors = function() {\n if (Platform.OS === \"ios\") {\n var _NativeRedBox_dismiss;\n var NativeRedBox = require(\"react-native/Libraries/NativeModules/specs/NativeRedBox\").default;\n NativeRedBox === null || NativeRedBox === void 0 ? void 0 : (_NativeRedBox_dismiss = NativeRedBox.dismiss) === null || _NativeRedBox_dismiss === void 0 ? void 0 : _NativeRedBox_dismiss.call(NativeRedBox);\n } else {\n var NativeExceptionsManager = require(\"react-native/Libraries/Core/NativeExceptionsManager\").default;\n NativeExceptionsManager === null || NativeExceptionsManager === void 0 ? void 0 : NativeExceptionsManager.dismissRedbox();\n }\n var LogBoxData = require(\"react-native/Libraries/LogBox/Data/LogBoxData\");\n LogBoxData.clear();\n };\n new HMRClient({\n reload,\n dismissErrors,\n LoadingView\n });\n};\n//# sourceMappingURL=hmr-client.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,qBAAqB,CAAC;AA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AC,CAAC;GACtF,iBAAiB,QAAQ,iBAAiB,KAAK,IAAI,KAAK,KAAK,wBAAwB,aAAa,aAAa,QAAQ,0BAA0B,KAAK,IAAI,KAAK,IAAI,sBAAsB,KAAK,YAAY;EAC5M,OAAO;GACL,IAAI,0BAA0B,QAAQ,qDAAqD,CAAC,CAAC;GAC7F,4BAA4B,QAAQ,4BAA4B,KAAK,IAAI,KAAK,IAAI,wBAAwB,cAAc;EAC1H;EACA,IAAI,aAAa,QAAQ,+CAA+C;EACxE,WAAW,MAAM;CACnB;CACA,IAAI,UAAU;EACZ;EACA;EACA;CACF,CAAC;AACH"}
@@ -3,29 +3,25 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
10
  };
11
11
  var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
19
  };
20
20
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
22
- value: true
23
- }), mod);
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
22
  var index_exports = {};
25
- __export(index_exports, {
26
- default: () => index_default
27
- });
23
+ __export(index_exports, { default: () => index_default });
28
24
  module.exports = __toCommonJS(index_exports);
29
25
  __reExport(index_exports, require("./devServerClient.cjs"), module.exports);
30
26
  var import_devServerClient = require("./devServerClient.cjs");
31
- var index_default = import_devServerClient.client;
27
+ var index_default = import_devServerClient.client;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var index_exports = {};
25
+ __export(index_exports, { default: () => index_default });
26
+ module.exports = __toCommonJS(index_exports);
27
+ __reExport(index_exports, require("./devServerClient.native.js"), module.exports);
28
+ var import_devServerClient = require("./devServerClient.native.js");
29
+ var index_default = import_devServerClient.client;
@@ -5,30 +5,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
13
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
21
  };
22
22
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
24
- value: true
25
- }), mod);
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
26
24
  var index_exports = {};
27
- __export(index_exports, {
28
- default: () => index_default
29
- });
25
+ __export(index_exports, { default: () => index_default });
30
26
  module.exports = __toCommonJS(index_exports);
31
27
  __reExport(index_exports, require("./devServerClient.native.js"), module.exports);
32
28
  var import_devServerClient = require("./devServerClient.native.js");
33
29
  var index_default = import_devServerClient.client;
30
+
34
31
  //# sourceMappingURL=index.native.js.map