@modern-js/bff-generator 3.7.26 → 3.7.28

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -539
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -75157,542 +75157,6 @@ var require_lodash7 = __commonJS({
75157
75157
  }
75158
75158
  });
75159
75159
 
75160
- // ../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js
75161
- var require_common3 = __commonJS({
75162
- "../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/common.js"(exports, module2) {
75163
- "use strict";
75164
- function setup(env) {
75165
- createDebug.debug = createDebug;
75166
- createDebug.default = createDebug;
75167
- createDebug.coerce = coerce;
75168
- createDebug.disable = disable;
75169
- createDebug.enable = enable;
75170
- createDebug.enabled = enabled;
75171
- createDebug.humanize = require_ms();
75172
- createDebug.destroy = destroy;
75173
- Object.keys(env).forEach((key2) => {
75174
- createDebug[key2] = env[key2];
75175
- });
75176
- createDebug.names = [];
75177
- createDebug.skips = [];
75178
- createDebug.formatters = {};
75179
- function selectColor(namespace) {
75180
- let hash = 0;
75181
- for (let i = 0; i < namespace.length; i++) {
75182
- hash = (hash << 5) - hash + namespace.charCodeAt(i);
75183
- hash |= 0;
75184
- }
75185
- return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
75186
- }
75187
- createDebug.selectColor = selectColor;
75188
- function createDebug(namespace) {
75189
- let prevTime;
75190
- let enableOverride = null;
75191
- let namespacesCache;
75192
- let enabledCache;
75193
- function debug(...args) {
75194
- if (!debug.enabled) {
75195
- return;
75196
- }
75197
- const self3 = debug;
75198
- const curr = Number(/* @__PURE__ */ new Date());
75199
- const ms = curr - (prevTime || curr);
75200
- self3.diff = ms;
75201
- self3.prev = prevTime;
75202
- self3.curr = curr;
75203
- prevTime = curr;
75204
- args[0] = createDebug.coerce(args[0]);
75205
- if (typeof args[0] !== "string") {
75206
- args.unshift("%O");
75207
- }
75208
- let index = 0;
75209
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
75210
- if (match === "%%") {
75211
- return "%";
75212
- }
75213
- index++;
75214
- const formatter = createDebug.formatters[format];
75215
- if (typeof formatter === "function") {
75216
- const val = args[index];
75217
- match = formatter.call(self3, val);
75218
- args.splice(index, 1);
75219
- index--;
75220
- }
75221
- return match;
75222
- });
75223
- createDebug.formatArgs.call(self3, args);
75224
- const logFn = self3.log || createDebug.log;
75225
- logFn.apply(self3, args);
75226
- }
75227
- debug.namespace = namespace;
75228
- debug.useColors = createDebug.useColors();
75229
- debug.color = createDebug.selectColor(namespace);
75230
- debug.extend = extend2;
75231
- debug.destroy = createDebug.destroy;
75232
- Object.defineProperty(debug, "enabled", {
75233
- enumerable: true,
75234
- configurable: false,
75235
- get: () => {
75236
- if (enableOverride !== null) {
75237
- return enableOverride;
75238
- }
75239
- if (namespacesCache !== createDebug.namespaces) {
75240
- namespacesCache = createDebug.namespaces;
75241
- enabledCache = createDebug.enabled(namespace);
75242
- }
75243
- return enabledCache;
75244
- },
75245
- set: (v) => {
75246
- enableOverride = v;
75247
- }
75248
- });
75249
- if (typeof createDebug.init === "function") {
75250
- createDebug.init(debug);
75251
- }
75252
- return debug;
75253
- }
75254
- function extend2(namespace, delimiter) {
75255
- const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
75256
- newDebug.log = this.log;
75257
- return newDebug;
75258
- }
75259
- function enable(namespaces) {
75260
- createDebug.save(namespaces);
75261
- createDebug.namespaces = namespaces;
75262
- createDebug.names = [];
75263
- createDebug.skips = [];
75264
- const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
75265
- for (const ns of split) {
75266
- if (ns[0] === "-") {
75267
- createDebug.skips.push(ns.slice(1));
75268
- } else {
75269
- createDebug.names.push(ns);
75270
- }
75271
- }
75272
- }
75273
- function matchesTemplate(search, template) {
75274
- let searchIndex = 0;
75275
- let templateIndex = 0;
75276
- let starIndex = -1;
75277
- let matchIndex = 0;
75278
- while (searchIndex < search.length) {
75279
- if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
75280
- if (template[templateIndex] === "*") {
75281
- starIndex = templateIndex;
75282
- matchIndex = searchIndex;
75283
- templateIndex++;
75284
- } else {
75285
- searchIndex++;
75286
- templateIndex++;
75287
- }
75288
- } else if (starIndex !== -1) {
75289
- templateIndex = starIndex + 1;
75290
- matchIndex++;
75291
- searchIndex = matchIndex;
75292
- } else {
75293
- return false;
75294
- }
75295
- }
75296
- while (templateIndex < template.length && template[templateIndex] === "*") {
75297
- templateIndex++;
75298
- }
75299
- return templateIndex === template.length;
75300
- }
75301
- function disable() {
75302
- const namespaces = [
75303
- ...createDebug.names,
75304
- ...createDebug.skips.map((namespace) => "-" + namespace)
75305
- ].join(",");
75306
- createDebug.enable("");
75307
- return namespaces;
75308
- }
75309
- function enabled(name) {
75310
- for (const skip of createDebug.skips) {
75311
- if (matchesTemplate(name, skip)) {
75312
- return false;
75313
- }
75314
- }
75315
- for (const ns of createDebug.names) {
75316
- if (matchesTemplate(name, ns)) {
75317
- return true;
75318
- }
75319
- }
75320
- return false;
75321
- }
75322
- function coerce(val) {
75323
- if (val instanceof Error) {
75324
- return val.stack || val.message;
75325
- }
75326
- return val;
75327
- }
75328
- function destroy() {
75329
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
75330
- }
75331
- createDebug.enable(createDebug.load());
75332
- return createDebug;
75333
- }
75334
- module2.exports = setup;
75335
- }
75336
- });
75337
-
75338
- // ../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js
75339
- var require_browser2 = __commonJS({
75340
- "../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/browser.js"(exports, module2) {
75341
- "use strict";
75342
- exports.formatArgs = formatArgs;
75343
- exports.save = save;
75344
- exports.load = load;
75345
- exports.useColors = useColors;
75346
- exports.storage = localstorage();
75347
- exports.destroy = (() => {
75348
- let warned = false;
75349
- return () => {
75350
- if (!warned) {
75351
- warned = true;
75352
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
75353
- }
75354
- };
75355
- })();
75356
- exports.colors = [
75357
- "#0000CC",
75358
- "#0000FF",
75359
- "#0033CC",
75360
- "#0033FF",
75361
- "#0066CC",
75362
- "#0066FF",
75363
- "#0099CC",
75364
- "#0099FF",
75365
- "#00CC00",
75366
- "#00CC33",
75367
- "#00CC66",
75368
- "#00CC99",
75369
- "#00CCCC",
75370
- "#00CCFF",
75371
- "#3300CC",
75372
- "#3300FF",
75373
- "#3333CC",
75374
- "#3333FF",
75375
- "#3366CC",
75376
- "#3366FF",
75377
- "#3399CC",
75378
- "#3399FF",
75379
- "#33CC00",
75380
- "#33CC33",
75381
- "#33CC66",
75382
- "#33CC99",
75383
- "#33CCCC",
75384
- "#33CCFF",
75385
- "#6600CC",
75386
- "#6600FF",
75387
- "#6633CC",
75388
- "#6633FF",
75389
- "#66CC00",
75390
- "#66CC33",
75391
- "#9900CC",
75392
- "#9900FF",
75393
- "#9933CC",
75394
- "#9933FF",
75395
- "#99CC00",
75396
- "#99CC33",
75397
- "#CC0000",
75398
- "#CC0033",
75399
- "#CC0066",
75400
- "#CC0099",
75401
- "#CC00CC",
75402
- "#CC00FF",
75403
- "#CC3300",
75404
- "#CC3333",
75405
- "#CC3366",
75406
- "#CC3399",
75407
- "#CC33CC",
75408
- "#CC33FF",
75409
- "#CC6600",
75410
- "#CC6633",
75411
- "#CC9900",
75412
- "#CC9933",
75413
- "#CCCC00",
75414
- "#CCCC33",
75415
- "#FF0000",
75416
- "#FF0033",
75417
- "#FF0066",
75418
- "#FF0099",
75419
- "#FF00CC",
75420
- "#FF00FF",
75421
- "#FF3300",
75422
- "#FF3333",
75423
- "#FF3366",
75424
- "#FF3399",
75425
- "#FF33CC",
75426
- "#FF33FF",
75427
- "#FF6600",
75428
- "#FF6633",
75429
- "#FF9900",
75430
- "#FF9933",
75431
- "#FFCC00",
75432
- "#FFCC33"
75433
- ];
75434
- function useColors() {
75435
- if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
75436
- return true;
75437
- }
75438
- if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
75439
- return false;
75440
- }
75441
- let m;
75442
- return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
75443
- typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
75444
- // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
75445
- typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
75446
- typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
75447
- }
75448
- function formatArgs(args) {
75449
- args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
75450
- if (!this.useColors) {
75451
- return;
75452
- }
75453
- const c2 = "color: " + this.color;
75454
- args.splice(1, 0, c2, "color: inherit");
75455
- let index = 0;
75456
- let lastC = 0;
75457
- args[0].replace(/%[a-zA-Z%]/g, (match) => {
75458
- if (match === "%%") {
75459
- return;
75460
- }
75461
- index++;
75462
- if (match === "%c") {
75463
- lastC = index;
75464
- }
75465
- });
75466
- args.splice(lastC, 0, c2);
75467
- }
75468
- exports.log = console.debug || console.log || (() => {
75469
- });
75470
- function save(namespaces) {
75471
- try {
75472
- if (namespaces) {
75473
- exports.storage.setItem("debug", namespaces);
75474
- } else {
75475
- exports.storage.removeItem("debug");
75476
- }
75477
- } catch (error) {
75478
- }
75479
- }
75480
- function load() {
75481
- let r;
75482
- try {
75483
- r = exports.storage.getItem("debug");
75484
- } catch (error) {
75485
- }
75486
- if (!r && typeof process !== "undefined" && "env" in process) {
75487
- r = process.env.DEBUG;
75488
- }
75489
- return r;
75490
- }
75491
- function localstorage() {
75492
- try {
75493
- return localStorage;
75494
- } catch (error) {
75495
- }
75496
- }
75497
- module2.exports = require_common3()(exports);
75498
- var { formatters } = module2.exports;
75499
- formatters.j = function(v) {
75500
- try {
75501
- return JSON.stringify(v);
75502
- } catch (error) {
75503
- return "[UnexpectedJSONParseError]: " + error.message;
75504
- }
75505
- };
75506
- }
75507
- });
75508
-
75509
- // ../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js
75510
- var require_node3 = __commonJS({
75511
- "../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/node.js"(exports, module2) {
75512
- "use strict";
75513
- var tty = require("tty");
75514
- var util4 = require("util");
75515
- exports.init = init;
75516
- exports.log = log;
75517
- exports.formatArgs = formatArgs;
75518
- exports.save = save;
75519
- exports.load = load;
75520
- exports.useColors = useColors;
75521
- exports.destroy = util4.deprecate(
75522
- () => {
75523
- },
75524
- "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
75525
- );
75526
- exports.colors = [6, 2, 3, 4, 5, 1];
75527
- try {
75528
- const supportsColor = require_supports_color();
75529
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
75530
- exports.colors = [
75531
- 20,
75532
- 21,
75533
- 26,
75534
- 27,
75535
- 32,
75536
- 33,
75537
- 38,
75538
- 39,
75539
- 40,
75540
- 41,
75541
- 42,
75542
- 43,
75543
- 44,
75544
- 45,
75545
- 56,
75546
- 57,
75547
- 62,
75548
- 63,
75549
- 68,
75550
- 69,
75551
- 74,
75552
- 75,
75553
- 76,
75554
- 77,
75555
- 78,
75556
- 79,
75557
- 80,
75558
- 81,
75559
- 92,
75560
- 93,
75561
- 98,
75562
- 99,
75563
- 112,
75564
- 113,
75565
- 128,
75566
- 129,
75567
- 134,
75568
- 135,
75569
- 148,
75570
- 149,
75571
- 160,
75572
- 161,
75573
- 162,
75574
- 163,
75575
- 164,
75576
- 165,
75577
- 166,
75578
- 167,
75579
- 168,
75580
- 169,
75581
- 170,
75582
- 171,
75583
- 172,
75584
- 173,
75585
- 178,
75586
- 179,
75587
- 184,
75588
- 185,
75589
- 196,
75590
- 197,
75591
- 198,
75592
- 199,
75593
- 200,
75594
- 201,
75595
- 202,
75596
- 203,
75597
- 204,
75598
- 205,
75599
- 206,
75600
- 207,
75601
- 208,
75602
- 209,
75603
- 214,
75604
- 215,
75605
- 220,
75606
- 221
75607
- ];
75608
- }
75609
- } catch (error) {
75610
- }
75611
- exports.inspectOpts = Object.keys(process.env).filter((key2) => {
75612
- return /^debug_/i.test(key2);
75613
- }).reduce((obj, key2) => {
75614
- const prop = key2.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
75615
- return k.toUpperCase();
75616
- });
75617
- let val = process.env[key2];
75618
- if (/^(yes|on|true|enabled)$/i.test(val)) {
75619
- val = true;
75620
- } else if (/^(no|off|false|disabled)$/i.test(val)) {
75621
- val = false;
75622
- } else if (val === "null") {
75623
- val = null;
75624
- } else {
75625
- val = Number(val);
75626
- }
75627
- obj[prop] = val;
75628
- return obj;
75629
- }, {});
75630
- function useColors() {
75631
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
75632
- }
75633
- function formatArgs(args) {
75634
- const { namespace: name, useColors: useColors2 } = this;
75635
- if (useColors2) {
75636
- const c2 = this.color;
75637
- const colorCode = "\x1B[3" + (c2 < 8 ? c2 : "8;5;" + c2);
75638
- const prefix = ` ${colorCode};1m${name} \x1B[0m`;
75639
- args[0] = prefix + args[0].split("\n").join("\n" + prefix);
75640
- args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
75641
- } else {
75642
- args[0] = getDate() + name + " " + args[0];
75643
- }
75644
- }
75645
- function getDate() {
75646
- if (exports.inspectOpts.hideDate) {
75647
- return "";
75648
- }
75649
- return (/* @__PURE__ */ new Date()).toISOString() + " ";
75650
- }
75651
- function log(...args) {
75652
- return process.stderr.write(util4.formatWithOptions(exports.inspectOpts, ...args) + "\n");
75653
- }
75654
- function save(namespaces) {
75655
- if (namespaces) {
75656
- process.env.DEBUG = namespaces;
75657
- } else {
75658
- delete process.env.DEBUG;
75659
- }
75660
- }
75661
- function load() {
75662
- return process.env.DEBUG;
75663
- }
75664
- function init(debug) {
75665
- debug.inspectOpts = {};
75666
- const keys = Object.keys(exports.inspectOpts);
75667
- for (let i = 0; i < keys.length; i++) {
75668
- debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
75669
- }
75670
- }
75671
- module2.exports = require_common3()(exports);
75672
- var { formatters } = module2.exports;
75673
- formatters.o = function(v) {
75674
- this.inspectOpts.colors = this.useColors;
75675
- return util4.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
75676
- };
75677
- formatters.O = function(v) {
75678
- this.inspectOpts.colors = this.useColors;
75679
- return util4.inspect(v, this.inspectOpts);
75680
- };
75681
- }
75682
- });
75683
-
75684
- // ../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js
75685
- var require_src4 = __commonJS({
75686
- "../../../../node_modules/.pnpm/debug@4.4.0/node_modules/debug/src/index.js"(exports, module2) {
75687
- "use strict";
75688
- if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
75689
- module2.exports = require_browser2();
75690
- } else {
75691
- module2.exports = require_node3();
75692
- }
75693
- }
75694
- });
75695
-
75696
75160
  // ../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/utils/get-type.js
75697
75161
  var require_get_type = __commonJS({
75698
75162
  "../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/utils/get-type.js"(exports) {
@@ -75845,7 +75309,7 @@ var require_filter3 = __commonJS({
75845
75309
  return r;
75846
75310
  };
75847
75311
  Object.defineProperty(exports, "__esModule", { value: true });
75848
- var debug_1 = require_src4();
75312
+ var debug_1 = require_src();
75849
75313
  var mongo_eql_1 = require_mongo_eql();
75850
75314
  var ops = require_ops();
75851
75315
  var get_type_1 = require_get_type();
@@ -76005,7 +75469,7 @@ var require_mods = __commonJS({
76005
75469
  return r;
76006
75470
  };
76007
75471
  Object.defineProperty(exports, "__esModule", { value: true });
76008
- var debug_1 = require_src4();
75472
+ var debug_1 = require_src();
76009
75473
  var mongoDot = require_mongo_dot();
76010
75474
  var mongo_eql_1 = require_mongo_eql();
76011
75475
  var get_type_1 = require_get_type();
@@ -76466,7 +75930,7 @@ var require_query = __commonJS({
76466
75930
  "../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/query.js"(exports) {
76467
75931
  "use strict";
76468
75932
  Object.defineProperty(exports, "__esModule", { value: true });
76469
- var debug_1 = require_src4();
75933
+ var debug_1 = require_src();
76470
75934
  var filter_1 = require_filter3();
76471
75935
  var mods = require_mods();
76472
75936
  var mongoDot = require_mongo_dot();
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.7.26",
18
+ "version": "3.7.28",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./src/index.ts",
21
21
  "main": "./dist/index.js",
@@ -32,9 +32,9 @@
32
32
  "@types/node": "^14",
33
33
  "jest": "^29",
34
34
  "typescript": "^5",
35
- "@modern-js/generator-common": "3.7.26",
36
- "@modern-js/generator-utils": "3.7.26",
37
- "@modern-js/plugin-i18n": "2.67.1",
35
+ "@modern-js/generator-common": "3.7.28",
36
+ "@modern-js/generator-utils": "3.7.28",
37
+ "@modern-js/plugin-i18n": "2.67.3",
38
38
  "@scripts/build": "2.66.0",
39
39
  "@scripts/jest-config": "2.66.0"
40
40
  },