jsonfixerdev 1.0.3 → 1.0.4

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 (67) hide show
  1. package/package.json +2 -3
  2. package/lib/cjs/index.js +0 -20
  3. package/lib/cjs/index.js.map +0 -1
  4. package/lib/cjs/package.json +0 -3
  5. package/lib/cjs/regular/jsonfixer.js +0 -606
  6. package/lib/cjs/regular/jsonfixer.js.map +0 -1
  7. package/lib/cjs/stream.js +0 -13
  8. package/lib/cjs/stream.js.map +0 -1
  9. package/lib/cjs/streaming/buffer/InputBuffer.js +0 -75
  10. package/lib/cjs/streaming/buffer/InputBuffer.js.map +0 -1
  11. package/lib/cjs/streaming/buffer/OutputBuffer.js +0 -110
  12. package/lib/cjs/streaming/buffer/OutputBuffer.js.map +0 -1
  13. package/lib/cjs/streaming/core.js +0 -674
  14. package/lib/cjs/streaming/core.js.map +0 -1
  15. package/lib/cjs/streaming/stack.js +0 -51
  16. package/lib/cjs/streaming/stack.js.map +0 -1
  17. package/lib/cjs/streaming/stream.js +0 -37
  18. package/lib/cjs/streaming/stream.js.map +0 -1
  19. package/lib/cjs/utils/JSONFixerError.js +0 -15
  20. package/lib/cjs/utils/JSONFixerError.js.map +0 -1
  21. package/lib/cjs/utils/stringUtils.js +0 -186
  22. package/lib/cjs/utils/stringUtils.js.map +0 -1
  23. package/lib/esm/index.js +0 -4
  24. package/lib/esm/index.js.map +0 -1
  25. package/lib/esm/regular/jsonfixer.js +0 -600
  26. package/lib/esm/regular/jsonfixer.js.map +0 -1
  27. package/lib/esm/stream.js +0 -3
  28. package/lib/esm/stream.js.map +0 -1
  29. package/lib/esm/streaming/buffer/InputBuffer.js +0 -69
  30. package/lib/esm/streaming/buffer/InputBuffer.js.map +0 -1
  31. package/lib/esm/streaming/buffer/OutputBuffer.js +0 -104
  32. package/lib/esm/streaming/buffer/OutputBuffer.js.map +0 -1
  33. package/lib/esm/streaming/core.js +0 -668
  34. package/lib/esm/streaming/core.js.map +0 -1
  35. package/lib/esm/streaming/stack.js +0 -44
  36. package/lib/esm/streaming/stack.js.map +0 -1
  37. package/lib/esm/streaming/stream.js +0 -31
  38. package/lib/esm/streaming/stream.js.map +0 -1
  39. package/lib/esm/utils/JSONFixerError.js +0 -8
  40. package/lib/esm/utils/JSONFixerError.js.map +0 -1
  41. package/lib/esm/utils/stringUtils.js +0 -162
  42. package/lib/esm/utils/stringUtils.js.map +0 -1
  43. package/lib/types/index.d.ts +0 -3
  44. package/lib/types/index.d.ts.map +0 -1
  45. package/lib/types/regular/jsonfixer.d.ts +0 -18
  46. package/lib/types/regular/jsonfixer.d.ts.map +0 -1
  47. package/lib/types/stream.d.ts +0 -2
  48. package/lib/types/stream.d.ts.map +0 -1
  49. package/lib/types/streaming/buffer/InputBuffer.d.ts +0 -14
  50. package/lib/types/streaming/buffer/InputBuffer.d.ts.map +0 -1
  51. package/lib/types/streaming/buffer/OutputBuffer.d.ts +0 -17
  52. package/lib/types/streaming/buffer/OutputBuffer.d.ts.map +0 -1
  53. package/lib/types/streaming/core.d.ts +0 -11
  54. package/lib/types/streaming/core.d.ts.map +0 -1
  55. package/lib/types/streaming/stack.d.ts +0 -20
  56. package/lib/types/streaming/stack.d.ts.map +0 -1
  57. package/lib/types/streaming/stream.d.ts +0 -8
  58. package/lib/types/streaming/stream.d.ts.map +0 -1
  59. package/lib/types/utils/JSONFixerError.d.ts +0 -5
  60. package/lib/types/utils/JSONFixerError.d.ts.map +0 -1
  61. package/lib/types/utils/stringUtils.d.ts +0 -84
  62. package/lib/types/utils/stringUtils.d.ts.map +0 -1
  63. package/lib/umd/jsonfixer.js +0 -775
  64. package/lib/umd/jsonfixer.js.map +0 -1
  65. package/lib/umd/jsonfixer.min.js +0 -3
  66. package/lib/umd/jsonfixer.min.js.map +0 -1
  67. package/lib/umd/package.json +0 -3
@@ -1,84 +0,0 @@
1
- export declare const codeBackslash = 92;
2
- export declare const codeSlash = 47;
3
- export declare const codeAsterisk = 42;
4
- export declare const codeOpeningBrace = 123;
5
- export declare const codeClosingBrace = 125;
6
- export declare const codeOpeningBracket = 91;
7
- export declare const codeClosingBracket = 93;
8
- export declare const codeOpenParenthesis = 40;
9
- export declare const codeCloseParenthesis = 41;
10
- export declare const codeSpace = 32;
11
- export declare const codeNewline = 10;
12
- export declare const codeTab = 9;
13
- export declare const codeReturn = 13;
14
- export declare const codeBackspace = 8;
15
- export declare const codeFormFeed = 12;
16
- export declare const codeDoubleQuote = 34;
17
- export declare const codePlus = 43;
18
- export declare const codeMinus = 45;
19
- export declare const codeQuote = 39;
20
- export declare const codeZero = 48;
21
- export declare const codeNine = 57;
22
- export declare const codeComma = 44;
23
- export declare const codeDot = 46;
24
- export declare const codeColon = 58;
25
- export declare const codeSemicolon = 59;
26
- export declare const codeUppercaseA = 65;
27
- export declare const codeLowercaseA = 97;
28
- export declare const codeUppercaseE = 69;
29
- export declare const codeLowercaseE = 101;
30
- export declare const codeUppercaseF = 70;
31
- export declare const codeLowercaseF = 102;
32
- export declare function isHex(code: number): boolean;
33
- export declare function isDigit(code: number): boolean;
34
- export declare function isValidStringCharacter(code: number): boolean;
35
- export declare function isDelimiter(char: string): boolean;
36
- export declare function isStartOfValue(char: string): boolean;
37
- export declare function isControlCharacter(code: number): boolean;
38
- /**
39
- * Check if the given character is a whitespace character like space, tab, or
40
- * newline
41
- */
42
- export declare function isWhitespace(code: number): boolean;
43
- /**
44
- * Check if the given character is a special whitespace character, some
45
- * unicode variant
46
- */
47
- export declare function isSpecialWhitespace(code: number): boolean;
48
- /**
49
- * Test whether the given character is a quote or double quote character.
50
- * Also tests for special variants of quotes.
51
- */
52
- export declare function isQuote(code: number): boolean;
53
- /**
54
- * Test whether the given character is a double quote character.
55
- * Also tests for special variants of double quotes.
56
- */
57
- export declare function isDoubleQuoteLike(code: number): boolean;
58
- /**
59
- * Test whether the given character is a double quote character.
60
- * Does NOT test for special variants of double quotes.
61
- */
62
- export declare function isDoubleQuote(code: number): boolean;
63
- /**
64
- * Test whether the given character is a single quote character.
65
- * Also tests for special variants of single quotes.
66
- */
67
- export declare function isSingleQuoteLike(code: number): boolean;
68
- /**
69
- * Test whether the given character is a single quote character.
70
- * Does NOT test for special variants of single quotes.
71
- */
72
- export declare function isSingleQuote(code: number): boolean;
73
- /**
74
- * Strip last occurrence of textToStrip from text
75
- */
76
- export declare function stripLastOccurrence(text: string, textToStrip: string, stripRemainingText?: boolean): string;
77
- export declare function insertBeforeLastWhitespace(text: string, textToInsert: string): string;
78
- export declare function removeAtIndex(text: string, start: number, count: number): string;
79
- /**
80
- * Test whether a string ends with a newline or comma character and optional whitespace
81
- */
82
- export declare function endsWithCommaOrNewline(text: string): boolean;
83
- export declare function nextNonWhiteSpaceCharacter(text: string, start: number): string;
84
- //# sourceMappingURL=stringUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stringUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/stringUtils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,KAAO,CAAA;AACjC,eAAO,MAAM,SAAS,KAAO,CAAA;AAC7B,eAAO,MAAM,YAAY,KAAO,CAAA;AAChC,eAAO,MAAM,gBAAgB,MAAO,CAAA;AACpC,eAAO,MAAM,gBAAgB,MAAO,CAAA;AACpC,eAAO,MAAM,kBAAkB,KAAO,CAAA;AACtC,eAAO,MAAM,kBAAkB,KAAO,CAAA;AACtC,eAAO,MAAM,mBAAmB,KAAO,CAAA;AACvC,eAAO,MAAM,oBAAoB,KAAO,CAAA;AACxC,eAAO,MAAM,SAAS,KAAO,CAAA;AAC7B,eAAO,MAAM,WAAW,KAAM,CAAA;AAC9B,eAAO,MAAM,OAAO,IAAM,CAAA;AAC1B,eAAO,MAAM,UAAU,KAAM,CAAA;AAC7B,eAAO,MAAM,aAAa,IAAO,CAAA;AACjC,eAAO,MAAM,YAAY,KAAO,CAAA;AAChC,eAAO,MAAM,eAAe,KAAS,CAAA;AACrC,eAAO,MAAM,QAAQ,KAAO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