@xfe-repo/web-register 1.3.1 → 1.3.2

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.ts CHANGED
@@ -18,7 +18,7 @@ type CreateOptions<ExtendConfig = null, ExtendContext = null, P = any> = {
18
18
  getQuery?: (context: RegisterContext<ExtendContext, P>) => string | Partial<Record<string, string>>;
19
19
  };
20
20
  type ORegisterConfig = {
21
- name: string;
21
+ name?: string;
22
22
  onLoad?: (context: RegisterContext) => Promise<any>;
23
23
  onLeave?: (context: ORegisterContext) => Promise<boolean>;
24
24
  };
package/dist/index.js CHANGED
@@ -399,7 +399,7 @@ var createRegisterComponent = function(config, getContext, WrappedComponent) {
399
399
  if (needLoad && LoadFullback) content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoadFullback, {});
400
400
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
401
401
  children: [
402
- renderTitle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_helmet.Helmet, {
402
+ renderTitle && name && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_helmet.Helmet, {
403
403
  title: renderTitle(name, context)
404
404
  }),
405
405
  content
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/web-register",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "sideEffects": false,
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,6 +20,9 @@
20
20
  "@xfe-repo/eslint-config": "0.0.5",
21
21
  "@xfe-repo/typescript-config": "0.0.6"
22
22
  },
23
+ "publishConfig": {
24
+ "registry": "https://registry.npmjs.org/"
25
+ },
23
26
  "scripts": {
24
27
  "build": "tsup",
25
28
  "dev": "tsup --watch",