diff --git a/docs/classes/index.Basura.html b/docs/classes/index.Basura.html index 6023862..53d243a 100644 --- a/docs/classes/index.Basura.html +++ b/docs/classes/index.Basura.html @@ -1,5 +1,5 @@ Basura | basura

Class Basura

Create garbage javascript types for testing.

-

Constructors

Constructors

Properties

#rand ErrorConstructors funNumbers @@ -61,90 +61,90 @@
  • types: Record<string, BasuraGenerator<unknown>>

    Additional types. The key is the type name, the value is a function used to generate, or null to prevent that type from being generated.

    -
  • Returns Basura

    Properties

    #rand: Random
    ErrorConstructors: (ErrorConstructor | AggregateErrorConstructor)[]
    funNumbers: number[]
    functionSpecies: string[]
    opts: {
        arrayLength: number;
        catchUnhandled: boolean;
        cborSafe: boolean;
        depth: number;
        edgeFreq: number;
        jsonSafe: boolean;
        noBoxed: boolean;
        output: boolean;
        randBytes: BasuraRandBytes;
        scripts: any;
        stringLength: number;
        types: Record<string, BasuraGenerator<unknown>>;
    }

    Type declaration

    • arrayLength: number
    • catchUnhandled: boolean
    • cborSafe: boolean
    • depth: number
    • edgeFreq: number
    • jsonSafe: boolean
    • noBoxed: boolean
    • output: boolean
    • randBytes: BasuraRandBytes
    • scripts: any
    • stringLength: number
    • types: Record<string, BasuraGenerator<unknown>>
    typeNames: string[]
    typedArrays: (ArrayBufferConstructor | DataViewConstructor | Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor | SharedArrayBufferConstructor | BigInt64ArrayConstructor | BigUint64ArrayConstructor)[]
    types: Record<string, BasuraGenerator<unknown>>
    validWeak: string[]
    weakMembers: WeakMap<any, any[]>
    annotations: [string, ...MethodDecorator[]][] = ...

    Methods

    • Parameters

      • depth: number = 0
      • reason: string = 'unspecified'

      Returns any

    • Generate a random type that this object currently supports. Returns +

    Returns Basura

    Properties

    #rand: Random
    ErrorConstructors: (ErrorConstructor | AggregateErrorConstructor)[]
    funNumbers: number[]
    functionSpecies: string[]
    opts: {
        arrayLength: number;
        catchUnhandled: boolean;
        cborSafe: boolean;
        depth: number;
        edgeFreq: number;
        jsonSafe: boolean;
        noBoxed: boolean;
        output: boolean;
        randBytes: BasuraRandBytes;
        scripts: any;
        stringLength: number;
        types: Record<string, BasuraGenerator<unknown>>;
    }

    Type declaration

    • arrayLength: number
    • catchUnhandled: boolean
    • cborSafe: boolean
    • depth: number
    • edgeFreq: number
    • jsonSafe: boolean
    • noBoxed: boolean
    • output: boolean
    • randBytes: BasuraRandBytes
    • scripts: any
    • stringLength: number
    • types: Record<string, BasuraGenerator<unknown>>
    typeNames: string[]
    typedArrays: (ArrayBufferConstructor | DataViewConstructor | Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor | SharedArrayBufferConstructor | BigInt64ArrayConstructor | BigUint64ArrayConstructor)[]
    types: Record<string, BasuraGenerator<unknown>>
    validWeak: string[]
    weakMembers: WeakMap<any, any[]>
    annotations: [string, ...MethodDecorator[]][] = ...

    Methods

    • Parameters

      • depth: number = 0
      • reason: string = 'unspecified'

      Returns any

    • Generate a random type that this object currently supports. Returns null if we're already too deep.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns any

      Might generate... Anything!

      -
    • Generate an Array of up to arrayLength size, with each element of the +

    • Generate an Array of up to arrayLength size, with each element of the array being generated from the list of types this object currently supports. Generates an empty array ([]) if we're too deep already.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns any[]

      Generated array.

      -
    • Generate boxed Boolean.

      +
    • Generate boxed Boolean.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns boolean

      New Boolean(true) or new Boolean(false).

      -
    • Generate a Buffer of up to stringLength size.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns Buffer

      NodeJS Buffer.

      -
    • Generate a random Date, gaussian-distributed around today with a standard +

    • Generate a random Date, gaussian-distributed around today with a standard deviation of 10 years.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns Date

      Generated Date.

      -
    • Generate a random Error. If an AggregateError is selected, fill it with +

    • Generate a random Error. If an AggregateError is selected, fill it with random Errors.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns Error

      Generated Error.

      -
    • Generate a generator that yields basura.

      +
    • Generate a generator that yields basura.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns Generator<any, any, any>

      Generated.

      -
    • Generate a random Map with up to arrayLength elements. If we are too +

    • Generate a random Map with up to arrayLength elements. If we are too deep already, will generate an empty Map. Each key and value will be of a random type currently supported by this object.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns Map<any, any>

      Generated Map.

      -
    • Generate boxed 64-bit floating point Number, with a 10% chance of something +

    • Generate boxed 64-bit floating point Number, with a 10% chance of something "fun": 0, -0, NaN, Infinity, -Infinity.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns number

      Wrapped new Number(num).

      -
    • Generate a random object with up to arrayLength properties. Will generate +

    • Generate a random object with up to arrayLength properties. Will generate null (an Object!) if we are too deep already.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns any

      Object or null.

      -
    • Generate a rejected or resolved promise.

      +
    • Generate a rejected or resolved promise.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns Promise<any>

      Resolved or rejected promise.

      -
    • Generate a Proxy over a random object. If we are already too deep, +

    • Generate a Proxy over a random object. If we are already too deep, generates a Proxy around {}.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns ProxyConstructor

      Plain object in output mode, otherwise Proxy.

      -
    • Generate a regular expression of up to stringLength size, all from the same +

    • Generate a regular expression of up to stringLength size, all from the same random Unicode script. The first codepoint will not be a combining character.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns RegExp

      Generated regexp.

      -
    • Generate a Set of random things, with length up to arrayLength, and each +

    • Generate a Set of random things, with length up to arrayLength, and each element being any one of the types this object currently supports. If we are already too deep, generates an empty set.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns Set<any>

      Generated Set.

      -
    • Generate a boxed String of up to stringLength size, all from the same +

    • Generate a boxed String of up to stringLength size, all from the same random Unicode script. The first codepoint will not be a combining character.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns string

      Wrapped new String().

      -
    • Generate one of the TypedArrays, ArrayBuffer, SharedArrayBuffer, or +

    • Generate one of the TypedArrays, ArrayBuffer, SharedArrayBuffer, or DataView of arrayLength elements. If we're too deep already, generate an array with length 0.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns ArrayBuffer | SharedArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array

      Generated TypedArray.

      -
    • Generate a URL object where each component can be up to stringLength +

    • Generate a URL object where each component can be up to stringLength size, and each component is all from the same random Unicode script. The top-level domain (TLD) name will be valid, and the preceding domain label will be from the same script as the TLD.

      @@ -153,57 +153,57 @@

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns URL

      Generated punycode URL.

      -
    • Generate a WeakMap containing 0 or more key/value pairs where the keys +

    • Generate a WeakMap containing 0 or more key/value pairs where the keys are valid weak items, and the values can be any valid type.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns WeakMap<any, any>

      Generated.

      -
    • Parameters

      • depth: number = 0

      Returns WeakRef<any>

    • Generate a WeakSet containing 0 or more sub-items of any valid type.

      +
    • Parameters

      • depth: number = 0

      Returns WeakRef<any>

    • Generate a WeakSet containing 0 or more sub-items of any valid type.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns WeakSet<any>

      Generated.

      -
    • Generate a random BigInt of up to stringLength bytes.

      +
    • Generate a random BigInt of up to stringLength bytes.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns bigint

      Generated BigInt, possibly negative.

      -
    • Generate boolean.

      +
    • Generate boolean.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      • Optional reason: string = 'boolean'

        Reason for generating bool.

      Returns boolean

      True or false.

      -
    • Generate a function of a random "species". The current species list is +

    • Generate a function of a random "species". The current species list is stored in this.functionSpecies. See tutorial for more information. If we are already too deep, generates () => {}.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns Function

      Generated function.

      -
    • Generate signed 32-bit integer. +

    • Generate signed 32-bit integer. Note: may be folded into generate_number later.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns number

      32-bit integer.

      -
    • Generate 64-bit floating point number, with a 10% chance of something +

    • Generate 64-bit floating point number, with a 10% chance of something "fun": 0, -0, NaN, Infinity, -Infinity.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns number

      Number or edge case.

      -
    • Generate a string of up to stringLength size, all from the same random +

    • Generate a string of up to stringLength size, all from the same random Unicode script. The first codepoint will not be a combining character.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      • Optional reason: string = 'string'

        Reason for generation, since this function is called by others.

      Returns string

      Generated string.

      -
    • Generate a symbol from a random string. This will intern the Symbol +

    • Generate a symbol from a random string. This will intern the Symbol with Symbol.for to make testing possible.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns symbol

      Generated Symbol.

      -
    • Generate undefined.

      +
    • Generate undefined.

      Parameters

      • Optional depth: number = 0

        How deep are we in the generated tree of objects already?

      Returns undefined

      Always returns undefined.

      -
    • Symbols can't take a custom inspect function. They always output +

    • Symbols can't take a custom inspect function. They always output Symbol(foo). This function tries to find all of those in a string, and replace them with Symbol.for('foo'), which will create a valid symbol when parsed as JavaScript.

      @@ -211,4 +211,4 @@ Symbol(')))'), which luckily shouldn't be created from this library.

      Parameters

      • str: string

        The string to modify.

      Returns string

      The modified string.

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/random.Random.html b/docs/classes/random.Random.html index ca236a6..1290709 100644 --- a/docs/classes/random.Random.html +++ b/docs/classes/random.Random.html @@ -1,5 +1,5 @@ Random | basura

    Class RandomPrivate

    Random number generation with pluggable source.

    -

    Constructors

    Constructors

    Properties

    #freqs #source #spareGauss @@ -15,14 +15,14 @@ upto

    Constructors

    Properties

    #freqs: WeakMap<any[], Vose> = ...
    #spareGauss: number = null
    FREQS: symbol = ...

    Methods

    • Flip a coin, true or false.

      +

    Returns Random

    Properties

    #freqs: WeakMap<any[], Vose> = ...
    #spareGauss: number = null
    FREQS: symbol = ...

    Methods

    • Flip a coin, true or false.

      Parameters

      • Optional reason: string = 'unspecified'

        Reason for generation.

      Returns boolean

      Generated.

      -
    • Wrapper around source.randBytes to default the reason.

      +
    • Wrapper around source.randBytes to default the reason.

      Parameters

      • num: number

        Number of bytes to generate.

      • Optional reason: string = 'unspecified'

        Reason for generation.

      Returns Buffer

      The random bytes.

      -
    • Generate a random number with close to gaussian distribution. +

    • Generate a random number with close to gaussian distribution. Uses the polar method for normal deviates, which generates two numbers at a time. Saves the second number for next time in a way that a different mean and standard deviation can be used on each @@ -32,28 +32,28 @@ generated.

    • Optional reason: string = 'unspecified'

      Reason for generation.

    Returns number

    The random number.

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/classes/vose.Vose.html b/docs/classes/vose.Vose.html index bfff26d..5d5ea88 100644 --- a/docs/classes/vose.Vose.html +++ b/docs/classes/vose.Vose.html @@ -4,7 +4,7 @@

    See

    -

    Constructors

    Constructors

    Properties

    #alias #prob #random @@ -14,7 +14,7 @@

    See

    Parameters

    • weights: number[]

      Relative weights, per pick array item. If undefined, 1 is the default.

    • random: Random

      Random source.

      -

    Returns Vose

    Properties

    #alias: any[]
    #prob: any[]
    #random: Random

    Accessors

    • get _tables(): any[][]
    • Returns any[][]

    Methods

    • Pick a random position in the weighted array.

      +

    Returns Vose

    Properties

    #alias: any[]
    #prob: any[]
    #random: Random

    Accessors

    Methods

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/functions/decorators.boxed.html b/docs/functions/decorators.boxed.html index 271a32e..191aa14 100644 --- a/docs/functions/decorators.boxed.html +++ b/docs/functions/decorators.boxed.html @@ -2,4 +2,4 @@

    Parameters

    Returns undefined

    Generated using TypeDoc

    \ No newline at end of file +

    Returns undefined

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/functions/decorators.cborUnsafe.html b/docs/functions/decorators.cborUnsafe.html index ca2d552..1253d86 100644 --- a/docs/functions/decorators.cborUnsafe.html +++ b/docs/functions/decorators.cborUnsafe.html @@ -2,4 +2,4 @@

    Parameters

    Returns undefined

    Generated using TypeDoc

    \ No newline at end of file +

    Returns undefined

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/functions/decorators.decorateMethod.html b/docs/functions/decorators.decorateMethod.html index f533288..e865dc7 100644 --- a/docs/functions/decorators.decorateMethod.html +++ b/docs/functions/decorators.decorateMethod.html @@ -4,4 +4,4 @@
  • target: any

    Object being decorated.

  • key: string | symbol

    Method name.

  • Returns PropertyDescriptor

    Current property.

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/functions/decorators.freq.html b/docs/functions/decorators.freq.html index 7520c1a..d769a98 100644 --- a/docs/functions/decorators.freq.html +++ b/docs/functions/decorators.freq.html @@ -1,4 +1,4 @@ freq | basura

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/functions/decorators.jsonUnsafe.html b/docs/functions/decorators.jsonUnsafe.html index 3c053f2..43ea841 100644 --- a/docs/functions/decorators.jsonUnsafe.html +++ b/docs/functions/decorators.jsonUnsafe.html @@ -2,4 +2,4 @@

    Parameters

    Returns undefined

    Generated using TypeDoc

    \ No newline at end of file +

    Returns undefined

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/functions/decorators.weak.html b/docs/functions/decorators.weak.html index fbcd772..8932aa4 100644 --- a/docs/functions/decorators.weak.html +++ b/docs/functions/decorators.weak.html @@ -2,4 +2,4 @@

    Parameters

    Returns undefined

    Generated using TypeDoc

    \ No newline at end of file +

    Returns undefined

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/functions/random.randBytes.html b/docs/functions/random.randBytes.html index 0681e37..2bd15e1 100644 --- a/docs/functions/random.randBytes.html +++ b/docs/functions/random.randBytes.html @@ -3,4 +3,4 @@

    Parameters

    Returns Buffer

    Random bytes.

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/interfaces/index.GenMeta.html b/docs/interfaces/index.GenMeta.html index 3982159..fdcca5f 100644 --- a/docs/interfaces/index.GenMeta.html +++ b/docs/interfaces/index.GenMeta.html @@ -1,11 +1,11 @@ -GenMeta | basura

    Interface GenMeta

    interface GenMeta {
        boxed: boolean;
        cborUnsafe: boolean;
        freq: number;
        jsonUnsafe: boolean;
        weak: boolean;
    }

    Properties

    boxed +GenMeta | basura

    Interface GenMeta

    interface GenMeta {
        boxed: boolean;
        cborUnsafe: boolean;
        freq: number;
        jsonUnsafe: boolean;
        weak: boolean;
    }

    Properties

    boxed: boolean

    Generates a boxed type.

    -
    cborUnsafe: boolean

    Generator unsafe for CBOR.

    -
    freq: number

    Relative frequency for this generator.

    -
    jsonUnsafe: boolean

    Generator unsafe for JSON.

    -
    weak: boolean

    Generates a type that can be weakly held.

    -

    Generated using TypeDoc

    \ No newline at end of file +
    cborUnsafe: boolean

    Generator unsafe for CBOR.

    +
    freq: number

    Relative frequency for this generator.

    +
    jsonUnsafe: boolean

    Generator unsafe for JSON.

    +
    weak: boolean

    Generates a type that can be weakly held.

    +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/decorators.html b/docs/modules/decorators.html index 246335f..f6b433e 100644 --- a/docs/modules/decorators.html +++ b/docs/modules/decorators.html @@ -1,4 +1,4 @@ -decorators | basura

    Module decorators

    Index

    Type Aliases

    MethodDecorator +decorators | basura

    Module decorators

    Index

    Type Aliases

    Functions

    boxed cborUnsafe decorateMethod diff --git a/docs/modules/index.html b/docs/modules/index.html index 9c9667a..604caff 100644 --- a/docs/modules/index.html +++ b/docs/modules/index.html @@ -1,4 +1,4 @@ -index | basura

    Module index

    Index

    Classes

    Basura +index | basura

    Module index

    Index

    Classes

    Interfaces

    Type Aliases

    BasuraGen BasuraGenerator diff --git a/docs/modules/random.html b/docs/modules/random.html index 17acb10..00af743 100644 --- a/docs/modules/random.html +++ b/docs/modules/random.html @@ -1,4 +1,4 @@ -random | basura

    Module random

    Index

    Classes

    Random +random | basura

    Module random

    Index

    Classes

    Type Aliases

    Functions

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/modules/vose.html b/docs/modules/vose.html index 61bcf1c..dc9d179 100644 --- a/docs/modules/vose.html +++ b/docs/modules/vose.html @@ -1,2 +1,2 @@ -vose | basura

    Module vose

    Index

    Classes

    Vose +vose | basura

    Module vose

    Index

    Classes

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/types/decorators.MethodDecorator.html b/docs/types/decorators.MethodDecorator.html index 73c6ffe..f22ff51 100644 --- a/docs/types/decorators.MethodDecorator.html +++ b/docs/types/decorators.MethodDecorator.html @@ -1 +1 @@ -MethodDecorator | basura

    Type alias MethodDecorator

    MethodDecorator: ((target, propertyKey, descriptor) => PropertyDescriptor | undefined)

    Type declaration

      • (target, propertyKey, descriptor): PropertyDescriptor | undefined
      • Parameters

        • target: any
        • propertyKey: string | symbol
        • descriptor: PropertyDescriptor

        Returns PropertyDescriptor | undefined

    Generated using TypeDoc

    \ No newline at end of file +MethodDecorator | basura

    Type alias MethodDecorator

    MethodDecorator: ((target, propertyKey, descriptor) => PropertyDescriptor | undefined)

    Type declaration

      • (target, propertyKey, descriptor): PropertyDescriptor | undefined
      • Parameters

        • target: any
        • propertyKey: string | symbol
        • descriptor: PropertyDescriptor

        Returns PropertyDescriptor | undefined

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/types/index.BasuraGen.html b/docs/types/index.BasuraGen.html index db9130c..20dad79 100644 --- a/docs/types/index.BasuraGen.html +++ b/docs/types/index.BasuraGen.html @@ -1,3 +1,3 @@ BasuraGen | basura

    Type alias BasuraGen<T>

    BasuraGen<T>: ((depth?) => T | null)

    Type Parameters

    • T = unknown

    Type declaration

      • (depth?): T | null
      • Parameters

        • Optional depth: number

          How deep are we in the generated tree of objects already?

          -

        Returns T | null

    Generated using TypeDoc

    \ No newline at end of file +

    Returns T | null

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/types/index.BasuraGenerator.html b/docs/types/index.BasuraGenerator.html index 12f20d4..a06533d 100644 --- a/docs/types/index.BasuraGenerator.html +++ b/docs/types/index.BasuraGenerator.html @@ -1 +1 @@ -BasuraGenerator | basura

    Type alias BasuraGenerator<T>

    BasuraGenerator<T>: BasuraGen<T> & GenMeta

    Type Parameters

    • T = unknown

    Generated using TypeDoc

    \ No newline at end of file +BasuraGenerator | basura

    Type alias BasuraGenerator<T>

    BasuraGenerator<T>: BasuraGen<T> & GenMeta

    Type Parameters

    • T = unknown

    Generated using TypeDoc

    \ No newline at end of file diff --git a/docs/types/random.BasuraRandBytes.html b/docs/types/random.BasuraRandBytes.html index 94e47db..7eeabed 100644 --- a/docs/types/random.BasuraRandBytes.html +++ b/docs/types/random.BasuraRandBytes.html @@ -1,3 +1,3 @@ BasuraRandBytes | basura

    Type alias BasuraRandBytes

    BasuraRandBytes: ((size, reason) => Buffer)

    Type declaration

      • (size, reason): Buffer
      • Parameters

        • size: number

          Number of bytes to generate.

        • reason: string

          Reason the bytes are being generated.

          -

        Returns Buffer

    Generated using TypeDoc

    \ No newline at end of file +

    Returns Buffer

    Generated using TypeDoc

    \ No newline at end of file diff --git a/lib/data.js b/lib/data.js index 8ecacdc..e8fa490 100644 --- a/lib/data.js +++ b/lib/data.js @@ -1,8 +1,8 @@ import {UnicodeTrie} from '@cto.af/unicode-trie'; -export const generatedDate = new Date('2024-03-16T07:35:19.110Z'); +export const generatedDate = new Date('2024-03-16T07:36:08.362Z'); export const Trie = UnicodeTrie.fromBase64( - `AAgOAAAAAQD/////5xwAAB+LCAC3S/VlAgPtnQ3UVkWdwF8MXDFRMVwhYRfspdCw0FUDkxKV + `AAgOAAAAAQD/////5xwAAB+LCADoS/VlAgPtnQ3UVkWdwF8MXDFRMVwhYRfspdCw0FUDkxKV Fk08YlHggqGRWotFrbbaommh4W6apllmESQqHrXVVQvyozQtdbXVjJNtsgutJlSWdNSVTnr6 /ceZ2zzzzNw797lfz6vPc87vzL3z9f+YuXPvM/feuZte09f3DLwAfYP7+ibAJJgMB8MMOBrm wAI4GRbD6XA2nAcXwmWwHFbCtXATrIW74H54BH4OG2Ez/A6eh5dg2yF9fdvDLvB62AP2gn3h @@ -139,7 +139,7 @@ export const Trie = UnicodeTrie.fromBase64( lkefNHvcun1+CMX5wrz6x9TnK5+nbWLLlOXbsr7/FSOnSvm5jheuUYXa5ternp+v8/5AWXUU KV/DN1468ndN3xrZUHRevu7vo3QiP0b/so/fV+L3aeT7Xi5N3hvs1P5Oyjfp/yL2l+W/puXX dU+xTF2y+l3s/e0q9I8p34D/7G9Sl03Ueh8NyXXld9p/69a3bJr63nrb9yab8kHGMyNVU/R7 - x4W/l1yyP/8MweUxzMBbAQAfiwgAt0v1ZQIDi44FACm7TA0CAAAA` + x4W/l1yyP/8MweUxzMBbAQAfiwgA6Ev1ZQIDi44FACm7TA0CAAAA` ); /** diff --git a/package.json b/package.json index 0697431..af98d40 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "devDependencies": { "@cto.af/eslint-config": "^4.0.1", "@fast-csv/parse": "^5.0.0", - "@types/node": "20.11.27", + "@types/node": "20.11.28", "ava": "^6.1.2", "c8": "9.1.0", "codepoints": "^1.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2a63dc1..a92a3cf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,8 +23,8 @@ devDependencies: specifier: ^5.0.0 version: 5.0.0 '@types/node': - specifier: 20.11.27 - version: 20.11.27 + specifier: 20.11.28 + version: 20.11.28 ava: specifier: ^6.1.2 version: 6.1.2 @@ -347,8 +347,8 @@ packages: resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} dev: true - /@types/node@20.11.27: - resolution: {integrity: sha512-qyUZfMnCg1KEz57r7pzFtSGt49f6RPkPBis3Vo4PbS7roQEDn22hiHzl/Lo1q4i4hDEgBJmBF/NTNg2XR0HbFg==} + /@types/node@20.11.28: + resolution: {integrity: sha512-M/GPWVS2wLkSkNHVeLkrF2fD5Lx5UC4PxA0uZcKc6QqbIQUJyW1jVjueJYi1z8n0I5PxYrtpnPnWglE+y9A0KA==} dependencies: undici-types: 5.26.5 dev: true