@freelog/tools-lib 0.1.145 → 0.1.146

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.
@@ -99,8 +99,9 @@ interface NodeCreateSuccessParamsType {
99
99
  export declare function nodeCreateSuccess({ nodeID }: NodeCreateSuccessParamsType): string;
100
100
  interface InvitationParamsType {
101
101
  goTo?: string;
102
+ invitationCode?: string;
102
103
  }
103
- export declare function invitation({ ...params }?: InvitationParamsType): string;
104
+ export declare function invitation({ goTo, ...params }?: InvitationParamsType): string;
104
105
  interface Exception403ParamsType {
105
106
  from?: string;
106
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.145",
3
+ "version": "0.1.146",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -230,15 +230,17 @@ export function nodeCreateSuccess({nodeID}: NodeCreateSuccessParamsType) {
230
230
  return `/result/node/create/success/${nodeID}`;
231
231
  }
232
232
 
233
- // 节点创建成功
233
+ // 内测资格申请
234
234
  interface InvitationParamsType {
235
235
  goTo?: string;
236
+ invitationCode?: string;
236
237
  }
237
238
 
238
- export function invitation({...params}: InvitationParamsType = {}) {
239
+ export function invitation({goTo, ...params}: InvitationParamsType = {}) {
239
240
  // console.log(params.goTo, 'goTo9iowjefklsdj;flksdjflk')
240
241
  return `/invitation${handleQuery({
241
- returnUrl: params.goTo ? encodeURIComponent(params.goTo) : undefined,
242
+ ...params,
243
+ returnUrl: goTo ? encodeURIComponent(goTo) : undefined,
242
244
  })}`;
243
245
  }
244
246