immosquare-cleaner 0.1.38 → 0.1.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/node_modules/@eslint/config-array/LICENSE +201 -0
  4. data/node_modules/@eslint/config-array/README.md +340 -0
  5. data/node_modules/@eslint/config-array/dist/cjs/index.cjs +1260 -0
  6. data/node_modules/@eslint/config-array/dist/cjs/index.d.cts +146 -0
  7. data/node_modules/@eslint/config-array/dist/cjs/types.ts +24 -0
  8. data/node_modules/@eslint/config-array/dist/esm/index.d.ts +146 -0
  9. data/node_modules/@eslint/config-array/dist/esm/index.js +1258 -0
  10. data/node_modules/@eslint/config-array/dist/esm/types.d.ts +19 -0
  11. data/node_modules/@eslint/config-array/dist/esm/types.ts +24 -0
  12. data/node_modules/@eslint/config-array/node_modules/minimatch/LICENSE +15 -0
  13. data/node_modules/@eslint/config-array/node_modules/minimatch/README.md +230 -0
  14. data/node_modules/@eslint/config-array/node_modules/minimatch/minimatch.js +947 -0
  15. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/LICENSE +21 -0
  16. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/README.md +129 -0
  17. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/index.js +201 -0
  18. data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/package.json +47 -0
  19. data/node_modules/@eslint/config-array/node_modules/minimatch/package.json +33 -0
  20. data/node_modules/@eslint/config-array/package.json +60 -0
  21. data/node_modules/@eslint/js/package.json +1 -1
  22. data/node_modules/@eslint/object-schema/LICENSE +201 -0
  23. data/node_modules/@eslint/object-schema/README.md +224 -0
  24. data/node_modules/@eslint/object-schema/dist/cjs/index.cjs +455 -0
  25. data/node_modules/@eslint/object-schema/dist/cjs/index.d.cts +123 -0
  26. data/node_modules/@eslint/object-schema/dist/cjs/types.ts +55 -0
  27. data/node_modules/@eslint/object-schema/dist/esm/index.d.ts +123 -0
  28. data/node_modules/@eslint/object-schema/dist/esm/index.js +452 -0
  29. data/node_modules/@eslint/object-schema/dist/esm/types.d.ts +40 -0
  30. data/node_modules/@eslint/object-schema/dist/esm/types.ts +55 -0
  31. data/node_modules/@eslint/object-schema/package.json +56 -0
  32. data/node_modules/eslint/lib/cli.js +2 -2
  33. data/node_modules/eslint/lib/config/flat-config-array.js +1 -1
  34. data/node_modules/eslint/lib/eslint/eslint-helpers.js +7 -7
  35. data/node_modules/eslint/lib/eslint/eslint.js +1 -10
  36. data/node_modules/eslint/lib/rule-tester/rule-tester.js +1 -1
  37. data/node_modules/eslint/lib/rules/func-style.js +4 -4
  38. data/node_modules/eslint/lib/rules/no-constructor-return.js +1 -1
  39. data/node_modules/eslint/lib/rules/no-loop-func.js +161 -129
  40. data/node_modules/eslint/package.json +3 -3
  41. data/node_modules/prettier/LICENSE +56 -535
  42. data/node_modules/prettier/bin/prettier.cjs +4 -8
  43. data/node_modules/prettier/doc.js +20 -29
  44. data/node_modules/prettier/doc.mjs +20 -29
  45. data/node_modules/prettier/index.cjs +1 -1
  46. data/node_modules/prettier/index.d.ts +4 -2
  47. data/node_modules/prettier/index.mjs +3109 -4509
  48. data/node_modules/prettier/internal/cli.mjs +339 -3544
  49. data/node_modules/prettier/package.json +1 -1
  50. data/node_modules/prettier/plugins/acorn.js +11 -11
  51. data/node_modules/prettier/plugins/acorn.mjs +11 -11
  52. data/node_modules/prettier/plugins/angular.js +1 -1
  53. data/node_modules/prettier/plugins/angular.mjs +1 -1
  54. data/node_modules/prettier/plugins/babel.js +11 -11
  55. data/node_modules/prettier/plugins/babel.mjs +11 -11
  56. data/node_modules/prettier/plugins/estree.js +28 -28
  57. data/node_modules/prettier/plugins/estree.mjs +28 -28
  58. data/node_modules/prettier/plugins/flow.js +16 -17
  59. data/node_modules/prettier/plugins/flow.mjs +16 -17
  60. data/node_modules/prettier/plugins/glimmer.js +22 -22
  61. data/node_modules/prettier/plugins/glimmer.mjs +22 -22
  62. data/node_modules/prettier/plugins/graphql.js +4 -4
  63. data/node_modules/prettier/plugins/graphql.mjs +4 -4
  64. data/node_modules/prettier/plugins/html.js +15 -15
  65. data/node_modules/prettier/plugins/html.mjs +15 -15
  66. data/node_modules/prettier/plugins/markdown.js +42 -42
  67. data/node_modules/prettier/plugins/markdown.mjs +42 -42
  68. data/node_modules/prettier/plugins/meriyah.js +5 -5
  69. data/node_modules/prettier/plugins/meriyah.mjs +5 -5
  70. data/node_modules/prettier/plugins/postcss.js +26 -26
  71. data/node_modules/prettier/plugins/postcss.mjs +26 -26
  72. data/node_modules/prettier/plugins/typescript.js +20 -20
  73. data/node_modules/prettier/plugins/typescript.mjs +20 -20
  74. data/node_modules/prettier/plugins/yaml.js +32 -32
  75. data/node_modules/prettier/plugins/yaml.mjs +32 -32
  76. data/node_modules/prettier/standalone.js +26 -26
  77. data/node_modules/prettier/standalone.mjs +26 -26
  78. data/package.json +3 -3
  79. metadata +30 -2
@@ -16,14 +16,10 @@ var require_semver_compare = __commonJS({
16
16
  for (var i = 0; i < 3; i++) {
17
17
  var na = Number(pa[i]);
18
18
  var nb = Number(pb[i]);
19
- if (na > nb)
20
- return 1;
21
- if (nb > na)
22
- return -1;
23
- if (!isNaN(na) && isNaN(nb))
24
- return 1;
25
- if (isNaN(na) && !isNaN(nb))
26
- return -1;
19
+ if (na > nb) return 1;
20
+ if (nb > na) return -1;
21
+ if (!isNaN(na) && isNaN(nb)) return 1;
22
+ if (isNaN(na) && !isNaN(nb)) return -1;
27
23
  }
28
24
  return 0;
29
25
  };
@@ -403,15 +403,6 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
403
403
  var get_string_width_default = getStringWidth;
404
404
 
405
405
  // src/document/utils.js
406
- var getDocParts = (doc) => {
407
- if (Array.isArray(doc)) {
408
- return doc;
409
- }
410
- if (doc.type !== DOC_TYPE_FILL) {
411
- throw new Error(`Expect doc to be 'array' or '${DOC_TYPE_FILL}'.`);
412
- }
413
- return doc.parts;
414
- };
415
406
  function mapDoc(doc, cb) {
416
407
  if (typeof doc === "string") {
417
408
  return cb(doc);
@@ -830,26 +821,25 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
830
821
  let trimCount = 0;
831
822
  let cursorCount = 0;
832
823
  let outIndex = out.length;
833
- outer:
834
- while (outIndex--) {
835
- const last = out[outIndex];
836
- if (last === CURSOR_PLACEHOLDER) {
837
- cursorCount++;
838
- continue;
839
- }
840
- if (false) {
841
- throw new Error(`Unexpected value in trim: '${typeof last}'`);
842
- }
843
- for (let charIndex = last.length - 1; charIndex >= 0; charIndex--) {
844
- const char = last[charIndex];
845
- if (char === " " || char === " ") {
846
- trimCount++;
847
- } else {
848
- out[outIndex] = last.slice(0, charIndex + 1);
849
- break outer;
850
- }
824
+ outer: while (outIndex--) {
825
+ const last = out[outIndex];
826
+ if (last === CURSOR_PLACEHOLDER) {
827
+ cursorCount++;
828
+ continue;
829
+ }
830
+ if (false) {
831
+ throw new Error(`Unexpected value in trim: '${typeof last}'`);
832
+ }
833
+ for (let charIndex = last.length - 1; charIndex >= 0; charIndex--) {
834
+ const char = last[charIndex];
835
+ if (char === " " || char === " ") {
836
+ trimCount++;
837
+ } else {
838
+ out[outIndex] = last.slice(0, charIndex + 1);
839
+ break outer;
851
840
  }
852
841
  }
842
+ }
853
843
  if (trimCount > 0 || cursorCount > 0) {
854
844
  out.length = outIndex + 1;
855
845
  while (cursorCount-- > 0) {
@@ -877,14 +867,15 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
877
867
  mode,
878
868
  doc
879
869
  } = cmds.pop();
880
- switch (get_doc_type_default(doc)) {
870
+ const docType = get_doc_type_default(doc);
871
+ switch (docType) {
881
872
  case DOC_TYPE_STRING:
882
873
  out.push(doc);
883
874
  width -= get_string_width_default(doc);
884
875
  break;
885
876
  case DOC_TYPE_ARRAY:
886
877
  case DOC_TYPE_FILL: {
887
- const parts = getDocParts(doc);
878
+ const parts = docType === DOC_TYPE_ARRAY ? doc : doc.parts;
888
879
  for (let i = parts.length - 1; i >= 0; i--) {
889
880
  cmds.push({
890
881
  mode,
@@ -368,15 +368,6 @@ function getStringWidth(text) {
368
368
  var get_string_width_default = getStringWidth;
369
369
 
370
370
  // src/document/utils.js
371
- var getDocParts = (doc) => {
372
- if (Array.isArray(doc)) {
373
- return doc;
374
- }
375
- if (doc.type !== DOC_TYPE_FILL) {
376
- throw new Error(`Expect doc to be 'array' or '${DOC_TYPE_FILL}'.`);
377
- }
378
- return doc.parts;
379
- };
380
371
  function mapDoc(doc, cb) {
381
372
  if (typeof doc === "string") {
382
373
  return cb(doc);
@@ -795,26 +786,25 @@ function trim2(out) {
795
786
  let trimCount = 0;
796
787
  let cursorCount = 0;
797
788
  let outIndex = out.length;
798
- outer:
799
- while (outIndex--) {
800
- const last = out[outIndex];
801
- if (last === CURSOR_PLACEHOLDER) {
802
- cursorCount++;
803
- continue;
804
- }
805
- if (false) {
806
- throw new Error(`Unexpected value in trim: '${typeof last}'`);
807
- }
808
- for (let charIndex = last.length - 1; charIndex >= 0; charIndex--) {
809
- const char = last[charIndex];
810
- if (char === " " || char === " ") {
811
- trimCount++;
812
- } else {
813
- out[outIndex] = last.slice(0, charIndex + 1);
814
- break outer;
815
- }
789
+ outer: while (outIndex--) {
790
+ const last = out[outIndex];
791
+ if (last === CURSOR_PLACEHOLDER) {
792
+ cursorCount++;
793
+ continue;
794
+ }
795
+ if (false) {
796
+ throw new Error(`Unexpected value in trim: '${typeof last}'`);
797
+ }
798
+ for (let charIndex = last.length - 1; charIndex >= 0; charIndex--) {
799
+ const char = last[charIndex];
800
+ if (char === " " || char === " ") {
801
+ trimCount++;
802
+ } else {
803
+ out[outIndex] = last.slice(0, charIndex + 1);
804
+ break outer;
816
805
  }
817
806
  }
807
+ }
818
808
  if (trimCount > 0 || cursorCount > 0) {
819
809
  out.length = outIndex + 1;
820
810
  while (cursorCount-- > 0) {
@@ -842,14 +832,15 @@ function fits(next, restCommands, width, hasLineSuffix, groupModeMap, mustBeFlat
842
832
  mode,
843
833
  doc
844
834
  } = cmds.pop();
845
- switch (get_doc_type_default(doc)) {
835
+ const docType = get_doc_type_default(doc);
836
+ switch (docType) {
846
837
  case DOC_TYPE_STRING:
847
838
  out.push(doc);
848
839
  width -= get_string_width_default(doc);
849
840
  break;
850
841
  case DOC_TYPE_ARRAY:
851
842
  case DOC_TYPE_FILL: {
852
- const parts = getDocParts(doc);
843
+ const parts = docType === DOC_TYPE_ARRAY ? doc : doc.parts;
853
844
  for (let i = parts.length - 1; i >= 0; i--) {
854
845
  cmds.push({
855
846
  mode,
@@ -585,7 +585,7 @@ var init_public = __esm({
585
585
  // src/main/version.evaluate.cjs
586
586
  var require_version_evaluate = __commonJS({
587
587
  "src/main/version.evaluate.cjs"(exports2, module2) {
588
- module2.exports = "3.2.5";
588
+ module2.exports = "3.3.0";
589
589
  }
590
590
  });
591
591
 
@@ -496,10 +496,12 @@ export interface Printer<T = any> {
496
496
  insertPragma?: (text: string) => string;
497
497
  /**
498
498
  * @returns `null` if you want to remove this node
499
- * @returns `void` if you want to use modified newNode
499
+ * @returns `void` if you want to use modified `cloned`
500
500
  * @returns anything if you want to replace the node with it
501
501
  */
502
- massageAstNode?: ((node: any, newNode: any, parent: any) => any) | undefined;
502
+ massageAstNode?:
503
+ | ((original: any, cloned: any, parent: any) => any)
504
+ | undefined;
503
505
  hasPrettierIgnore?: ((path: AstPath<T>) => boolean) | undefined;
504
506
  canAttachComment?: ((node: T) => boolean) | undefined;
505
507
  isBlockComment?: ((node: T) => boolean) | undefined;