lakutata 2.0.44 → 2.0.46

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.
package/helper.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference path="../../node_modules/bignumber.js/types.d.ts" />
2
1
  /// <reference types="node" />
3
2
  import './vendor/TypeDef.2.js';
4
3
  import { PathLike } from 'fs';
@@ -4798,7 +4797,281 @@ declare class Statistics {
4798
4797
  static subtractFromAverage(mean: number, n: number, value: number): number;
4799
4798
  }
4800
4799
 
4801
- var BigNumber$1 = port = BigNumber;
4800
+ type BigNumberValue = string | number | bigint | BigNumber;
4801
+ type BigNumberModuloMode = 0 | 1 | 3 | 6 | 9;
4802
+ type BigNumberRoundingMode = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
4803
+ interface BigNumberConfig {
4804
+ /**
4805
+ * An integer, 0 to 1e+9. Default value: 20.
4806
+ *
4807
+ * The maximum number of decimal places of the result of operations involving division, i.e.
4808
+ * division, square root and base conversion operations, and exponentiation when the exponent is
4809
+ * negative.
4810
+ *
4811
+ * ```ts
4812
+ * BigNumber.config({ DECIMAL_PLACES: 5 })
4813
+ * BigNumber.set({ DECIMAL_PLACES: 5 })
4814
+ * ```
4815
+ */
4816
+ DECIMAL_PLACES?: number;
4817
+ /**
4818
+ * An integer, 0 to 8. Default value: `BigNumber.ROUND_HALF_UP` (4).
4819
+ *
4820
+ * The rounding mode used in operations that involve division (see `DECIMAL_PLACES`) and the
4821
+ * default rounding mode of the `decimalPlaces`, `precision`, `toExponential`, `toFixed`,
4822
+ * `toFormat` and `toPrecision` methods.
4823
+ *
4824
+ * The modes are available as enumerated properties of the BigNumber constructor.
4825
+ *
4826
+ * ```ts
4827
+ * BigNumber.config({ ROUNDING_MODE: 0 })
4828
+ * BigNumber.set({ ROUNDING_MODE: BigNumber.ROUND_UP })
4829
+ * ```
4830
+ */
4831
+ ROUNDING_MODE?: BigNumberRoundingMode;
4832
+ /**
4833
+ * An integer, 0 to 1e+9, or an array, [-1e+9 to 0, 0 to 1e+9].
4834
+ * Default value: `[-7, 20]`.
4835
+ *
4836
+ * The exponent value(s) at which `toString` returns exponential notation.
4837
+ *
4838
+ * If a single number is assigned, the value is the exponent magnitude.
4839
+ *
4840
+ * If an array of two numbers is assigned then the first number is the negative exponent value at
4841
+ * and beneath which exponential notation is used, and the second number is the positive exponent
4842
+ * value at and above which exponential notation is used.
4843
+ *
4844
+ * For example, to emulate JavaScript numbers in terms of the exponent values at which they begin
4845
+ * to use exponential notation, use `[-7, 20]`.
4846
+ *
4847
+ * ```ts
4848
+ * BigNumber.config({ EXPONENTIAL_AT: 2 })
4849
+ * new BigNumber(12.3) // '12.3' e is only 1
4850
+ * new BigNumber(123) // '1.23e+2'
4851
+ * new BigNumber(0.123) // '0.123' e is only -1
4852
+ * new BigNumber(0.0123) // '1.23e-2'
4853
+ *
4854
+ * BigNumber.config({ EXPONENTIAL_AT: [-7, 20] })
4855
+ * new BigNumber(123456789) // '123456789' e is only 8
4856
+ * new BigNumber(0.000000123) // '1.23e-7'
4857
+ *
4858
+ * // Almost never return exponential notation:
4859
+ * BigNumber.config({ EXPONENTIAL_AT: 1e+9 })
4860
+ *
4861
+ * // Always return exponential notation:
4862
+ * BigNumber.config({ EXPONENTIAL_AT: 0 })
4863
+ * ```
4864
+ *
4865
+ * Regardless of the value of `EXPONENTIAL_AT`, the `toFixed` method will always return a value in
4866
+ * normal notation and the `toExponential` method will always return a value in exponential form.
4867
+ * Calling `toString` with a base argument, e.g. `toString(10)`, will also always return normal
4868
+ * notation.
4869
+ */
4870
+ EXPONENTIAL_AT?: number | [number, number];
4871
+ /**
4872
+ * An integer, magnitude 1 to 1e+9, or an array, [-1e+9 to -1, 1 to 1e+9].
4873
+ * Default value: `[-1e+9, 1e+9]`.
4874
+ *
4875
+ * The exponent value(s) beyond which overflow to Infinity and underflow to zero occurs.
4876
+ *
4877
+ * If a single number is assigned, it is the maximum exponent magnitude: values wth a positive
4878
+ * exponent of greater magnitude become Infinity and those with a negative exponent of greater
4879
+ * magnitude become zero.
4880
+ *
4881
+ * If an array of two numbers is assigned then the first number is the negative exponent limit and
4882
+ * the second number is the positive exponent limit.
4883
+ *
4884
+ * For example, to emulate JavaScript numbers in terms of the exponent values at which they
4885
+ * become zero and Infinity, use [-324, 308].
4886
+ *
4887
+ * ```ts
4888
+ * BigNumber.config({ RANGE: 500 })
4889
+ * BigNumber.config().RANGE // [ -500, 500 ]
4890
+ * new BigNumber('9.999e499') // '9.999e+499'
4891
+ * new BigNumber('1e500') // 'Infinity'
4892
+ * new BigNumber('1e-499') // '1e-499'
4893
+ * new BigNumber('1e-500') // '0'
4894
+ *
4895
+ * BigNumber.config({ RANGE: [-3, 4] })
4896
+ * new BigNumber(99999) // '99999' e is only 4
4897
+ * new BigNumber(100000) // 'Infinity' e is 5
4898
+ * new BigNumber(0.001) // '0.01' e is only -3
4899
+ * new BigNumber(0.0001) // '0' e is -4
4900
+ * ```
4901
+ * The largest possible magnitude of a finite BigNumber is 9.999...e+1000000000.
4902
+ * The smallest possible magnitude of a non-zero BigNumber is 1e-1000000000.
4903
+ */
4904
+ RANGE?: number | [number, number];
4905
+ /**
4906
+ * A boolean: `true` or `false`. Default value: `false`.
4907
+ *
4908
+ * The value that determines whether cryptographically-secure pseudo-random number generation is
4909
+ * used. If `CRYPTO` is set to true then the random method will generate random digits using
4910
+ * `crypto.getRandomValues` in browsers that support it, or `crypto.randomBytes` if using a
4911
+ * version of Node.js that supports it.
4912
+ *
4913
+ * If neither function is supported by the host environment then attempting to set `CRYPTO` to
4914
+ * `true` will fail and an exception will be thrown.
4915
+ *
4916
+ * If `CRYPTO` is `false` then the source of randomness used will be `Math.random` (which is
4917
+ * assumed to generate at least 30 bits of randomness).
4918
+ *
4919
+ * See `BigNumber.random`.
4920
+ *
4921
+ * ```ts
4922
+ * // Node.js
4923
+ * global.crypto = require('crypto')
4924
+ *
4925
+ * BigNumber.config({ CRYPTO: true })
4926
+ * BigNumber.config().CRYPTO // true
4927
+ * BigNumber.random() // 0.54340758610486147524
4928
+ * ```
4929
+ */
4930
+ CRYPTO?: boolean;
4931
+ /**
4932
+ * An integer, 0, 1, 3, 6 or 9. Default value: `BigNumber.ROUND_DOWN` (1).
4933
+ *
4934
+ * The modulo mode used when calculating the modulus: `a mod n`.
4935
+ * The quotient, `q = a / n`, is calculated according to the `ROUNDING_MODE` that corresponds to
4936
+ * the chosen `MODULO_MODE`.
4937
+ * The remainder, `r`, is calculated as: `r = a - n * q`.
4938
+ *
4939
+ * The modes that are most commonly used for the modulus/remainder operation are shown in the
4940
+ * following table. Although the other rounding modes can be used, they may not give useful
4941
+ * results.
4942
+ *
4943
+ * Property | Value | Description
4944
+ * :------------------|:------|:------------------------------------------------------------------
4945
+ * `ROUND_UP` | 0 | The remainder is positive if the dividend is negative.
4946
+ * `ROUND_DOWN` | 1 | The remainder has the same sign as the dividend.
4947
+ * | | Uses 'truncating division' and matches JavaScript's `%` operator .
4948
+ * `ROUND_FLOOR` | 3 | The remainder has the same sign as the divisor.
4949
+ * | | This matches Python's `%` operator.
4950
+ * `ROUND_HALF_EVEN` | 6 | The IEEE 754 remainder function.
4951
+ * `EUCLID` | 9 | The remainder is always positive.
4952
+ * | | Euclidian division: `q = sign(n) * floor(a / abs(n))`
4953
+ *
4954
+ * The rounding/modulo modes are available as enumerated properties of the BigNumber constructor.
4955
+ *
4956
+ * See `modulo`.
4957
+ *
4958
+ * ```ts
4959
+ * BigNumber.config({ MODULO_MODE: BigNumber.EUCLID })
4960
+ * BigNumber.set({ MODULO_MODE: 9 }) // equivalent
4961
+ * ```
4962
+ */
4963
+ MODULO_MODE?: BigNumberModuloMode;
4964
+ /**
4965
+ * An integer, 0 to 1e+9. Default value: 0.
4966
+ *
4967
+ * The maximum precision, i.e. number of significant digits, of the result of the power operation
4968
+ * - unless a modulus is specified.
4969
+ *
4970
+ * If set to 0, the number of significant digits will not be limited.
4971
+ *
4972
+ * See `exponentiatedBy`.
4973
+ *
4974
+ * ```ts
4975
+ * BigNumber.config({ POW_PRECISION: 100 })
4976
+ * ```
4977
+ */
4978
+ POW_PRECISION?: number;
4979
+ /**
4980
+ * An object including any number of the properties shown below.
4981
+ *
4982
+ * The object configures the format of the string returned by the `toFormat` method.
4983
+ * The example below shows the properties of the object that are recognised, and
4984
+ * their default values.
4985
+ *
4986
+ * Unlike the other configuration properties, the values of the properties of the `FORMAT` object
4987
+ * will not be checked for validity - the existing object will simply be replaced by the object
4988
+ * that is passed in.
4989
+ *
4990
+ * See `toFormat`.
4991
+ *
4992
+ * ```ts
4993
+ * BigNumber.config({
4994
+ * FORMAT: {
4995
+ * // string to prepend
4996
+ * prefix: '',
4997
+ * // the decimal separator
4998
+ * decimalSeparator: '.',
4999
+ * // the grouping separator of the integer part
5000
+ * groupSeparator: ',',
5001
+ * // the primary grouping size of the integer part
5002
+ * groupSize: 3,
5003
+ * // the secondary grouping size of the integer part
5004
+ * secondaryGroupSize: 0,
5005
+ * // the grouping separator of the fraction part
5006
+ * fractionGroupSeparator: ' ',
5007
+ * // the grouping size of the fraction part
5008
+ * fractionGroupSize: 0,
5009
+ * // string to append
5010
+ * suffix: ''
5011
+ * }
5012
+ * })
5013
+ * ```
5014
+ */
5015
+ FORMAT?: BigNumberFormat;
5016
+ /**
5017
+ * The alphabet used for base conversion. The length of the alphabet corresponds to the maximum
5018
+ * value of the base argument that can be passed to the BigNumber constructor or `toString`.
5019
+ *
5020
+ * Default value: `'0123456789abcdefghijklmnopqrstuvwxyz'`.
5021
+ *
5022
+ * There is no maximum length for the alphabet, but it must be at least 2 characters long,
5023
+ * and it must not contain whitespace or a repeated character, or the sign indicators '+' and
5024
+ * '-', or the decimal separator '.'.
5025
+ *
5026
+ * ```ts
5027
+ * // duodecimal (base 12)
5028
+ * BigNumber.config({ ALPHABET: '0123456789TE' })
5029
+ * x = new BigNumber('T', 12)
5030
+ * x.toString() // '10'
5031
+ * x.toString(12) // 'T'
5032
+ * ```
5033
+ */
5034
+ ALPHABET?: string;
5035
+ }
5036
+ interface BigNumberFormat {
5037
+ /** The string to prepend. */
5038
+ prefix?: string;
5039
+ /** The decimal separator. */
5040
+ decimalSeparator?: string;
5041
+ /** The grouping separator of the integer part. */
5042
+ groupSeparator?: string;
5043
+ /** The primary grouping size of the integer part. */
5044
+ groupSize?: number;
5045
+ /** The secondary grouping size of the integer part. */
5046
+ secondaryGroupSize?: number;
5047
+ /** The grouping separator of the fraction part. */
5048
+ fractionGroupSeparator?: string;
5049
+ /** The grouping size of the fraction part. */
5050
+ fractionGroupSize?: number;
5051
+ /** The string to append. */
5052
+ suffix?: string;
5053
+ }
5054
+ declare function BigNumber(n: BigNumberValue, base?: number): BigNumber;
5055
+ declare namespace BigNumber {
5056
+ var min: (...n: BigNumberValue[]) => BigNumber;
5057
+ var max: (...n: BigNumberValue[]) => BigNumber;
5058
+ var set: (object?: BigNumberConfig) => BigNumberConfig;
5059
+ var sum: (...n: BigNumberValue[]) => BigNumber;
5060
+ var config: (object?: BigNumberConfig) => BigNumberConfig;
5061
+ var isBigNumber: (value: any) => boolean;
5062
+ var random: (decimalPlaces?: number) => BigNumber;
5063
+ var EUCLID: 9;
5064
+ var DEBUG: boolean | undefined;
5065
+ var ROUND_CEIL: 2;
5066
+ var ROUND_DOWN: 1;
5067
+ var ROUND_FLOOR: 3;
5068
+ var ROUND_HALF_CEIL: 7;
5069
+ var ROUND_HALF_DOWN: 5;
5070
+ var ROUND_HALF_EVEN: 6;
5071
+ var ROUND_HALF_FLOOR: 8;
5072
+ var ROUND_HALF_UP: 4;
5073
+ var ROUND_UP: 0;
5074
+ }
4802
5075
 
4803
- export { ArrayToSet, As, BigNumber$1 as BigNumber, ConvertArrayLikeToIterable, ConvertArrayLikeToStream, Delay, DevNull, GetObjectNestingDepth, GetObjectPropertyPaths, Glob, GraceExit, HexToIEEE754, HexToSigned, HexToUnsigned, IEEE754ToHex, IP, IPv4, IPv6, IsAbortError, IsEmptyObject, IsExists, IsGlobString, IsHtml, IsNativeFunction, IsPath, IsPromise, IsPromiseLike, IsSymbol, IsXML, MD5, MergeArray, MergeMap, MergeSet, MissingValueError, NoCase, NonceStr, ObjectConstructor, ObjectHash, ObjectParentConstructor, ObjectParentConstructors, ObjectPrototype, ObjectToMap, RandomString, SHA1, SHA256, SetToArray, SignedToHex, SortArray, SortKeys, SortObject, Split, Statistics, Templating, ToLower, ToUpper, URLBuilder, UniqueArray, UnsignedToHex };
5076
+ export { ArrayToSet, As, BigNumber, ConvertArrayLikeToIterable, ConvertArrayLikeToStream, Delay, DevNull, GetObjectNestingDepth, GetObjectPropertyPaths, Glob, GraceExit, HexToIEEE754, HexToSigned, HexToUnsigned, IEEE754ToHex, IP, IPv4, IPv6, IsAbortError, IsEmptyObject, IsExists, IsGlobString, IsHtml, IsNativeFunction, IsPath, IsPromise, IsPromiseLike, IsSymbol, IsXML, MD5, MergeArray, MergeMap, MergeSet, MissingValueError, NoCase, NonceStr, ObjectConstructor, ObjectHash, ObjectParentConstructor, ObjectParentConstructors, ObjectPrototype, ObjectToMap, RandomString, SHA1, SHA256, SetToArray, SignedToHex, SortArray, SortKeys, SortObject, Split, Statistics, Templating, ToLower, ToUpper, URLBuilder, UniqueArray, UnsignedToHex };
4804
5077
  export type { IPBinHex, IPv4SubNet, IPv6Result, IPv6SubNet, NoCaseOptions, ObjectHashOptions, SortKeysOptions, SortObjectOptions, SortOptions, SplitOptions, TemplatingOptions, URLAttributes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lakutata",
3
- "version": "2.0.44",
3
+ "version": "2.0.46",
4
4
  "description": "An IoC-based universal application framework.",
5
5
  "exports": {
6
6
  ".": {