@xfe-repo/mini-router 0.0.5 → 0.0.7
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +34 -2
- package/dist/index.mjs +1 -0
- package/package.json +5 -4
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -28,6 +28,34 @@ function _async_to_generator(fn) {
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
+
function _define_property(obj, key, value) {
|
|
32
|
+
if (key in obj) {
|
|
33
|
+
Object.defineProperty(obj, key, {
|
|
34
|
+
value: value,
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true
|
|
38
|
+
});
|
|
39
|
+
} else {
|
|
40
|
+
obj[key] = value;
|
|
41
|
+
}
|
|
42
|
+
return obj;
|
|
43
|
+
}
|
|
44
|
+
function _object_spread(target) {
|
|
45
|
+
for(var i = 1; i < arguments.length; i++){
|
|
46
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
47
|
+
var ownKeys = Object.keys(source);
|
|
48
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
49
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
50
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
53
|
+
ownKeys.forEach(function(key) {
|
|
54
|
+
_define_property(target, key, source[key]);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return target;
|
|
58
|
+
}
|
|
31
59
|
function _ts_generator(thisArg, body) {
|
|
32
60
|
var f, y, t, g, _ = {
|
|
33
61
|
label: 0,
|
|
@@ -166,6 +194,9 @@ var __copyProps = function(to, from, except, desc) {
|
|
|
166
194
|
}
|
|
167
195
|
return to;
|
|
168
196
|
};
|
|
197
|
+
var __reExport = function(target, mod, secondTarget) {
|
|
198
|
+
return __copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default");
|
|
199
|
+
};
|
|
169
200
|
var __toESM = function(mod, isNodeMode, target) {
|
|
170
201
|
return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(// If the importer is in node compatibility mode or this is not an ESM
|
|
171
202
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -247,6 +278,7 @@ var getHomePage = function() {
|
|
|
247
278
|
return getTabBarPages()[0] || "/pages/home/index";
|
|
248
279
|
};
|
|
249
280
|
// src/index.ts
|
|
281
|
+
__reExport(src_exports, require("@tarojs/router"), module.exports);
|
|
250
282
|
var asyncNavigateTo = function() {
|
|
251
283
|
var _ref = _async_to_generator(function(path) {
|
|
252
284
|
var replace, result, hasAppNativePage, targetPage, tabBarPages;
|
|
@@ -379,7 +411,7 @@ var navigateBack = function() {
|
|
|
379
411
|
};
|
|
380
412
|
}();
|
|
381
413
|
// Annotate the CommonJS export names for ESM import in node:
|
|
382
|
-
0 && (module.exports = {
|
|
414
|
+
0 && (module.exports = _object_spread({
|
|
383
415
|
asyncNavigateTo: asyncNavigateTo,
|
|
384
416
|
formatPath: formatPath,
|
|
385
417
|
getAllPages: getAllPages,
|
|
@@ -388,4 +420,4 @@ var navigateBack = function() {
|
|
|
388
420
|
getTabBarPages: getTabBarPages,
|
|
389
421
|
navigateBack: navigateBack,
|
|
390
422
|
navigateTo: navigateTo
|
|
391
|
-
});
|
|
423
|
+
}, require("@tarojs/router")));
|
package/dist/index.mjs
CHANGED
|
@@ -160,6 +160,7 @@ var getHomePage = function() {
|
|
|
160
160
|
return getTabBarPages()[0] || "/pages/home/index";
|
|
161
161
|
};
|
|
162
162
|
// src/index.ts
|
|
163
|
+
export * from "@tarojs/router";
|
|
163
164
|
var asyncNavigateTo = function() {
|
|
164
165
|
var _ref = _async_to_generator(function(path) {
|
|
165
166
|
var replace, result, hasAppNativePage, targetPage, tabBarPages;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xfe-repo/mini-router",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,14 +20,15 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@tarojs/router": "4.0.8",
|
|
23
24
|
"query-string": "^7.1.3",
|
|
24
25
|
"@xfe-repo/mini-utils": "0.0.7",
|
|
25
|
-
"@xfe-repo/web-utils": "1.3.
|
|
26
|
+
"@xfe-repo/web-utils": "1.3.9"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
29
|
"@types/node": "^20.16.5",
|
|
29
|
-
"@xfe-repo/
|
|
30
|
-
"@xfe-repo/
|
|
30
|
+
"@xfe-repo/eslint-config": "0.0.5",
|
|
31
|
+
"@xfe-repo/typescript-config": "0.0.6"
|
|
31
32
|
},
|
|
32
33
|
"peerDependencies": {
|
|
33
34
|
"@tarojs/taro": "4.0.8"
|