@xfe-repo/web-router 1.2.8 → 1.5.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.
- package/dist/index.js +53 -51
- package/dist/index.mjs +27 -29
- package/package.json +8 -7
package/dist/index.js
CHANGED
|
@@ -94,6 +94,10 @@ function _object_spread(target) {
|
|
|
94
94
|
function _sliced_to_array(arr, i) {
|
|
95
95
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
96
96
|
}
|
|
97
|
+
function _type_of(obj) {
|
|
98
|
+
"@swc/helpers - typeof";
|
|
99
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
100
|
+
}
|
|
97
101
|
function _unsupported_iterable_to_array(o, minLen) {
|
|
98
102
|
if (!o) return;
|
|
99
103
|
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
@@ -103,7 +107,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
103
107
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
104
108
|
}
|
|
105
109
|
function _ts_generator(thisArg, body) {
|
|
106
|
-
var f, y, t,
|
|
110
|
+
var f, y, t, _ = {
|
|
107
111
|
label: 0,
|
|
108
112
|
sent: function() {
|
|
109
113
|
if (t[0] & 1) throw t[1];
|
|
@@ -111,13 +115,17 @@ function _ts_generator(thisArg, body) {
|
|
|
111
115
|
},
|
|
112
116
|
trys: [],
|
|
113
117
|
ops: []
|
|
114
|
-
};
|
|
115
|
-
return g
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
},
|
|
120
|
-
|
|
118
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
119
|
+
return d(g, "next", {
|
|
120
|
+
value: verb(0)
|
|
121
|
+
}), d(g, "throw", {
|
|
122
|
+
value: verb(1)
|
|
123
|
+
}), d(g, "return", {
|
|
124
|
+
value: verb(2)
|
|
125
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
126
|
+
value: function() {
|
|
127
|
+
return this;
|
|
128
|
+
}
|
|
121
129
|
}), g;
|
|
122
130
|
function verb(n) {
|
|
123
131
|
return function(v) {
|
|
@@ -129,7 +137,7 @@ function _ts_generator(thisArg, body) {
|
|
|
129
137
|
}
|
|
130
138
|
function step(op) {
|
|
131
139
|
if (f) throw new TypeError("Generator is already executing.");
|
|
132
|
-
while(_)try {
|
|
140
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
133
141
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
134
142
|
if (y = 0, t) op = [
|
|
135
143
|
op[0] & 2,
|
|
@@ -203,20 +211,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
203
211
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
204
212
|
var __getProtoOf = Object.getPrototypeOf;
|
|
205
213
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
206
|
-
var __export = function(target, all) {
|
|
214
|
+
var __export = function __export(target, all) {
|
|
207
215
|
for(var name in all)__defProp(target, name, {
|
|
208
216
|
get: all[name],
|
|
209
217
|
enumerable: true
|
|
210
218
|
});
|
|
211
219
|
};
|
|
212
|
-
var __copyProps = function(to, from, except, desc) {
|
|
213
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
220
|
+
var __copyProps = function __copyProps(to, from, except, desc) {
|
|
221
|
+
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
214
222
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
215
223
|
try {
|
|
216
224
|
var _loop = function() {
|
|
217
225
|
var key = _step.value;
|
|
218
226
|
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
219
|
-
get: function() {
|
|
227
|
+
get: function get() {
|
|
220
228
|
return from[key];
|
|
221
229
|
},
|
|
222
230
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
@@ -240,10 +248,10 @@ var __copyProps = function(to, from, except, desc) {
|
|
|
240
248
|
}
|
|
241
249
|
return to;
|
|
242
250
|
};
|
|
243
|
-
var __reExport = function(target, mod, secondTarget) {
|
|
251
|
+
var __reExport = function __reExport(target, mod, secondTarget) {
|
|
244
252
|
return __copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default");
|
|
245
253
|
};
|
|
246
|
-
var __toESM = function(mod, isNodeMode, target) {
|
|
254
|
+
var __toESM = function __toESM(mod, isNodeMode, target) {
|
|
247
255
|
return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(// If the importer is in node compatibility mode or this is not an ESM
|
|
248
256
|
// file that has been converted to a CommonJS file using a Babel-
|
|
249
257
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
@@ -253,52 +261,52 @@ var __toESM = function(mod, isNodeMode, target) {
|
|
|
253
261
|
enumerable: true
|
|
254
262
|
}) : target, mod);
|
|
255
263
|
};
|
|
256
|
-
var __toCommonJS = function(mod) {
|
|
264
|
+
var __toCommonJS = function __toCommonJS(mod) {
|
|
257
265
|
return __copyProps(__defProp({}, "__esModule", {
|
|
258
266
|
value: true
|
|
259
267
|
}), mod);
|
|
260
268
|
};
|
|
261
269
|
// src/index.ts
|
|
262
|
-
var
|
|
263
|
-
__export(
|
|
264
|
-
HISTORY_CHANGE_EVENT: function() {
|
|
270
|
+
var index_exports = {};
|
|
271
|
+
__export(index_exports, {
|
|
272
|
+
HISTORY_CHANGE_EVENT: function HISTORY_CHANGE_EVENT1() {
|
|
265
273
|
return HISTORY_CHANGE_EVENT;
|
|
266
274
|
},
|
|
267
|
-
Link: function() {
|
|
275
|
+
Link: function Link1() {
|
|
268
276
|
return Link;
|
|
269
277
|
},
|
|
270
|
-
Router: function() {
|
|
278
|
+
Router: function Router1() {
|
|
271
279
|
return Router;
|
|
272
280
|
},
|
|
273
|
-
createNavigator: function() {
|
|
281
|
+
createNavigator: function createNavigator1() {
|
|
274
282
|
return createNavigator;
|
|
275
283
|
},
|
|
276
|
-
getClientNavigator: function() {
|
|
284
|
+
getClientNavigator: function getClientNavigator1() {
|
|
277
285
|
return getClientNavigator;
|
|
278
286
|
},
|
|
279
|
-
getRoutes: function() {
|
|
287
|
+
getRoutes: function getRoutes1() {
|
|
280
288
|
return getRoutes;
|
|
281
289
|
},
|
|
282
|
-
initHistoryInterceptor: function() {
|
|
290
|
+
initHistoryInterceptor: function initHistoryInterceptor1() {
|
|
283
291
|
return initHistoryInterceptor;
|
|
284
292
|
},
|
|
285
|
-
isHistoryIntercepted: function() {
|
|
293
|
+
isHistoryIntercepted: function isHistoryIntercepted1() {
|
|
286
294
|
return isHistoryIntercepted;
|
|
287
295
|
},
|
|
288
|
-
onHistoryChange: function() {
|
|
296
|
+
onHistoryChange: function onHistoryChange1() {
|
|
289
297
|
return onHistoryChange;
|
|
290
298
|
},
|
|
291
|
-
routerDynamicRegx: function() {
|
|
299
|
+
routerDynamicRegx: function routerDynamicRegx1() {
|
|
292
300
|
return routerDynamicRegx;
|
|
293
301
|
},
|
|
294
|
-
routerIndexRegx: function() {
|
|
302
|
+
routerIndexRegx: function routerIndexRegx1() {
|
|
295
303
|
return routerIndexRegx;
|
|
296
304
|
},
|
|
297
|
-
routerReady: function() {
|
|
305
|
+
routerReady: function routerReady1() {
|
|
298
306
|
return routerReady;
|
|
299
307
|
}
|
|
300
308
|
});
|
|
301
|
-
module.exports = __toCommonJS(
|
|
309
|
+
module.exports = __toCommonJS(index_exports);
|
|
302
310
|
var import_component2 = require("@loadable/component");
|
|
303
311
|
var import_history = require("history");
|
|
304
312
|
var import_react_router_dom3 = require("react-router-dom");
|
|
@@ -341,7 +349,7 @@ function initHistoryInterceptor() {
|
|
|
341
349
|
originalReplaceState.call(this, state, unused, url);
|
|
342
350
|
dispatchHistoryChangeEvent(createEventDetail("replaceState", state));
|
|
343
351
|
};
|
|
344
|
-
var handlePopState = function() {
|
|
352
|
+
var handlePopState = function handlePopState() {
|
|
345
353
|
dispatchHistoryChangeEvent(createEventDetail("popstate", history.state));
|
|
346
354
|
};
|
|
347
355
|
window.addEventListener("popstate", handlePopState);
|
|
@@ -363,7 +371,7 @@ function isHistoryIntercepted() {
|
|
|
363
371
|
return isIntercepted;
|
|
364
372
|
}
|
|
365
373
|
function onHistoryChange(callback) {
|
|
366
|
-
var handler = function(event) {
|
|
374
|
+
var handler = function handler(event) {
|
|
367
375
|
var customEvent = event;
|
|
368
376
|
callback(customEvent.detail);
|
|
369
377
|
};
|
|
@@ -373,7 +381,7 @@ function onHistoryChange(callback) {
|
|
|
373
381
|
};
|
|
374
382
|
}
|
|
375
383
|
// src/index.ts
|
|
376
|
-
__reExport(
|
|
384
|
+
__reExport(index_exports, require("react-router-dom"), module.exports);
|
|
377
385
|
// src/Link.tsx
|
|
378
386
|
var import_react = require("react");
|
|
379
387
|
var import_react_router_dom = require("react-router-dom");
|
|
@@ -385,7 +393,7 @@ var Link = (0, import_react.memo)(function(props) {
|
|
|
385
393
|
return getClientNavigator();
|
|
386
394
|
}, []);
|
|
387
395
|
if (/http(s)?:\/{2}/.test(to)) {
|
|
388
|
-
var handleLink = function(e) {
|
|
396
|
+
var handleLink = function handleLink(e) {
|
|
389
397
|
if (e.ctrlKey || e.metaKey) return;
|
|
390
398
|
e.preventDefault();
|
|
391
399
|
if (target === "_blank") {
|
|
@@ -403,8 +411,8 @@ var Link = (0, import_react.memo)(function(props) {
|
|
|
403
411
|
});
|
|
404
412
|
}
|
|
405
413
|
if (preload) {
|
|
406
|
-
var handleLink1 = function() {
|
|
407
|
-
|
|
414
|
+
var handleLink1 = function handleLink(e) {
|
|
415
|
+
return _async_to_generator(function() {
|
|
408
416
|
return _ts_generator(this, function(_state) {
|
|
409
417
|
switch(_state.label){
|
|
410
418
|
case 0:
|
|
@@ -423,11 +431,8 @@ var Link = (0, import_react.memo)(function(props) {
|
|
|
423
431
|
];
|
|
424
432
|
}
|
|
425
433
|
});
|
|
426
|
-
});
|
|
427
|
-
|
|
428
|
-
return _ref.apply(this, arguments);
|
|
429
|
-
};
|
|
430
|
-
}();
|
|
434
|
+
})();
|
|
435
|
+
};
|
|
431
436
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
|
|
432
437
|
href: to,
|
|
433
438
|
onClick: handleLink1,
|
|
@@ -482,7 +487,7 @@ var Router = (0, import_react2.memo)(function(props) {
|
|
|
482
487
|
var import_component = __toESM(require("@loadable/component"));
|
|
483
488
|
var routerIndexRegx = /^(?!.*component)(.*)?\/index(\[[^.]+])?\.(ts|js)x?$/;
|
|
484
489
|
var routerDynamicRegx = /\[([^.]+)]/;
|
|
485
|
-
var getRoutes = function(config) {
|
|
490
|
+
var getRoutes = function getRoutes(config) {
|
|
486
491
|
var pagesIndexPath = config.pagesIndexPath, getRoutePath = config.getRoutePath, getPageComponents = config.getPageComponents, fallback = config.fallback;
|
|
487
492
|
var routes = [];
|
|
488
493
|
pagesIndexPath.forEach(function(pageIndexPath) {
|
|
@@ -522,8 +527,8 @@ function createNavigator(options) {
|
|
|
522
527
|
originHistory = (0, import_history.createHashHistory)();
|
|
523
528
|
}
|
|
524
529
|
_navigator = originHistory;
|
|
525
|
-
_navigator.preload = function() {
|
|
526
|
-
|
|
530
|
+
_navigator.preload = function(path, isReplace, query) {
|
|
531
|
+
return _async_to_generator(function() {
|
|
527
532
|
var _, _this, _path_split, tmp, originPath, tmp1, search, matchPath, currentRoute, _pageModule_default_emitOnLoad, _pageModule_default, pageModule, _currentRoute_Component_emitOnLoad, _currentRoute_Component;
|
|
528
533
|
return _ts_generator(this, function(_state) {
|
|
529
534
|
switch(_state.label){
|
|
@@ -580,14 +585,11 @@ function createNavigator(options) {
|
|
|
580
585
|
];
|
|
581
586
|
}
|
|
582
587
|
});
|
|
583
|
-
});
|
|
584
|
-
|
|
585
|
-
return _ref.apply(this, arguments);
|
|
586
|
-
};
|
|
587
|
-
}();
|
|
588
|
+
})();
|
|
589
|
+
};
|
|
588
590
|
return _navigator;
|
|
589
591
|
}
|
|
590
|
-
var getClientNavigator = function() {
|
|
592
|
+
var getClientNavigator = function getClientNavigator() {
|
|
591
593
|
return _navigator;
|
|
592
594
|
};
|
|
593
595
|
var routerReady = import_component2.loadableReady;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
1
|
function _array_like_to_array(arr, len) {
|
|
3
2
|
if (len == null || len > arr.length) len = arr.length;
|
|
4
3
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -103,7 +102,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
103
102
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
104
103
|
}
|
|
105
104
|
function _ts_generator(thisArg, body) {
|
|
106
|
-
var f, y, t,
|
|
105
|
+
var f, y, t, _ = {
|
|
107
106
|
label: 0,
|
|
108
107
|
sent: function() {
|
|
109
108
|
if (t[0] & 1) throw t[1];
|
|
@@ -111,13 +110,17 @@ function _ts_generator(thisArg, body) {
|
|
|
111
110
|
},
|
|
112
111
|
trys: [],
|
|
113
112
|
ops: []
|
|
114
|
-
};
|
|
115
|
-
return g
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
},
|
|
120
|
-
|
|
113
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
114
|
+
return d(g, "next", {
|
|
115
|
+
value: verb(0)
|
|
116
|
+
}), d(g, "throw", {
|
|
117
|
+
value: verb(1)
|
|
118
|
+
}), d(g, "return", {
|
|
119
|
+
value: verb(2)
|
|
120
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
121
|
+
value: function() {
|
|
122
|
+
return this;
|
|
123
|
+
}
|
|
121
124
|
}), g;
|
|
122
125
|
function verb(n) {
|
|
123
126
|
return function(v) {
|
|
@@ -129,7 +132,7 @@ function _ts_generator(thisArg, body) {
|
|
|
129
132
|
}
|
|
130
133
|
function step(op) {
|
|
131
134
|
if (f) throw new TypeError("Generator is already executing.");
|
|
132
|
-
while(_)try {
|
|
135
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
133
136
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
134
137
|
if (y = 0, t) op = [
|
|
135
138
|
op[0] & 2,
|
|
@@ -197,6 +200,7 @@ function _ts_generator(thisArg, body) {
|
|
|
197
200
|
};
|
|
198
201
|
}
|
|
199
202
|
}
|
|
203
|
+
// src/index.ts
|
|
200
204
|
import { loadableReady } from "@loadable/component";
|
|
201
205
|
import { createBrowserHistory, createHashHistory, createMemoryHistory } from "history";
|
|
202
206
|
import { matchRoutes } from "react-router-dom";
|
|
@@ -239,7 +243,7 @@ function initHistoryInterceptor() {
|
|
|
239
243
|
originalReplaceState.call(this, state, unused, url);
|
|
240
244
|
dispatchHistoryChangeEvent(createEventDetail("replaceState", state));
|
|
241
245
|
};
|
|
242
|
-
var handlePopState = function() {
|
|
246
|
+
var handlePopState = function handlePopState() {
|
|
243
247
|
dispatchHistoryChangeEvent(createEventDetail("popstate", history.state));
|
|
244
248
|
};
|
|
245
249
|
window.addEventListener("popstate", handlePopState);
|
|
@@ -261,7 +265,7 @@ function isHistoryIntercepted() {
|
|
|
261
265
|
return isIntercepted;
|
|
262
266
|
}
|
|
263
267
|
function onHistoryChange(callback) {
|
|
264
|
-
var handler = function(event) {
|
|
268
|
+
var handler = function handler(event) {
|
|
265
269
|
var customEvent = event;
|
|
266
270
|
callback(customEvent.detail);
|
|
267
271
|
};
|
|
@@ -283,7 +287,7 @@ var Link = memo(function(props) {
|
|
|
283
287
|
return getClientNavigator();
|
|
284
288
|
}, []);
|
|
285
289
|
if (/http(s)?:\/{2}/.test(to)) {
|
|
286
|
-
var handleLink = function(e) {
|
|
290
|
+
var handleLink = function handleLink(e) {
|
|
287
291
|
if (e.ctrlKey || e.metaKey) return;
|
|
288
292
|
e.preventDefault();
|
|
289
293
|
if (target === "_blank") {
|
|
@@ -301,8 +305,8 @@ var Link = memo(function(props) {
|
|
|
301
305
|
});
|
|
302
306
|
}
|
|
303
307
|
if (preload) {
|
|
304
|
-
var handleLink1 = function() {
|
|
305
|
-
|
|
308
|
+
var handleLink1 = function handleLink(e) {
|
|
309
|
+
return _async_to_generator(function() {
|
|
306
310
|
return _ts_generator(this, function(_state) {
|
|
307
311
|
switch(_state.label){
|
|
308
312
|
case 0:
|
|
@@ -321,11 +325,8 @@ var Link = memo(function(props) {
|
|
|
321
325
|
];
|
|
322
326
|
}
|
|
323
327
|
});
|
|
324
|
-
});
|
|
325
|
-
|
|
326
|
-
return _ref.apply(this, arguments);
|
|
327
|
-
};
|
|
328
|
-
}();
|
|
328
|
+
})();
|
|
329
|
+
};
|
|
329
330
|
return /* @__PURE__ */ jsx("a", {
|
|
330
331
|
href: to,
|
|
331
332
|
onClick: handleLink1,
|
|
@@ -380,7 +381,7 @@ var Router = memo2(function(props) {
|
|
|
380
381
|
import loadable from "@loadable/component";
|
|
381
382
|
var routerIndexRegx = /^(?!.*component)(.*)?\/index(\[[^.]+])?\.(ts|js)x?$/;
|
|
382
383
|
var routerDynamicRegx = /\[([^.]+)]/;
|
|
383
|
-
var getRoutes = function(config) {
|
|
384
|
+
var getRoutes = function getRoutes(config) {
|
|
384
385
|
var pagesIndexPath = config.pagesIndexPath, getRoutePath = config.getRoutePath, getPageComponents = config.getPageComponents, fallback = config.fallback;
|
|
385
386
|
var routes = [];
|
|
386
387
|
pagesIndexPath.forEach(function(pageIndexPath) {
|
|
@@ -420,8 +421,8 @@ function createNavigator(options) {
|
|
|
420
421
|
originHistory = createHashHistory();
|
|
421
422
|
}
|
|
422
423
|
_navigator = originHistory;
|
|
423
|
-
_navigator.preload = function() {
|
|
424
|
-
|
|
424
|
+
_navigator.preload = function(path, isReplace, query) {
|
|
425
|
+
return _async_to_generator(function() {
|
|
425
426
|
var _matchRoutes_, _matchRoutes, _path_split, tmp, originPath, tmp1, search, matchPath, currentRoute, _pageModule_default_emitOnLoad, _pageModule_default, pageModule, _currentRoute_Component_emitOnLoad, _currentRoute_Component;
|
|
426
427
|
return _ts_generator(this, function(_state) {
|
|
427
428
|
switch(_state.label){
|
|
@@ -478,14 +479,11 @@ function createNavigator(options) {
|
|
|
478
479
|
];
|
|
479
480
|
}
|
|
480
481
|
});
|
|
481
|
-
});
|
|
482
|
-
|
|
483
|
-
return _ref.apply(this, arguments);
|
|
484
|
-
};
|
|
485
|
-
}();
|
|
482
|
+
})();
|
|
483
|
+
};
|
|
486
484
|
return _navigator;
|
|
487
485
|
}
|
|
488
|
-
var getClientNavigator = function() {
|
|
486
|
+
var getClientNavigator = function getClientNavigator() {
|
|
489
487
|
return _navigator;
|
|
490
488
|
};
|
|
491
489
|
var routerReady = loadableReady;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xfe-repo/web-router",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,14 +26,15 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/loadable__component": "^5.13.9",
|
|
29
|
-
"@types/node": "^20.
|
|
29
|
+
"@types/node": "^20.17.0",
|
|
30
30
|
"@types/react": "^18",
|
|
31
|
-
"
|
|
32
|
-
"@xfe-repo/typescript-config": "
|
|
33
|
-
"@xfe-repo/
|
|
31
|
+
"eslint": "8.57.1",
|
|
32
|
+
"@xfe-repo/typescript-config": "1.5.1",
|
|
33
|
+
"@xfe-repo/web-register": "1.5.1",
|
|
34
|
+
"@xfe-repo/eslint-config": "1.5.1"
|
|
34
35
|
},
|
|
35
36
|
"peerDependencies": {
|
|
36
|
-
"@xfe-repo/web-utils": "1.
|
|
37
|
+
"@xfe-repo/web-utils": "1.5.1"
|
|
37
38
|
},
|
|
38
39
|
"publishConfig": {
|
|
39
40
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,7 +42,7 @@
|
|
|
41
42
|
"scripts": {
|
|
42
43
|
"build": "tsup",
|
|
43
44
|
"dev": "tsup --watch",
|
|
44
|
-
"lint": "eslint \"src/**/*.ts*\"",
|
|
45
|
+
"lint": "eslint \"src/**/*.ts*\" --fix",
|
|
45
46
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
|
46
47
|
}
|
|
47
48
|
}
|