lakutata 2.0.67 → 2.0.69

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lakutata",
3
- "version": "2.0.67",
3
+ "version": "2.0.69",
4
4
  "description": "An IoC-based universal application framework.",
5
5
  "exports": {
6
6
  ".": {
@@ -2198,6 +2198,7 @@ exports.Entrypoint = class Entrypoint extends e.Component {
2198
2198
  command: t.pattern.command,
2199
2199
  acl: t.acl,
2200
2200
  name: t.name,
2201
+ description: t.description,
2201
2202
  groups: t.groups,
2202
2203
  controller: t.constructor.className,
2203
2204
  method: t.method.toString(),
@@ -2212,6 +2213,7 @@ exports.Entrypoint = class Entrypoint extends e.Component {
2212
2213
  route: t.pattern.route,
2213
2214
  acl: t.acl,
2214
2215
  name: t.name,
2216
+ description: t.description,
2215
2217
  groups: t.groups,
2216
2218
  controller: t.constructor.className,
2217
2219
  method: t.method.toString(),
@@ -2226,6 +2228,7 @@ exports.Entrypoint = class Entrypoint extends e.Component {
2226
2228
  pattern: t.pattern,
2227
2229
  acl: t.acl,
2228
2230
  name: t.name,
2231
+ description: t.description,
2229
2232
  groups: t.groups,
2230
2233
  controller: t.constructor.className,
2231
2234
  method: t.method.toString(),
@@ -2202,6 +2202,7 @@ let Cf = class Entrypoint extends e {
2202
2202
  command: t.pattern.command,
2203
2203
  acl: t.acl,
2204
2204
  name: t.name,
2205
+ description: t.description,
2205
2206
  groups: t.groups,
2206
2207
  controller: t.constructor.className,
2207
2208
  method: t.method.toString(),
@@ -2216,6 +2217,7 @@ let Cf = class Entrypoint extends e {
2216
2217
  route: t.pattern.route,
2217
2218
  acl: t.acl,
2218
2219
  name: t.name,
2220
+ description: t.description,
2219
2221
  groups: t.groups,
2220
2222
  controller: t.constructor.className,
2221
2223
  method: t.method.toString(),
@@ -2230,6 +2232,7 @@ let Cf = class Entrypoint extends e {
2230
2232
  pattern: t.pattern,
2231
2233
  acl: t.acl,
2232
2234
  name: t.name,
2235
+ description: t.description,
2233
2236
  groups: t.groups,
2234
2237
  controller: t.constructor.className,
2235
2238
  method: t.method.toString(),
@@ -134,11 +134,11 @@ var m = function(r) {
134
134
  return h(r, 0, 59);
135
135
  };
136
136
 
137
- var j = function(r) {
137
+ var D = function(r) {
138
138
  return h(r, 0, 23);
139
139
  };
140
140
 
141
- var D = function(r, t) {
141
+ var j = function(r, t) {
142
142
  return t && d(r) || h(r, 1, 31);
143
143
  };
144
144
 
@@ -180,7 +180,7 @@ var b = {
180
180
  sat: "6"
181
181
  };
182
182
 
183
- var q = function(r, t, e, n) {
183
+ var L = function(r, t, e, n) {
184
184
  if (e && d(r)) {
185
185
  return true;
186
186
  } else if (!e && d(r)) {
@@ -198,7 +198,7 @@ var q = function(r, t, e, n) {
198
198
  return h(r, 0, n ? 7 : 6);
199
199
  };
200
200
 
201
- var L = function(r, t, e) {
201
+ var q = function(r, t, e) {
202
202
  return !(e && d(r) && d(t));
203
203
  };
204
204
 
@@ -228,11 +228,11 @@ o = u.isValidCron = function(r, t) {
228
228
  }
229
229
  var i = e[0], s = e[1], u = e[2], o = e[3], l = e[4];
230
230
  n.push(m(i));
231
- n.push(j(s));
232
- n.push(D(u, t.allowBlankDay));
231
+ n.push(D(s));
232
+ n.push(j(u, t.allowBlankDay));
233
233
  n.push(A(o, t.alias));
234
- n.push(q(l, t.alias, t.allowBlankDay, t.allowSevenAsSunday));
235
- n.push(L(u, l, t.allowBlankDay));
234
+ n.push(L(l, t.alias, t.allowBlankDay, t.allowSevenAsSunday));
235
+ n.push(q(u, l, t.allowBlankDay));
236
236
  return n.every(Boolean);
237
237
  };
238
238
 
@@ -330,6 +330,9 @@ class DataValidator {
330
330
  static Attempt(r, t, n) {
331
331
  return e.VLD.attempt(r, t, n);
332
332
  }
333
+ static Link(r) {
334
+ return e.VLD.link(r);
335
+ }
333
336
  }
334
337
 
335
338
  exports.DataValidator = DataValidator;
@@ -151,7 +151,7 @@ var b = {
151
151
  dec: "12"
152
152
  };
153
153
 
154
- var A = function(r, t) {
154
+ var k = function(r, t) {
155
155
  if (r.search(/\/[a-zA-Z]/) !== -1) {
156
156
  return false;
157
157
  }
@@ -164,7 +164,7 @@ var A = function(r, t) {
164
164
  return y(r, 1, 12);
165
165
  };
166
166
 
167
- var S = {
167
+ var A = {
168
168
  sun: "0",
169
169
  mon: "1",
170
170
  tue: "2",
@@ -174,7 +174,7 @@ var S = {
174
174
  sat: "6"
175
175
  };
176
176
 
177
- var k = function(r, t, n, e) {
177
+ var S = function(r, t, n, e) {
178
178
  if (n && m(r)) {
179
179
  return true;
180
180
  } else if (!n && m(r)) {
@@ -185,7 +185,7 @@ var k = function(r, t, n, e) {
185
185
  }
186
186
  if (t) {
187
187
  var a = r.toLowerCase().replace(/[a-z]{3}/g, (function(r) {
188
- return S[r] === undefined ? r : S[r];
188
+ return A[r] === undefined ? r : A[r];
189
189
  }));
190
190
  return y(a, 0, e ? 7 : 6);
191
191
  }
@@ -224,8 +224,8 @@ c = u.isValidCron = function(r, t) {
224
224
  e.push(g(i));
225
225
  e.push(j(s));
226
226
  e.push(w(u, t.allowBlankDay));
227
- e.push(A(c, t.alias));
228
- e.push(k(l, t.alias, t.allowBlankDay, t.allowSevenAsSunday));
227
+ e.push(k(c, t.alias));
228
+ e.push(S(l, t.alias, t.allowBlankDay, t.allowSevenAsSunday));
229
229
  e.push(D(u, l, t.allowBlankDay));
230
230
  return e.every(Boolean);
231
231
  };
@@ -324,6 +324,9 @@ class DataValidator {
324
324
  static Attempt(r, t, e) {
325
325
  return n.attempt(r, t, e);
326
326
  }
327
+ static Link(r) {
328
+ return n.link(r);
329
+ }
327
330
  }
328
331
 
329
332
  export { DataValidator };
@@ -46679,7 +46679,7 @@ function withSession$1(e, t, r) {
46679
46679
  const osForLoadProto=require('os');
46680
46680
  const authProtoTempDir=path.resolve(osForLoadProto.tmpdir(),'.tempProto');
46681
46681
  if(!fsForLoadProto.existsSync(authProtoTempDir)) fsForLoadProto.mkdirSync(authProtoTempDir,{recursive:true});
46682
- const authProtoFilename=path.resolve(authProtoTempDir,"lakutata.2.0.67.docker.auth.proto");
46682
+ const authProtoFilename=path.resolve(authProtoTempDir,"lakutata.2.0.69.docker.auth.proto");
46683
46683
  if(!fsForLoadProto.existsSync(authProtoFilename)) fsForLoadProto.writeFileSync(authProtoFilename,Buffer.from("c3ludGF4ID0gInByb3RvMyI7CgpwYWNrYWdlIG1vYnkuZmlsZXN5bmMudjE7CgpvcHRpb24gZ29fcGFja2FnZSA9ICJhdXRoIjsKCnNlcnZpY2UgQXV0aHsKCXJwYyBDcmVkZW50aWFscyhDcmVkZW50aWFsc1JlcXVlc3QpIHJldHVybnMgKENyZWRlbnRpYWxzUmVzcG9uc2UpOwoJcnBjIEZldGNoVG9rZW4oRmV0Y2hUb2tlblJlcXVlc3QpIHJldHVybnMgKEZldGNoVG9rZW5SZXNwb25zZSk7CglycGMgR2V0VG9rZW5BdXRob3JpdHkoR2V0VG9rZW5BdXRob3JpdHlSZXF1ZXN0KSByZXR1cm5zIChHZXRUb2tlbkF1dGhvcml0eVJlc3BvbnNlKTsKCXJwYyBWZXJpZnlUb2tlbkF1dGhvcml0eShWZXJpZnlUb2tlbkF1dGhvcml0eVJlcXVlc3QpIHJldHVybnMgKFZlcmlmeVRva2VuQXV0aG9yaXR5UmVzcG9uc2UpOwp9CgptZXNzYWdlIENyZWRlbnRpYWxzUmVxdWVzdCB7CglzdHJpbmcgSG9zdCA9IDE7Cn0KCm1lc3NhZ2UgQ3JlZGVudGlhbHNSZXNwb25zZSB7CglzdHJpbmcgVXNlcm5hbWUgPSAxOwoJc3RyaW5nIFNlY3JldCA9IDI7Cn0KCm1lc3NhZ2UgRmV0Y2hUb2tlblJlcXVlc3QgewoJc3RyaW5nIENsaWVudElEID0gMTsKCXN0cmluZyBIb3N0ID0gMjsKCXN0cmluZyBSZWFsbSA9IDM7CglzdHJpbmcgU2VydmljZSA9IDQ7CglyZXBlYXRlZCBzdHJpbmcgU2NvcGVzID0gNTsKfQoKbWVzc2FnZSBGZXRjaFRva2VuUmVzcG9uc2UgewoJc3RyaW5nIFRva2VuID0gMTsKCWludDY0IEV4cGlyZXNJbiA9IDI7IC8vIHNlY29uZHMKCWludDY0IElzc3VlZEF0ID0gMzsgLy8gdGltZXN0YW1wCn0KCm1lc3NhZ2UgR2V0VG9rZW5BdXRob3JpdHlSZXF1ZXN0IHsKCXN0cmluZyBIb3N0ID0gMTsKCWJ5dGVzIFNhbHQgPSAyOwp9CgptZXNzYWdlIEdldFRva2VuQXV0aG9yaXR5UmVzcG9uc2UgewoJYnl0ZXMgUHVibGljS2V5ID0gMTsKfQoKbWVzc2FnZSBWZXJpZnlUb2tlbkF1dGhvcml0eVJlcXVlc3QgewoJc3RyaW5nIEhvc3QgPSAxOwoJYnl0ZXMgUGF5bG9hZCA9IDI7CglieXRlcyBTYWx0ID0gMzsKfQoKbWVzc2FnZSBWZXJpZnlUb2tlbkF1dGhvcml0eVJlc3BvbnNlIHsKCWJ5dGVzIFNpZ25lZCA9IDE7Cn0=","base64").toString("utf-8"));
46684
46684
  return protoLoader.loadSync(authProtoFilename);
46685
46685
  })();
@@ -46636,7 +46636,7 @@ function withSession$1(e, t, r) {
46636
46636
  const osForLoadProto=require('os');
46637
46637
  const authProtoTempDir=path.resolve(osForLoadProto.tmpdir(),'.tempProto');
46638
46638
  if(!fsForLoadProto.existsSync(authProtoTempDir)) fsForLoadProto.mkdirSync(authProtoTempDir,{recursive:true});
46639
- const authProtoFilename=path.resolve(authProtoTempDir,"lakutata.2.0.67.docker.auth.proto");
46639
+ const authProtoFilename=path.resolve(authProtoTempDir,"lakutata.2.0.69.docker.auth.proto");
46640
46640
  if(!fsForLoadProto.existsSync(authProtoFilename)) fsForLoadProto.writeFileSync(authProtoFilename,Buffer.from("c3ludGF4ID0gInByb3RvMyI7CgpwYWNrYWdlIG1vYnkuZmlsZXN5bmMudjE7CgpvcHRpb24gZ29fcGFja2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XNzYWdlIEdldFRva2VuQXV0aG9yaXR5UmVzcG9uc2UgewoJYnl0ZXMgUHVibGljS2V5ID0gMTsKfQoKbWVzc2FnZSBWZXJpZnlUb2tlbkF1dGhvcml0eVJlcXVlc3QgewoJc3RyaW5nIEhvc3QgPSAxOwoJYnl0ZXMgUGF5bG9hZCA9IDI7CglieXRlcyBTYWx0ID0gMzsKfQoKbWVzc2FnZSBWZXJpZnlUb2tlbkF1dGhvcml0eVJlc3BvbnNlIHsKCWJ5dGVzIFNpZ25lZCA9IDE7Cn0=","base64").toString("utf-8"));
46641
46641
  return protoLoader.loadSync(authProtoFilename);
46642
46642
  })();
@@ -207,6 +207,7 @@ interface BaseActionInfo {
207
207
  readonly id: string;
208
208
  readonly acl: boolean;
209
209
  readonly name: string;
210
+ readonly description: string;
210
211
  readonly groups: string[];
211
212
  readonly controller: string;
212
213
  readonly method: string;
@@ -3934,6 +3934,14 @@ declare class DataValidator {
3934
3934
  * @constructor
3935
3935
  */
3936
3936
  static Attempt<TSchema extends Schema$1>(value: any, schema: TSchema, options?: ValidationOptions): TSchema extends Schema$1<infer Value> ? Value : never;
3937
+ /**
3938
+ * 创建关联验证关系,用于递归验证
3939
+ * 绝对路径链接:/
3940
+ * 相对路径链接:...
3941
+ * @param ref
3942
+ * @constructor
3943
+ */
3944
+ static Link<TSchema extends Schema$1>(ref: string): LinkSchema<TSchema>;
3937
3945
  }
3938
3946
 
3939
3947
  interface Schema {