From 2f814b11d281663ec2519ee9379f27fada03303d Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Mon, 18 Dec 2023 05:28:37 +0200 Subject: [PATCH] 0.0.2 --- Script/CHANGELOG.md | 4 + Script/Configuration/ESBuild.d.ts | 14 +- Script/Configuration/ESBuild.js | 61 +- .../Documentation/Function/Clean.Clean.html | 2 +- .../Documentation/Function/Clean.Request.html | 2 +- .../Function/Cloudflare.Cloudflare-1.html | 4 +- .../Function/Dependabot.Dependabot-1.html | 4 +- .../Function/Dependabot.dirname.html | 4 +- .../Function/Dependabot.fileURLToPath.html | 4 +- .../Function/Dependabot.readFile.html | 8 +- .../Function/Dependabot.resolve.html | 4 +- .../Function/Dispatch.Dispatch.html | 2 +- .../Function/Dispatch.Request.html | 2 +- Script/Documentation/Function/Edit.Edit.html | 2 +- .../Documentation/Function/Edit.Request.html | 2 +- Script/Documentation/Function/Git.Git.html | 2 +- Script/Documentation/Function/NPM.NPM-1.html | 4 +- .../Documentation/Function/Node.Node-1.html | 4 +- .../Function/Package.Package.html | 2 +- .../Documentation/Function/Readme.Readme.html | 2 +- .../Function/Request.Request.html | 2 +- .../Documentation/Function/Rust.Rust-1.html | 4 +- .../Documentation/Function/Search.Search.html | 4 +- .../Documentation/Function/Star.Star-1.html | 2 +- Script/Documentation/Function/Star.Star.html | 2 +- .../Documentation/Function/Type.Type-2.html | 2 +- .../Function/Variable_Environment.string.html | 2 +- .../Function/WalkUntilGit._Function.html | 4 +- Script/Documentation/Interface/Type.Type.html | 2 +- .../Interface/WalkUntilGit.Type.html | 4 +- Script/Documentation/Module/Clean.html | 4 +- Script/Documentation/Module/Cloudflare.html | 4 +- Script/Documentation/Module/Command.html | 4 +- Script/Documentation/Module/Dependabot.html | 4 +- Script/Documentation/Module/Dispatch.html | 4 +- Script/Documentation/Module/Edit.html | 4 +- Script/Documentation/Module/Environment.html | 4 +- Script/Documentation/Module/Files.html | 4 +- Script/Documentation/Module/Git.html | 4 +- Script/Documentation/Module/NPM.html | 4 +- Script/Documentation/Module/Node.html | 4 +- Script/Documentation/Module/Package.html | 4 +- Script/Documentation/Module/Readme.html | 4 +- Script/Documentation/Module/Request.html | 4 +- Script/Documentation/Module/Rust.html | 4 +- Script/Documentation/Module/Search.html | 4 +- Script/Documentation/Module/Star.html | 4 +- Script/Documentation/Module/Type.html | 4 +- .../Module/Variable_Environment.html | 4 +- Script/Documentation/Module/WalkUntilGit.html | 4 +- Script/Documentation/Module/YesMaintain.html | 4 +- .../Documentation/Type/Environment.Type.html | 2 +- Script/Documentation/Type/Files.Type.html | 2 +- Script/Documentation/Type/Type.Type-1.html | 2 +- Script/Documentation/Variable/Clean.All.html | 2 +- Script/Documentation/Variable/Clean.User.html | 2 +- .../Variable/Cloudflare.Cloudflare.html | 2 +- .../Variable/Command.Variable.html | 4 +- .../Variable/Dependabot.Dependabot.html | 2 +- .../Variable/Git.Environment.html | 2 +- Script/Documentation/Variable/NPM.NPM.html | 2 +- Script/Documentation/Variable/Node.Node.html | 2 +- Script/Documentation/Variable/Rust.Rust.html | 2 +- .../Variable_Environment.Environment.html | 2 +- .../Variable/YesMaintain.YesMaintain.html | 2 +- Script/Documentation/assets/main.js | 2303 +---------------- Script/Documentation/assets/navigation.js | 3 +- Script/Documentation/assets/search.js | 3 +- Script/Documentation/index.html | 989 +------ Script/Target/Class/YesMaintain.js | 23 +- Script/Target/Command/Clean.d.ts | 20 +- Script/Target/Command/Clean.js | 185 +- Script/Target/Command/Cloudflare.js | 135 +- Script/Target/Command/Dependabot.js | 168 +- Script/Target/Command/Dispatch.d.ts | 10 +- Script/Target/Command/Dispatch.js | 98 +- Script/Target/Command/Edit.d.ts | 10 +- Script/Target/Command/Edit.js | 189 +- Script/Target/Command/NPM.js | 183 +- Script/Target/Command/Node.js | 228 +- Script/Target/Command/Rust.js | 128 +- Script/Target/Command/Star.js | 78 +- Script/Target/Function/Directory.js | 28 +- Script/Target/Function/Git.d.ts | 38 +- Script/Target/Function/Git.js | 24 +- Script/Target/Function/Package.js | 155 +- Script/Target/Function/Readme.js | 25 +- Script/Target/Function/Request.d.ts | 6 +- Script/Target/Function/Request.js | 48 +- Script/Target/Function/Star.js | 35 +- Script/Target/Function/Type.js | 34 +- Script/Target/Function/WalkUntilGit.js | 33 +- Script/Target/Interface/Type.d.ts | 2 +- Script/Target/Interface/WalkUntilGit.d.ts | 28 +- Script/Target/Type/Environment.d.ts | 32 +- Script/Target/Type/Files.d.ts | 6 +- Script/Target/Type/Package.d.ts | 8 +- Script/Target/Variable/Cloudflare.d.ts | 6 +- Script/Target/Variable/Cloudflare.js | 43 +- Script/Target/Variable/Command.d.ts | 20 +- Script/Target/Variable/Command.js | 157 +- Script/Target/Variable/Dependabot.d.ts | 9 +- Script/Target/Variable/Dependabot.js | 72 +- Script/Target/Variable/Environment.d.ts | 58 +- Script/Target/Variable/Environment.js | 13 +- Script/Target/Variable/NPM.d.ts | 6 +- Script/Target/Variable/NPM.js | 43 +- Script/Target/Variable/Node.d.ts | 6 +- Script/Target/Variable/Node.js | 43 +- Script/Target/Variable/Rust.d.ts | 6 +- Script/Target/Variable/Rust.js | 43 +- Script/package.json | 4 +- 112 files changed, 1338 insertions(+), 4721 deletions(-) diff --git a/Script/CHANGELOG.md b/Script/CHANGELOG.md index 43d7b3d..4acddcd 100644 --- a/Script/CHANGELOG.md +++ b/Script/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.2 + +- Bug fix + ## 0.0.1 - Initial version diff --git a/Script/Configuration/ESBuild.d.ts b/Script/Configuration/ESBuild.d.ts index 80a1b88..914769f 100644 --- a/Script/Configuration/ESBuild.d.ts +++ b/Script/Configuration/ESBuild.d.ts @@ -1,10 +1,10 @@ declare const _default: { - format: "esm"; - minify: false; - outdir: string; - platform: "node"; - target: string; - write: true; - plugins: import("esbuild").Plugin[]; + format: "esm"; + minify: false; + outdir: string; + platform: "node"; + target: string; + write: true; + plugins: import("esbuild").Plugin[]; }; export default _default; diff --git a/Script/Configuration/ESBuild.js b/Script/Configuration/ESBuild.js index efc3061..c3391b6 100644 --- a/Script/Configuration/ESBuild.js +++ b/Script/Configuration/ESBuild.js @@ -1,33 +1,32 @@ export default { - format: "esm", - minify: false, - outdir: "Target", - platform: "node", - target: "esnext", - write: true, - plugins: [ - { - name: "Target", - setup({ onStart, initialOptions: { outdir } }) { - onStart(async () => { - try { - await ( - await import("fs/promises") - ).rm(outdir, { - recursive: true, - }); - } catch (_Error) {} - }); - }, - }, - (await import("esbuild-plugin-copy")).copy({ - resolveFrom: "out", - assets: [ - { - from: "./Source/Workflow/*.yml", - to: "./Workflow/", - }, - ], - }), - ], + format: "esm", + minify: false, + outdir: "Target", + platform: "node", + target: "esnext", + write: true, + plugins: [ + { + name: "Target", + setup({ onStart, initialOptions: { outdir } }) { + onStart(async () => { + try { + await (await import("fs/promises")).rm(outdir, { + recursive: true, + }); + } + catch (_Error) { } + }); + }, + }, + (await import("esbuild-plugin-copy")).copy({ + resolveFrom: "out", + assets: [ + { + from: "./Source/Workflow/*.yml", + to: "./Workflow/", + }, + ], + }), + ], }; diff --git a/Script/Documentation/Function/Clean.Clean.html b/Script/Documentation/Function/Clean.Clean.html index e8efbcb..b6324ac 100644 --- a/Script/Documentation/Function/Clean.Clean.html +++ b/Script/Documentation/Function/Clean.Clean.html @@ -1 +1 @@ -clean | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +clean | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Clean.Request.html b/Script/Documentation/Function/Clean.Request.html index e7277af..2cfbcc7 100644 --- a/Script/Documentation/Function/Clean.Request.html +++ b/Script/Documentation/Function/Clean.Request.html @@ -1 +1 @@ -Request | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +Request | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Cloudflare.Cloudflare-1.html b/Script/Documentation/Function/Cloudflare.Cloudflare-1.html index 31776a5..af1ed9b 100644 --- a/Script/Documentation/Function/Cloudflare.Cloudflare-1.html +++ b/Script/Documentation/Function/Cloudflare.Cloudflare-1.html @@ -1,3 +1,3 @@ -cloudflare | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Dependabot.Dependabot-1.html b/Script/Documentation/Function/Dependabot.Dependabot-1.html index 1a65fb3..68ed6a3 100644 --- a/Script/Documentation/Function/Dependabot.Dependabot-1.html +++ b/Script/Documentation/Function/Dependabot.Dependabot-1.html @@ -1,3 +1,3 @@ -dependabot | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Dependabot.dirname.html b/Script/Documentation/Function/Dependabot.dirname.html index c78b516..28034a2 100644 --- a/Script/Documentation/Function/Dependabot.dirname.html +++ b/Script/Documentation/Function/Dependabot.dirname.html @@ -1,4 +1,4 @@ -dirname | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Dependabot.fileURLToPath.html b/Script/Documentation/Function/Dependabot.fileURLToPath.html index 8d0fcea..eae0e04 100644 --- a/Script/Documentation/Function/Dependabot.fileURLToPath.html +++ b/Script/Documentation/Function/Dependabot.fileURLToPath.html @@ -1,8 +1,8 @@ -fileURLToPath | @yesmaintain/script - v0.0.1
  • This function ensures the correct decodings of percent-encoded characters as +fileURLToPath | @yesmaintain/script - v0.0.2

    • This function ensures the correct decodings of percent-encoded characters as well as ensuring a cross-platform valid absolute path string.

      import { fileURLToPath } from 'node:url';

      const __filename = fileURLToPath(import.meta.url);

      new URL('file:///C:/path/').pathname; // Incorrect: /C:/path/
      fileURLToPath('file:///C:/path/'); // Correct: C:\path\ (Windows)

      new URL('file://nas/foo.txt').pathname; // Incorrect: /foo.txt
      fileURLToPath('file://nas/foo.txt'); // Correct: \\nas\foo.txt (Windows)

      new URL('file:///你好.txt').pathname; // Incorrect: /%E4%BD%A0%E5%A5%BD.txt
      fileURLToPath('file:///你好.txt'); // Correct: /你好.txt (POSIX)

      new URL('file:///hello world').pathname; // Incorrect: /hello%20world
      fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX)

      Parameters

      • url: string | URL

        The file URL string or URL object to convert to a path.

      Returns string

      The fully-resolved platform-specific Node.js file path.

      Since

      v10.12.0

      -

    Generated using TypeDoc

    \ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Dependabot.readFile.html b/Script/Documentation/Function/Dependabot.readFile.html index 701aa49..3303d41 100644 --- a/Script/Documentation/Function/Dependabot.readFile.html +++ b/Script/Documentation/Function/Dependabot.readFile.html @@ -1,4 +1,4 @@ -readFile | @yesmaintain/script - v0.0.1
  • Asynchronously reads the entire contents of a file.

    +readFile | @yesmaintain/script - v0.0.2
    • Asynchronously reads the entire contents of a file.

      If no encoding is specified (using options.encoding), the data is returned as a Buffer object. Otherwise, the data will be a string.

      If options is a string, then it specifies the encoding.

      @@ -20,14 +20,14 @@

      Parameters

      • path: PathLike | FileHandle

        filename or FileHandle

      • Optional options: null | {
            encoding?: null;
            flag?: OpenMode;
        } & Abortable

      Returns Promise<Buffer>

      Fulfills with the contents of the file.

      Since

      v10.0.0

      -
    • Asynchronously reads the entire contents of a file.

      +
    • Asynchronously reads the entire contents of a file.

      Parameters

      • path: PathLike | FileHandle

        A path to a file. If a URL is provided, it must use the file: protocol. If a FileHandle is provided, the underlying file will not be closed automatically.

      • options: {
            encoding: BufferEncoding;
            flag?: OpenMode;
        } & Abortable | BufferEncoding

        An object that may contain an optional flag. If a flag is not provided, it defaults to 'r'.

        -

      Returns Promise<string>

    • Asynchronously reads the entire contents of a file.

      +

    Returns Promise<string>

  • Asynchronously reads the entire contents of a file.

    Parameters

    • path: PathLike | FileHandle

      A path to a file. If a URL is provided, it must use the file: protocol. If a FileHandle is provided, the underlying file will not be closed automatically.

    • Optional options: null | BufferEncoding | ObjectEncodingOptions & Abortable & {
          flag?: OpenMode;
      }

      An object that may contain an optional flag. If a flag is not provided, it defaults to 'r'.

      -

    Returns Promise<string | Buffer>

Generated using TypeDoc

\ No newline at end of file +

Returns Promise<string | Buffer>

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Dependabot.resolve.html b/Script/Documentation/Function/Dependabot.resolve.html index 5efcffa..e0e8fa4 100644 --- a/Script/Documentation/Function/Dependabot.resolve.html +++ b/Script/Documentation/Function/Dependabot.resolve.html @@ -1,4 +1,4 @@ -resolve | @yesmaintain/script - v0.0.1
  • The right-most parameter is considered {to}. Other parameters are considered an array of {from}.

    +resolve | @yesmaintain/script - v0.0.2
    • The right-most parameter is considered {to}. Other parameters are considered an array of {from}.

      Starting from leftmost {from} parameter, resolves {to} to an absolute path.

      If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, @@ -6,4 +6,4 @@ and trailing slashes are removed unless the path gets resolved to the root directory.

      Parameters

      • Rest ...paths: string[]

        A sequence of paths or path segments.

      Returns string

      Throws

      if any of the arguments is not a string.

      -

    Generated using TypeDoc

    \ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Dispatch.Dispatch.html b/Script/Documentation/Function/Dispatch.Dispatch.html index bdedc17..53ca635 100644 --- a/Script/Documentation/Function/Dispatch.Dispatch.html +++ b/Script/Documentation/Function/Dispatch.Dispatch.html @@ -1 +1 @@ -dispatch | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +dispatch | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Dispatch.Request.html b/Script/Documentation/Function/Dispatch.Request.html index ef8ad42..87aa668 100644 --- a/Script/Documentation/Function/Dispatch.Request.html +++ b/Script/Documentation/Function/Dispatch.Request.html @@ -1 +1 @@ -Request | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +Request | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Edit.Edit.html b/Script/Documentation/Function/Edit.Edit.html index d022313..ba98d56 100644 --- a/Script/Documentation/Function/Edit.Edit.html +++ b/Script/Documentation/Function/Edit.Edit.html @@ -1 +1 @@ -edit | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +edit | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Edit.Request.html b/Script/Documentation/Function/Edit.Request.html index 884c8ca..c4f4bb0 100644 --- a/Script/Documentation/Function/Edit.Request.html +++ b/Script/Documentation/Function/Edit.Request.html @@ -1 +1 @@ -Request | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +Request | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Git.Git.html b/Script/Documentation/Function/Git.Git.html index 01b5c0c..2b58967 100644 --- a/Script/Documentation/Function/Git.Git.html +++ b/Script/Documentation/Function/Git.Git.html @@ -1 +1 @@ -git | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +git | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/NPM.NPM-1.html b/Script/Documentation/Function/NPM.NPM-1.html index 6a6160d..8fa5589 100644 --- a/Script/Documentation/Function/NPM.NPM-1.html +++ b/Script/Documentation/Function/NPM.NPM-1.html @@ -1,2 +1,2 @@ -NPM | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +NPM | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Node.Node-1.html b/Script/Documentation/Function/Node.Node-1.html index 2b05f6c..957d922 100644 --- a/Script/Documentation/Function/Node.Node-1.html +++ b/Script/Documentation/Function/Node.Node-1.html @@ -1,5 +1,5 @@ -node | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Package.Package.html b/Script/Documentation/Function/Package.Package.html index c1234c2..738b43b 100644 --- a/Script/Documentation/Function/Package.Package.html +++ b/Script/Documentation/Function/Package.Package.html @@ -1 +1 @@ -package | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +package | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Readme.Readme.html b/Script/Documentation/Function/Readme.Readme.html index 7118708..0279cd5 100644 --- a/Script/Documentation/Function/Readme.Readme.html +++ b/Script/Documentation/Function/Readme.Readme.html @@ -1 +1 @@ -readme | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +readme | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Request.Request.html b/Script/Documentation/Function/Request.Request.html index d6b9617..90705ba 100644 --- a/Script/Documentation/Function/Request.Request.html +++ b/Script/Documentation/Function/Request.Request.html @@ -1 +1 @@ -request | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +request | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Rust.Rust-1.html b/Script/Documentation/Function/Rust.Rust-1.html index a0c0683..406d2e2 100644 --- a/Script/Documentation/Function/Rust.Rust-1.html +++ b/Script/Documentation/Function/Rust.Rust-1.html @@ -1,5 +1,5 @@ -rust | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Search.Search.html b/Script/Documentation/Function/Search.Search.html index 722fc00..6a6e995 100644 --- a/Script/Documentation/Function/Search.Search.html +++ b/Script/Documentation/Function/Search.Search.html @@ -1,4 +1,4 @@ -search | @yesmaintain/script - v0.0.1

Returns Promise<Map<any, any>>

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Star.Star-1.html b/Script/Documentation/Function/Star.Star-1.html index bab1805..5b32af2 100644 --- a/Script/Documentation/Function/Star.Star-1.html +++ b/Script/Documentation/Function/Star.Star-1.html @@ -1 +1 @@ -star | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +star | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Star.Star.html b/Script/Documentation/Function/Star.Star.html index ddb8f33..f385355 100644 --- a/Script/Documentation/Function/Star.Star.html +++ b/Script/Documentation/Function/Star.Star.html @@ -1 +1 @@ -star | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +star | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Type.Type-2.html b/Script/Documentation/Function/Type.Type-2.html index 4f4133e..f5e0946 100644 --- a/Script/Documentation/Function/Type.Type-2.html +++ b/Script/Documentation/Function/Type.Type-2.html @@ -1 +1 @@ -type | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +type | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/Variable_Environment.string.html b/Script/Documentation/Function/Variable_Environment.string.html index ce4c92e..5bdf697 100644 --- a/Script/Documentation/Function/Variable_Environment.string.html +++ b/Script/Documentation/Function/Variable_Environment.string.html @@ -1 +1 @@ -string | @yesmaintain/script - v0.0.1
  • Parameters

    • Optional params: {
          description?: string;
          errorMap?: ZodErrorMap;
          invalid_type_error?: string;
          required_error?: string;
      } & {
          coerce?: true;
      }

    Returns ZodString

Generated using TypeDoc

\ No newline at end of file +string | @yesmaintain/script - v0.0.2
  • Parameters

    • Optional params: {
          description?: string;
          errorMap?: ZodErrorMap;
          invalid_type_error?: string;
          required_error?: string;
      } & {
          coerce?: true;
      }

    Returns ZodString

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Function/WalkUntilGit._Function.html b/Script/Documentation/Function/WalkUntilGit._Function.html index 40b64cb..e526629 100644 --- a/Script/Documentation/Function/WalkUntilGit._Function.html +++ b/Script/Documentation/Function/WalkUntilGit._Function.html @@ -1,4 +1,4 @@ -_Function | @yesmaintain/script - v0.0.1

Returns Promise<string>

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Interface/Type.Type.html b/Script/Documentation/Interface/Type.Type.html index 5f080a3..394c31b 100644 --- a/Script/Documentation/Interface/Type.Type.html +++ b/Script/Documentation/Interface/Type.Type.html @@ -1 +1 @@ -Type | @yesmaintain/script - v0.0.1
interface Type ((Filter?) => Promise<Map<string, Type>>)

Generated using TypeDoc

\ No newline at end of file +Type | @yesmaintain/script - v0.0.2
interface Type ((Filter?) => Promise<Map<string, Type>>)

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Interface/WalkUntilGit.Type.html b/Script/Documentation/Interface/WalkUntilGit.Type.html index e0828d3..566a546 100644 --- a/Script/Documentation/Interface/WalkUntilGit.Type.html +++ b/Script/Documentation/Interface/WalkUntilGit.Type.html @@ -1,4 +1,4 @@ -Type | @yesmaintain/script - v0.0.1
interface Type ((Search, From?) => Promise<string>)

Returns Promise<string>

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Clean.html b/Script/Documentation/Module/Clean.html index 67c3736..210538f 100644 --- a/Script/Documentation/Module/Clean.html +++ b/Script/Documentation/Module/Clean.html @@ -1,5 +1,5 @@ -Clean | @yesmaintain/script - v0.0.1

Index

Variables

All +Clean | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Cloudflare.html b/Script/Documentation/Module/Cloudflare.html index 718e032..967a6ea 100644 --- a/Script/Documentation/Module/Cloudflare.html +++ b/Script/Documentation/Module/Cloudflare.html @@ -1,3 +1,3 @@ -Cloudflare | @yesmaintain/script - v0.0.1

Index

Variables

cloudflare +Cloudflare | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Command.html b/Script/Documentation/Module/Command.html index 4ea2c63..e68de73 100644 --- a/Script/Documentation/Module/Command.html +++ b/Script/Documentation/Module/Command.html @@ -1,2 +1,2 @@ -Command | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +Command | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Dependabot.html b/Script/Documentation/Module/Dependabot.html index 0bfe4c9..bdd36df 100644 --- a/Script/Documentation/Module/Dependabot.html +++ b/Script/Documentation/Module/Dependabot.html @@ -1,7 +1,7 @@ -Dependabot | @yesmaintain/script - v0.0.1

Index

Variables

dependabot +Dependabot | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Dispatch.html b/Script/Documentation/Module/Dispatch.html index c4dd874..8f4b162 100644 --- a/Script/Documentation/Module/Dispatch.html +++ b/Script/Documentation/Module/Dispatch.html @@ -1,3 +1,3 @@ -Dispatch | @yesmaintain/script - v0.0.1

Index

Functions

Request +Dispatch | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Edit.html b/Script/Documentation/Module/Edit.html index d52a5e8..51c1593 100644 --- a/Script/Documentation/Module/Edit.html +++ b/Script/Documentation/Module/Edit.html @@ -1,3 +1,3 @@ -Edit | @yesmaintain/script - v0.0.1

Index

Functions

Request +Edit | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Environment.html b/Script/Documentation/Module/Environment.html index bf5ffc1..94168e2 100644 --- a/Script/Documentation/Module/Environment.html +++ b/Script/Documentation/Module/Environment.html @@ -1,2 +1,2 @@ -Environment | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +Environment | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Files.html b/Script/Documentation/Module/Files.html index 39e5a9f..44533d0 100644 --- a/Script/Documentation/Module/Files.html +++ b/Script/Documentation/Module/Files.html @@ -1,2 +1,2 @@ -Files | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +Files | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Git.html b/Script/Documentation/Module/Git.html index 1585c56..9d1cbf0 100644 --- a/Script/Documentation/Module/Git.html +++ b/Script/Documentation/Module/Git.html @@ -1,3 +1,3 @@ -Git | @yesmaintain/script - v0.0.1

Index

Variables

Environment +Git | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/NPM.html b/Script/Documentation/Module/NPM.html index b22d0bd..422123f 100644 --- a/Script/Documentation/Module/NPM.html +++ b/Script/Documentation/Module/NPM.html @@ -1,3 +1,3 @@ -NPM | @yesmaintain/script - v0.0.1

Index

Variables

NPM +NPM | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Node.html b/Script/Documentation/Module/Node.html index 8fb9777..6d72b8f 100644 --- a/Script/Documentation/Module/Node.html +++ b/Script/Documentation/Module/Node.html @@ -1,3 +1,3 @@ -Node | @yesmaintain/script - v0.0.1

Index

Variables

node +Node | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Package.html b/Script/Documentation/Module/Package.html index 743dcf4..9f5ecd9 100644 --- a/Script/Documentation/Module/Package.html +++ b/Script/Documentation/Module/Package.html @@ -1,2 +1,2 @@ -Package | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +Package | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Readme.html b/Script/Documentation/Module/Readme.html index dd5c596..79099ce 100644 --- a/Script/Documentation/Module/Readme.html +++ b/Script/Documentation/Module/Readme.html @@ -1,2 +1,2 @@ -Readme | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +Readme | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Request.html b/Script/Documentation/Module/Request.html index 4bf7acd..e6ad99b 100644 --- a/Script/Documentation/Module/Request.html +++ b/Script/Documentation/Module/Request.html @@ -1,2 +1,2 @@ -Request | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +Request | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Rust.html b/Script/Documentation/Module/Rust.html index 2802667..0aad2e6 100644 --- a/Script/Documentation/Module/Rust.html +++ b/Script/Documentation/Module/Rust.html @@ -1,3 +1,3 @@ -Rust | @yesmaintain/script - v0.0.1

Index

Variables

rust +Rust | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Search.html b/Script/Documentation/Module/Search.html index ad842da..2ec2dbf 100644 --- a/Script/Documentation/Module/Search.html +++ b/Script/Documentation/Module/Search.html @@ -1,2 +1,2 @@ -Search | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +Search | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Star.html b/Script/Documentation/Module/Star.html index 799857f..7eda2a0 100644 --- a/Script/Documentation/Module/Star.html +++ b/Script/Documentation/Module/Star.html @@ -1,3 +1,3 @@ -Star | @yesmaintain/script - v0.0.1

Index

Functions

star +Star | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Type.html b/Script/Documentation/Module/Type.html index a8e8949..fede4cb 100644 --- a/Script/Documentation/Module/Type.html +++ b/Script/Documentation/Module/Type.html @@ -1,4 +1,4 @@ -Type | @yesmaintain/script - v0.0.1

Index

Interfaces

Type +Type | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/Variable_Environment.html b/Script/Documentation/Module/Variable_Environment.html index c76a257..35c246c 100644 --- a/Script/Documentation/Module/Variable_Environment.html +++ b/Script/Documentation/Module/Variable_Environment.html @@ -1,3 +1,3 @@ -Variable/Environment | @yesmaintain/script - v0.0.1

Module Variable/Environment

Index

Variables

environment +Variable/Environment | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/WalkUntilGit.html b/Script/Documentation/Module/WalkUntilGit.html index 1216a4a..b82da65 100644 --- a/Script/Documentation/Module/WalkUntilGit.html +++ b/Script/Documentation/Module/WalkUntilGit.html @@ -1,3 +1,3 @@ -WalkUntilGit | @yesmaintain/script - v0.0.1

Index

Interfaces

Type +WalkUntilGit | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Module/YesMaintain.html b/Script/Documentation/Module/YesMaintain.html index e57527b..251019b 100644 --- a/Script/Documentation/Module/YesMaintain.html +++ b/Script/Documentation/Module/YesMaintain.html @@ -1,2 +1,2 @@ -YesMaintain | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +YesMaintain | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Type/Environment.Type.html b/Script/Documentation/Type/Environment.Type.html index 96c9223..180601c 100644 --- a/Script/Documentation/Type/Environment.Type.html +++ b/Script/Documentation/Type/Environment.Type.html @@ -1 +1 @@ -Type | @yesmaintain/script - v0.0.1
Type: {
    Base: string;
    Token: string;
    User: string;
}

Type declaration

  • Base: string
  • Token: string
  • User: string

Generated using TypeDoc

\ No newline at end of file +Type | @yesmaintain/script - v0.0.2
Type: {
    Base: string;
    Token: string;
    User: string;
}

Type declaration

  • Base: string
  • Token: string
  • User: string

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Type/Files.Type.html b/Script/Documentation/Type/Files.Type.html index a3cb8c0..d2bea4e 100644 --- a/Script/Documentation/Type/Files.Type.html +++ b/Script/Documentation/Type/Files.Type.html @@ -1 +1 @@ -Type | @yesmaintain/script - v0.0.1
Type: Set<{
    File: (() => Promise<Set<string>>);
    Name: string;
    Path: string;
}>

Type declaration

Generated using TypeDoc

\ No newline at end of file +Type | @yesmaintain/script - v0.0.2
Type: Set<{
    File: (() => Promise<Set<string>>);
    Name: string;
    Path: string;
}>

Type declaration

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Type/Type.Type-1.html b/Script/Documentation/Type/Type.Type-1.html index 72a601c..56f712c 100644 --- a/Script/Documentation/Type/Type.Type-1.html +++ b/Script/Documentation/Type/Type.Type-1.html @@ -1 +1 @@ -Type | @yesmaintain/script - v0.0.1
Type: "NPM" | "Cargo" | "Composer" | "Nuget" | "Cloudflare" | false

Generated using TypeDoc

\ No newline at end of file +Type | @yesmaintain/script - v0.0.2
Type: "NPM" | "Cargo" | "Composer" | "Nuget" | "Cloudflare" | false

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Variable/Clean.All.html b/Script/Documentation/Variable/Clean.All.html index 73e4a3f..78f6b49 100644 --- a/Script/Documentation/Variable/Clean.All.html +++ b/Script/Documentation/Variable/Clean.All.html @@ -1 +1 @@ -All | @yesmaintain/script - v0.0.1

Variable AllConst

All: {
    Organizations: {
        Name: string;
    }[];
    Repositories: {
        Name: string;
        Owner: string;
    }[];
} = ...

Type declaration

  • Organizations: {
        Name: string;
    }[]
  • Repositories: {
        Name: string;
        Owner: string;
    }[]

Generated using TypeDoc

\ No newline at end of file +All | @yesmaintain/script - v0.0.2

Variable AllConst

All: {
    Organizations: {
        Name: string;
    }[];
    Repositories: {
        Name: string;
        Owner: string;
    }[];
} = ...

Type declaration

  • Organizations: {
        Name: string;
    }[]
  • Repositories: {
        Name: string;
        Owner: string;
    }[]

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Variable/Clean.User.html b/Script/Documentation/Variable/Clean.User.html index c6da31c..0588eeb 100644 --- a/Script/Documentation/Variable/Clean.User.html +++ b/Script/Documentation/Variable/Clean.User.html @@ -1 +1 @@ -User | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +User | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Variable/Cloudflare.Cloudflare.html b/Script/Documentation/Variable/Cloudflare.Cloudflare.html index b421929..6670941 100644 --- a/Script/Documentation/Variable/Cloudflare.Cloudflare.html +++ b/Script/Documentation/Variable/Cloudflare.Cloudflare.html @@ -1 +1 @@ -cloudflare | @yesmaintain/script - v0.0.1
cloudflare: Set<{
    File: (() => Promise<Set<string>>);
    Name: string;
    Path: string;
}>

Type declaration

Generated using TypeDoc

\ No newline at end of file +cloudflare | @yesmaintain/script - v0.0.2
cloudflare: Set<{
    File: (() => Promise<Set<string>>);
    Name: string;
    Path: string;
}>

Type declaration

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Variable/Command.Variable.html b/Script/Documentation/Variable/Command.Variable.html index 3790905..1c770ea 100644 --- a/Script/Documentation/Variable/Command.Variable.html +++ b/Script/Documentation/Variable/Command.Variable.html @@ -1,2 +1,2 @@ -Variable | @yesmaintain/script - v0.0.1

Variable VariableConst

Variable: Set<{
    Action: ((...args) => Promise<void>);
    Arguments?: Set<{
        Description?: string;
        Name: string;
        Value?: any;
    }>;
    Description?: string;
    Name: string;
    Opts?: CommandOptions;
    Type?: "Workflow";
}> = ...

Type declaration

  • Action: ((...args) => Promise<void>)
      • (...args): Promise<void>
      • biome-ignore lint/suspicious/noExplicitAny:

        -

        Parameters

        • Rest ...args: any[]

        Returns Promise<void>

  • Optional Arguments?: Set<{
        Description?: string;
        Name: string;
        Value?: any;
    }>
  • Optional Description?: string
  • Name: string
  • Optional Opts?: CommandOptions
  • Optional Type?: "Workflow"

Generated using TypeDoc

\ No newline at end of file +Variable | @yesmaintain/script - v0.0.2

Variable VariableConst

Variable: Set<{
    Action: ((...args) => Promise<void>);
    Arguments?: Set<{
        Description?: string;
        Name: string;
        Value?: any;
    }>;
    Description?: string;
    Name: string;
    Opts?: CommandOptions;
    Type?: "Workflow";
}> = ...

Type declaration

  • Action: ((...args) => Promise<void>)
      • (...args): Promise<void>
      • biome-ignore lint/suspicious/noExplicitAny:

        +

        Parameters

        • Rest ...args: any[]

        Returns Promise<void>

  • Optional Arguments?: Set<{
        Description?: string;
        Name: string;
        Value?: any;
    }>
  • Optional Description?: string
  • Name: string
  • Optional Opts?: CommandOptions
  • Optional Type?: "Workflow"

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Variable/Dependabot.Dependabot.html b/Script/Documentation/Variable/Dependabot.Dependabot.html index d8edb8c..bc7e1d0 100644 --- a/Script/Documentation/Variable/Dependabot.Dependabot.html +++ b/Script/Documentation/Variable/Dependabot.Dependabot.html @@ -1 +1 @@ -dependabot | @yesmaintain/script - v0.0.1
dependabot: Set<{
    File: (() => Promise<Set<string>>);
    Name: string;
    Path: string;
}>

Type declaration

Generated using TypeDoc

\ No newline at end of file +dependabot | @yesmaintain/script - v0.0.2
dependabot: Set<{
    File: (() => Promise<Set<string>>);
    Name: string;
    Path: string;
}>

Type declaration

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Variable/Git.Environment.html b/Script/Documentation/Variable/Git.Environment.html index 3d0304a..ce9e1dc 100644 --- a/Script/Documentation/Variable/Git.Environment.html +++ b/Script/Documentation/Variable/Git.Environment.html @@ -1 +1 @@ -Environment | @yesmaintain/script - v0.0.1
Environment: ZodObject<{
    Base: ZodDefault<ZodOptional<ZodString>>;
    Token: ZodDefault<ZodOptional<ZodString>>;
    User: ZodDefault<ZodOptional<ZodString>>;
}, "strip", ZodTypeAny, {
    Base: string;
    Token: string;
    User: string;
}, {
    Base?: string;
    Token?: string;
    User?: string;
}>

Type declaration

  • Base: ZodDefault<ZodOptional<ZodString>>
  • Token: ZodDefault<ZodOptional<ZodString>>
  • User: ZodDefault<ZodOptional<ZodString>>

Type declaration

  • Base: string
  • Token: string
  • User: string

Type declaration

  • Optional Base?: string
  • Optional Token?: string
  • Optional User?: string

Generated using TypeDoc

\ No newline at end of file +Environment | @yesmaintain/script - v0.0.2
Environment: ZodObject<{
    Base: ZodDefault<ZodOptional<ZodString>>;
    Token: ZodDefault<ZodOptional<ZodString>>;
    User: ZodDefault<ZodOptional<ZodString>>;
}, "strip", ZodTypeAny, {
    Base: string;
    Token: string;
    User: string;
}, {
    Base?: string;
    Token?: string;
    User?: string;
}>

Type declaration

  • Base: ZodDefault<ZodOptional<ZodString>>
  • Token: ZodDefault<ZodOptional<ZodString>>
  • User: ZodDefault<ZodOptional<ZodString>>

Type declaration

  • Base: string
  • Token: string
  • User: string

Type declaration

  • Optional Base?: string
  • Optional Token?: string
  • Optional User?: string

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Variable/NPM.NPM.html b/Script/Documentation/Variable/NPM.NPM.html index d58195b..23e5bb7 100644 --- a/Script/Documentation/Variable/NPM.NPM.html +++ b/Script/Documentation/Variable/NPM.NPM.html @@ -1 +1 @@ -NPM | @yesmaintain/script - v0.0.1
NPM: Set<{
    File: (() => Promise<Set<string>>);
    Name: string;
    Path: string;
}>

Type declaration

Generated using TypeDoc

\ No newline at end of file +NPM | @yesmaintain/script - v0.0.2
NPM: Set<{
    File: (() => Promise<Set<string>>);
    Name: string;
    Path: string;
}>

Type declaration

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Variable/Node.Node.html b/Script/Documentation/Variable/Node.Node.html index af72168..aad8ff5 100644 --- a/Script/Documentation/Variable/Node.Node.html +++ b/Script/Documentation/Variable/Node.Node.html @@ -1 +1 @@ -node | @yesmaintain/script - v0.0.1
node: Set<{
    File: (() => Promise<Set<string>>);
    Name: string;
    Path: string;
}>

Type declaration

Generated using TypeDoc

\ No newline at end of file +node | @yesmaintain/script - v0.0.2
node: Set<{
    File: (() => Promise<Set<string>>);
    Name: string;
    Path: string;
}>

Type declaration

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Variable/Rust.Rust.html b/Script/Documentation/Variable/Rust.Rust.html index e99a4be..1908439 100644 --- a/Script/Documentation/Variable/Rust.Rust.html +++ b/Script/Documentation/Variable/Rust.Rust.html @@ -1 +1 @@ -rust | @yesmaintain/script - v0.0.1
rust: Set<{
    File: (() => Promise<Set<string>>);
    Name: string;
    Path: string;
}>

Type declaration

Generated using TypeDoc

\ No newline at end of file +rust | @yesmaintain/script - v0.0.2
rust: Set<{
    File: (() => Promise<Set<string>>);
    Name: string;
    Path: string;
}>

Type declaration

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Variable/Variable_Environment.Environment.html b/Script/Documentation/Variable/Variable_Environment.Environment.html index 9e2dbf4..cc9128a 100644 --- a/Script/Documentation/Variable/Variable_Environment.Environment.html +++ b/Script/Documentation/Variable/Variable_Environment.Environment.html @@ -1 +1 @@ -environment | @yesmaintain/script - v0.0.1
environment: ZodObject<{
    Base: ZodDefault<ZodOptional<ZodString>>;
    Token: ZodDefault<ZodOptional<ZodString>>;
    User: ZodDefault<ZodOptional<ZodString>>;
}, "strip", ZodTypeAny, {
    Base: string;
    Token: string;
    User: string;
}, {
    Base?: string;
    Token?: string;
    User?: string;
}>

Type declaration

  • Base: ZodDefault<ZodOptional<ZodString>>
  • Token: ZodDefault<ZodOptional<ZodString>>
  • User: ZodDefault<ZodOptional<ZodString>>

Type declaration

  • Base: string
  • Token: string
  • User: string

Type declaration

  • Optional Base?: string
  • Optional Token?: string
  • Optional User?: string

Generated using TypeDoc

\ No newline at end of file +environment | @yesmaintain/script - v0.0.2
environment: ZodObject<{
    Base: ZodDefault<ZodOptional<ZodString>>;
    Token: ZodDefault<ZodOptional<ZodString>>;
    User: ZodDefault<ZodOptional<ZodString>>;
}, "strip", ZodTypeAny, {
    Base: string;
    Token: string;
    User: string;
}, {
    Base?: string;
    Token?: string;
    User?: string;
}>

Type declaration

  • Base: ZodDefault<ZodOptional<ZodString>>
  • Token: ZodDefault<ZodOptional<ZodString>>
  • User: ZodDefault<ZodOptional<ZodString>>

Type declaration

  • Base: string
  • Token: string
  • User: string

Type declaration

  • Optional Base?: string
  • Optional Token?: string
  • Optional User?: string

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/Variable/YesMaintain.YesMaintain.html b/Script/Documentation/Variable/YesMaintain.YesMaintain.html index fe1d648..ce12e0c 100644 --- a/Script/Documentation/Variable/YesMaintain.YesMaintain.html +++ b/Script/Documentation/Variable/YesMaintain.YesMaintain.html @@ -1 +1 @@ -yesMaintain | @yesmaintain/script - v0.0.1

Generated using TypeDoc

\ No newline at end of file +yesMaintain | @yesmaintain/script - v0.0.2

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Documentation/assets/main.js b/Script/Documentation/assets/main.js index 92ae88b..d0aa8d5 100644 --- a/Script/Documentation/assets/main.js +++ b/Script/Documentation/assets/main.js @@ -1,2303 +1,8 @@ "use strict"; -"use strict"; -(() => { - var Pe = Object.create; - var ne = Object.defineProperty; - var Ie = Object.getOwnPropertyDescriptor; - var Oe = Object.getOwnPropertyNames; - var _e = Object.getPrototypeOf, - Re = Object.prototype.hasOwnProperty; - var Me = (t, e) => () => ( - e || t((e = { exports: {} }).exports, e), e.exports - ); - var Fe = (t, e, n, r) => { - if ((e && typeof e == "object") || typeof e == "function") - for (let i of Oe(e)) - !Re.call(t, i) && - i !== n && - ne(t, i, { - get: () => e[i], - enumerable: !(r = Ie(e, i)) || r.enumerable, - }); - return t; - }; - var De = (t, e, n) => ( - (n = t != null ? Pe(_e(t)) : {}), - Fe( - e || !t || !t.__esModule - ? ne(n, "default", { value: t, enumerable: !0 }) - : n, - t, - ) - ); - var ae = Me((se, oe) => { - (function () { - var t = function (e) { - var n = new t.Builder(); - return ( - n.pipeline.add(t.trimmer, t.stopWordFilter, t.stemmer), - n.searchPipeline.add(t.stemmer), - e.call(n, n), - n.build() - ); - }; - t.version = "2.3.9"; - (t.utils = {}), - (t.utils.warn = (function (e) { - return function (n) { - e.console && console.warn && console.warn(n); - }; - })(this)), - (t.utils.asString = function (e) { - return e == null ? "" : e.toString(); - }), - (t.utils.clone = function (e) { - if (e == null) return e; - for ( - var n = Object.create(null), r = Object.keys(e), i = 0; - i < r.length; - i++ - ) { - var s = r[i], - o = e[s]; - if (Array.isArray(o)) { - n[s] = o.slice(); - continue; - } - if ( - typeof o == "string" || - typeof o == "number" || - typeof o == "boolean" - ) { - n[s] = o; - continue; - } - throw new TypeError( - "clone is not deep and does not support nested objects", - ); - } - return n; - }), - (t.FieldRef = function (e, n, r) { - (this.docRef = e), - (this.fieldName = n), - (this._stringValue = r); - }), - (t.FieldRef.joiner = "/"), - (t.FieldRef.fromString = function (e) { - var n = e.indexOf(t.FieldRef.joiner); - if (n === -1) throw "malformed field ref string"; - var r = e.slice(0, n), - i = e.slice(n + 1); - return new t.FieldRef(i, r, e); - }), - (t.FieldRef.prototype.toString = function () { - return ( - this._stringValue == null && - (this._stringValue = - this.fieldName + - t.FieldRef.joiner + - this.docRef), - this._stringValue - ); - }); - (t.Set = function (e) { - if (((this.elements = Object.create(null)), e)) { - this.length = e.length; - for (var n = 0; n < this.length; n++) - this.elements[e[n]] = !0; - } else this.length = 0; - }), - (t.Set.complete = { - intersect: function (e) { - return e; - }, - union: function () { - return this; - }, - contains: function () { - return !0; - }, - }), - (t.Set.empty = { - intersect: function () { - return this; - }, - union: function (e) { - return e; - }, - contains: function () { - return !1; - }, - }), - (t.Set.prototype.contains = function (e) { - return !!this.elements[e]; - }), - (t.Set.prototype.intersect = function (e) { - var n, - r, - i, - s = []; - if (e === t.Set.complete) return this; - if (e === t.Set.empty) return e; - this.length < e.length - ? ((n = this), (r = e)) - : ((n = e), (r = this)), - (i = Object.keys(n.elements)); - for (var o = 0; o < i.length; o++) { - var a = i[o]; - a in r.elements && s.push(a); - } - return new t.Set(s); - }), - (t.Set.prototype.union = function (e) { - return e === t.Set.complete - ? t.Set.complete - : e === t.Set.empty - ? this - : new t.Set( - Object.keys(this.elements).concat( - Object.keys(e.elements), - ), - ); - }), - (t.idf = function (e, n) { - var r = 0; - for (var i in e) - i != "_index" && (r += Object.keys(e[i]).length); - var s = (n - r + 0.5) / (r + 0.5); - return Math.log(1 + Math.abs(s)); - }), - (t.Token = function (e, n) { - (this.str = e || ""), (this.metadata = n || {}); - }), - (t.Token.prototype.toString = function () { - return this.str; - }), - (t.Token.prototype.update = function (e) { - return (this.str = e(this.str, this.metadata)), this; - }), - (t.Token.prototype.clone = function (e) { - return ( - (e = - e || - function (n) { - return n; - }), - new t.Token(e(this.str, this.metadata), this.metadata) - ); - }); - (t.tokenizer = function (e, n) { - if (e == null || e == null) return []; - if (Array.isArray(e)) - return e.map(function (v) { - return new t.Token( - t.utils.asString(v).toLowerCase(), - t.utils.clone(n), - ); - }); - for ( - var r = e.toString().toLowerCase(), - i = r.length, - s = [], - o = 0, - a = 0; - o <= i; - o++ - ) { - var l = r.charAt(o), - u = o - a; - if (l.match(t.tokenizer.separator) || o == i) { - if (u > 0) { - var d = t.utils.clone(n) || {}; - (d.position = [a, u]), - (d.index = s.length), - s.push(new t.Token(r.slice(a, o), d)); - } - a = o + 1; - } - } - return s; - }), - (t.tokenizer.separator = /[\s\-]+/); - (t.Pipeline = function () { - this._stack = []; - }), - (t.Pipeline.registeredFunctions = Object.create(null)), - (t.Pipeline.registerFunction = function (e, n) { - n in this.registeredFunctions && - t.utils.warn( - "Overwriting existing registered function: " + n, - ), - (e.label = n), - (t.Pipeline.registeredFunctions[e.label] = e); - }), - (t.Pipeline.warnIfFunctionNotRegistered = function (e) { - var n = e.label && e.label in this.registeredFunctions; - n || - t.utils.warn( - `Function is not registered with pipeline. This may cause problems when serialising the index. -`, - e, - ); - }), - (t.Pipeline.load = function (e) { - var n = new t.Pipeline(); - return ( - e.forEach(function (r) { - var i = t.Pipeline.registeredFunctions[r]; - if (i) n.add(i); - else - throw new Error( - "Cannot load unregistered function: " + r, - ); - }), - n - ); - }), - (t.Pipeline.prototype.add = function () { - var e = Array.prototype.slice.call(arguments); - e.forEach(function (n) { - t.Pipeline.warnIfFunctionNotRegistered(n), - this._stack.push(n); - }, this); - }), - (t.Pipeline.prototype.after = function (e, n) { - t.Pipeline.warnIfFunctionNotRegistered(n); - var r = this._stack.indexOf(e); - if (r == -1) throw new Error("Cannot find existingFn"); - (r = r + 1), this._stack.splice(r, 0, n); - }), - (t.Pipeline.prototype.before = function (e, n) { - t.Pipeline.warnIfFunctionNotRegistered(n); - var r = this._stack.indexOf(e); - if (r == -1) throw new Error("Cannot find existingFn"); - this._stack.splice(r, 0, n); - }), - (t.Pipeline.prototype.remove = function (e) { - var n = this._stack.indexOf(e); - n != -1 && this._stack.splice(n, 1); - }), - (t.Pipeline.prototype.run = function (e) { - for (var n = this._stack.length, r = 0; r < n; r++) { - for ( - var i = this._stack[r], s = [], o = 0; - o < e.length; - o++ - ) { - var a = i(e[o], o, e); - if (!(a == null || a === "")) - if (Array.isArray(a)) - for (var l = 0; l < a.length; l++) - s.push(a[l]); - else s.push(a); - } - e = s; - } - return e; - }), - (t.Pipeline.prototype.runString = function (e, n) { - var r = new t.Token(e, n); - return this.run([r]).map(function (i) { - return i.toString(); - }); - }), - (t.Pipeline.prototype.reset = function () { - this._stack = []; - }), - (t.Pipeline.prototype.toJSON = function () { - return this._stack.map(function (e) { - return ( - t.Pipeline.warnIfFunctionNotRegistered(e), e.label - ); - }); - }); - (t.Vector = function (e) { - (this._magnitude = 0), (this.elements = e || []); - }), - (t.Vector.prototype.positionForIndex = function (e) { - if (this.elements.length == 0) return 0; - for ( - var n = 0, - r = this.elements.length / 2, - i = r - n, - s = Math.floor(i / 2), - o = this.elements[s * 2]; - i > 1 && (o < e && (n = s), o > e && (r = s), o != e); - ) - (i = r - n), - (s = n + Math.floor(i / 2)), - (o = this.elements[s * 2]); - if (o == e || o > e) return s * 2; - if (o < e) return (s + 1) * 2; - }), - (t.Vector.prototype.insert = function (e, n) { - this.upsert(e, n, function () { - throw "duplicate index"; - }); - }), - (t.Vector.prototype.upsert = function (e, n, r) { - this._magnitude = 0; - var i = this.positionForIndex(e); - this.elements[i] == e - ? (this.elements[i + 1] = r(this.elements[i + 1], n)) - : this.elements.splice(i, 0, e, n); - }), - (t.Vector.prototype.magnitude = function () { - if (this._magnitude) return this._magnitude; - for ( - var e = 0, n = this.elements.length, r = 1; - r < n; - r += 2 - ) { - var i = this.elements[r]; - e += i * i; - } - return (this._magnitude = Math.sqrt(e)); - }), - (t.Vector.prototype.dot = function (e) { - for ( - var n = 0, - r = this.elements, - i = e.elements, - s = r.length, - o = i.length, - a = 0, - l = 0, - u = 0, - d = 0; - u < s && d < o; - ) - (a = r[u]), - (l = i[d]), - a < l - ? (u += 2) - : a > l - ? (d += 2) - : a == l && - ((n += r[u + 1] * i[d + 1]), - (u += 2), - (d += 2)); - return n; - }), - (t.Vector.prototype.similarity = function (e) { - return this.dot(e) / this.magnitude() || 0; - }), - (t.Vector.prototype.toArray = function () { - for ( - var e = new Array(this.elements.length / 2), - n = 1, - r = 0; - n < this.elements.length; - n += 2, r++ - ) - e[r] = this.elements[n]; - return e; - }), - (t.Vector.prototype.toJSON = function () { - return this.elements; - }); - (t.stemmer = (function () { - var e = { - ational: "ate", - tional: "tion", - enci: "ence", - anci: "ance", - izer: "ize", - bli: "ble", - alli: "al", - entli: "ent", - eli: "e", - ousli: "ous", - ization: "ize", - ation: "ate", - ator: "ate", - alism: "al", - iveness: "ive", - fulness: "ful", - ousness: "ous", - aliti: "al", - iviti: "ive", - biliti: "ble", - logi: "log", - }, - n = { - icate: "ic", - ative: "", - alize: "al", - iciti: "ic", - ical: "ic", - ful: "", - ness: "", - }, - r = "[^aeiou]", - i = "[aeiouy]", - s = r + "[^aeiouy]*", - o = i + "[aeiou]*", - a = "^(" + s + ")?" + o + s, - l = "^(" + s + ")?" + o + s + "(" + o + ")?$", - u = "^(" + s + ")?" + o + s + o + s, - d = "^(" + s + ")?" + i, - v = new RegExp(a), - f = new RegExp(u), - b = new RegExp(l), - g = new RegExp(d), - L = /^(.+?)(ss|i)es$/, - p = /^(.+?)([^s])s$/, - m = /^(.+?)eed$/, - S = /^(.+?)(ed|ing)$/, - w = /.$/, - k = /(at|bl|iz)$/, - _ = new RegExp("([^aeiouylsz])\\1$"), - H = new RegExp("^" + s + i + "[^aeiouwxy]$"), - A = /^(.+?[^aeiou])y$/, - j = - /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/, - $ = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/, - N = - /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/, - q = /^(.+?)(s|t)(ion)$/, - P = /^(.+?)e$/, - z = /ll$/, - W = new RegExp("^" + s + i + "[^aeiouwxy]$"), - V = function (c) { - var y, I, T, h, x, O, M; - if (c.length < 3) return c; - if ( - ((T = c.substr(0, 1)), - T == "y" && (c = T.toUpperCase() + c.substr(1)), - (h = L), - (x = p), - h.test(c) - ? (c = c.replace(h, "$1$2")) - : x.test(c) && (c = c.replace(x, "$1$2")), - (h = m), - (x = S), - h.test(c)) - ) { - var E = h.exec(c); - (h = v), - h.test(E[1]) && - ((h = w), (c = c.replace(h, ""))); - } else if (x.test(c)) { - var E = x.exec(c); - (y = E[1]), - (x = g), - x.test(y) && - ((c = y), - (x = k), - (O = _), - (M = H), - x.test(c) - ? (c = c + "e") - : O.test(c) - ? ((h = w), (c = c.replace(h, ""))) - : M.test(c) && (c = c + "e")); - } - if (((h = A), h.test(c))) { - var E = h.exec(c); - (y = E[1]), (c = y + "i"); - } - if (((h = j), h.test(c))) { - var E = h.exec(c); - (y = E[1]), - (I = E[2]), - (h = v), - h.test(y) && (c = y + e[I]); - } - if (((h = $), h.test(c))) { - var E = h.exec(c); - (y = E[1]), - (I = E[2]), - (h = v), - h.test(y) && (c = y + n[I]); - } - if (((h = N), (x = q), h.test(c))) { - var E = h.exec(c); - (y = E[1]), (h = f), h.test(y) && (c = y); - } else if (x.test(c)) { - var E = x.exec(c); - (y = E[1] + E[2]), (x = f), x.test(y) && (c = y); - } - if (((h = P), h.test(c))) { - var E = h.exec(c); - (y = E[1]), - (h = f), - (x = b), - (O = W), - (h.test(y) || (x.test(y) && !O.test(y))) && - (c = y); - } - return ( - (h = z), - (x = f), - h.test(c) && - x.test(c) && - ((h = w), (c = c.replace(h, ""))), - T == "y" && (c = T.toLowerCase() + c.substr(1)), - c - ); - }; - return function (R) { - return R.update(V); - }; - })()), - t.Pipeline.registerFunction(t.stemmer, "stemmer"); - (t.generateStopWordFilter = function (e) { - var n = e.reduce(function (r, i) { - return (r[i] = i), r; - }, {}); - return function (r) { - if (r && n[r.toString()] !== r.toString()) return r; - }; - }), - (t.stopWordFilter = t.generateStopWordFilter([ - "a", - "able", - "about", - "across", - "after", - "all", - "almost", - "also", - "am", - "among", - "an", - "and", - "any", - "are", - "as", - "at", - "be", - "because", - "been", - "but", - "by", - "can", - "cannot", - "could", - "dear", - "did", - "do", - "does", - "either", - "else", - "ever", - "every", - "for", - "from", - "get", - "got", - "had", - "has", - "have", - "he", - "her", - "hers", - "him", - "his", - "how", - "however", - "i", - "if", - "in", - "into", - "is", - "it", - "its", - "just", - "least", - "let", - "like", - "likely", - "may", - "me", - "might", - "most", - "must", - "my", - "neither", - "no", - "nor", - "not", - "of", - "off", - "often", - "on", - "only", - "or", - "other", - "our", - "own", - "rather", - "said", - "say", - "says", - "she", - "should", - "since", - "so", - "some", - "than", - "that", - "the", - "their", - "them", - "then", - "there", - "these", - "they", - "this", - "tis", - "to", - "too", - "twas", - "us", - "wants", - "was", - "we", - "were", - "what", - "when", - "where", - "which", - "while", - "who", - "whom", - "why", - "will", - "with", - "would", - "yet", - "you", - "your", - ])), - t.Pipeline.registerFunction(t.stopWordFilter, "stopWordFilter"); - (t.trimmer = function (e) { - return e.update(function (n) { - return n.replace(/^\W+/, "").replace(/\W+$/, ""); - }); - }), - t.Pipeline.registerFunction(t.trimmer, "trimmer"); - (t.TokenSet = function () { - (this.final = !1), - (this.edges = {}), - (this.id = t.TokenSet._nextId), - (t.TokenSet._nextId += 1); - }), - (t.TokenSet._nextId = 1), - (t.TokenSet.fromArray = function (e) { - for ( - var n = new t.TokenSet.Builder(), r = 0, i = e.length; - r < i; - r++ - ) - n.insert(e[r]); - return n.finish(), n.root; - }), - (t.TokenSet.fromClause = function (e) { - return "editDistance" in e - ? t.TokenSet.fromFuzzyString(e.term, e.editDistance) - : t.TokenSet.fromString(e.term); - }), - (t.TokenSet.fromFuzzyString = function (e, n) { - for ( - var r = new t.TokenSet(), - i = [{ node: r, editsRemaining: n, str: e }]; - i.length; - ) { - var s = i.pop(); - if (s.str.length > 0) { - var o = s.str.charAt(0), - a; - o in s.node.edges - ? (a = s.node.edges[o]) - : ((a = new t.TokenSet()), - (s.node.edges[o] = a)), - s.str.length == 1 && (a.final = !0), - i.push({ - node: a, - editsRemaining: s.editsRemaining, - str: s.str.slice(1), - }); - } - if (s.editsRemaining != 0) { - if ("*" in s.node.edges) var l = s.node.edges["*"]; - else { - var l = new t.TokenSet(); - s.node.edges["*"] = l; - } - if ( - (s.str.length == 0 && (l.final = !0), - i.push({ - node: l, - editsRemaining: s.editsRemaining - 1, - str: s.str, - }), - s.str.length > 1 && - i.push({ - node: s.node, - editsRemaining: s.editsRemaining - 1, - str: s.str.slice(1), - }), - s.str.length == 1 && (s.node.final = !0), - s.str.length >= 1) - ) { - if ("*" in s.node.edges) - var u = s.node.edges["*"]; - else { - var u = new t.TokenSet(); - s.node.edges["*"] = u; - } - s.str.length == 1 && (u.final = !0), - i.push({ - node: u, - editsRemaining: s.editsRemaining - 1, - str: s.str.slice(1), - }); - } - if (s.str.length > 1) { - var d = s.str.charAt(0), - v = s.str.charAt(1), - f; - v in s.node.edges - ? (f = s.node.edges[v]) - : ((f = new t.TokenSet()), - (s.node.edges[v] = f)), - s.str.length == 1 && (f.final = !0), - i.push({ - node: f, - editsRemaining: s.editsRemaining - 1, - str: d + s.str.slice(2), - }); - } - } - } - return r; - }), - (t.TokenSet.fromString = function (e) { - for ( - var n = new t.TokenSet(), r = n, i = 0, s = e.length; - i < s; - i++ - ) { - var o = e[i], - a = i == s - 1; - if (o == "*") (n.edges[o] = n), (n.final = a); - else { - var l = new t.TokenSet(); - (l.final = a), (n.edges[o] = l), (n = l); - } - } - return r; - }), - (t.TokenSet.prototype.toArray = function () { - for ( - var e = [], n = [{ prefix: "", node: this }]; - n.length; - ) { - var r = n.pop(), - i = Object.keys(r.node.edges), - s = i.length; - r.node.final && (r.prefix.charAt(0), e.push(r.prefix)); - for (var o = 0; o < s; o++) { - var a = i[o]; - n.push({ - prefix: r.prefix.concat(a), - node: r.node.edges[a], - }); - } - } - return e; - }), - (t.TokenSet.prototype.toString = function () { - if (this._str) return this._str; - for ( - var e = this.final ? "1" : "0", - n = Object.keys(this.edges).sort(), - r = n.length, - i = 0; - i < r; - i++ - ) { - var s = n[i], - o = this.edges[s]; - e = e + s + o.id; - } - return e; - }), - (t.TokenSet.prototype.intersect = function (e) { - for ( - var n = new t.TokenSet(), - r = void 0, - i = [{ qNode: e, output: n, node: this }]; - i.length; - ) { - r = i.pop(); - for ( - var s = Object.keys(r.qNode.edges), - o = s.length, - a = Object.keys(r.node.edges), - l = a.length, - u = 0; - u < o; - u++ - ) - for (var d = s[u], v = 0; v < l; v++) { - var f = a[v]; - if (f == d || d == "*") { - var b = r.node.edges[f], - g = r.qNode.edges[d], - L = b.final && g.final, - p = void 0; - f in r.output.edges - ? ((p = r.output.edges[f]), - (p.final = p.final || L)) - : ((p = new t.TokenSet()), - (p.final = L), - (r.output.edges[f] = p)), - i.push({ - qNode: g, - output: p, - node: b, - }); - } - } - } - return n; - }), - (t.TokenSet.Builder = function () { - (this.previousWord = ""), - (this.root = new t.TokenSet()), - (this.uncheckedNodes = []), - (this.minimizedNodes = {}); - }), - (t.TokenSet.Builder.prototype.insert = function (e) { - var n, - r = 0; - if (e < this.previousWord) - throw new Error("Out of order word insertion"); - for ( - var i = 0; - i < e.length && - i < this.previousWord.length && - e[i] == this.previousWord[i]; - i++ - ) - r++; - this.minimize(r), - this.uncheckedNodes.length == 0 - ? (n = this.root) - : (n = - this.uncheckedNodes[ - this.uncheckedNodes.length - 1 - ].child); - for (var i = r; i < e.length; i++) { - var s = new t.TokenSet(), - o = e[i]; - (n.edges[o] = s), - this.uncheckedNodes.push({ - parent: n, - char: o, - child: s, - }), - (n = s); - } - (n.final = !0), (this.previousWord = e); - }), - (t.TokenSet.Builder.prototype.finish = function () { - this.minimize(0); - }), - (t.TokenSet.Builder.prototype.minimize = function (e) { - for (var n = this.uncheckedNodes.length - 1; n >= e; n--) { - var r = this.uncheckedNodes[n], - i = r.child.toString(); - i in this.minimizedNodes - ? (r.parent.edges[r.char] = this.minimizedNodes[i]) - : ((r.child._str = i), - (this.minimizedNodes[i] = r.child)), - this.uncheckedNodes.pop(); - } - }); - (t.Index = function (e) { - (this.invertedIndex = e.invertedIndex), - (this.fieldVectors = e.fieldVectors), - (this.tokenSet = e.tokenSet), - (this.fields = e.fields), - (this.pipeline = e.pipeline); - }), - (t.Index.prototype.search = function (e) { - return this.query(function (n) { - var r = new t.QueryParser(e, n); - r.parse(); - }); - }), - (t.Index.prototype.query = function (e) { - for ( - var n = new t.Query(this.fields), - r = Object.create(null), - i = Object.create(null), - s = Object.create(null), - o = Object.create(null), - a = Object.create(null), - l = 0; - l < this.fields.length; - l++ - ) - i[this.fields[l]] = new t.Vector(); - e.call(n, n); - for (var l = 0; l < n.clauses.length; l++) { - var u = n.clauses[l], - d = null, - v = t.Set.empty; - u.usePipeline - ? (d = this.pipeline.runString(u.term, { - fields: u.fields, - })) - : (d = [u.term]); - for (var f = 0; f < d.length; f++) { - var b = d[f]; - u.term = b; - var g = t.TokenSet.fromClause(u), - L = this.tokenSet.intersect(g).toArray(); - if ( - L.length === 0 && - u.presence === t.Query.presence.REQUIRED - ) { - for (var p = 0; p < u.fields.length; p++) { - var m = u.fields[p]; - o[m] = t.Set.empty; - } - break; - } - for (var S = 0; S < L.length; S++) - for ( - var w = L[S], - k = this.invertedIndex[w], - _ = k._index, - p = 0; - p < u.fields.length; - p++ - ) { - var m = u.fields[p], - H = k[m], - A = Object.keys(H), - j = w + "/" + m, - $ = new t.Set(A); - if ( - (u.presence == - t.Query.presence.REQUIRED && - ((v = v.union($)), - o[m] === void 0 && - (o[m] = t.Set.complete)), - u.presence == - t.Query.presence.PROHIBITED) - ) { - a[m] === void 0 && (a[m] = t.Set.empty), - (a[m] = a[m].union($)); - continue; - } - if ( - (i[m].upsert( - _, - u.boost, - function (Qe, Ce) { - return Qe + Ce; - }, - ), - !s[j]) - ) { - for (var N = 0; N < A.length; N++) { - var q = A[N], - P = new t.FieldRef(q, m), - z = H[q], - W; - (W = r[P]) === void 0 - ? (r[P] = new t.MatchData( - w, - m, - z, - )) - : W.add(w, m, z); - } - s[j] = !0; - } - } - } - if (u.presence === t.Query.presence.REQUIRED) - for (var p = 0; p < u.fields.length; p++) { - var m = u.fields[p]; - o[m] = o[m].intersect(v); - } - } - for ( - var V = t.Set.complete, R = t.Set.empty, l = 0; - l < this.fields.length; - l++ - ) { - var m = this.fields[l]; - o[m] && (V = V.intersect(o[m])), - a[m] && (R = R.union(a[m])); - } - var c = Object.keys(r), - y = [], - I = Object.create(null); - if (n.isNegated()) { - c = Object.keys(this.fieldVectors); - for (var l = 0; l < c.length; l++) { - var P = c[l], - T = t.FieldRef.fromString(P); - r[P] = new t.MatchData(); - } - } - for (var l = 0; l < c.length; l++) { - var T = t.FieldRef.fromString(c[l]), - h = T.docRef; - if (V.contains(h) && !R.contains(h)) { - var x = this.fieldVectors[T], - O = i[T.fieldName].similarity(x), - M; - if ((M = I[h]) !== void 0) - (M.score += O), M.matchData.combine(r[T]); - else { - var E = { ref: h, score: O, matchData: r[T] }; - (I[h] = E), y.push(E); - } - } - } - return y.sort(function (Te, ke) { - return ke.score - Te.score; - }); - }), - (t.Index.prototype.toJSON = function () { - var e = Object.keys(this.invertedIndex) - .sort() - .map(function (r) { - return [r, this.invertedIndex[r]]; - }, this), - n = Object.keys(this.fieldVectors).map(function (r) { - return [r, this.fieldVectors[r].toJSON()]; - }, this); - return { - version: t.version, - fields: this.fields, - fieldVectors: n, - invertedIndex: e, - pipeline: this.pipeline.toJSON(), - }; - }), - (t.Index.load = function (e) { - var n = {}, - r = {}, - i = e.fieldVectors, - s = Object.create(null), - o = e.invertedIndex, - a = new t.TokenSet.Builder(), - l = t.Pipeline.load(e.pipeline); - e.version != t.version && - t.utils.warn( - "Version mismatch when loading serialised index. Current version of lunr '" + - t.version + - "' does not match serialized index '" + - e.version + - "'", - ); - for (var u = 0; u < i.length; u++) { - var d = i[u], - v = d[0], - f = d[1]; - r[v] = new t.Vector(f); - } - for (var u = 0; u < o.length; u++) { - var d = o[u], - b = d[0], - g = d[1]; - a.insert(b), (s[b] = g); - } - return ( - a.finish(), - (n.fields = e.fields), - (n.fieldVectors = r), - (n.invertedIndex = s), - (n.tokenSet = a.root), - (n.pipeline = l), - new t.Index(n) - ); - }); - (t.Builder = function () { - (this._ref = "id"), - (this._fields = Object.create(null)), - (this._documents = Object.create(null)), - (this.invertedIndex = Object.create(null)), - (this.fieldTermFrequencies = {}), - (this.fieldLengths = {}), - (this.tokenizer = t.tokenizer), - (this.pipeline = new t.Pipeline()), - (this.searchPipeline = new t.Pipeline()), - (this.documentCount = 0), - (this._b = 0.75), - (this._k1 = 1.2), - (this.termIndex = 0), - (this.metadataWhitelist = []); - }), - (t.Builder.prototype.ref = function (e) { - this._ref = e; - }), - (t.Builder.prototype.field = function (e, n) { - if (/\//.test(e)) - throw new RangeError( - "Field '" + e + "' contains illegal character '/'", - ); - this._fields[e] = n || {}; - }), - (t.Builder.prototype.b = function (e) { - e < 0 - ? (this._b = 0) - : e > 1 - ? (this._b = 1) - : (this._b = e); - }), - (t.Builder.prototype.k1 = function (e) { - this._k1 = e; - }), - (t.Builder.prototype.add = function (e, n) { - var r = e[this._ref], - i = Object.keys(this._fields); - (this._documents[r] = n || {}), (this.documentCount += 1); - for (var s = 0; s < i.length; s++) { - var o = i[s], - a = this._fields[o].extractor, - l = a ? a(e) : e[o], - u = this.tokenizer(l, { fields: [o] }), - d = this.pipeline.run(u), - v = new t.FieldRef(r, o), - f = Object.create(null); - (this.fieldTermFrequencies[v] = f), - (this.fieldLengths[v] = 0), - (this.fieldLengths[v] += d.length); - for (var b = 0; b < d.length; b++) { - var g = d[b]; - if ( - (f[g] == null && (f[g] = 0), - (f[g] += 1), - this.invertedIndex[g] == null) - ) { - var L = Object.create(null); - (L._index = this.termIndex), - (this.termIndex += 1); - for (var p = 0; p < i.length; p++) - L[i[p]] = Object.create(null); - this.invertedIndex[g] = L; - } - this.invertedIndex[g][o][r] == null && - (this.invertedIndex[g][o][r] = - Object.create(null)); - for ( - var m = 0; - m < this.metadataWhitelist.length; - m++ - ) { - var S = this.metadataWhitelist[m], - w = g.metadata[S]; - this.invertedIndex[g][o][r][S] == null && - (this.invertedIndex[g][o][r][S] = []), - this.invertedIndex[g][o][r][S].push(w); - } - } - } - }), - (t.Builder.prototype.calculateAverageFieldLengths = - function () { - for ( - var e = Object.keys(this.fieldLengths), - n = e.length, - r = {}, - i = {}, - s = 0; - s < n; - s++ - ) { - var o = t.FieldRef.fromString(e[s]), - a = o.fieldName; - i[a] || (i[a] = 0), - (i[a] += 1), - r[a] || (r[a] = 0), - (r[a] += this.fieldLengths[o]); - } - for ( - var l = Object.keys(this._fields), s = 0; - s < l.length; - s++ - ) { - var u = l[s]; - r[u] = r[u] / i[u]; - } - this.averageFieldLength = r; - }), - (t.Builder.prototype.createFieldVectors = function () { - for ( - var e = {}, - n = Object.keys(this.fieldTermFrequencies), - r = n.length, - i = Object.create(null), - s = 0; - s < r; - s++ - ) { - for ( - var o = t.FieldRef.fromString(n[s]), - a = o.fieldName, - l = this.fieldLengths[o], - u = new t.Vector(), - d = this.fieldTermFrequencies[o], - v = Object.keys(d), - f = v.length, - b = this._fields[a].boost || 1, - g = this._documents[o.docRef].boost || 1, - L = 0; - L < f; - L++ - ) { - var p = v[L], - m = d[p], - S = this.invertedIndex[p]._index, - w, - k, - _; - i[p] === void 0 - ? ((w = t.idf( - this.invertedIndex[p], - this.documentCount, - )), - (i[p] = w)) - : (w = i[p]), - (k = - (w * ((this._k1 + 1) * m)) / - (this._k1 * - (1 - - this._b + - this._b * - (l / - this.averageFieldLength[ - a - ])) + - m)), - (k *= b), - (k *= g), - (_ = Math.round(k * 1e3) / 1e3), - u.insert(S, _); - } - e[o] = u; - } - this.fieldVectors = e; - }), - (t.Builder.prototype.createTokenSet = function () { - this.tokenSet = t.TokenSet.fromArray( - Object.keys(this.invertedIndex).sort(), - ); - }), - (t.Builder.prototype.build = function () { - return ( - this.calculateAverageFieldLengths(), - this.createFieldVectors(), - this.createTokenSet(), - new t.Index({ - invertedIndex: this.invertedIndex, - fieldVectors: this.fieldVectors, - tokenSet: this.tokenSet, - fields: Object.keys(this._fields), - pipeline: this.searchPipeline, - }) - ); - }), - (t.Builder.prototype.use = function (e) { - var n = Array.prototype.slice.call(arguments, 1); - n.unshift(this), e.apply(this, n); - }), - (t.MatchData = function (e, n, r) { - for ( - var i = Object.create(null), - s = Object.keys(r || {}), - o = 0; - o < s.length; - o++ - ) { - var a = s[o]; - i[a] = r[a].slice(); - } - (this.metadata = Object.create(null)), - e !== void 0 && - ((this.metadata[e] = Object.create(null)), - (this.metadata[e][n] = i)); - }), - (t.MatchData.prototype.combine = function (e) { - for ( - var n = Object.keys(e.metadata), r = 0; - r < n.length; - r++ - ) { - var i = n[r], - s = Object.keys(e.metadata[i]); - this.metadata[i] == null && - (this.metadata[i] = Object.create(null)); - for (var o = 0; o < s.length; o++) { - var a = s[o], - l = Object.keys(e.metadata[i][a]); - this.metadata[i][a] == null && - (this.metadata[i][a] = Object.create(null)); - for (var u = 0; u < l.length; u++) { - var d = l[u]; - this.metadata[i][a][d] == null - ? (this.metadata[i][a][d] = - e.metadata[i][a][d]) - : (this.metadata[i][a][d] = this.metadata[ - i - ][a][d].concat(e.metadata[i][a][d])); - } - } - } - }), - (t.MatchData.prototype.add = function (e, n, r) { - if (!(e in this.metadata)) { - (this.metadata[e] = Object.create(null)), - (this.metadata[e][n] = r); - return; - } - if (!(n in this.metadata[e])) { - this.metadata[e][n] = r; - return; - } - for (var i = Object.keys(r), s = 0; s < i.length; s++) { - var o = i[s]; - o in this.metadata[e][n] - ? (this.metadata[e][n][o] = this.metadata[e][n][ - o - ].concat(r[o])) - : (this.metadata[e][n][o] = r[o]); - } - }), - (t.Query = function (e) { - (this.clauses = []), (this.allFields = e); - }), - (t.Query.wildcard = new String("*")), - (t.Query.wildcard.NONE = 0), - (t.Query.wildcard.LEADING = 1), - (t.Query.wildcard.TRAILING = 2), - (t.Query.presence = { - OPTIONAL: 1, - REQUIRED: 2, - PROHIBITED: 3, - }), - (t.Query.prototype.clause = function (e) { - return ( - "fields" in e || (e.fields = this.allFields), - "boost" in e || (e.boost = 1), - "usePipeline" in e || (e.usePipeline = !0), - "wildcard" in e || (e.wildcard = t.Query.wildcard.NONE), - e.wildcard & t.Query.wildcard.LEADING && - e.term.charAt(0) != t.Query.wildcard && - (e.term = "*" + e.term), - e.wildcard & t.Query.wildcard.TRAILING && - e.term.slice(-1) != t.Query.wildcard && - (e.term = "" + e.term + "*"), - "presence" in e || - (e.presence = t.Query.presence.OPTIONAL), - this.clauses.push(e), - this - ); - }), - (t.Query.prototype.isNegated = function () { - for (var e = 0; e < this.clauses.length; e++) - if ( - this.clauses[e].presence != - t.Query.presence.PROHIBITED - ) - return !1; - return !0; - }), - (t.Query.prototype.term = function (e, n) { - if (Array.isArray(e)) - return ( - e.forEach(function (i) { - this.term(i, t.utils.clone(n)); - }, this), - this - ); - var r = n || {}; - return (r.term = e.toString()), this.clause(r), this; - }), - (t.QueryParseError = function (e, n, r) { - (this.name = "QueryParseError"), - (this.message = e), - (this.start = n), - (this.end = r); - }), - (t.QueryParseError.prototype = new Error()), - (t.QueryLexer = function (e) { - (this.lexemes = []), - (this.str = e), - (this.length = e.length), - (this.pos = 0), - (this.start = 0), - (this.escapeCharPositions = []); - }), - (t.QueryLexer.prototype.run = function () { - for (var e = t.QueryLexer.lexText; e; ) e = e(this); - }), - (t.QueryLexer.prototype.sliceString = function () { - for ( - var e = [], n = this.start, r = this.pos, i = 0; - i < this.escapeCharPositions.length; - i++ - ) - (r = this.escapeCharPositions[i]), - e.push(this.str.slice(n, r)), - (n = r + 1); - return ( - e.push(this.str.slice(n, this.pos)), - (this.escapeCharPositions.length = 0), - e.join("") - ); - }), - (t.QueryLexer.prototype.emit = function (e) { - this.lexemes.push({ - type: e, - str: this.sliceString(), - start: this.start, - end: this.pos, - }), - (this.start = this.pos); - }), - (t.QueryLexer.prototype.escapeCharacter = function () { - this.escapeCharPositions.push(this.pos - 1), - (this.pos += 1); - }), - (t.QueryLexer.prototype.next = function () { - if (this.pos >= this.length) return t.QueryLexer.EOS; - var e = this.str.charAt(this.pos); - return (this.pos += 1), e; - }), - (t.QueryLexer.prototype.width = function () { - return this.pos - this.start; - }), - (t.QueryLexer.prototype.ignore = function () { - this.start == this.pos && (this.pos += 1), - (this.start = this.pos); - }), - (t.QueryLexer.prototype.backup = function () { - this.pos -= 1; - }), - (t.QueryLexer.prototype.acceptDigitRun = function () { - var e, n; - do (e = this.next()), (n = e.charCodeAt(0)); - while (n > 47 && n < 58); - e != t.QueryLexer.EOS && this.backup(); - }), - (t.QueryLexer.prototype.more = function () { - return this.pos < this.length; - }), - (t.QueryLexer.EOS = "EOS"), - (t.QueryLexer.FIELD = "FIELD"), - (t.QueryLexer.TERM = "TERM"), - (t.QueryLexer.EDIT_DISTANCE = "EDIT_DISTANCE"), - (t.QueryLexer.BOOST = "BOOST"), - (t.QueryLexer.PRESENCE = "PRESENCE"), - (t.QueryLexer.lexField = function (e) { - return ( - e.backup(), - e.emit(t.QueryLexer.FIELD), - e.ignore(), - t.QueryLexer.lexText - ); - }), - (t.QueryLexer.lexTerm = function (e) { - if ( - (e.width() > 1 && - (e.backup(), e.emit(t.QueryLexer.TERM)), - e.ignore(), - e.more()) - ) - return t.QueryLexer.lexText; - }), - (t.QueryLexer.lexEditDistance = function (e) { - return ( - e.ignore(), - e.acceptDigitRun(), - e.emit(t.QueryLexer.EDIT_DISTANCE), - t.QueryLexer.lexText - ); - }), - (t.QueryLexer.lexBoost = function (e) { - return ( - e.ignore(), - e.acceptDigitRun(), - e.emit(t.QueryLexer.BOOST), - t.QueryLexer.lexText - ); - }), - (t.QueryLexer.lexEOS = function (e) { - e.width() > 0 && e.emit(t.QueryLexer.TERM); - }), - (t.QueryLexer.termSeparator = t.tokenizer.separator), - (t.QueryLexer.lexText = function (e) { - for (;;) { - var n = e.next(); - if (n == t.QueryLexer.EOS) return t.QueryLexer.lexEOS; - if (n.charCodeAt(0) == 92) { - e.escapeCharacter(); - continue; - } - if (n == ":") return t.QueryLexer.lexField; - if (n == "~") - return ( - e.backup(), - e.width() > 0 && e.emit(t.QueryLexer.TERM), - t.QueryLexer.lexEditDistance - ); - if (n == "^") - return ( - e.backup(), - e.width() > 0 && e.emit(t.QueryLexer.TERM), - t.QueryLexer.lexBoost - ); - if ( - (n == "+" && e.width() === 1) || - (n == "-" && e.width() === 1) - ) - return ( - e.emit(t.QueryLexer.PRESENCE), - t.QueryLexer.lexText - ); - if (n.match(t.QueryLexer.termSeparator)) - return t.QueryLexer.lexTerm; - } - }), - (t.QueryParser = function (e, n) { - (this.lexer = new t.QueryLexer(e)), - (this.query = n), - (this.currentClause = {}), - (this.lexemeIdx = 0); - }), - (t.QueryParser.prototype.parse = function () { - this.lexer.run(), (this.lexemes = this.lexer.lexemes); - for (var e = t.QueryParser.parseClause; e; ) e = e(this); - return this.query; - }), - (t.QueryParser.prototype.peekLexeme = function () { - return this.lexemes[this.lexemeIdx]; - }), - (t.QueryParser.prototype.consumeLexeme = function () { - var e = this.peekLexeme(); - return (this.lexemeIdx += 1), e; - }), - (t.QueryParser.prototype.nextClause = function () { - var e = this.currentClause; - this.query.clause(e), (this.currentClause = {}); - }), - (t.QueryParser.parseClause = function (e) { - var n = e.peekLexeme(); - if (n != null) - switch (n.type) { - case t.QueryLexer.PRESENCE: - return t.QueryParser.parsePresence; - case t.QueryLexer.FIELD: - return t.QueryParser.parseField; - case t.QueryLexer.TERM: - return t.QueryParser.parseTerm; - default: - var r = - "expected either a field or a term, found " + - n.type; - throw ( - (n.str.length >= 1 && - (r += " with value '" + n.str + "'"), - new t.QueryParseError(r, n.start, n.end)) - ); - } - }), - (t.QueryParser.parsePresence = function (e) { - var n = e.consumeLexeme(); - if (n != null) { - switch (n.str) { - case "-": - e.currentClause.presence = - t.Query.presence.PROHIBITED; - break; - case "+": - e.currentClause.presence = - t.Query.presence.REQUIRED; - break; - default: - var r = - "unrecognised presence operator'" + - n.str + - "'"; - throw new t.QueryParseError(r, n.start, n.end); - } - var i = e.peekLexeme(); - if (i == null) { - var r = "expecting term or field, found nothing"; - throw new t.QueryParseError(r, n.start, n.end); - } - switch (i.type) { - case t.QueryLexer.FIELD: - return t.QueryParser.parseField; - case t.QueryLexer.TERM: - return t.QueryParser.parseTerm; - default: - var r = - "expecting term or field, found '" + - i.type + - "'"; - throw new t.QueryParseError(r, i.start, i.end); - } - } - }), - (t.QueryParser.parseField = function (e) { - var n = e.consumeLexeme(); - if (n != null) { - if (e.query.allFields.indexOf(n.str) == -1) { - var r = e.query.allFields - .map(function (o) { - return "'" + o + "'"; - }) - .join(", "), - i = - "unrecognised field '" + - n.str + - "', possible fields: " + - r; - throw new t.QueryParseError(i, n.start, n.end); - } - e.currentClause.fields = [n.str]; - var s = e.peekLexeme(); - if (s == null) { - var i = "expecting term, found nothing"; - throw new t.QueryParseError(i, n.start, n.end); - } - switch (s.type) { - case t.QueryLexer.TERM: - return t.QueryParser.parseTerm; - default: - var i = - "expecting term, found '" + s.type + "'"; - throw new t.QueryParseError(i, s.start, s.end); - } - } - }), - (t.QueryParser.parseTerm = function (e) { - var n = e.consumeLexeme(); - if (n != null) { - (e.currentClause.term = n.str.toLowerCase()), - n.str.indexOf("*") != -1 && - (e.currentClause.usePipeline = !1); - var r = e.peekLexeme(); - if (r == null) { - e.nextClause(); - return; - } - switch (r.type) { - case t.QueryLexer.TERM: - return e.nextClause(), t.QueryParser.parseTerm; - case t.QueryLexer.FIELD: - return e.nextClause(), t.QueryParser.parseField; - case t.QueryLexer.EDIT_DISTANCE: - return t.QueryParser.parseEditDistance; - case t.QueryLexer.BOOST: - return t.QueryParser.parseBoost; - case t.QueryLexer.PRESENCE: - return ( - e.nextClause(), t.QueryParser.parsePresence - ); - default: - var i = - "Unexpected lexeme type '" + r.type + "'"; - throw new t.QueryParseError(i, r.start, r.end); - } - } - }), - (t.QueryParser.parseEditDistance = function (e) { - var n = e.consumeLexeme(); - if (n != null) { - var r = parseInt(n.str, 10); - if (isNaN(r)) { - var i = "edit distance must be numeric"; - throw new t.QueryParseError(i, n.start, n.end); - } - e.currentClause.editDistance = r; - var s = e.peekLexeme(); - if (s == null) { - e.nextClause(); - return; - } - switch (s.type) { - case t.QueryLexer.TERM: - return e.nextClause(), t.QueryParser.parseTerm; - case t.QueryLexer.FIELD: - return e.nextClause(), t.QueryParser.parseField; - case t.QueryLexer.EDIT_DISTANCE: - return t.QueryParser.parseEditDistance; - case t.QueryLexer.BOOST: - return t.QueryParser.parseBoost; - case t.QueryLexer.PRESENCE: - return ( - e.nextClause(), t.QueryParser.parsePresence - ); - default: - var i = - "Unexpected lexeme type '" + s.type + "'"; - throw new t.QueryParseError(i, s.start, s.end); - } - } - }), - (t.QueryParser.parseBoost = function (e) { - var n = e.consumeLexeme(); - if (n != null) { - var r = parseInt(n.str, 10); - if (isNaN(r)) { - var i = "boost must be numeric"; - throw new t.QueryParseError(i, n.start, n.end); - } - e.currentClause.boost = r; - var s = e.peekLexeme(); - if (s == null) { - e.nextClause(); - return; - } - switch (s.type) { - case t.QueryLexer.TERM: - return e.nextClause(), t.QueryParser.parseTerm; - case t.QueryLexer.FIELD: - return e.nextClause(), t.QueryParser.parseField; - case t.QueryLexer.EDIT_DISTANCE: - return t.QueryParser.parseEditDistance; - case t.QueryLexer.BOOST: - return t.QueryParser.parseBoost; - case t.QueryLexer.PRESENCE: - return ( - e.nextClause(), t.QueryParser.parsePresence - ); - default: - var i = - "Unexpected lexeme type '" + s.type + "'"; - throw new t.QueryParseError(i, s.start, s.end); - } - } - }), - (function (e, n) { - typeof define == "function" && define.amd - ? define(n) - : typeof se == "object" - ? (oe.exports = n()) - : (e.lunr = n()); - })(this, function () { - return t; - }); - })(); - }); - var re = []; - function G(t, e) { - re.push({ selector: e, constructor: t }); - } - var U = class { - constructor() { - this.alwaysVisibleMember = null; - this.createComponents(document.body), - this.ensureActivePageVisible(), - this.ensureFocusedElementVisible(), - this.listenForCodeCopies(), - window.addEventListener("hashchange", () => - this.ensureFocusedElementVisible(), - ); - } - createComponents(e) { - re.forEach((n) => { - e.querySelectorAll(n.selector).forEach((r) => { - r.dataset.hasInstance || - (new n.constructor({ el: r, app: this }), - (r.dataset.hasInstance = String(!0))); - }); - }); - } - filterChanged() { - this.ensureFocusedElementVisible(); - } - ensureActivePageVisible() { - let e = document.querySelector(".tsd-navigation .current"), - n = e?.parentElement; - for (; n && !n.classList.contains(".tsd-navigation"); ) - n instanceof HTMLDetailsElement && (n.open = !0), - (n = n.parentElement); - if (e) { - let r = - e.getBoundingClientRect().top - - document.documentElement.clientHeight / 4; - document.querySelector(".site-menu").scrollTop = r; - } - } - ensureFocusedElementVisible() { - if ( - (this.alwaysVisibleMember && - (this.alwaysVisibleMember.classList.remove( - "always-visible", - ), - this.alwaysVisibleMember.firstElementChild.remove(), - (this.alwaysVisibleMember = null)), - !location.hash) - ) - return; - let e = document.getElementById(location.hash.substring(1)); - if (!e) return; - let n = e.parentElement; - for (; n && n.tagName !== "SECTION"; ) n = n.parentElement; - if (n && n.offsetParent == null) { - (this.alwaysVisibleMember = n), - n.classList.add("always-visible"); - let r = document.createElement("p"); - r.classList.add("warning"), - (r.textContent = - "This member is normally hidden due to your filter settings."), - n.prepend(r); - } - } - listenForCodeCopies() { - document.querySelectorAll("pre > button").forEach((e) => { - let n; - e.addEventListener("click", () => { - e.previousElementSibling instanceof HTMLElement && - navigator.clipboard.writeText( - e.previousElementSibling.innerText.trim(), - ), - (e.textContent = "Copied!"), - e.classList.add("visible"), - clearTimeout(n), - (n = setTimeout(() => { - e.classList.remove("visible"), - (n = setTimeout(() => { - e.textContent = "Copy"; - }, 100)); - }, 1e3)); - }); - }); - } - }; - var ie = (t, e = 100) => { - let n; - return () => { - clearTimeout(n), (n = setTimeout(() => t(), e)); - }; - }; - var de = De(ae()); - async function le(t, e) { - if (!window.searchData) return; - let n = await fetch(window.searchData), - r = new Blob([await n.arrayBuffer()]) - .stream() - .pipeThrough(new DecompressionStream("gzip")), - i = await new Response(r).json(); - (t.data = i), - (t.index = de.Index.load(i.index)), - e.classList.remove("loading"), - e.classList.add("ready"); - } - function he() { - let t = document.getElementById("tsd-search"); - if (!t) return; - let e = { base: t.dataset.base + "/" }, - n = document.getElementById("tsd-search-script"); - t.classList.add("loading"), - n && - (n.addEventListener("error", () => { - t.classList.remove("loading"), t.classList.add("failure"); - }), - n.addEventListener("load", () => { - le(e, t); - }), - le(e, t)); - let r = document.querySelector("#tsd-search input"), - i = document.querySelector("#tsd-search .results"); - if (!r || !i) - throw new Error( - "The input field or the result list wrapper was not found", - ); - let s = !1; - i.addEventListener("mousedown", () => (s = !0)), - i.addEventListener("mouseup", () => { - (s = !1), t.classList.remove("has-focus"); - }), - r.addEventListener("focus", () => t.classList.add("has-focus")), - r.addEventListener("blur", () => { - s || ((s = !1), t.classList.remove("has-focus")); - }), - Ae(t, i, r, e); - } - function Ae(t, e, n, r) { - n.addEventListener( - "input", - ie(() => { - Ne(t, e, n, r); - }, 200), - ); - let i = !1; - n.addEventListener("keydown", (s) => { - (i = !0), - s.key == "Enter" - ? Ve(e, n) - : s.key == "Escape" - ? n.blur() - : s.key == "ArrowUp" - ? ue(e, -1) - : s.key === "ArrowDown" - ? ue(e, 1) - : (i = !1); - }), - n.addEventListener("keypress", (s) => { - i && s.preventDefault(); - }), - document.body.addEventListener("keydown", (s) => { - s.altKey || - s.ctrlKey || - s.metaKey || - (!n.matches(":focus") && - s.key === "/" && - (n.focus(), s.preventDefault())); - }); - } - function Ne(t, e, n, r) { - if (!r.index || !r.data) return; - e.textContent = ""; - let i = n.value.trim(), - s; - if (i) { - let o = i - .split(" ") - .map((a) => (a.length ? `*${a}*` : "")) - .join(" "); - s = r.index.search(o); - } else s = []; - for (let o = 0; o < s.length; o++) { - let a = s[o], - l = r.data.rows[Number(a.ref)], - u = 1; - l.name.toLowerCase().startsWith(i.toLowerCase()) && - (u *= 1 + 1 / (1 + Math.abs(l.name.length - i.length))), - (a.score *= u); - } - if (s.length === 0) { - let o = document.createElement("li"); - o.classList.add("no-results"); - let a = document.createElement("span"); - (a.textContent = "No results found"), - o.appendChild(a), - e.appendChild(o); - } - s.sort((o, a) => a.score - o.score); - for (let o = 0, a = Math.min(10, s.length); o < a; o++) { - let l = r.data.rows[Number(s[o].ref)], - u = ``, - d = ce(l.name, i); - globalThis.DEBUG_SEARCH_WEIGHTS && - (d += ` (score: ${s[o].score.toFixed(2)})`), - l.parent && - (d = ` - ${ce(l.parent, i)}.${d}`); - let v = document.createElement("li"); - v.classList.value = l.classes ?? ""; - let f = document.createElement("a"); - (f.href = r.base + l.url), - (f.innerHTML = u + d), - v.append(f), - e.appendChild(v); - } - } - function ue(t, e) { - let n = t.querySelector(".current"); - if (!n) - (n = t.querySelector(e == 1 ? "li:first-child" : "li:last-child")), - n && n.classList.add("current"); - else { - let r = n; - if (e === 1) - do r = r.nextElementSibling ?? void 0; - while (r instanceof HTMLElement && r.offsetParent == null); - else - do r = r.previousElementSibling ?? void 0; - while (r instanceof HTMLElement && r.offsetParent == null); - r && (n.classList.remove("current"), r.classList.add("current")); - } - } - function Ve(t, e) { - let n = t.querySelector(".current"); - if ((n || (n = t.querySelector("li:first-child")), n)) { - let r = n.querySelector("a"); - r && (window.location.href = r.href), e.blur(); - } - } - function ce(t, e) { - if (e === "") return t; - let n = t.toLocaleLowerCase(), - r = e.toLocaleLowerCase(), - i = [], - s = 0, - o = n.indexOf(r); - for (; o != -1; ) - i.push( - K(t.substring(s, o)), - `${K(t.substring(o, o + r.length))}`, - ), - (s = o + r.length), - (o = n.indexOf(r, s)); - return i.push(K(t.substring(s))), i.join(""); - } - var Be = { - "&": "&", - "<": "<", - ">": ">", - "'": "'", - '"': """, - }; - function K(t) { - return t.replace(/[&<>"'"]/g, (e) => Be[e]); - } - var C = class { - constructor(e) { - (this.el = e.el), (this.app = e.app); - } - }; - var F = "mousedown", - pe = "mousemove", - B = "mouseup", - J = { x: 0, y: 0 }, - fe = !1, - ee = !1, - He = !1, - D = !1, - me = - /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( - navigator.userAgent, - ); - document.documentElement.classList.add(me ? "is-mobile" : "not-mobile"); - me && - "ontouchstart" in document.documentElement && - ((He = !0), (F = "touchstart"), (pe = "touchmove"), (B = "touchend")); - document.addEventListener(F, (t) => { - (ee = !0), (D = !1); - let e = F == "touchstart" ? t.targetTouches[0] : t; - (J.y = e.pageY || 0), (J.x = e.pageX || 0); - }); - document.addEventListener(pe, (t) => { - if (ee && !D) { - let e = F == "touchstart" ? t.targetTouches[0] : t, - n = J.x - (e.pageX || 0), - r = J.y - (e.pageY || 0); - D = Math.sqrt(n * n + r * r) > 10; - } - }); - document.addEventListener(B, () => { - ee = !1; - }); - document.addEventListener("click", (t) => { - fe && (t.preventDefault(), t.stopImmediatePropagation(), (fe = !1)); - }); - var X = class extends C { - constructor(n) { - super(n); - (this.className = this.el.dataset.toggle || ""), - this.el.addEventListener(B, (r) => this.onPointerUp(r)), - this.el.addEventListener("click", (r) => r.preventDefault()), - document.addEventListener(F, (r) => - this.onDocumentPointerDown(r), - ), - document.addEventListener(B, (r) => - this.onDocumentPointerUp(r), - ); - } - setActive(n) { - if (this.active == n) return; - (this.active = n), - document.documentElement.classList.toggle( - "has-" + this.className, - n, - ), - this.el.classList.toggle("active", n); - let r = (this.active ? "to-has-" : "from-has-") + this.className; - document.documentElement.classList.add(r), - setTimeout( - () => document.documentElement.classList.remove(r), - 500, - ); - } - onPointerUp(n) { - D || (this.setActive(!0), n.preventDefault()); - } - onDocumentPointerDown(n) { - if (this.active) { - if (n.target.closest(".col-sidebar, .tsd-filter-group")) return; - this.setActive(!1); - } - } - onDocumentPointerUp(n) { - if (!D && this.active && n.target.closest(".col-sidebar")) { - let r = n.target.closest("a"); - if (r) { - let i = window.location.href; - i.indexOf("#") != -1 && - (i = i.substring(0, i.indexOf("#"))), - r.href.substring(0, i.length) == i && - setTimeout(() => this.setActive(!1), 250); - } - } - } - }; - var te; - try { - te = localStorage; - } catch { - te = { - getItem() { - return null; - }, - setItem() {}, - }; - } - var Q = te; - var ve = document.head.appendChild(document.createElement("style")); - ve.dataset.for = "filters"; - var Y = class extends C { - constructor(n) { - super(n); - (this.key = `filter-${this.el.name}`), - (this.value = this.el.checked), - this.el.addEventListener("change", () => { - this.setLocalStorage(this.el.checked); - }), - this.setLocalStorage(this.fromLocalStorage()), - (ve.innerHTML += `html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`); - } - fromLocalStorage() { - let n = Q.getItem(this.key); - return n ? n === "true" : this.el.checked; - } - setLocalStorage(n) { - Q.setItem(this.key, n.toString()), - (this.value = n), - this.handleValueChange(); - } - handleValueChange() { - (this.el.checked = this.value), - document.documentElement.classList.toggle(this.key, this.value), - this.app.filterChanged(), - document.querySelectorAll(".tsd-index-section").forEach((n) => { - n.style.display = "block"; - let r = Array.from( - n.querySelectorAll(".tsd-index-link"), - ).every((i) => i.offsetParent == null); - n.style.display = r ? "none" : "block"; - }); - } - }; - var Z = class extends C { - constructor(n) { - super(n); - (this.summary = this.el.querySelector(".tsd-accordion-summary")), - (this.icon = this.summary.querySelector("svg")), - (this.key = `tsd-accordion-${ - this.summary.dataset.key ?? - this.summary.textContent - .trim() - .replace(/\s+/g, "-") - .toLowerCase() - }`); - let r = Q.getItem(this.key); - (this.el.open = r ? r === "true" : this.el.open), - this.el.addEventListener("toggle", () => this.update()); - let i = this.summary.querySelector("a"); - i && - i.addEventListener("click", () => { - location.assign(i.href); - }), - this.update(); - } - update() { - (this.icon.style.transform = `rotate(${ - this.el.open ? 0 : -90 - }deg)`), - Q.setItem(this.key, this.el.open.toString()); - } - }; - function ge(t) { - let e = Q.getItem("tsd-theme") || "os"; - (t.value = e), - ye(e), - t.addEventListener("change", () => { - Q.setItem("tsd-theme", t.value), ye(t.value); - }); - } - function ye(t) { - document.documentElement.dataset.theme = t; - } - var Le; - function be() { - let t = document.getElementById("tsd-nav-script"); - t && (t.addEventListener("load", xe), xe()); - } - async function xe() { - let t = document.getElementById("tsd-nav-container"); - if (!t || !window.navigationData) return; - let n = await (await fetch(window.navigationData)).arrayBuffer(), - r = new Blob([n]) - .stream() - .pipeThrough(new DecompressionStream("gzip")), - i = await new Response(r).json(); - (Le = t.dataset.base + "/"), (t.innerHTML = ""); - for (let s of i) we(s, t, []); - window.app.createComponents(t), window.app.ensureActivePageVisible(); - } - function we(t, e, n) { - let r = e.appendChild(document.createElement("li")); - if (t.children) { - let i = [...n, t.text], - s = r.appendChild(document.createElement("details")); - (s.className = t.class - ? `${t.class} tsd-index-accordion` - : "tsd-index-accordion"), - (s.dataset.key = i.join("$")); - let o = s.appendChild(document.createElement("summary")); - (o.className = "tsd-accordion-summary"), - (o.innerHTML = - ''), - Ee(t, o); - let a = s.appendChild(document.createElement("div")); - a.className = "tsd-accordion-details"; - let l = a.appendChild(document.createElement("ul")); - l.className = "tsd-nested-navigation"; - for (let u of t.children) we(u, l, i); - } else Ee(t, r, t.class); - } - function Ee(t, e, n) { - if (t.path) { - let r = e.appendChild(document.createElement("a")); - (r.href = Le + t.path), - n && (r.className = n), - location.href === r.href && r.classList.add("current"), - t.kind && - (r.innerHTML = ``), - (r.appendChild(document.createElement("span")).textContent = - t.text); - } else - e.appendChild(document.createElement("span")).textContent = t.text; - } - G(X, "a[data-toggle]"); - G(Z, ".tsd-index-accordion"); - G(Y, ".tsd-filter-item input[type=checkbox]"); - var Se = document.getElementById("tsd-theme"); - Se && ge(Se); - var je = new U(); - Object.defineProperty(window, "app", { value: je }); - he(); - be(); -})(); +"use strict";(()=>{var Pe=Object.create;var ne=Object.defineProperty;var Ie=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Ie(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Pe(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),v=s.str.charAt(1),f;v in s.node.edges?f=s.node.edges[v]:(f=new t.TokenSet,s.node.edges[v]=f),s.str.length==1&&(f.final=!0),i.push({node:f,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureActivePageVisible(),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible())}createComponents(e){re.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{le(e,t)}),le(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ne(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${ce(l.parent,i)}.${d}`);let v=document.createElement("li");v.classList.value=l.classes??"";let f=document.createElement("a");f.href=r.base+l.url,f.innerHTML=u+d,v.append(f),e.appendChild(v)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var Be={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>Be[e])}var C=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",pe="mousemove",B="mouseup",J={x:0,y:0},fe=!1,ee=!1,He=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(He=!0,F="touchstart",pe="touchmove",B="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(pe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(B,()=>{ee=!1});document.addEventListener("click",t=>{fe&&(t.preventDefault(),t.stopImmediatePropagation(),fe=!1)});var X=class extends C{constructor(n){super(n);this.className=this.el.dataset.toggle||"",this.el.addEventListener(B,r=>this.onPointerUp(r)),this.el.addEventListener("click",r=>r.preventDefault()),document.addEventListener(F,r=>this.onDocumentPointerDown(r)),document.addEventListener(B,r=>this.onDocumentPointerUp(r))}setActive(n){if(this.active==n)return;this.active=n,document.documentElement.classList.toggle("has-"+this.className,n),this.el.classList.toggle("active",n);let r=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(r),setTimeout(()=>document.documentElement.classList.remove(r),500)}onPointerUp(n){D||(this.setActive(!0),n.preventDefault())}onDocumentPointerDown(n){if(this.active){if(n.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(n){if(!D&&this.active&&n.target.closest(".col-sidebar")){let r=n.target.closest("a");if(r){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),r.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ve=document.head.appendChild(document.createElement("style"));ve.dataset.for="filters";var Y=class extends C{constructor(n){super(n);this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ve.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.checked}setLocalStorage(n){Q.setItem(this.key,n.toString()),this.value=n,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),document.querySelectorAll(".tsd-index-section").forEach(n=>{n.style.display="block";let r=Array.from(n.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);n.style.display=r?"none":"block"})}};var Z=class extends C{constructor(n){super(n);this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let r=Q.getItem(this.key);this.el.open=r?r==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let i=this.summary.querySelector("a");i&&i.addEventListener("click",()=>{location.assign(i.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ye(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ye(t.value)})}function ye(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.ensureActivePageVisible()}function we(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.href===r.href&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); /*! Bundled license information: lunr/lunr.js: diff --git a/Script/Documentation/assets/navigation.js b/Script/Documentation/assets/navigation.js index 02dfb79..3bb25bc 100644 --- a/Script/Documentation/assets/navigation.js +++ b/Script/Documentation/assets/navigation.js @@ -1,2 +1 @@ -window.navigationData = - "data:application/octet-stream;base64,H4sIAAAAAAAACqWXb2vbMBDGv4tfp9uatRnLu9Ku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u2SeLHJaCva+ir7b6Uwkk2TPJU3m00mS7rigislk/mD1F0J06h9EcfJs9RdCQMbH6evEKu8Kpgal5jCgXbNfJSt0J78uZap5Lht5cw4JszOHkMK8e/rUz3929vro6C9FXtKNIIohxWuPoiqYIiSnGpaVDmBBYTCYkxsCOzkN55lnGZHUT7KOR2XYZoPl12DagJea6+WKHZik5DnXnp3uKMoRRUjWk8OiA1hQcwxma47CkJo7OK4kybD3c1n1pQBmwwW7W3+7zVeGEoSBqwGkYoReczFirb0VBBW5eBnlVJeC3XnFiwPR6c7vh+YgqhuGp4nFjA8U6lnxKRR11cvpC+V+f5vgG3OpEON5MPB5qGaei753+cJVLjMmkRS6s6hMbo8Hp0PML4AwgR7nw+dPp+dwZJhGLDwrVfR/TdTiuM/fIE95E/mSaC3tkDKUwYqC8bRF39PotyOvuVwtPPfL1SLKPdBa10btEYBboLNuG93Irlrm1N/GJhjlWAJ1Z9nopQcBpqG0c91KR3yvSLonW996E49yf+gzrIuWcsBoPSdrRmjmG6nDUT5Uj2BtNAyFoDwTvRFmXSCza9DG0BhsKWpgEgInJWajjPUA1LahKr3yIKChoLTz3kpHGuo7IwpZinU4ynvRI1gLDaNAUH0TmijfgiYqzgBQd583+sKDgA02Jh0pHhz5jW9k3McsjK9SM7UhaQNAKOezwU9X28bq+q7bddOpNVDbvCuCOTuZBvO2DRpa4u2lp3/d5iy4zVAsi1pvhVZcbpG8UWZ9O1iHeyL2d1JzgS1v9/BN/QBAY33x1CaFpAlA9mIww5+sWBAuNeH+P3/nLCq/I8ay7+rSjkPk6l/e41+PyesJkxAAAA==" \ No newline at end of file diff --git a/Script/Documentation/assets/search.js b/Script/Documentation/assets/search.js index af47bbf..c033383 100644 --- a/Script/Documentation/assets/search.js +++ b/Script/Documentation/assets/search.js @@ -1,2 +1 @@ -window.searchData = - "data:application/octet-stream;base64,H4sIAAAAAAAACt09247kuHX/UsFgN4CsEa+S+s1x7MBA1lls1g6C3sFAXaXq1o6q1JFUc/Fg/iU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bzL3nRT0qxrBuzgZc/N1audLv0n38MuogHS5TLCKiu+tiE/n35eMUrAk9KoOmKTA4rrHJ2+fG6WbEW5eCL599y4OgCV+GQZPv3ix2R3tBRq5cz5mImvibCwCdjV7XryICZnm17tcz3A1xaQQYEEHmLZwh4V6M3eCZq9gTtFDW49q8Q4p8UqxO8TNpXi8QgzIzl3fwNCOVxYdg5/7ZvZCO8FdnWOA83N76E7dAUSHWyV1AvaVAMhbczElWEMJd3Uxq3X9HUY3m3G9tFkwpqy53bpfUTbuCb9A7Cpv6fxb/TF3D83/McTR+FVsNHbsZ/rz5dk/ASA36gia8OO8tLD4kcf4jqV566eSaFbilSXcBbY8NXAxo+XB0BZxefJOFL+0cPIVnwktT20HrRC1HXd7uTy1ILDhodRV+pN36oD7W1iw0tTTeHmEjhfdnNkLantDB1VP/E7AC45AlvV38V0JnaSRbj+U0WRT0/WbFCMmAi8wz8TvgLvT4JeXY6qr2y/p3Oso+kIl1aqiWkXUqMgYqFahwALyZfB2v7gLdsLHZehb72IrfqeJunRL5znAfb/p5y/Qni5T/9232Sus8INXknMPw7uu8+rbf8zk382pAr5lZAji9uQYv+uMYVyv6WBy4WVUBNO5p4NixtxUvnjf4BB8p0gBFfSAzmYmocaXYh/+XGa/IPuS79Quy6kCRhJzdvuO5Fme5TBaxuR1kpBQjxK/rO5o9l3Td1C1+AETJLt4cRbdg7tL6Z39nxy5gjpZNsGya0P5Crmc6VZ0EYj3Te99IoNe9dlzBxJGeRj/2opzPp9QrOLyvvVyM/R6SSifeu+H5xizev/UwkuwFA1BYJxeFol/V+jy6oaj/N8VulnkzVKxO8AOVs9w7eSBmRmnt6d+BOelFD1HCcV5g+AV5lEzEZDUD/V43TRw1SRwfSfmfFiRYd4V/7bbRZg6/w4FeibjjvhjO5/tT0i71uXumvU99CKYIr1Ok+fuue27oU3u7l9//vy/Z2n/q+1yAAA="; \ No newline at end of file diff --git a/Script/Documentation/index.html b/Script/Documentation/index.html index 11e338a..8f6e604 100644 --- a/Script/Documentation/index.html +++ b/Script/Documentation/index.html @@ -1,965 +1,62 @@ - - - - - - - @yesmaintain/script - v0.0.1 - - - - - - - - - - - -
-
- -
- - -
-
-
-
-
-
-

@yesmaintain/script - v0.0.1

-
-
- -

- YesMaintain - 🔧 -

-

Maintains GitHub repositories.

- -

Installation

-

Using NPM

-
npm install -g @yesmaintain/script
+@yesmaintain/script - v0.0.2

@yesmaintain/script - v0.0.2

YesMaintain 🔧

Maintains GitHub repositories.

+

Installation

Using NPM

+
npm install -g @yesmaintain/script
 
-

Using Yarn

-
yarn global add @yesmaintain/script
+

Using Yarn

+
yarn global add @yesmaintain/script
 
-

Using PNPM

-
pnpm install -g @yesmaintain/script
+

Using PNPM

+
pnpm install -g @yesmaintain/script
 
-

or direct usage:

-

Using NPM

-
npx @yesmaintain/script
+

or direct usage:

+

Using NPM

+
npx @yesmaintain/script
 
-

Using Yarn

-
yarn @yesmaintain/script
+

Using Yarn

+
yarn @yesmaintain/script
 
-

Using PNPM

-
pnpx @yesmaintain/script
+

Using PNPM

+
pnpx @yesmaintain/script
 
- -

CLI Usage:

-

- Delete all GitHub Actions runs and their logs for all of - your repositories: -

-
Maintain Clean
+

CLI Usage:

Delete all GitHub Actions runs and their logs for all of your repositories:

+
Maintain Clean
 
-

- Create a dependabot.yml file in each of the - .github directories for each of the packages in the - monorepo: -

-
Maintain Dependabot
+

Create a dependabot.yml file in each of the .github directories for each of +the packages in the monorepo:

+
Maintain Dependabot
 
-

- Dispatch all workflows for all repositories for a given - user: -

-
Maintain Dispatch
+

Dispatch all workflows for all repositories for a given user:

+
Maintain Dispatch
 
-

or specific repositories by name:

-
Maintain Dispatch Repository1 Repository2
+

or specific repositories by name:

+
Maintain Dispatch Repository1 Repository2
 
-

- Enable / disable all the features that GitHub offers for - all the repositories that you have access to: -

-
Maintain Edit
+

Enable / disable all the features that GitHub offers for all the repositories +that you have access to:

+
Maintain Edit
 
-

- Create a Node.yml file in the - .github/workflows directory for each - repository that has a package.json file. -

-
Maintain Node
+

Create a Node.yml file in the .github/workflows directory for each +repository that has a package.json file.

+
Maintain Node
 
-

- Create a NPM.yml file in the - .github/workflows directory for each - repository that has a package.json file. -

-
Maintain NPM
+

Create a NPM.yml file in the .github/workflows directory for each repository +that has a package.json file.

+
Maintain NPM
 
-

- Create a Rust.yml file in the - .github/workflows directory for each - repository that has a Cargo.toml file. -

-
Maintain Rust
+

Create a Rust.yml file in the .github/workflows directory for each +repository that has a Cargo.toml file.

+
Maintain Rust
 
-

Run all workflow tasks.

-
Maintain Workflow
+

Run all workflow tasks.

+
Maintain Workflow
 
-

- Find all the package.json files in the - project, and then star all the dependencies in that - package.json. -

-
Maintain Star
+

Find all the package.json files in the project, and then star all the +dependencies in that package.json.

+
Maintain Star
 
-

.env

-
User="Username"
+

.env

+
User="Username"
 Base="Folder"
 Token="AAAA"
 
-
-
-
- - -
-
-
-

- Generated using - TypeDoc -

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +

Generated using TypeDoc

\ No newline at end of file diff --git a/Script/Target/Class/YesMaintain.js b/Script/Target/Class/YesMaintain.js index 64b74c5..d01cb2c 100644 --- a/Script/Target/Class/YesMaintain.js +++ b/Script/Target/Class/YesMaintain.js @@ -1,17 +1,14 @@ #!/usr/bin/env node -const Program = new (await import("commander")).Command() - .name("Maintain") - .description("Maintains GitHub repositories") - .version("0.0.1"); +const Program = new (await import("commander")).Command().name("Maintain").description("Maintains GitHub repositories").version("0.0.2"); (await import("../Variable/Command.js")).default?.forEach( - ({ Action, Name, Description, Arguments }) => { - const _Program = Program.command(Name) - .description(typeof Description !== "undefined" ? Description : "") - .action(Action); - Arguments?.forEach(({ Name: Name2, Description: Description2 }) => - _Program.argument(Name2, Description2), - ); - }, + ({ Action, Name, Description, Arguments }) => { + const _Program = Program.command(Name).description(typeof Description !== "undefined" ? Description : "").action(Action); + Arguments?.forEach( + ({ Name: Name2, Description: Description2 }) => _Program.argument(Name2, Description2) + ); + } ); var YesMaintain_default = Program.parse(); -export { YesMaintain_default as default }; +export { + YesMaintain_default as default +}; diff --git a/Script/Target/Command/Clean.d.ts b/Script/Target/Command/Clean.d.ts index 6ebb616..58af70e 100644 --- a/Script/Target/Command/Clean.d.ts +++ b/Script/Target/Command/Clean.d.ts @@ -4,18 +4,14 @@ */ declare const _default: (Repositories?: string[]) => Promise; export default _default; -export declare const Request: ( - Where: string, - With?: {}, - Type?: string, -) => Promise; +export declare const Request: (Where: string, With?: {}, Type?: string) => Promise; export declare const User: string; export declare const All: { - Organizations: { - Name: string; - }[]; - Repositories: { - Owner: string; - Name: string; - }[]; + Organizations: { + Name: string; + }[]; + Repositories: { + Owner: string; + Name: string; + }[]; }; diff --git a/Script/Target/Command/Clean.js b/Script/Target/Command/Clean.js index 16ccb60..86f7b51 100644 --- a/Script/Target/Command/Clean.js +++ b/Script/Target/Command/Clean.js @@ -1,97 +1,102 @@ var Clean_default = async (Repositories = []) => { - const Get = await Request(`GET /users/${User}/repos`); - if (Get) { - for (const Repository of Get.data) { - All.Repositories.push({ - Owner: User, - Name: Repository.name, - }); - } - } - const Organizations = await Request(`GET /users/${User}/orgs`); - if (Organizations) { - for (const Organization of Organizations.data) { - All.Organizations.push({ - Name: Organization.login, - }); - const Repositories2 = await Request( - `GET /orgs/${Organization.login}/repos`, - ); - if (Repositories2) { - for (const repo of Repositories2.data) { - All.Repositories.push({ - Owner: Organization.login, - Name: repo.name, - }); - } - } - } - } - let Pass = null; - for (const Repository of All.Repositories) { - for (const _Repository of Repositories) { - if (Repository.Name === _Repository) { - Pass = true; - } else { - Pass = false; - } - } - if (Pass === null || Pass) { - const Runs = await Request( - `GET /repos/${Repository.Owner}/${Repository.Name}/actions/runs`, - { - owner: Repository.Owner, - repo: Repository.Name, - }, - ); - if (Runs?.data?.workflow_runs) { - for (const run of Runs.data.workflow_runs) { - await Request( - `DELETE /repos/${Repository.Owner}/${Repository.Name}/actions/runs/${run.id}`, - { - owner: Repository.Owner, - repo: Repository.Name, - run_id: run.id, - }, - ); - await Request( - `DELETE /repos/${Repository.Owner}/${Repository.Name}/actions/runs/${run.id}/logs`, - { - owner: Repository.Owner, - repo: Repository.Name, - run_id: run.id, - }, - ); - } - } - const Caches = await Request( - `GET /repos/${Repository.Owner}/${Repository.Name}/actions/caches`, - { - owner: Repository.Owner, - repo: Repository.Name, - }, - ); - if (Caches?.data?.actions_caches) { - for (const Cache of Caches.data.actions_caches) { - await Request( - `DELETE /repos/${Repository.Owner}/${Repository.Name}/actions/caches/${Cache.id}`, - { - owner: Repository.Owner, - repo: Repository.Name, - cache_id: Cache.id, - }, - ); - } - } - } - } + const Get = await Request(`GET /users/${User}/repos`); + if (Get) { + for (const Repository of Get.data) { + All.Repositories.push({ + Owner: User, + Name: Repository.name + }); + } + } + const Organizations = await Request(`GET /users/${User}/orgs`); + if (Organizations) { + for (const Organization of Organizations.data) { + All.Organizations.push({ + Name: Organization.login + }); + const Repositories2 = await Request( + `GET /orgs/${Organization.login}/repos` + ); + if (Repositories2) { + for (const repo of Repositories2.data) { + All.Repositories.push({ + Owner: Organization.login, + Name: repo.name + }); + } + } + } + } + let Pass = null; + for (const Repository of All.Repositories) { + for (const _Repository of Repositories) { + if (Repository.Name === _Repository) { + Pass = true; + } else { + Pass = false; + } + } + if (Pass === null || Pass) { + const Runs = await Request( + `GET /repos/${Repository.Owner}/${Repository.Name}/actions/runs`, + { + owner: Repository.Owner, + repo: Repository.Name + } + ); + if (Runs?.data?.workflow_runs) { + for (const run of Runs.data.workflow_runs) { + await Request( + `DELETE /repos/${Repository.Owner}/${Repository.Name}/actions/runs/${run.id}`, + { + owner: Repository.Owner, + repo: Repository.Name, + run_id: run.id + } + ); + await Request( + `DELETE /repos/${Repository.Owner}/${Repository.Name}/actions/runs/${run.id}/logs`, + { + owner: Repository.Owner, + repo: Repository.Name, + run_id: run.id + } + ); + } + } + const Caches = await Request( + `GET /repos/${Repository.Owner}/${Repository.Name}/actions/caches`, + { + owner: Repository.Owner, + repo: Repository.Name + } + ); + if (Caches?.data?.actions_caches) { + for (const Cache of Caches.data.actions_caches) { + await Request( + `DELETE /repos/${Repository.Owner}/${Repository.Name}/actions/caches/${Cache.id}`, + { + owner: Repository.Owner, + repo: Repository.Name, + cache_id: Cache.id + } + ); + } + } + } + } }; const { default: Request } = await import("../Function/Request.js"); const User = (await import("../Variable/Environment.js")).default.parse( - process.env, + process.env ).User; const All = { - Organizations: [], - Repositories: [], + Organizations: [], + Repositories: [] +}; +export { + All, + Request, + User, + Clean_default as default }; -export { All, Request, User, Clean_default as default }; diff --git a/Script/Target/Command/Cloudflare.js b/Script/Target/Command/Cloudflare.js index c2671c1..5357753 100644 --- a/Script/Target/Command/Cloudflare.js +++ b/Script/Target/Command/Cloudflare.js @@ -1,78 +1,69 @@ -var Cloudflare_default = async () => - await (async (Files) => { - for (const { Path, Name, File } of Files) { - for (const [directory, packageFiles] of await ( - await import("../Function/Directory.js") - ).default( - await (await import("../Function/Package.js")).default( - "Cloudflare", - ), - )) { - const githubDir = `${directory}/.github`; - const workflowBase = await File(); - if (Path === "/workflows/" && Name === "Cloudflare.yml") { - for (const _package of packageFiles) { - const packageDirectory = (await import("path")) - .dirname(_package) - .replace(directory, ""); - const environment = ( - await ( - await import("../Function/Type.js") - ).default() - ).get(_package.split("/").pop()); - if ( - typeof environment !== "undefined" && - environment === "Cloudflare" - ) { - workflowBase.add(` +var Cloudflare_default = async () => await (async (Files) => { + for (const { Path, Name, File } of Files) { + for (const [directory, packageFiles] of await (await import("../Function/Directory.js")).default( + await (await import("../Function/Package.js")).default( + "Cloudflare" + ) + )) { + const githubDir = `${directory}/.github`; + const workflowBase = await File(); + if (Path === "/workflows/" && Name === "Cloudflare.yml") { + for (const _package of packageFiles) { + const packageDirectory = (await import("path")).dirname(_package).replace(directory, ""); + const environment = (await (await import("../Function/Type.js")).default()).get(_package.split("/").pop()); + if (typeof environment !== "undefined" && environment === "Cloudflare") { + workflowBase.add(` - uses: cloudflare/wrangler-action@v3 with: apiToken: \${{ secrets.CF_API_TOKEN }} accountId: \${{ secrets.CF_ACCOUNT_ID }} workingDirectory: .${packageDirectory} `); - } - } - } - if (workflowBase.size > 1) { - try { - await (await import("fs/promises")).mkdir( - `${githubDir}${Path}`, - { - recursive: true, - }, - ); - } catch { - console.log(`Could not create: ${githubDir}${Path}`); - } - try { - await (await import("fs/promises")).writeFile( - `${githubDir}${Path}${Name}`, - `${[...workflowBase].join("")}`, - ); - } catch { - console.log( - `Could not create workflow for: ${githubDir}/workflows/Cloudflare.yml`, - ); - } - } else { - try { - await (await import("fs/promises")).access( - `${githubDir}${Path}${Name}`, - (await import("fs/promises")).constants.W_OK, - ); - try { - await (await import("fs/promises")).rm( - `${githubDir}${Path}${Name}`, - ); - } catch { - console.log( - `Could not remove ${Path}${Name} for: ${githubDir}`, - ); - } - } catch {} - } - } - } - })((await import("../Variable/Cloudflare.js")).default); -export { Cloudflare_default as default }; + } + } + } + if (workflowBase.size > 1) { + try { + await (await import("fs/promises")).mkdir( + `${githubDir}${Path}`, + { + recursive: true + } + ); + } catch { + console.log(`Could not create: ${githubDir}${Path}`); + } + try { + await (await import("fs/promises")).writeFile( + `${githubDir}${Path}${Name}`, + `${[...workflowBase].join("")}` + ); + } catch { + console.log( + `Could not create workflow for: ${githubDir}/workflows/Cloudflare.yml` + ); + } + } else { + try { + await (await import("fs/promises")).access( + `${githubDir}${Path}${Name}`, + (await import("fs/promises")).constants.W_OK + ); + try { + await (await import("fs/promises")).rm( + `${githubDir}${Path}${Name}` + ); + } catch { + console.log( + `Could not remove ${Path}${Name} for: ${githubDir}` + ); + } + } catch { + } + } + } + } +})((await import("../Variable/Cloudflare.js")).default); +export { + Cloudflare_default as default +}; diff --git a/Script/Target/Command/Dependabot.js b/Script/Target/Command/Dependabot.js index 695041e..5e1f73b 100644 --- a/Script/Target/Command/Dependabot.js +++ b/Script/Target/Command/Dependabot.js @@ -1,95 +1,81 @@ -var Dependabot_default = async () => - await (async (Files) => { - for (const { Path, Name, File } of Files) { - for (const [_Dir, FilesPackage] of await ( - await import("../Function/Directory.js") - ).default( - await (await import("../Function/Package.js")).default(), - )) { - const GitHub = `${_Dir}/.github`; - const Base = await File(); - if (Path === "/") { - for (const Package of FilesPackage) { - const DirPackage = (await import("path")) - .dirname(Package) - .replace(_Dir, ""); - const Environment = ( - await ( - await import("../Function/Type.js") - ).default() - ).get(Package.split("/").pop()); - if (Environment !== "Cloudflare") { - Base.add(` - - package-ecosystem: "${ - typeof Environment !== "undefined" - ? String(Environment).toLowerCase() - : (() => { - switch (Package.split(".").pop()) { - case "csproj": - return "nuget"; - default: - return "npm"; - } - })() - }" +var Dependabot_default = async () => await (async (Files) => { + for (const { Path, Name, File } of Files) { + for (const [_Dir, FilesPackage] of await (await import("../Function/Directory.js")).default( + await (await import("../Function/Package.js")).default() + )) { + const GitHub = `${_Dir}/.github`; + const Base = await File(); + if (Path === "/") { + for (const Package of FilesPackage) { + const DirPackage = (await import("path")).dirname(Package).replace(_Dir, ""); + const Environment = (await (await import("../Function/Type.js")).default()).get(Package.split("/").pop()); + if (Environment !== "Cloudflare") { + Base.add(` + - package-ecosystem: "${typeof Environment !== "undefined" ? String(Environment).toLowerCase() : (() => { + switch (Package.split(".").pop()) { + case "csproj": + return "nuget"; + default: + return "npm"; + } + })()}" directory: "${DirPackage ? DirPackage : "/"}" schedule: interval: "daily" - versioning-strategy: ${ - typeof Environment !== "undefined" - ? (() => { - switch (Environment) { - case "Cargo": - return "lockfile-only"; - default: - return "increase"; - } - })() - : "increase" - } + versioning-strategy: ${typeof Environment !== "undefined" ? (() => { + switch (Environment) { + case "Cargo": + return "lockfile-only"; + default: + return "increase"; + } + })() : "increase"} `); - } - } - } - if (Base.size > 0) { - try { - await (await import("fs/promises")).mkdir( - `${GitHub}${Path}`, - { - recursive: true, - }, - ); - } catch { - console.log(`Could not create: ${GitHub}${Path}`); - } - try { - await (await import("fs/promises")).writeFile( - `${GitHub}${Path}${Name}`, - `${[...Base].join("")}`, - ); - } catch { - console.log( - `Could not create workflow for: ${GitHub}/dependabot.yml`, - ); - } - } else { - try { - await (await import("fs/promises")).access( - `${GitHub}${Path}${Name}`, - (await import("fs/promises")).constants.W_OK, - ); - try { - await (await import("fs/promises")).rm( - `${GitHub}${Path}${Name}`, - ); - } catch { - console.log( - `Could not remove ${Path}${Name} for: ${GitHub}`, - ); - } - } catch {} - } - } - } - })((await import("../Variable/Dependabot.js")).default); -export { Dependabot_default as default }; + } + } + } + if (Base.size > 0) { + try { + await (await import("fs/promises")).mkdir( + `${GitHub}${Path}`, + { + recursive: true + } + ); + } catch { + console.log(`Could not create: ${GitHub}${Path}`); + } + try { + await (await import("fs/promises")).writeFile( + `${GitHub}${Path}${Name}`, + `${[...Base].join("")}` + ); + } catch { + console.log( + `Could not create workflow for: ${GitHub}/dependabot.yml` + ); + } + } else { + try { + await (await import("fs/promises")).access( + `${GitHub}${Path}${Name}`, + (await import("fs/promises")).constants.W_OK + ); + try { + await (await import("fs/promises")).rm( + `${GitHub}${Path}${Name}` + ); + } catch { + console.log( + `Could not remove ${Path}${Name} for: ${GitHub}` + ); + } + } catch { + } + } + } + } +})((await import("../Variable/Dependabot.js")).default); +export { + Dependabot_default as default +}; diff --git a/Script/Target/Command/Dispatch.d.ts b/Script/Target/Command/Dispatch.d.ts index 7b317e3..971a4a3 100644 --- a/Script/Target/Command/Dispatch.d.ts +++ b/Script/Target/Command/Dispatch.d.ts @@ -2,12 +2,6 @@ * @module Dispatch * */ -declare const _default: ( - repositories?: string[] | Set, -) => Promise; +declare const _default: (repositories?: string[] | Set) => Promise; export default _default; -export declare const Request: ( - Where: string, - With?: {}, - Type?: string, -) => Promise; +export declare const Request: (Where: string, With?: {}, Type?: string) => Promise; diff --git a/Script/Target/Command/Dispatch.js b/Script/Target/Command/Dispatch.js index 62ff087..5ffcab0 100644 --- a/Script/Target/Command/Dispatch.js +++ b/Script/Target/Command/Dispatch.js @@ -1,52 +1,52 @@ var Dispatch_default = async (repositories = []) => { - const User = (await import("../Variable/Environment.js")).default.parse( - process.env, - ).User; - const Organizations = []; - const Repositories = []; - for (const repo of (await Request(`GET /users/${User}/repos`))?.data) { - Repositories.push({ - owner: User, - name: repo.name, - }); - } - for (const org of (await Request(`GET /users/${User}/orgs`))?.data) { - Organizations.push({ - name: org.login, - }); - for (const repo of (await Request(`GET /orgs/${org.login}/repos`)) - ?.data) { - Repositories.push({ - owner: org.login, - name: repo.name, - }); - } - } - let pass = void 0; - for (const { name, owner } of Repositories) { - for (const repository of repositories) { - if (name === repository) { - pass = true; - } else { - pass = false; - } - } - if (typeof pass === "undefined" || pass) { - for (const workflow of ( - await Request(`GET /repos/${owner}/${name}/actions/workflows`, { - owner, - repo: name, - }) - )?.data?.workflows) { - await Request( - `POST /repos/${owner}/${name}/actions/workflows/${workflow.id}/dispatches`, - { - ref: "main", - }, - ); - } - } - } + const User = (await import("../Variable/Environment.js")).default.parse( + process.env + ).User; + const Organizations = []; + const Repositories = []; + for (const repo of (await Request(`GET /users/${User}/repos`))?.data) { + Repositories.push({ + owner: User, + name: repo.name + }); + } + for (const org of (await Request(`GET /users/${User}/orgs`))?.data) { + Organizations.push({ + name: org.login + }); + for (const repo of (await Request(`GET /orgs/${org.login}/repos`))?.data) { + Repositories.push({ + owner: org.login, + name: repo.name + }); + } + } + let pass = void 0; + for (const { name, owner } of Repositories) { + for (const repository of repositories) { + if (name === repository) { + pass = true; + } else { + pass = false; + } + } + if (typeof pass === "undefined" || pass) { + for (const workflow of (await Request(`GET /repos/${owner}/${name}/actions/workflows`, { + owner, + repo: name + }))?.data?.workflows) { + await Request( + `POST /repos/${owner}/${name}/actions/workflows/${workflow.id}/dispatches`, + { + ref: "main" + } + ); + } + } + } }; const { default: Request } = await import("../Function/Request.js"); -export { Request, Dispatch_default as default }; +export { + Request, + Dispatch_default as default +}; diff --git a/Script/Target/Command/Edit.d.ts b/Script/Target/Command/Edit.d.ts index 2383bea..f184e1b 100644 --- a/Script/Target/Command/Edit.d.ts +++ b/Script/Target/Command/Edit.d.ts @@ -2,12 +2,6 @@ * @module Edit * */ -declare const _default: ( - repositories?: string[] | Set, -) => Promise; +declare const _default: (repositories?: string[] | Set) => Promise; export default _default; -export declare const Request: ( - Where: string, - With?: {}, - Type?: string, -) => Promise; +export declare const Request: (Where: string, With?: {}, Type?: string) => Promise; diff --git a/Script/Target/Command/Edit.js b/Script/Target/Command/Edit.js index 33787d8..831b1a8 100644 --- a/Script/Target/Command/Edit.js +++ b/Script/Target/Command/Edit.js @@ -1,98 +1,97 @@ var Edit_default = async (repositories = []) => { - const User = (await import("../Variable/Environment.js")).default.parse( - process.env, - ).User; - const Organizations = []; - const Repositories = []; - for (const Repository of (await Request(`GET /users/${User}/repos`)) - ?.data) { - Repositories.push({ - owner: User, - name: Repository.name, - }); - } - for (const Organization of (await Request(`GET /users/${User}/orgs`)) - ?.data) { - Organizations.push({ - name: Organization.login, - }); - for (const Repository of ( - await Request(`GET /orgs/${Organization.login}/repos`) - )?.data) { - Repositories.push({ - owner: Organization.login, - name: Repository.name, - }); - } - } - for (const Organization of Organizations) { - await Request(`PUT /orgs/${Organization.name}/actions/permissions`, { - org: Organization.name, - enabled_repositories: "all", - allowed_actions: "all", - }); - await Request( - `PUT /orgs/${Organization.name}/actions/permissions/workflow`, - { - org: Organization.name, - default_workflow_permissions: "write", - can_approve_pull_request_reviews: true, - }, - ); - } - let pass = null; - for (const repo of Repositories) { - for (const repository of repositories) { - if (repo.name === repository) { - pass = true; - } else { - pass = false; - } - } - if (pass === null || pass) { - await Request( - `PUT /repos/${repo.owner}/${repo.name}/vulnerability-alerts`, - ); - await Request( - `PUT /repos/${repo.owner}/${repo.name}/automated-security-fixes`, - ); - await Request(`PATCH /repos/${repo.owner}/${repo.name}`, { - has_issues: true, - has_projects: false, - has_wiki: false, - allow_squash_merge: true, - allow_merge_commit: true, - allow_rebase_merge: false, - allow_auto_merge: true, - delete_branch_on_merge: true, - allow_update_branch: true, - use_squash_pr_title_as_default: true, - allow_forking: true, - web_commit_signoff_required: true, - }); - await Request( - `PUT /repos/${repo.owner}/${repo.name}/actions/permissions`, - { - enabled: true, - allowed_actions: "all", - }, - ); - await Request( - `PUT /repos/${repo.owner}/${repo.name}/actions/permissions/workflow`, - { - default_workflow_permissions: "write", - can_approve_pull_request_reviews: true, - }, - ); - await Request(`PUT /user/starred/${repo.owner}/${repo.name}`); - await Request( - `PUT /repos/${repo.owner}/${repo.name}/actions/permissions/access`, - { - access_level: "organization", - }, - ); - } - } + const User = (await import("../Variable/Environment.js")).default.parse( + process.env + ).User; + const Organizations = []; + const Repositories = []; + for (const Repository of (await Request(`GET /users/${User}/repos`))?.data) { + Repositories.push({ + owner: User, + name: Repository.name + }); + } + for (const Organization of (await Request(`GET /users/${User}/orgs`))?.data) { + Organizations.push({ + name: Organization.login + }); + for (const Repository of (await Request(`GET /orgs/${Organization.login}/repos`))?.data) { + Repositories.push({ + owner: Organization.login, + name: Repository.name + }); + } + } + for (const Organization of Organizations) { + await Request(`PUT /orgs/${Organization.name}/actions/permissions`, { + org: Organization.name, + enabled_repositories: "all", + allowed_actions: "all" + }); + await Request( + `PUT /orgs/${Organization.name}/actions/permissions/workflow`, + { + org: Organization.name, + default_workflow_permissions: "write", + can_approve_pull_request_reviews: true + } + ); + } + let pass = null; + for (const repo of Repositories) { + for (const repository of repositories) { + if (repo.name === repository) { + pass = true; + } else { + pass = false; + } + } + if (pass === null || pass) { + await Request( + `PUT /repos/${repo.owner}/${repo.name}/vulnerability-alerts` + ); + await Request( + `PUT /repos/${repo.owner}/${repo.name}/automated-security-fixes` + ); + await Request(`PATCH /repos/${repo.owner}/${repo.name}`, { + has_issues: true, + has_projects: false, + has_wiki: false, + allow_squash_merge: true, + allow_merge_commit: true, + allow_rebase_merge: false, + allow_auto_merge: true, + delete_branch_on_merge: true, + allow_update_branch: true, + use_squash_pr_title_as_default: true, + allow_forking: true, + web_commit_signoff_required: true + }); + await Request( + `PUT /repos/${repo.owner}/${repo.name}/actions/permissions`, + { + enabled: true, + allowed_actions: "all" + } + ); + await Request( + `PUT /repos/${repo.owner}/${repo.name}/actions/permissions/workflow`, + { + default_workflow_permissions: "write", + can_approve_pull_request_reviews: true + } + ); + await Request(`PUT /user/starred/${repo.owner}/${repo.name}`); + await Request( + `PUT /repos/${repo.owner}/${repo.name}/actions/permissions/access`, + { + access_level: "organization" + } + ); + } + } }; const { default: Request } = await import("../Function/Request.js"); -export { Request, Edit_default as default }; +export { + Request, + Edit_default as default +}; diff --git a/Script/Target/Command/NPM.js b/Script/Target/Command/NPM.js index 1472cbf..f22c36f 100644 --- a/Script/Target/Command/NPM.js +++ b/Script/Target/Command/NPM.js @@ -1,53 +1,31 @@ -var NPM_default = async () => - await (async (Files) => { - for (const { Path, Name, File } of Files) { - for (const [directory, packageFiles] of await ( - await import("../Function/Directory.js") - ).default( - await (await import("../Function/Package.js")).default("NPM"), - )) { - const githubDir = `${directory}/.github`; - const workflowBase = await File(); - if (Path === "/workflows/" && Name === "NPM.yml") { - for (const _package of packageFiles) { - const packageDirectory = (await import("path")) - .dirname(_package) - .replace(directory, ""); - const packageFile = ( - await ( - await import("fs/promises") - ).readFile(_package, "utf-8") - ).toString(); - const environment = ( - await ( - await import("../Function/Type.js") - ).default() - ).get(_package.split("/").pop()); - if ( - typeof environment !== "undefined" && - environment === "NPM" - ) { - const packageJSON = JSON.parse(packageFile); - for (const key in packageJSON) { - if ( - Object.prototype.hasOwnProperty.call( - packageJSON, - key, - ) - ) { - const values = packageJSON[key]; - if (key === "scripts") { - for (const scripts in values) { - if ( - Object.prototype.hasOwnProperty.call( - values, - scripts, - ) - ) { - if ( - scripts === "prepublishOnly" - ) { - workflowBase.add(` +var NPM_default = async () => await (async (Files) => { + for (const { Path, Name, File } of Files) { + for (const [directory, packageFiles] of await (await import("../Function/Directory.js")).default( + await (await import("../Function/Package.js")).default("NPM") + )) { + const githubDir = `${directory}/.github`; + const workflowBase = await File(); + if (Path === "/workflows/" && Name === "NPM.yml") { + for (const _package of packageFiles) { + const packageDirectory = (await import("path")).dirname(_package).replace(directory, ""); + const packageFile = (await (await import("fs/promises")).readFile(_package, "utf-8")).toString(); + const environment = (await (await import("../Function/Type.js")).default()).get(_package.split("/").pop()); + if (typeof environment !== "undefined" && environment === "NPM") { + const packageJSON = JSON.parse(packageFile); + for (const key in packageJSON) { + if (Object.prototype.hasOwnProperty.call( + packageJSON, + key + )) { + const values = packageJSON[key]; + if (key === "scripts") { + for (const scripts in values) { + if (Object.prototype.hasOwnProperty.call( + values, + scripts + )) { + if (scripts === "prepublishOnly") { + workflowBase.add(` - name: Publish .${packageDirectory} continue-on-error: true working-directory: .${packageDirectory} @@ -57,54 +35,57 @@ var NPM_default = async () => env: NODE_AUTH_TOKEN: \${{ secrets.NPM_TOKEN }} `); - } - } - } - } - } - } - } - } - } - if (workflowBase.size > 1) { - try { - await (await import("fs/promises")).mkdir( - `${githubDir}${Path}`, - { - recursive: true, - }, - ); - } catch { - console.log(`Could not create: ${githubDir}${Path}`); - } - try { - await (await import("fs/promises")).writeFile( - `${githubDir}${Path}${Name}`, - `${[...workflowBase].join("")}`, - ); - } catch { - console.log( - `Could not create workflow for: ${githubDir}/workflows/NPM.yml`, - ); - } - } else { - try { - await (await import("fs/promises")).access( - `${githubDir}${Path}${Name}`, - (await import("fs/promises")).constants.W_OK, - ); - try { - await (await import("fs/promises")).rm( - `${githubDir}${Path}${Name}`, - ); - } catch { - console.log( - `Could not remove ${Path}${Name} for: ${githubDir}`, - ); - } - } catch {} - } - } - } - })((await import("../Variable/NPM.js")).default); -export { NPM_default as default }; + } + } + } + } + } + } + } + } + } + if (workflowBase.size > 1) { + try { + await (await import("fs/promises")).mkdir( + `${githubDir}${Path}`, + { + recursive: true + } + ); + } catch { + console.log(`Could not create: ${githubDir}${Path}`); + } + try { + await (await import("fs/promises")).writeFile( + `${githubDir}${Path}${Name}`, + `${[...workflowBase].join("")}` + ); + } catch { + console.log( + `Could not create workflow for: ${githubDir}/workflows/NPM.yml` + ); + } + } else { + try { + await (await import("fs/promises")).access( + `${githubDir}${Path}${Name}`, + (await import("fs/promises")).constants.W_OK + ); + try { + await (await import("fs/promises")).rm( + `${githubDir}${Path}${Name}` + ); + } catch { + console.log( + `Could not remove ${Path}${Name} for: ${githubDir}` + ); + } + } catch { + } + } + } + } +})((await import("../Variable/NPM.js")).default); +export { + NPM_default as default +}; diff --git a/Script/Target/Command/Node.js b/Script/Target/Command/Node.js index da50690..e6350aa 100644 --- a/Script/Target/Command/Node.js +++ b/Script/Target/Command/Node.js @@ -1,47 +1,29 @@ -var Node_default = async () => - await (async (Files) => { - for (const { Path, Name, File } of Files) { - for (const [directory, packageFiles] of await ( - await import("../Function/Directory.js") - ).default( - await (await import("../Function/Package.js")).default("NPM"), - )) { - const githubDir = `${directory}/.github`; - const workflowBase = await File(); - if (Path === "/workflows/" && Name === "Node.yml") { - for (const _package of packageFiles) { - const packageDirectory = (await import("path")) - .dirname(_package) - .replace(directory, ""); - const packageFile = ( - await ( - await import("fs/promises") - ).readFile(_package, "utf-8") - ).toString(); - const environment = ( - await ( - await import("../Function/Type.js") - ).default() - ).get(_package.split("/").pop()); - if ( - typeof environment !== "undefined" && - environment === "NPM" - ) { - const packageJSON = JSON.parse(packageFile); - for (const bundle of [ - "bundledDependencies", - "bundleDependencies", - "dependencies", - "devDependencies", - "extensionDependencies", - "optionalDependencies", - "peerDependencies", - "peerDependenciesMeta", - ].sort()) { - if ( - typeof packageJSON[bundle] !== "undefined" - ) { - workflowBase.add(` +var Node_default = async () => await (async (Files) => { + for (const { Path, Name, File } of Files) { + for (const [directory, packageFiles] of await (await import("../Function/Directory.js")).default( + await (await import("../Function/Package.js")).default("NPM") + )) { + const githubDir = `${directory}/.github`; + const workflowBase = await File(); + if (Path === "/workflows/" && Name === "Node.yml") { + for (const _package of packageFiles) { + const packageDirectory = (await import("path")).dirname(_package).replace(directory, ""); + const packageFile = (await (await import("fs/promises")).readFile(_package, "utf-8")).toString(); + const environment = (await (await import("../Function/Type.js")).default()).get(_package.split("/").pop()); + if (typeof environment !== "undefined" && environment === "NPM") { + const packageJSON = JSON.parse(packageFile); + for (const bundle of [ + "bundledDependencies", + "bundleDependencies", + "dependencies", + "devDependencies", + "extensionDependencies", + "optionalDependencies", + "peerDependencies", + "peerDependenciesMeta" + ].sort()) { + if (typeof packageJSON[bundle] !== "undefined") { + workflowBase.add(` - uses: actions/setup-node@v4.0.0 with: node-version: \${{ matrix.node-version }} @@ -51,26 +33,22 @@ var Node_default = async () => - run: pnpm install working-directory: .${packageDirectory} `); - } - } - for (const key in packageJSON) { - if ( - Object.prototype.hasOwnProperty.call( - packageJSON, - key, - ) - ) { - const values = packageJSON[key]; - if (key === "scripts") { - for (const scripts in values) { - if ( - Object.prototype.hasOwnProperty.call( - values, - scripts, - ) - ) { - if (scripts === "build") { - workflowBase.add(` + } + } + for (const key in packageJSON) { + if (Object.prototype.hasOwnProperty.call( + packageJSON, + key + )) { + const values = packageJSON[key]; + if (key === "scripts") { + for (const scripts in values) { + if (Object.prototype.hasOwnProperty.call( + values, + scripts + )) { + if (scripts === "build") { + workflowBase.add(` - run: pnpm run build working-directory: . @@ -79,11 +57,9 @@ var Node_default = async () => name: .${packageDirectory.replaceAll("/", "-")}-Node-\${{ matrix.node-version }}-Target path: .${packageDirectory}/Target `); - } - if ( - scripts === "prepublishOnly" - ) { - workflowBase.add(` + } + if (scripts === "prepublishOnly") { + workflowBase.add(` - run: pnpm run prepublishOnly working-directory: . @@ -92,62 +68,64 @@ var Node_default = async () => name: .${packageDirectory.replaceAll("/", "-")}-Node-\${{ matrix.node-version }}-Target path: .${packageDirectory}/Target `); - } - if (scripts === "test") { - workflowBase.add(` + } + if (scripts === "test") { + workflowBase.add(` - run: pnpm run test working-directory: .${packageDirectory} `); - } - } - } - } - } - } - } - } - } - if (workflowBase.size > 1) { - try { - await (await import("fs/promises")).mkdir( - `${githubDir}${Path}`, - { - recursive: true, - }, - ); - } catch { - console.log(`Could not create: ${githubDir}${Path}`); - } - try { - await (await import("fs/promises")).writeFile( - `${githubDir}${Path}${Name}`, - `${[...workflowBase].join("")}`, - ); - } catch { - console.log( - `Could not create workflow for: ${githubDir}/workflows/Node.yml`, - ); - } - } else { - try { - await (await import("fs/promises")).access( - `${githubDir}${Path}${Name}`, - (await import("fs/promises")).constants.W_OK, - ); - try { - await (await import("fs/promises")).rm( - `${githubDir}${Path}${Name}`, - ); - } catch { - console.log( - `Could not remove ${Path}${Name} for: ${githubDir}`, - ); - } - } catch (_Error) { - console.log(_Error); - } - } - } - } - })((await import("../Variable/Node.js")).default); -export { Node_default as default }; + } + } + } + } + } + } + } + } + } + if (workflowBase.size > 1) { + try { + await (await import("fs/promises")).mkdir( + `${githubDir}${Path}`, + { + recursive: true + } + ); + } catch { + console.log(`Could not create: ${githubDir}${Path}`); + } + try { + await (await import("fs/promises")).writeFile( + `${githubDir}${Path}${Name}`, + `${[...workflowBase].join("")}` + ); + } catch { + console.log( + `Could not create workflow for: ${githubDir}/workflows/Node.yml` + ); + } + } else { + try { + await (await import("fs/promises")).access( + `${githubDir}${Path}${Name}`, + (await import("fs/promises")).constants.W_OK + ); + try { + await (await import("fs/promises")).rm( + `${githubDir}${Path}${Name}` + ); + } catch { + console.log( + `Could not remove ${Path}${Name} for: ${githubDir}` + ); + } + } catch (_Error) { + console.log(_Error); + } + } + } + } +})((await import("../Variable/Node.js")).default); +export { + Node_default as default +}; diff --git a/Script/Target/Command/Rust.js b/Script/Target/Command/Rust.js index 5ae4e01..968ff73 100644 --- a/Script/Target/Command/Rust.js +++ b/Script/Target/Command/Rust.js @@ -1,28 +1,16 @@ -var Rust_default = async () => - await (async (Files) => { - for (const { Path, Name, File } of Files) { - for (const [directory, packageFiles] of await ( - await import("../Function/Directory.js") - ).default( - await (await import("../Function/Package.js")).default("Cargo"), - )) { - const githubDir = `${directory}/.github`; - const workflowBase = await File(); - if (Path === "/workflows/" && Name === "Rust.yml") { - for (const _package of packageFiles) { - const packageDirectory = (await import("path")) - .dirname(_package) - .replace(directory, ""); - const environment = ( - await ( - await import("../Function/Type.js") - ).default() - ).get(_package.split("/").pop()); - if ( - typeof environment !== "undefined" && - environment === "Cargo" - ) { - workflowBase.add(` +var Rust_default = async () => await (async (Files) => { + for (const { Path, Name, File } of Files) { + for (const [directory, packageFiles] of await (await import("../Function/Directory.js")).default( + await (await import("../Function/Package.js")).default("Cargo") + )) { + const githubDir = `${directory}/.github`; + const workflowBase = await File(); + if (Path === "/workflows/" && Name === "Rust.yml") { + for (const _package of packageFiles) { + const packageDirectory = (await import("path")).dirname(_package).replace(directory, ""); + const environment = (await (await import("../Function/Type.js")).default()).get(_package.split("/").pop()); + if (typeof environment !== "undefined" && environment === "Cargo") { + workflowBase.add(` - uses: actions/cache@v3.3.2 with: path: | @@ -36,49 +24,49 @@ var Rust_default = async () => - uses: actions-rs/cargo@v1.0.3 with: command: build - args: --release --all-features --manifest-path .${packageDirectory}/${( - await import("path") - ).basename(_package)} + args: --release --all-features --manifest-path .${packageDirectory}/${(await import("path")).basename(_package)} `); - } - } - } - if (workflowBase.size > 1) { - try { - await (await import("fs/promises")).mkdir( - `${githubDir}${Path}`, - { - recursive: true, - }, - ); - } catch { - console.log(`Could not create: ${githubDir}${Path}`); - } - try { - await (await import("fs/promises")).writeFile( - `${githubDir}${Path}${Name}`, - `${[...workflowBase].join("")}`, - ); - } catch { - console.log( - `Could not create workflow for: ${githubDir}/workflows/Rust.yml`, - ); - } - } else { - try { - await (await import("fs/promises")).rm( - `${githubDir}${Path}${Name}`, - { - recursive: true, - }, - ); - } catch { - console.log( - `Could not remove ${Path}${Name} for: ${githubDir}`, - ); - } - } - } - } - })((await import("../Variable/Rust.js")).default); -export { Rust_default as default }; + } + } + } + if (workflowBase.size > 1) { + try { + await (await import("fs/promises")).mkdir( + `${githubDir}${Path}`, + { + recursive: true + } + ); + } catch { + console.log(`Could not create: ${githubDir}${Path}`); + } + try { + await (await import("fs/promises")).writeFile( + `${githubDir}${Path}${Name}`, + `${[...workflowBase].join("")}` + ); + } catch { + console.log( + `Could not create workflow for: ${githubDir}/workflows/Rust.yml` + ); + } + } else { + try { + await (await import("fs/promises")).rm( + `${githubDir}${Path}${Name}`, + { + recursive: true + } + ); + } catch { + console.log( + `Could not remove ${Path}${Name} for: ${githubDir}` + ); + } + } + } + } +})((await import("../Variable/Rust.js")).default); +export { + Rust_default as default +}; diff --git a/Script/Target/Command/Star.js b/Script/Target/Command/Star.js index 6323297..96abbe9 100644 --- a/Script/Target/Command/Star.js +++ b/Script/Target/Command/Star.js @@ -1,44 +1,38 @@ var Star_default = async () => { - const Dependency = /* @__PURE__ */ new Set(); - for (const Package of await (await import("fast-glob")).default( - ["**/package.json", "!**/node_modules"], - { - absolute: true, - cwd: (await import("../Variable/Environment.js")).default.parse( - process.env, - ).Base, - }, - )) { - const _JSON = JSON.parse( - ( - await (await import("fs/promises")).readFile(Package, "utf-8") - ).toString(), - ); - for (const Key in _JSON) { - if (Object.prototype.hasOwnProperty.call(_JSON, Key)) { - if (Key === "dependencies" || Key === "devDependencies") { - for (const Package2 in _JSON[Key]) { - if ( - Object.prototype.hasOwnProperty.call( - _JSON[Key], - Package2, - ) - ) { - Dependency.add(Package2); - } - } - } - } - } - } - for (const _Dependency of Dependency) { - (await import("../Function/Star.js")).default( - ( - await ( - await fetch(`https://registry.npmjs.org/${_Dependency}`) - ).json() - ).repository.url, - ); - } + const Dependency = /* @__PURE__ */ new Set(); + for (const Package of await (await import("fast-glob")).default( + ["**/package.json", "!**/node_modules"], + { + absolute: true, + cwd: (await import("../Variable/Environment.js")).default.parse( + process.env + ).Base + } + )) { + const _JSON = JSON.parse( + (await (await import("fs/promises")).readFile(Package, "utf-8")).toString() + ); + for (const Key in _JSON) { + if (Object.prototype.hasOwnProperty.call(_JSON, Key)) { + if (Key === "dependencies" || Key === "devDependencies") { + for (const Package2 in _JSON[Key]) { + if (Object.prototype.hasOwnProperty.call( + _JSON[Key], + Package2 + )) { + Dependency.add(Package2); + } + } + } + } + } + } + for (const _Dependency of Dependency) { + (await import("../Function/Star.js")).default( + (await (await fetch(`https://registry.npmjs.org/${_Dependency}`)).json()).repository.url + ); + } +}; +export { + Star_default as default }; -export { Star_default as default }; diff --git a/Script/Target/Function/Directory.js b/Script/Target/Function/Directory.js index 3755b05..cb3df8b 100644 --- a/Script/Target/Function/Directory.js +++ b/Script/Target/Function/Directory.js @@ -1,16 +1,16 @@ var Directory_default = async (Search) => { - const Results = /* @__PURE__ */ new Map(); - for (const _Search of Search) { - const Directory = await (await import("./WalkUntilGit.js")).default( - _Search, - ); - Results.set( - Directory, - Results.has(Directory) - ? Results.get(Directory).add(_Search) - : new Set([_Search].sort()), - ); - } - return Results; + const Results = /* @__PURE__ */ new Map(); + for (const _Search of Search) { + const Directory = await (await import("./WalkUntilGit.js")).default( + _Search + ); + Results.set( + Directory, + Results.has(Directory) ? Results.get(Directory).add(_Search) : new Set([_Search].sort()) + ); + } + return Results; +}; +export { + Directory_default as default }; -export { Directory_default as default }; diff --git a/Script/Target/Function/Git.d.ts b/Script/Target/Function/Git.d.ts index 8ba3f30..ac1d695 100644 --- a/Script/Target/Function/Git.d.ts +++ b/Script/Target/Function/Git.d.ts @@ -4,28 +4,16 @@ */ declare const _default: () => Promise>; export default _default; -export declare const Environment: import("zod").ZodObject< - { - User: import("zod").ZodDefault< - import("zod").ZodOptional - >; - Base: import("zod").ZodDefault< - import("zod").ZodOptional - >; - Token: import("zod").ZodDefault< - import("zod").ZodOptional - >; - }, - "strip", - import("zod").ZodTypeAny, - { - User: string; - Base: string; - Token: string; - }, - { - User?: string | undefined; - Base?: string | undefined; - Token?: string | undefined; - } ->; +export declare const Environment: import("zod").ZodObject<{ + User: import("zod").ZodDefault>; + Base: import("zod").ZodDefault>; + Token: import("zod").ZodDefault>; +}, "strip", import("zod").ZodTypeAny, { + User: string; + Base: string; + Token: string; +}, { + User?: string | undefined; + Base?: string | undefined; + Token?: string | undefined; +}>; diff --git a/Script/Target/Function/Git.js b/Script/Target/Function/Git.js index 28d0c70..6a90d1a 100644 --- a/Script/Target/Function/Git.js +++ b/Script/Target/Function/Git.js @@ -1,13 +1,13 @@ -var Git_default = async () => - new Set( - [ - ...(await ( - await import("fast-glob") - ).default(["**/.git"], { - absolute: true, - cwd: Environment.parse(process.env).Base, - })), - ].sort(), - ); +var Git_default = async () => new Set( + [ + ...await (await import("fast-glob")).default(["**/.git"], { + absolute: true, + cwd: Environment.parse(process.env).Base + }) + ].sort() +); const { default: Environment } = await import("../Variable/Environment.js"); -export { Environment, Git_default as default }; +export { + Environment, + Git_default as default +}; diff --git a/Script/Target/Function/Package.js b/Script/Target/Function/Package.js index 3698997..6143d50 100644 --- a/Script/Target/Function/Package.js +++ b/Script/Target/Function/Package.js @@ -1,80 +1,75 @@ -var Package_default = async (Filter = false) => - new Set( - [ - ...(await ( - await import("fast-glob") - ).default( - [ - ...[ - ...( - await (await import("./Type.js")).default(Filter) - ).keys(), - ].map((Package) => `**/${Package}`), - "!**/node_modules", - "!**/target", - "!**/Target", - "!**/dist", - "!**/Dist", - "!**/__pycache__/", - "!**/_ReSharper*/", - "!**/_UpgradeReport_Files/", - "!**/!?*.[Cc]ache/", - "!**/!**/[Pp]ackages/build/", - "!**/.fake/", - "!**/.idea/", - "!**/.localhistory/", - "!**/.mfractor/", - "!**/.sass-cache/", - "!**/.vs/", - "!**/[Aa][Rr][Mm]/", - "!**/[Aa][Rr][Mm]64/", - "!**/[Bb]in/", - "!**/[Dd]ebug/", - "!**/[Dd]ebugPS/", - "!**/[Dd]ebugPublic/", - "!**/[Ee]xpress/", - "!**/[Ll]og/", - "!**/[Oo]bj/", - "!**/[Rr]elease/", - "!**/[Rr]eleasePS/", - "!**/[Rr]eleases/", - "!**/[Tt]est[Rr]esult*/", - "!**/#bower_components/", - "!**/#wwwroot/", - "!**/$tf/", - "!**/AppPackages/", - "!**/artifacts/", - "!**/ASALocalRun/", - "!**/AutoTest.Net/", - "!**/Backup*/", - "!**/BenchmarkDotNet.Artifacts/", - "!**/bld/", - "!**/BundleArtifacts/", - "!**/ClientBin/", - "!**/csx/", - "!**/DocProject/buildhelp/", - "!**/ecf/", - "!**/FakesAssemblies/", - "!**/Generated Files/", - "!**/Generated_Code/", - "!**/ipch/", - "!**/node_modules/", - "!**/OpenCover/", - "!**/paket-files/", - "!**/publish/", - "!**/PublishScripts/", - "!**/rcf/", - "!**/ServiceFabricBackup/", - "!**/x64/", - "!**/x86/", - ], - { - absolute: true, - cwd: ( - await import("../Variable/Environment.js") - ).default.parse(process.env).Base, - }, - )), - ].sort(), - ); -export { Package_default as default }; +var Package_default = async (Filter = false) => new Set( + [ + ...await (await import("fast-glob")).default( + [ + ...[ + ...(await (await import("./Type.js")).default(Filter)).keys() + ].map((Package) => `**/${Package}`), + "!**/node_modules", + "!**/target", + "!**/Target", + "!**/dist", + "!**/Dist", + "!**/__pycache__/", + "!**/_ReSharper*/", + "!**/_UpgradeReport_Files/", + "!**/!?*.[Cc]ache/", + "!**/!**/[Pp]ackages/build/", + "!**/.fake/", + "!**/.idea/", + "!**/.localhistory/", + "!**/.mfractor/", + "!**/.sass-cache/", + "!**/.vs/", + "!**/[Aa][Rr][Mm]/", + "!**/[Aa][Rr][Mm]64/", + "!**/[Bb]in/", + "!**/[Dd]ebug/", + "!**/[Dd]ebugPS/", + "!**/[Dd]ebugPublic/", + "!**/[Ee]xpress/", + "!**/[Ll]og/", + "!**/[Oo]bj/", + "!**/[Rr]elease/", + "!**/[Rr]eleasePS/", + "!**/[Rr]eleases/", + "!**/[Tt]est[Rr]esult*/", + "!**/#bower_components/", + "!**/#wwwroot/", + "!**/$tf/", + "!**/AppPackages/", + "!**/artifacts/", + "!**/ASALocalRun/", + "!**/AutoTest.Net/", + "!**/Backup*/", + "!**/BenchmarkDotNet.Artifacts/", + "!**/bld/", + "!**/BundleArtifacts/", + "!**/ClientBin/", + "!**/csx/", + "!**/DocProject/buildhelp/", + "!**/ecf/", + "!**/FakesAssemblies/", + "!**/Generated Files/", + "!**/Generated_Code/", + "!**/ipch/", + "!**/node_modules/", + "!**/OpenCover/", + "!**/paket-files/", + "!**/publish/", + "!**/PublishScripts/", + "!**/rcf/", + "!**/ServiceFabricBackup/", + "!**/x64/", + "!**/x86/" + ], + { + absolute: true, + cwd: (await import("../Variable/Environment.js")).default.parse(process.env).Base + } + ) + ].sort() +); +export { + Package_default as default +}; diff --git a/Script/Target/Function/Readme.js b/Script/Target/Function/Readme.js index 43413c5..9f36c63 100644 --- a/Script/Target/Function/Readme.js +++ b/Script/Target/Function/Readme.js @@ -1,14 +1,11 @@ -var Readme_default = async () => - new Set( - [ - ...(await ( - await import("fast-glob") - ).default(["**/README.md"], { - absolute: true, - cwd: ( - await import("../Variable/Environment.js") - ).default.parse(process.env).Base, - })), - ].sort(), - ); -export { Readme_default as default }; +var Readme_default = async () => new Set( + [ + ...await (await import("fast-glob")).default(["**/README.md"], { + absolute: true, + cwd: (await import("../Variable/Environment.js")).default.parse(process.env).Base + }) + ].sort() +); +export { + Readme_default as default +}; diff --git a/Script/Target/Function/Request.d.ts b/Script/Target/Function/Request.d.ts index eaf6b64..4f42766 100644 --- a/Script/Target/Function/Request.d.ts +++ b/Script/Target/Function/Request.d.ts @@ -2,10 +2,6 @@ * @module Request * */ -declare const _default: ( - Where: string, - With?: {}, - Type?: string, -) => Promise | any>; +declare const _default: (Where: string, With?: {}, Type?: string) => Promise | any>; export default _default; import type { OctokitResponse } from "@octokit/types"; diff --git a/Script/Target/Function/Request.js b/Script/Target/Function/Request.js index 571f587..40a335f 100644 --- a/Script/Target/Function/Request.js +++ b/Script/Target/Function/Request.js @@ -1,26 +1,26 @@ var Request_default = async (Where, With = {}, Type = "octokit") => { - try { - console.log(`Successfully ${Where}`); - switch (Type) { - case "octokit": { - return await new (await import("@octokit/core")).Octokit({ - auth: ( - await import("../Variable/Environment.js") - ).default.parse(process.env).Token, - }).request( - Where, - (await import("deepmerge-ts")).deepmerge(With, { - headers: { - "If-None-Match": (await import("etag")).default( - Where, - ), - }, - }), - ); - } - } - } catch (_Error) { - return {}; - } + try { + console.log(`Successfully ${Where}`); + switch (Type) { + case "octokit": { + return await new (await import("@octokit/core")).Octokit({ + auth: (await import("../Variable/Environment.js")).default.parse(process.env).Token + }).request( + Where, + (await import("deepmerge-ts")).deepmerge(With, { + headers: { + "If-None-Match": (await import("etag")).default( + Where + ) + } + }) + ); + } + } + } catch (_Error) { + return {}; + } +}; +export { + Request_default as default }; -export { Request_default as default }; diff --git a/Script/Target/Function/Star.js b/Script/Target/Function/Star.js index c8fadd3..ac70d59 100644 --- a/Script/Target/Function/Star.js +++ b/Script/Target/Function/Star.js @@ -1,20 +1,19 @@ var Star_default = async (URL = "") => { - if (typeof URL !== "string") { - return; - } - const _URL = URL?.replace("git://", "https://") - ?.replace("https://github.com/", "") - ?.replace("git+", "") - ?.replace(".git", ""); - try { - await new (await import("@octokit/core")).Octokit({ - auth: (await import("../Variable/Environment.js")).default.parse( - process.env, - ).Token, - }).request(`PUT /user/starred/${_URL}`); - console.log(`Starred repository: ${_URL}`); - } catch (_Error) { - console.log(`Could not star repository: ${_URL}`); - } + if (typeof URL !== "string") { + return; + } + const _URL = URL?.replace("git://", "https://")?.replace("https://github.com/", "")?.replace("git+", "")?.replace(".git", ""); + try { + await new (await import("@octokit/core")).Octokit({ + auth: (await import("../Variable/Environment.js")).default.parse( + process.env + ).Token + }).request(`PUT /user/starred/${_URL}`); + console.log(`Starred repository: ${_URL}`); + } catch (_Error) { + console.log(`Could not star repository: ${_URL}`); + } +}; +export { + Star_default as default }; -export { Star_default as default }; diff --git a/Script/Target/Function/Type.js b/Script/Target/Function/Type.js index 1600a73..e4335c3 100644 --- a/Script/Target/Function/Type.js +++ b/Script/Target/Function/Type.js @@ -1,18 +1,20 @@ var Type_default = async (...[Filter = false]) => { - const Result = /* @__PURE__ */ new Map(); - Result.set("package.json", "NPM"); - Result.set("Cargo.toml", "Cargo"); - Result.set("composer.json", "Composer"); - Result.set("packages.config", "Nuget"); - Result.set("*.csproj", "Nuget"); - Result.set("wrangler.toml", "Cloudflare"); - if (Filter) { - Result.forEach((value, key) => { - if (value !== Filter) { - Result.delete(key); - } - }); - } - return Result; + const Result = /* @__PURE__ */ new Map(); + Result.set("package.json", "NPM"); + Result.set("Cargo.toml", "Cargo"); + Result.set("composer.json", "Composer"); + Result.set("packages.config", "Nuget"); + Result.set("*.csproj", "Nuget"); + Result.set("wrangler.toml", "Cloudflare"); + if (Filter) { + Result.forEach((value, key) => { + if (value !== Filter) { + Result.delete(key); + } + }); + } + return Result; +}; +export { + Type_default as default }; -export { Type_default as default }; diff --git a/Script/Target/Function/WalkUntilGit.js b/Script/Target/Function/WalkUntilGit.js index 61a071f..5e3107c 100644 --- a/Script/Target/Function/WalkUntilGit.js +++ b/Script/Target/Function/WalkUntilGit.js @@ -1,18 +1,21 @@ const _Function = async (...[Search, From]) => { - const Path = (await import("path")).dirname(Search); - const Original = From ?? Path; - if (Path === Search) { - return Original; - } - try { - await (await import("fs/promises")).access( - `${Path}/.git`, - (await import("fs/promises")).constants.R_OK, - ); - return Path; - } catch (_Error) { - return await _Function(Path, Original); - } + const Path = (await import("path")).dirname(Search); + const Original = From ?? Path; + if (Path === Search) { + return Original; + } + try { + await (await import("fs/promises")).access( + `${Path}/.git`, + (await import("fs/promises")).constants.R_OK + ); + return Path; + } catch (_Error) { + return await _Function(Path, Original); + } }; var WalkUntilGit_default = _Function; -export { _Function, WalkUntilGit_default as default }; +export { + _Function, + WalkUntilGit_default as default +}; diff --git a/Script/Target/Interface/Type.d.ts b/Script/Target/Interface/Type.d.ts index ca26672..04f5d42 100644 --- a/Script/Target/Interface/Type.d.ts +++ b/Script/Target/Interface/Type.d.ts @@ -3,6 +3,6 @@ * */ export default interface Type { - (Filter?: Package): Promise>; + (Filter?: Package): Promise>; } import type Package from "../Type/Package.js"; diff --git a/Script/Target/Interface/WalkUntilGit.d.ts b/Script/Target/Interface/WalkUntilGit.d.ts index e1c6239..396fe20 100644 --- a/Script/Target/Interface/WalkUntilGit.d.ts +++ b/Script/Target/Interface/WalkUntilGit.d.ts @@ -3,18 +3,18 @@ * */ export default interface Type { - /** - * The function recursively walks through directories until it finds a ".git" folder or reaches the - * root directory. - * - * @param Search - The `Search` parameter is a string that represents the directory path where - * you want to start searching for a `.git` directory. - * - * @param From - The "From" parameter is an optional parameter that specifies the starting - * directory for the search. If provided, the function will start searching for the ".git" directory - * from this directory. If not provided, the function will start searching from the directory specified - * by the "Search" parameter. - * - */ - (Search: string, From?: string): Promise; + /** + * The function recursively walks through directories until it finds a ".git" folder or reaches the + * root directory. + * + * @param Search - The `Search` parameter is a string that represents the directory path where + * you want to start searching for a `.git` directory. + * + * @param From - The "From" parameter is an optional parameter that specifies the starting + * directory for the search. If provided, the function will start searching for the ".git" directory + * from this directory. If not provided, the function will start searching from the directory specified + * by the "Search" parameter. + * + */ + (Search: string, From?: string): Promise; } diff --git a/Script/Target/Type/Environment.d.ts b/Script/Target/Type/Environment.d.ts index c156e03..da19743 100644 --- a/Script/Target/Type/Environment.d.ts +++ b/Script/Target/Type/Environment.d.ts @@ -5,22 +5,16 @@ export type Type = Zod.infer; import type Zod from "zod"; export type { Type as default }; -declare const Variable: Zod.ZodObject< - { - User: Zod.ZodDefault>; - Base: Zod.ZodDefault>; - Token: Zod.ZodDefault>; - }, - "strip", - Zod.ZodTypeAny, - { - User: string; - Base: string; - Token: string; - }, - { - User?: string | undefined; - Base?: string | undefined; - Token?: string | undefined; - } ->; +declare const Variable: Zod.ZodObject<{ + User: Zod.ZodDefault>; + Base: Zod.ZodDefault>; + Token: Zod.ZodDefault>; +}, "strip", Zod.ZodTypeAny, { + User: string; + Base: string; + Token: string; +}, { + User?: string | undefined; + Base?: string | undefined; + Token?: string | undefined; +}>; diff --git a/Script/Target/Type/Files.d.ts b/Script/Target/Type/Files.d.ts index 15dc4f9..ca92774 100644 --- a/Script/Target/Type/Files.d.ts +++ b/Script/Target/Type/Files.d.ts @@ -3,8 +3,8 @@ * */ export type Type = Set<{ - Path: string; - Name: string; - File: () => Promise>; + Path: string; + Name: string; + File: () => Promise>; }>; export type { Type as default }; diff --git a/Script/Target/Type/Package.d.ts b/Script/Target/Type/Package.d.ts index 3b5ccb2..27711e3 100644 --- a/Script/Target/Type/Package.d.ts +++ b/Script/Target/Type/Package.d.ts @@ -2,11 +2,5 @@ * @module Type * */ -export type Type = - | "NPM" - | "Cargo" - | "Composer" - | "Nuget" - | "Cloudflare" - | false; +export type Type = "NPM" | "Cargo" | "Composer" | "Nuget" | "Cloudflare" | false; export type { Type as default }; diff --git a/Script/Target/Variable/Cloudflare.d.ts b/Script/Target/Variable/Cloudflare.d.ts index baa120c..09ea9f1 100644 --- a/Script/Target/Variable/Cloudflare.d.ts +++ b/Script/Target/Variable/Cloudflare.d.ts @@ -3,8 +3,8 @@ * */ declare const _default: Set<{ - Path: string; - Name: string; - File: () => Promise>; + Path: string; + Name: string; + File: () => Promise>; }>; export default _default; diff --git a/Script/Target/Variable/Cloudflare.js b/Script/Target/Variable/Cloudflare.js index 3a7a5fe..a98e468 100644 --- a/Script/Target/Variable/Cloudflare.js +++ b/Script/Target/Variable/Cloudflare.js @@ -1,28 +1,19 @@ var Cloudflare_default = /* @__PURE__ */ new Set([ - { - Path: "/workflows/", - Name: "Cloudflare.yml", - File: async () => - /* @__PURE__ */ new Set([ - ( - await ( - await import("fs/promises") - ).readFile( - ( - await import("path") - ).resolve( - `${( - await import("path") - ).dirname( - ( - await import("url") - ).fileURLToPath(import.meta.url), - )}/../../Target/Workflow/Cloudflare.yml`, - ), - "utf-8", - ) - ).toString(), - ]), - }, + { + Path: "/workflows/", + Name: "Cloudflare.yml", + File: async () => /* @__PURE__ */ new Set([ + (await (await import("fs/promises")).readFile( + (await import("path")).resolve( + `${(await import("path")).dirname( + (await import("url")).fileURLToPath(import.meta.url) + )}/../../Target/Workflow/Cloudflare.yml` + ), + "utf-8" + )).toString() + ]) + } ]); -export { Cloudflare_default as default }; +export { + Cloudflare_default as default +}; diff --git a/Script/Target/Variable/Command.d.ts b/Script/Target/Variable/Command.d.ts index 2dd8e92..50aa872 100644 --- a/Script/Target/Variable/Command.d.ts +++ b/Script/Target/Variable/Command.d.ts @@ -3,16 +3,16 @@ * */ export declare const Variable: Set<{ - Name: string; - Opts?: CommandOptions; - Type?: "Workflow"; - Description?: string; - Arguments?: Set<{ - Name: string; - Description?: string; - Value?: any; - }>; - Action: (...args: any[]) => Promise; + Name: string; + Opts?: CommandOptions; + Type?: "Workflow"; + Description?: string; + Arguments?: Set<{ + Name: string; + Description?: string; + Value?: any; + }>; + Action: (...args: any[]) => Promise; }>; export default Variable; import type { CommandOptions } from "commander"; diff --git a/Script/Target/Variable/Command.js b/Script/Target/Variable/Command.js index ebdc999..440a3d1 100644 --- a/Script/Target/Variable/Command.js +++ b/Script/Target/Variable/Command.js @@ -1,81 +1,82 @@ const Variable = /* @__PURE__ */ new Set([ - { - Name: "Clean", - Description: "Clean GitHub repositories", - Arguments: /* @__PURE__ */ new Set([ - { - Name: "[repositories...]", - Description: "Repositories to clean.", - }, - ]), - Action: (await import("../Command/Clean.js")).default, - }, - { - Name: "Dispatch", - Description: "Trigger dispatch events.", - Arguments: /* @__PURE__ */ new Set([ - { - Name: "[repositories...]", - Description: - "Repositories on which to trigger dispatch events.", - }, - ]), - Action: (await import("../Command/Dispatch.js")).default, - }, - { - Name: "Dependabot", - Type: "Workflow", - Description: "Put Dependabot everywhere.", - Action: (await import("../Command/Dependabot.js")).default, - }, - { - Name: "Edit", - Arguments: /* @__PURE__ */ new Set([ - { - Name: "[repositories...]", - Description: "Repositories to edit.", - }, - ]), - Description: "Edit features for all repositories.", - Action: (await import("../Command/Edit.js")).default, - }, - { - Name: "Node", - Type: "Workflow", - Description: "Put Node into GitHub Actions.", - Action: (await import("../Command/Node.js")).default, - }, - { - Name: "Cloudflare", - Type: "Workflow", - Description: "Put Cloudflare into GitHub Actions.", - Action: (await import("../Command/Cloudflare.js")).default, - }, - { - Name: "NPM", - Type: "Workflow", - Description: "Put NPM into GitHub Actions.", - Action: (await import("../Command/NPM.js")).default, - }, - { - Name: "Rust", - Type: "Workflow", - Description: "Put rust into GitHub Actions.", - Action: (await import("../Command/Rust.js")).default, - }, - { - Name: "Workflow", - Description: "Trigger all workflow tasks.", - Action: async () => - Variable.forEach((Command) => - Command.Type === "Workflow" ? Command.Action() : {}, - ), - }, - { - Name: "Star", - Description: "Star all my used repositories.", - Action: (await import("../Command/Star.js")).default, - }, + { + Name: "Clean", + Description: "Clean GitHub repositories", + Arguments: /* @__PURE__ */ new Set([ + { + Name: "[repositories...]", + Description: "Repositories to clean." + } + ]), + Action: (await import("../Command/Clean.js")).default + }, + { + Name: "Dispatch", + Description: "Trigger dispatch events.", + Arguments: /* @__PURE__ */ new Set([ + { + Name: "[repositories...]", + Description: "Repositories on which to trigger dispatch events." + } + ]), + Action: (await import("../Command/Dispatch.js")).default + }, + { + Name: "Dependabot", + Type: "Workflow", + Description: "Put Dependabot everywhere.", + Action: (await import("../Command/Dependabot.js")).default + }, + { + Name: "Edit", + Arguments: /* @__PURE__ */ new Set([ + { + Name: "[repositories...]", + Description: "Repositories to edit." + } + ]), + Description: "Edit features for all repositories.", + Action: (await import("../Command/Edit.js")).default + }, + { + Name: "Node", + Type: "Workflow", + Description: "Put Node into GitHub Actions.", + Action: (await import("../Command/Node.js")).default + }, + { + Name: "Cloudflare", + Type: "Workflow", + Description: "Put Cloudflare into GitHub Actions.", + Action: (await import("../Command/Cloudflare.js")).default + }, + { + Name: "NPM", + Type: "Workflow", + Description: "Put NPM into GitHub Actions.", + Action: (await import("../Command/NPM.js")).default + }, + { + Name: "Rust", + Type: "Workflow", + Description: "Put rust into GitHub Actions.", + Action: (await import("../Command/Rust.js")).default + }, + { + Name: "Workflow", + Description: "Trigger all workflow tasks.", + Action: async () => Variable.forEach( + (Command) => Command.Type === "Workflow" ? Command.Action() : {} + ) + }, + { + Name: "Star", + Description: "Star all my used repositories.", + Action: (await import("../Command/Star.js")).default + } ]); var Command_default = Variable; -export { Variable, Command_default as default }; +export { + Variable, + Command_default as default +}; diff --git a/Script/Target/Variable/Dependabot.d.ts b/Script/Target/Variable/Dependabot.d.ts index 21aab49..4781e9e 100644 --- a/Script/Target/Variable/Dependabot.d.ts +++ b/Script/Target/Variable/Dependabot.d.ts @@ -5,12 +5,11 @@ * */ declare const _default: Set<{ - Path: string; - Name: string; - File: () => Promise>; + Path: string; + Name: string; + File: () => Promise>; }>; export default _default; export declare const readFile: typeof import("fs/promises").readFile; -export declare const dirname: (path: string) => string, - resolve: (...paths: string[]) => string; +export declare const dirname: (path: string) => string, resolve: (...paths: string[]) => string; export declare const fileURLToPath: typeof import("url").fileURLToPath; diff --git a/Script/Target/Variable/Dependabot.js b/Script/Target/Variable/Dependabot.js index e1432d2..38af70a 100644 --- a/Script/Target/Variable/Dependabot.js +++ b/Script/Target/Variable/Dependabot.js @@ -1,46 +1,40 @@ var Dependabot_default = /* @__PURE__ */ new Set([ - { - Path: "/", - Name: "dependabot.yml", - File: async () => - /* @__PURE__ */ new Set([ - ( - await readFile( - resolve( - `${dirname( - fileURLToPath(import.meta.url), - )}/../../Target/Workflow/dependabot.yml`, - ), - "utf-8", - ) - ).toString(), - ]), - }, - { - Path: "/workflows/", - Name: "Dependabot.yml", - File: async () => - /* @__PURE__ */ new Set([ - ( - await readFile( - resolve( - `${dirname( - fileURLToPath(import.meta.url), - )}/../../Target/Workflow/InnerDependabot.yml`, - ), - "utf-8", - ) - ).toString(), - ]), - }, + { + Path: "/", + Name: "dependabot.yml", + File: async () => /* @__PURE__ */ new Set([ + (await readFile( + resolve( + `${dirname( + fileURLToPath(import.meta.url) + )}/../../Target/Workflow/dependabot.yml` + ), + "utf-8" + )).toString() + ]) + }, + { + Path: "/workflows/", + Name: "Dependabot.yml", + File: async () => /* @__PURE__ */ new Set([ + (await readFile( + resolve( + `${dirname( + fileURLToPath(import.meta.url) + )}/../../Target/Workflow/InnerDependabot.yml` + ), + "utf-8" + )).toString() + ]) + } ]); const { readFile } = await import("fs/promises"); const { dirname, resolve } = await import("path"); const { fileURLToPath } = await import("url"); export { - Dependabot_default as default, - dirname, - fileURLToPath, - readFile, - resolve, + Dependabot_default as default, + dirname, + fileURLToPath, + readFile, + resolve }; diff --git a/Script/Target/Variable/Environment.d.ts b/Script/Target/Variable/Environment.d.ts index c2433d1..a5b4964 100644 --- a/Script/Target/Variable/Environment.d.ts +++ b/Script/Target/Variable/Environment.d.ts @@ -1,42 +1,26 @@ -export declare const string: ( - params?: - | ({ - errorMap?: import("zod").ZodErrorMap | undefined; - invalid_type_error?: string | undefined; - required_error?: string | undefined; - description?: string | undefined; - } & { - coerce?: true | undefined; - }) - | undefined, -) => import("zod").ZodString; +export declare const string: (params?: ({ + errorMap?: import("zod").ZodErrorMap | undefined; + invalid_type_error?: string | undefined; + required_error?: string | undefined; + description?: string | undefined; +} & { + coerce?: true | undefined; +}) | undefined) => import("zod").ZodString; /** * @module Environment * */ -declare const _default: import("zod").ZodObject< - { - User: import("zod").ZodDefault< - import("zod").ZodOptional - >; - Base: import("zod").ZodDefault< - import("zod").ZodOptional - >; - Token: import("zod").ZodDefault< - import("zod").ZodOptional - >; - }, - "strip", - import("zod").ZodTypeAny, - { - User: string; - Base: string; - Token: string; - }, - { - User?: string | undefined; - Base?: string | undefined; - Token?: string | undefined; - } ->; +declare const _default: import("zod").ZodObject<{ + User: import("zod").ZodDefault>; + Base: import("zod").ZodDefault>; + Token: import("zod").ZodDefault>; +}, "strip", import("zod").ZodTypeAny, { + User: string; + Base: string; + Token: string; +}, { + User?: string | undefined; + Base?: string | undefined; + Token?: string | undefined; +}>; export default _default; diff --git a/Script/Target/Variable/Environment.js b/Script/Target/Variable/Environment.js index 67e9151..39cbc8c 100644 --- a/Script/Target/Variable/Environment.js +++ b/Script/Target/Variable/Environment.js @@ -1,10 +1,11 @@ (await import("dotenv")).config(); const { string } = await import("zod"); var Environment_default = (await import("zod")).object({ - User: string().optional().default(""), - Base: string() - .optional() - .default((await import("process")).cwd()), - Token: string().optional().default(""), + User: string().optional().default(""), + Base: string().optional().default((await import("process")).cwd()), + Token: string().optional().default("") }); -export { Environment_default as default, string }; +export { + Environment_default as default, + string +}; diff --git a/Script/Target/Variable/NPM.d.ts b/Script/Target/Variable/NPM.d.ts index 0ab8a37..3916e44 100644 --- a/Script/Target/Variable/NPM.d.ts +++ b/Script/Target/Variable/NPM.d.ts @@ -3,8 +3,8 @@ * */ declare const _default: Set<{ - Path: string; - Name: string; - File: () => Promise>; + Path: string; + Name: string; + File: () => Promise>; }>; export default _default; diff --git a/Script/Target/Variable/NPM.js b/Script/Target/Variable/NPM.js index f9dea2e..84d21fa 100644 --- a/Script/Target/Variable/NPM.js +++ b/Script/Target/Variable/NPM.js @@ -1,28 +1,19 @@ var NPM_default = /* @__PURE__ */ new Set([ - { - Path: "/workflows/", - Name: "NPM.yml", - File: async () => - /* @__PURE__ */ new Set([ - ( - await ( - await import("fs/promises") - ).readFile( - ( - await import("path") - ).resolve( - `${( - await import("path") - ).dirname( - ( - await import("url") - ).fileURLToPath(import.meta.url), - )}/../../Target/Workflow/NPM.yml`, - ), - "utf-8", - ) - ).toString(), - ]), - }, + { + Path: "/workflows/", + Name: "NPM.yml", + File: async () => /* @__PURE__ */ new Set([ + (await (await import("fs/promises")).readFile( + (await import("path")).resolve( + `${(await import("path")).dirname( + (await import("url")).fileURLToPath(import.meta.url) + )}/../../Target/Workflow/NPM.yml` + ), + "utf-8" + )).toString() + ]) + } ]); -export { NPM_default as default }; +export { + NPM_default as default +}; diff --git a/Script/Target/Variable/Node.d.ts b/Script/Target/Variable/Node.d.ts index 67a002c..10dff9e 100644 --- a/Script/Target/Variable/Node.d.ts +++ b/Script/Target/Variable/Node.d.ts @@ -3,8 +3,8 @@ * */ declare const _default: Set<{ - Path: string; - Name: string; - File: () => Promise>; + Path: string; + Name: string; + File: () => Promise>; }>; export default _default; diff --git a/Script/Target/Variable/Node.js b/Script/Target/Variable/Node.js index b4a6cc7..7136dbc 100644 --- a/Script/Target/Variable/Node.js +++ b/Script/Target/Variable/Node.js @@ -1,28 +1,19 @@ var Node_default = /* @__PURE__ */ new Set([ - { - Path: "/workflows/", - Name: "Node.yml", - File: async () => - /* @__PURE__ */ new Set([ - ( - await ( - await import("fs/promises") - ).readFile( - ( - await import("path") - ).resolve( - `${( - await import("path") - ).dirname( - ( - await import("url") - ).fileURLToPath(import.meta.url), - )}/../../Target/Workflow/Node.yml`, - ), - "utf-8", - ) - ).toString(), - ]), - }, + { + Path: "/workflows/", + Name: "Node.yml", + File: async () => /* @__PURE__ */ new Set([ + (await (await import("fs/promises")).readFile( + (await import("path")).resolve( + `${(await import("path")).dirname( + (await import("url")).fileURLToPath(import.meta.url) + )}/../../Target/Workflow/Node.yml` + ), + "utf-8" + )).toString() + ]) + } ]); -export { Node_default as default }; +export { + Node_default as default +}; diff --git a/Script/Target/Variable/Rust.d.ts b/Script/Target/Variable/Rust.d.ts index e4a07c2..9f645f3 100644 --- a/Script/Target/Variable/Rust.d.ts +++ b/Script/Target/Variable/Rust.d.ts @@ -3,8 +3,8 @@ * */ declare const _default: Set<{ - Path: string; - Name: string; - File: () => Promise>; + Path: string; + Name: string; + File: () => Promise>; }>; export default _default; diff --git a/Script/Target/Variable/Rust.js b/Script/Target/Variable/Rust.js index 296ba65..ed4c58b 100644 --- a/Script/Target/Variable/Rust.js +++ b/Script/Target/Variable/Rust.js @@ -1,28 +1,19 @@ var Rust_default = /* @__PURE__ */ new Set([ - { - Path: "/workflows/", - Name: "Rust.yml", - File: async () => - /* @__PURE__ */ new Set([ - ( - await ( - await import("fs/promises") - ).readFile( - ( - await import("path") - ).resolve( - `${( - await import("path") - ).dirname( - ( - await import("url") - ).fileURLToPath(import.meta.url), - )}/../../Target/Workflow/Rust.yml`, - ), - "utf-8", - ) - ).toString(), - ]), - }, + { + Path: "/workflows/", + Name: "Rust.yml", + File: async () => /* @__PURE__ */ new Set([ + (await (await import("fs/promises")).readFile( + (await import("path")).resolve( + `${(await import("path")).dirname( + (await import("url")).fileURLToPath(import.meta.url) + )}/../../Target/Workflow/Rust.yml` + ), + "utf-8" + )).toString() + ]) + } ]); -export { Rust_default as default }; +export { + Rust_default as default +}; diff --git a/Script/package.json b/Script/package.json index cca8477..75ef75b 100644 --- a/Script/package.json +++ b/Script/package.json @@ -1,6 +1,6 @@ { "name": "@yesmaintain/script", - "version": "0.0.1", + "version": "0.0.2", "private": false, "description": "🔧 Maintains GitHub repositories.", "homepage": "https://github.com/YesMaintain/NPM#readme", @@ -39,7 +39,7 @@ "devDependencies": { "@octokit/types": "12.4.0", "@types/etag": "1.8.3", - "@types/node": "20.10.4", + "@types/node": "20.10.5", "@types/pacote": "11.1.8", "esbuild": "0.19.9", "esbuild-plugin-copy": "2.1.1",