compostjs 0.0.11 → 0.0.12

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 (141) hide show
  1. package/dist/fable_modules/fable-library-js.4.28.0/Array.d.ts +123 -0
  2. package/dist/fable_modules/fable-library-js.4.28.0/Array.js +1242 -0
  3. package/dist/fable_modules/fable-library-js.4.28.0/Async.d.ts +26 -0
  4. package/dist/fable_modules/fable-library-js.4.28.0/Async.js +145 -0
  5. package/dist/fable_modules/fable-library-js.4.28.0/AsyncBuilder.d.ts +59 -0
  6. package/dist/fable_modules/fable-library-js.4.28.0/AsyncBuilder.js +183 -0
  7. package/dist/fable_modules/fable-library-js.4.28.0/BigInt.d.ts +115 -0
  8. package/dist/fable_modules/fable-library-js.4.28.0/BigInt.js +283 -0
  9. package/dist/fable_modules/fable-library-js.4.28.0/BitConverter.d.ts +27 -0
  10. package/dist/fable_modules/fable-library-js.4.28.0/BitConverter.js +138 -0
  11. package/dist/fable_modules/fable-library-js.4.28.0/Boolean.d.ts +3 -0
  12. package/dist/fable_modules/fable-library-js.4.28.0/Boolean.js +21 -0
  13. package/dist/fable_modules/fable-library-js.4.28.0/CHANGELOG.md +100 -0
  14. package/dist/fable_modules/fable-library-js.4.28.0/Char.d.ts +65 -0
  15. package/dist/fable_modules/fable-library-js.4.28.0/Char.js +169 -0
  16. package/dist/fable_modules/fable-library-js.4.28.0/Choice.d.ts +121 -0
  17. package/dist/fable_modules/fable-library-js.4.28.0/Choice.js +184 -0
  18. package/dist/fable_modules/fable-library-js.4.28.0/CollectionUtil.d.ts +7 -0
  19. package/dist/fable_modules/fable-library-js.4.28.0/CollectionUtil.js +182 -0
  20. package/dist/fable_modules/fable-library-js.4.28.0/ConditionalWeakTable.d.ts +9 -0
  21. package/dist/fable_modules/fable-library-js.4.28.0/ConditionalWeakTable.js +21 -0
  22. package/dist/fable_modules/fable-library-js.4.28.0/Date.d.ts +70 -0
  23. package/dist/fable_modules/fable-library-js.4.28.0/Date.js +748 -0
  24. package/dist/fable_modules/fable-library-js.4.28.0/DateOffset.d.ts +63 -0
  25. package/dist/fable_modules/fable-library-js.4.28.0/DateOffset.js +268 -0
  26. package/dist/fable_modules/fable-library-js.4.28.0/DateOnly.d.ts +18 -0
  27. package/dist/fable_modules/fable-library-js.4.28.0/DateOnly.js +124 -0
  28. package/dist/fable_modules/fable-library-js.4.28.0/Decimal.d.ts +45 -0
  29. package/dist/fable_modules/fable-library-js.4.28.0/Decimal.js +212 -0
  30. package/dist/fable_modules/fable-library-js.4.28.0/Double.d.ts +11 -0
  31. package/dist/fable_modules/fable-library-js.4.28.0/Double.js +46 -0
  32. package/dist/fable_modules/fable-library-js.4.28.0/Encoding.d.ts +12 -0
  33. package/dist/fable_modules/fable-library-js.4.28.0/Encoding.js +173 -0
  34. package/dist/fable_modules/fable-library-js.4.28.0/Event.d.ts +31 -0
  35. package/dist/fable_modules/fable-library-js.4.28.0/Event.js +93 -0
  36. package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Collections.d.ts +7 -0
  37. package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Collections.js +27 -0
  38. package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.CompilerServices.d.ts +12 -0
  39. package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.CompilerServices.js +27 -0
  40. package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.d.ts +17 -0
  41. package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.js +69 -0
  42. package/dist/fable_modules/fable-library-js.4.28.0/Global.d.ts +24 -0
  43. package/dist/fable_modules/fable-library-js.4.28.0/Global.js +8 -0
  44. package/dist/fable_modules/fable-library-js.4.28.0/Guid.d.ts +10 -0
  45. package/dist/fable_modules/fable-library-js.4.28.0/Guid.js +142 -0
  46. package/dist/fable_modules/fable-library-js.4.28.0/Int32.d.ts +28 -0
  47. package/dist/fable_modules/fable-library-js.4.28.0/Int32.js +135 -0
  48. package/dist/fable_modules/fable-library-js.4.28.0/List.d.ts +143 -0
  49. package/dist/fable_modules/fable-library-js.4.28.0/List.js +1273 -0
  50. package/dist/fable_modules/fable-library-js.4.28.0/Long.d.ts +3 -0
  51. package/dist/fable_modules/fable-library-js.4.28.0/Long.js +46 -0
  52. package/dist/fable_modules/fable-library-js.4.28.0/MailboxProcessor.d.ts +25 -0
  53. package/dist/fable_modules/fable-library-js.4.28.0/MailboxProcessor.js +93 -0
  54. package/dist/fable_modules/fable-library-js.4.28.0/Map.d.ts +178 -0
  55. package/dist/fable_modules/fable-library-js.4.28.0/Map.js +1396 -0
  56. package/dist/fable_modules/fable-library-js.4.28.0/MapUtil.d.ts +12 -0
  57. package/dist/fable_modules/fable-library-js.4.28.0/MapUtil.js +127 -0
  58. package/dist/fable_modules/fable-library-js.4.28.0/MutableMap.d.ts +52 -0
  59. package/dist/fable_modules/fable-library-js.4.28.0/MutableMap.js +327 -0
  60. package/dist/fable_modules/fable-library-js.4.28.0/MutableSet.d.ts +39 -0
  61. package/dist/fable_modules/fable-library-js.4.28.0/MutableSet.js +233 -0
  62. package/dist/fable_modules/fable-library-js.4.28.0/Native.d.ts +2 -0
  63. package/dist/fable_modules/fable-library-js.4.28.0/Native.js +8 -0
  64. package/dist/fable_modules/fable-library-js.4.28.0/Numeric.d.ts +19 -0
  65. package/dist/fable_modules/fable-library-js.4.28.0/Numeric.js +71 -0
  66. package/dist/fable_modules/fable-library-js.4.28.0/Observable.d.ts +32 -0
  67. package/dist/fable_modules/fable-library-js.4.28.0/Observable.js +113 -0
  68. package/dist/fable_modules/fable-library-js.4.28.0/Option.d.ts +28 -0
  69. package/dist/fable_modules/fable-library-js.4.28.0/Option.js +96 -0
  70. package/dist/fable_modules/fable-library-js.4.28.0/README.md +3 -0
  71. package/dist/fable_modules/fable-library-js.4.28.0/Random.d.ts +37 -0
  72. package/dist/fable_modules/fable-library-js.4.28.0/Random.js +170 -0
  73. package/dist/fable_modules/fable-library-js.4.28.0/Range.d.ts +12 -0
  74. package/dist/fable_modules/fable-library-js.4.28.0/Range.js +45 -0
  75. package/dist/fable_modules/fable-library-js.4.28.0/Reflection.d.ts +119 -0
  76. package/dist/fable_modules/fable-library-js.4.28.0/Reflection.js +461 -0
  77. package/dist/fable_modules/fable-library-js.4.28.0/RegExp.d.ts +10 -0
  78. package/dist/fable_modules/fable-library-js.4.28.0/RegExp.js +131 -0
  79. package/dist/fable_modules/fable-library-js.4.28.0/Result.d.ts +37 -0
  80. package/dist/fable_modules/fable-library-js.4.28.0/Result.js +165 -0
  81. package/dist/fable_modules/fable-library-js.4.28.0/Seq.d.ts +165 -0
  82. package/dist/fable_modules/fable-library-js.4.28.0/Seq.js +1378 -0
  83. package/dist/fable_modules/fable-library-js.4.28.0/Seq2.d.ts +18 -0
  84. package/dist/fable_modules/fable-library-js.4.28.0/Seq2.js +111 -0
  85. package/dist/fable_modules/fable-library-js.4.28.0/Set.d.ts +190 -0
  86. package/dist/fable_modules/fable-library-js.4.28.0/Set.js +1789 -0
  87. package/dist/fable_modules/fable-library-js.4.28.0/String.d.ts +58 -0
  88. package/dist/fable_modules/fable-library-js.4.28.0/String.js +554 -0
  89. package/dist/fable_modules/fable-library-js.4.28.0/System.Collections.Generic.d.ts +79 -0
  90. package/dist/fable_modules/fable-library-js.4.28.0/System.Collections.Generic.js +317 -0
  91. package/dist/fable_modules/fable-library-js.4.28.0/System.Text.d.ts +38 -0
  92. package/dist/fable_modules/fable-library-js.4.28.0/System.Text.js +162 -0
  93. package/dist/fable_modules/fable-library-js.4.28.0/SystemException.d.ts +5 -0
  94. package/dist/fable_modules/fable-library-js.4.28.0/SystemException.js +5 -0
  95. package/dist/fable_modules/fable-library-js.4.28.0/TimeOnly.d.ts +15 -0
  96. package/dist/fable_modules/fable-library-js.4.28.0/TimeOnly.js +122 -0
  97. package/dist/fable_modules/fable-library-js.4.28.0/TimeSpan.d.ts +34 -0
  98. package/dist/fable_modules/fable-library-js.4.28.0/TimeSpan.js +177 -0
  99. package/dist/fable_modules/fable-library-js.4.28.0/Timer.d.ts +19 -0
  100. package/dist/fable_modules/fable-library-js.4.28.0/Timer.js +67 -0
  101. package/dist/fable_modules/fable-library-js.4.28.0/Types.d.ts +58 -0
  102. package/dist/fable_modules/fable-library-js.4.28.0/Types.js +208 -0
  103. package/dist/fable_modules/fable-library-js.4.28.0/Unicode.13.0.0.d.ts +2 -0
  104. package/dist/fable_modules/fable-library-js.4.28.0/Unicode.13.0.0.js +4 -0
  105. package/dist/fable_modules/fable-library-js.4.28.0/Uri.d.ts +31 -0
  106. package/dist/fable_modules/fable-library-js.4.28.0/Uri.js +159 -0
  107. package/dist/fable_modules/fable-library-js.4.28.0/Util.d.ts +210 -0
  108. package/dist/fable_modules/fable-library-js.4.28.0/Util.js +769 -0
  109. package/dist/fable_modules/fable-library-js.4.28.0/big.d.ts +338 -0
  110. package/dist/fable_modules/fable-library-js.4.28.0/lib/big.d.ts +5 -0
  111. package/dist/fable_modules/fable-library-js.4.28.0/lib/big.js +825 -0
  112. package/dist/fable_modules/fable-library-js.4.28.0/package.json +24 -0
  113. package/dist/fable_modules/project_cracked.json +1 -0
  114. package/package.json +4 -3
  115. package/.claude/settings.local.json +0 -11
  116. package/copy-latest.sh +0 -1
  117. package/dist/fable-library.2.10.1/Array.js +0 -1336
  118. package/dist/fable-library.2.10.1/Async.js +0 -121
  119. package/dist/fable-library.2.10.1/AsyncBuilder.js +0 -200
  120. package/dist/fable-library.2.10.1/Date.js +0 -501
  121. package/dist/fable-library.2.10.1/Decimal.js +0 -208
  122. package/dist/fable-library.2.10.1/Event.js +0 -193
  123. package/dist/fable-library.2.10.1/Int32.js +0 -157
  124. package/dist/fable-library.2.10.1/List.js +0 -1234
  125. package/dist/fable-library.2.10.1/Long.js +0 -155
  126. package/dist/fable-library.2.10.1/Map.js +0 -1292
  127. package/dist/fable-library.2.10.1/MutableMap.js +0 -360
  128. package/dist/fable-library.2.10.1/MutableSet.js +0 -279
  129. package/dist/fable-library.2.10.1/Observable.js +0 -131
  130. package/dist/fable-library.2.10.1/Option.js +0 -118
  131. package/dist/fable-library.2.10.1/Reflection.js +0 -345
  132. package/dist/fable-library.2.10.1/RegExp.js +0 -118
  133. package/dist/fable-library.2.10.1/Seq.js +0 -917
  134. package/dist/fable-library.2.10.1/Set.js +0 -1692
  135. package/dist/fable-library.2.10.1/String.js +0 -679
  136. package/dist/fable-library.2.10.1/Types.js +0 -308
  137. package/dist/fable-library.2.10.1/Util.js +0 -761
  138. package/dist/helpers.js +0 -31
  139. package/dist/lib/big.js +0 -905
  140. package/dist/lib/long.js +0 -1375
  141. package/index.html +0 -49
@@ -1,308 +0,0 @@
1
- // tslint:disable: space-before-function-paren
2
- import { combineHashCodes, compare, compareArrays, equalArrays, equals, identityHash, numberHash, structuralHash } from "./Util";
3
-
4
- function sameType(x, y) {
5
- return y != null && Object.getPrototypeOf(x).constructor === Object.getPrototypeOf(y).constructor;
6
- } // Taken from Babel helpers
7
-
8
-
9
- function inherits(subClass, superClass) {
10
- // if (typeof superClass !== "function" && superClass !== null) {
11
- // throw new TypeError(
12
- // "Super expression must either be null or a function, not " +
13
- // typeof superClass
14
- // );
15
- // }
16
- subClass.prototype = Object.create(superClass && superClass.prototype, {
17
- constructor: {
18
- value: subClass,
19
- enumerable: false,
20
- writable: true,
21
- configurable: true
22
- }
23
- }); // if (superClass)
24
- // Object.setPrototypeOf
25
- // ? Object.setPrototypeOf(subClass, superClass)
26
- // : (subClass.__proto__ = superClass);
27
- }
28
-
29
- export function declare(cons, superClass) {
30
- inherits(cons, superClass || SystemObject);
31
- return cons;
32
- }
33
- export class SystemObject {
34
- toString() {
35
- return "{" + Object.entries(this).map(([k, v]) => k + " = " + String(v)).join(";\n ") + "}";
36
- }
37
-
38
- GetHashCode() {
39
- return identityHash(this);
40
- }
41
-
42
- Equals(other) {
43
- return this === other;
44
- }
45
-
46
- }
47
-
48
- function compareList(self, other) {
49
- if (self === other) {
50
- return 0;
51
- } else {
52
- if (other == null) {
53
- return -1;
54
- }
55
-
56
- while (self.tail != null) {
57
- if (other.tail == null) {
58
- return 1;
59
- }
60
-
61
- const res = compare(self.head, other.head);
62
-
63
- if (res !== 0) {
64
- return res;
65
- }
66
-
67
- self = self.tail;
68
- other = other.tail;
69
- }
70
-
71
- return other.tail == null ? 0 : -1;
72
- }
73
- }
74
-
75
- export class List {
76
- constructor(head, tail) {
77
- this.head = head;
78
- this.tail = tail;
79
- }
80
-
81
- toString() {
82
- return "[" + Array.from(this).join("; ") + "]";
83
- }
84
-
85
- toJSON() {
86
- return Array.from(this);
87
- }
88
-
89
- [Symbol.iterator]() {
90
- let cur = this;
91
- return {
92
- next: () => {
93
- const value = cur === null || cur === void 0 ? void 0 : cur.head;
94
- const done = (cur === null || cur === void 0 ? void 0 : cur.tail) == null;
95
- cur = cur === null || cur === void 0 ? void 0 : cur.tail;
96
- return {
97
- done,
98
- value
99
- };
100
- }
101
- };
102
- }
103
-
104
- GetHashCode() {
105
- const hashes = Array.from(this).map(structuralHash);
106
- return combineHashCodes(hashes);
107
- }
108
-
109
- Equals(other) {
110
- return compareList(this, other) === 0;
111
- }
112
-
113
- CompareTo(other) {
114
- return compareList(this, other);
115
- }
116
-
117
- }
118
- export class Union extends SystemObject {
119
- constructor(tag, name, ...fields) {
120
- super();
121
- this.tag = tag | 0;
122
- this.name = name;
123
- this.fields = fields;
124
- }
125
-
126
- toString() {
127
- const len = this.fields.length;
128
-
129
- if (len === 0) {
130
- return this.name;
131
- } else if (len === 1) {
132
- return this.name + " " + String(this.fields[0]);
133
- } else {
134
- return this.name + " (" + this.fields.map(x => String(x)).join(",") + ")";
135
- }
136
- }
137
-
138
- toJSON() {
139
- return this.fields.length === 0 ? this.name : [this.name].concat(this.fields);
140
- }
141
-
142
- GetHashCode() {
143
- const hashes = this.fields.map(x => structuralHash(x));
144
- hashes.splice(0, 0, numberHash(this.tag));
145
- return combineHashCodes(hashes);
146
- }
147
-
148
- Equals(other) {
149
- return this === other || sameType(this, other) && this.tag === other.tag && equalArrays(this.fields, other.fields);
150
- }
151
-
152
- CompareTo(other) {
153
- if (this === other) {
154
- return 0;
155
- } else if (!sameType(this, other)) {
156
- return -1;
157
- } else if (this.tag === other.tag) {
158
- return compareArrays(this.fields, other.fields);
159
- } else {
160
- return this.tag < other.tag ? -1 : 1;
161
- }
162
- }
163
-
164
- }
165
-
166
- function recordToJson(record, getFieldNames) {
167
- const o = {};
168
- const keys = getFieldNames == null ? Object.keys(record) : getFieldNames(record);
169
-
170
- for (let i = 0; i < keys.length; i++) {
171
- o[keys[i]] = record[keys[i]];
172
- }
173
-
174
- return o;
175
- }
176
-
177
- function recordEquals(self, other, getFieldNames) {
178
- if (self === other) {
179
- return true;
180
- } else if (!sameType(self, other)) {
181
- return false;
182
- } else {
183
- const thisNames = getFieldNames == null ? Object.keys(self) : getFieldNames(self);
184
-
185
- for (let i = 0; i < thisNames.length; i++) {
186
- if (!equals(self[thisNames[i]], other[thisNames[i]])) {
187
- return false;
188
- }
189
- }
190
-
191
- return true;
192
- }
193
- }
194
-
195
- function recordCompare(self, other, getFieldNames) {
196
- if (self === other) {
197
- return 0;
198
- } else if (!sameType(self, other)) {
199
- return -1;
200
- } else {
201
- const thisNames = getFieldNames == null ? Object.keys(self) : getFieldNames(self);
202
-
203
- for (let i = 0; i < thisNames.length; i++) {
204
- const result = compare(self[thisNames[i]], other[thisNames[i]]);
205
-
206
- if (result !== 0) {
207
- return result;
208
- }
209
- }
210
-
211
- return 0;
212
- }
213
- }
214
-
215
- export class Record extends SystemObject {
216
- toString() {
217
- return "{" + Object.entries(this).map(([k, v]) => k + " = " + String(v)).join(";\n ") + "}";
218
- }
219
-
220
- toJSON() {
221
- return recordToJson(this);
222
- }
223
-
224
- GetHashCode() {
225
- const hashes = Object.values(this).map(v => structuralHash(v));
226
- return combineHashCodes(hashes);
227
- }
228
-
229
- Equals(other) {
230
- return recordEquals(this, other);
231
- }
232
-
233
- CompareTo(other) {
234
- return recordCompare(this, other);
235
- }
236
-
237
- }
238
- export function anonRecord(o) {
239
- return Object.assign(Object.create(Record.prototype), o);
240
- }
241
- export class FSharpRef extends Record {
242
- constructor(contents) {
243
- super();
244
- this.contents = contents;
245
- }
246
-
247
- }
248
- export const Exception = declare(function Exception(message) {
249
- this.stack = Error().stack;
250
- this.message = message;
251
- }, SystemObject);
252
- export function isException(x) {
253
- return x instanceof Error || x instanceof Exception;
254
- }
255
-
256
- function getFSharpExceptionFieldNames(self) {
257
- return Object.keys(self).filter(k => k !== "message" && k !== "stack");
258
- }
259
-
260
- export class FSharpException extends Exception {
261
- toString() {
262
- var _a; // const fieldNames = getFSharpExceptionFieldNames(this);
263
-
264
-
265
- const fields = Object.entries(this).filter(([k, _]) => k !== "message" && k !== "stack");
266
- const len = fields.length;
267
-
268
- if (len === 0) {
269
- return (_a = this.message) !== null && _a !== void 0 ? _a : "";
270
- } else if (len === 1) {
271
- return this.message + " " + String(fields[1]);
272
- } else {
273
- return this.message + " (" + fields.map(([_, v]) => String(v)).join(",") + ")";
274
- }
275
- }
276
-
277
- toJSON() {
278
- return recordToJson(this, getFSharpExceptionFieldNames);
279
- }
280
-
281
- GetHashCode() {
282
- const fields = Object.entries(this).filter(([k, _]) => k !== "message" && k !== "stack");
283
- const hashes = fields.map(([_, v]) => structuralHash(v));
284
- return combineHashCodes(hashes);
285
- }
286
-
287
- Equals(other) {
288
- return recordEquals(this, other, getFSharpExceptionFieldNames);
289
- }
290
-
291
- CompareTo(other) {
292
- return recordCompare(this, other, getFSharpExceptionFieldNames);
293
- }
294
-
295
- }
296
- export class MatchFailureException extends FSharpException {
297
- constructor(arg1, arg2, arg3) {
298
- super();
299
- this.arg1 = arg1;
300
- this.arg2 = arg2 | 0;
301
- this.arg3 = arg3 | 0;
302
- this.message = "The match cases were incomplete";
303
- }
304
-
305
- }
306
- export const Attribute = declare(function Attribute() {
307
- return;
308
- }, SystemObject);