@naturalcycles/abba 1.0.2 → 1.4.0

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 (40) hide show
  1. package/dist/abba.d.ts +2 -2
  2. package/dist/abba.js +11 -5
  3. package/dist/index.d.ts +1 -1
  4. package/dist/prisma-output/index-browser.js +141 -0
  5. package/dist/prisma-output/index.d.ts +5521 -0
  6. package/dist/prisma-output/index.js +176 -0
  7. package/dist/prisma-output/libquery_engine-darwin.dylib.node +0 -0
  8. package/dist/prisma-output/runtime/esm/index-browser.mjs +2370 -0
  9. package/dist/prisma-output/runtime/esm/index.mjs +40587 -0
  10. package/dist/prisma-output/runtime/esm/proxy.mjs +113 -0
  11. package/dist/prisma-output/runtime/index-browser.d.ts +269 -0
  12. package/dist/prisma-output/runtime/index-browser.js +2621 -0
  13. package/dist/prisma-output/runtime/index.d.ts +1373 -0
  14. package/dist/prisma-output/runtime/index.js +52855 -0
  15. package/dist/prisma-output/runtime/proxy.d.ts +1373 -0
  16. package/dist/prisma-output/runtime/proxy.js +13717 -0
  17. package/dist/prisma-output/schema.prisma +46 -0
  18. package/dist/types.d.ts +1 -1
  19. package/dist/util.d.ts +7 -14
  20. package/dist/util.js +18 -29
  21. package/package.json +5 -3
  22. package/readme.md +18 -14
  23. package/src/abba.ts +13 -13
  24. package/src/index.ts +1 -1
  25. package/src/prisma-output/index-browser.js +141 -0
  26. package/src/prisma-output/index.d.ts +5521 -0
  27. package/src/prisma-output/index.js +176 -0
  28. package/src/prisma-output/libquery_engine-darwin.dylib.node +0 -0
  29. package/src/prisma-output/runtime/esm/index-browser.mjs +2370 -0
  30. package/src/prisma-output/runtime/esm/index.mjs +40587 -0
  31. package/src/prisma-output/runtime/esm/proxy.mjs +113 -0
  32. package/src/prisma-output/runtime/index-browser.d.ts +269 -0
  33. package/src/prisma-output/runtime/index-browser.js +2621 -0
  34. package/src/prisma-output/runtime/index.d.ts +1373 -0
  35. package/src/prisma-output/runtime/index.js +52855 -0
  36. package/src/prisma-output/runtime/proxy.d.ts +1373 -0
  37. package/src/prisma-output/runtime/proxy.js +13717 -0
  38. package/src/prisma-output/schema.prisma +46 -0
  39. package/src/types.ts +1 -1
  40. package/src/util.ts +12 -20
@@ -0,0 +1,269 @@
1
+ export declare namespace Decimal {
2
+ export type Constructor = typeof Decimal
3
+ export type Instance = Decimal
4
+ export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
5
+ export type Modulo = Rounding | 9
6
+ export type Value = string | number | Decimal
7
+
8
+ // http://mikemcl.github.io/decimal.js/#constructor-properties
9
+ export interface Config {
10
+ precision?: number
11
+ rounding?: Rounding
12
+ toExpNeg?: number
13
+ toExpPos?: number
14
+ minE?: number
15
+ maxE?: number
16
+ crypto?: boolean
17
+ modulo?: Modulo
18
+ defaults?: boolean
19
+ }
20
+ }
21
+
22
+ export declare class Decimal {
23
+ readonly d: number[]
24
+ readonly e: number
25
+ readonly s: number
26
+ private readonly toStringTag: string
27
+
28
+ constructor(n: Decimal.Value)
29
+
30
+ absoluteValue(): Decimal
31
+ abs(): Decimal
32
+
33
+ ceil(): Decimal
34
+
35
+ clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal
36
+ clamp(min: Decimal.Value, max: Decimal.Value): Decimal
37
+
38
+ comparedTo(n: Decimal.Value): number
39
+ cmp(n: Decimal.Value): number
40
+
41
+ cosine(): Decimal
42
+ cos(): Decimal
43
+
44
+ cubeRoot(): Decimal
45
+ cbrt(): Decimal
46
+
47
+ decimalPlaces(): number
48
+ dp(): number
49
+
50
+ dividedBy(n: Decimal.Value): Decimal
51
+ div(n: Decimal.Value): Decimal
52
+
53
+ dividedToIntegerBy(n: Decimal.Value): Decimal
54
+ divToInt(n: Decimal.Value): Decimal
55
+
56
+ equals(n: Decimal.Value): boolean
57
+ eq(n: Decimal.Value): boolean
58
+
59
+ floor(): Decimal
60
+
61
+ greaterThan(n: Decimal.Value): boolean
62
+ gt(n: Decimal.Value): boolean
63
+
64
+ greaterThanOrEqualTo(n: Decimal.Value): boolean
65
+ gte(n: Decimal.Value): boolean
66
+
67
+ hyperbolicCosine(): Decimal
68
+ cosh(): Decimal
69
+
70
+ hyperbolicSine(): Decimal
71
+ sinh(): Decimal
72
+
73
+ hyperbolicTangent(): Decimal
74
+ tanh(): Decimal
75
+
76
+ inverseCosine(): Decimal
77
+ acos(): Decimal
78
+
79
+ inverseHyperbolicCosine(): Decimal
80
+ acosh(): Decimal
81
+
82
+ inverseHyperbolicSine(): Decimal
83
+ asinh(): Decimal
84
+
85
+ inverseHyperbolicTangent(): Decimal
86
+ atanh(): Decimal
87
+
88
+ inverseSine(): Decimal
89
+ asin(): Decimal
90
+
91
+ inverseTangent(): Decimal
92
+ atan(): Decimal
93
+
94
+ isFinite(): boolean
95
+
96
+ isInteger(): boolean
97
+ isInt(): boolean
98
+
99
+ isNaN(): boolean
100
+
101
+ isNegative(): boolean
102
+ isNeg(): boolean
103
+
104
+ isPositive(): boolean
105
+ isPos(): boolean
106
+
107
+ isZero(): boolean
108
+
109
+ lessThan(n: Decimal.Value): boolean
110
+ lt(n: Decimal.Value): boolean
111
+
112
+ lessThanOrEqualTo(n: Decimal.Value): boolean
113
+ lte(n: Decimal.Value): boolean
114
+
115
+ logarithm(n?: Decimal.Value): Decimal
116
+ log(n?: Decimal.Value): Decimal
117
+
118
+ minus(n: Decimal.Value): Decimal
119
+ sub(n: Decimal.Value): Decimal
120
+
121
+ modulo(n: Decimal.Value): Decimal
122
+ mod(n: Decimal.Value): Decimal
123
+
124
+ naturalExponential(): Decimal
125
+ exp(): Decimal
126
+
127
+ naturalLogarithm(): Decimal
128
+ ln(): Decimal
129
+
130
+ negated(): Decimal
131
+ neg(): Decimal
132
+
133
+ plus(n: Decimal.Value): Decimal
134
+ add(n: Decimal.Value): Decimal
135
+
136
+ precision(includeZeros?: boolean): number
137
+ sd(includeZeros?: boolean): number
138
+
139
+ round(): Decimal
140
+
141
+ sine(): Decimal
142
+ sin(): Decimal
143
+
144
+ squareRoot(): Decimal
145
+ sqrt(): Decimal
146
+
147
+ tangent(): Decimal
148
+ tan(): Decimal
149
+
150
+ times(n: Decimal.Value): Decimal
151
+ mul(n: Decimal.Value): Decimal
152
+
153
+ toBinary(significantDigits?: number): string
154
+ toBinary(significantDigits: number, rounding: Decimal.Rounding): string
155
+
156
+ toDecimalPlaces(decimalPlaces?: number): Decimal
157
+ toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal
158
+ toDP(decimalPlaces?: number): Decimal
159
+ toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal
160
+
161
+ toExponential(decimalPlaces?: number): string
162
+ toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string
163
+
164
+ toFixed(decimalPlaces?: number): string
165
+ toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string
166
+
167
+ toFraction(max_denominator?: Decimal.Value): Decimal[]
168
+
169
+ toHexadecimal(significantDigits?: number): string
170
+ toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string
171
+ toHex(significantDigits?: number): string
172
+ toHex(significantDigits: number, rounding?: Decimal.Rounding): string
173
+
174
+ toJSON(): string
175
+
176
+ toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal
177
+
178
+ toNumber(): number
179
+
180
+ toOctal(significantDigits?: number): string
181
+ toOctal(significantDigits: number, rounding: Decimal.Rounding): string
182
+
183
+ toPower(n: Decimal.Value): Decimal
184
+ pow(n: Decimal.Value): Decimal
185
+
186
+ toPrecision(significantDigits?: number): string
187
+ toPrecision(significantDigits: number, rounding: Decimal.Rounding): string
188
+
189
+ toSignificantDigits(significantDigits?: number): Decimal
190
+ toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal
191
+ toSD(significantDigits?: number): Decimal
192
+ toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal
193
+
194
+ toString(): string
195
+
196
+ truncated(): Decimal
197
+ trunc(): Decimal
198
+
199
+ valueOf(): string
200
+
201
+ static abs(n: Decimal.Value): Decimal
202
+ static acos(n: Decimal.Value): Decimal
203
+ static acosh(n: Decimal.Value): Decimal
204
+ static add(x: Decimal.Value, y: Decimal.Value): Decimal
205
+ static asin(n: Decimal.Value): Decimal
206
+ static asinh(n: Decimal.Value): Decimal
207
+ static atan(n: Decimal.Value): Decimal
208
+ static atanh(n: Decimal.Value): Decimal
209
+ static atan2(y: Decimal.Value, x: Decimal.Value): Decimal
210
+ static cbrt(n: Decimal.Value): Decimal
211
+ static ceil(n: Decimal.Value): Decimal
212
+ static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal
213
+ static clone(object?: Decimal.Config): Decimal.Constructor
214
+ static config(object: Decimal.Config): Decimal.Constructor
215
+ static cos(n: Decimal.Value): Decimal
216
+ static cosh(n: Decimal.Value): Decimal
217
+ static div(x: Decimal.Value, y: Decimal.Value): Decimal
218
+ static exp(n: Decimal.Value): Decimal
219
+ static floor(n: Decimal.Value): Decimal
220
+ static hypot(...n: Decimal.Value[]): Decimal
221
+ static isDecimal(object: any): boolean
222
+ static ln(n: Decimal.Value): Decimal
223
+ static log(n: Decimal.Value, base?: Decimal.Value): Decimal
224
+ static log2(n: Decimal.Value): Decimal
225
+ static log10(n: Decimal.Value): Decimal
226
+ static max(...n: Decimal.Value[]): Decimal
227
+ static min(...n: Decimal.Value[]): Decimal
228
+ static mod(x: Decimal.Value, y: Decimal.Value): Decimal
229
+ static mul(x: Decimal.Value, y: Decimal.Value): Decimal
230
+ static noConflict(): Decimal.Constructor // Browser only
231
+ static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal
232
+ static random(significantDigits?: number): Decimal
233
+ static round(n: Decimal.Value): Decimal
234
+ static set(object: Decimal.Config): Decimal.Constructor
235
+ static sign(n: Decimal.Value): Decimal
236
+ static sin(n: Decimal.Value): Decimal
237
+ static sinh(n: Decimal.Value): Decimal
238
+ static sqrt(n: Decimal.Value): Decimal
239
+ static sub(x: Decimal.Value, y: Decimal.Value): Decimal
240
+ static sum(...n: Decimal.Value[]): Decimal
241
+ static tan(n: Decimal.Value): Decimal
242
+ static tanh(n: Decimal.Value): Decimal
243
+ static trunc(n: Decimal.Value): Decimal
244
+
245
+ static readonly default?: Decimal.Constructor
246
+ static readonly Decimal?: Decimal.Constructor
247
+
248
+ static readonly precision: number
249
+ static readonly rounding: Decimal.Rounding
250
+ static readonly toExpNeg: number
251
+ static readonly toExpPos: number
252
+ static readonly minE: number
253
+ static readonly maxE: number
254
+ static readonly crypto: boolean
255
+ static readonly modulo: Decimal.Modulo
256
+
257
+ static readonly ROUND_UP: 0
258
+ static readonly ROUND_DOWN: 1
259
+ static readonly ROUND_CEIL: 2
260
+ static readonly ROUND_FLOOR: 3
261
+ static readonly ROUND_HALF_UP: 4
262
+ static readonly ROUND_HALF_DOWN: 5
263
+ static readonly ROUND_HALF_EVEN: 6
264
+ static readonly ROUND_HALF_CEIL: 7
265
+ static readonly ROUND_HALF_FLOOR: 8
266
+ static readonly EUCLID: 9
267
+ }
268
+
269
+ export {}