diff --git a/deno.lock b/deno.lock index 2b83938..b2c181e 100644 --- a/deno.lock +++ b/deno.lock @@ -2,7 +2,7 @@ "version": "3", "packages": { "specifiers": { - "npm:@fensak-io/reng@^1.3.0": "npm:@fensak-io/reng@1.3.0_@babel+core@7.23.2", + "npm:@fensak-io/reng@^2.0.0": "npm:@fensak-io/reng@2.0.0_@babel+core@7.23.2", "npm:@octokit/rest@^20.0.0": "npm:@octokit/rest@20.0.2_@octokit+core@5.0.1" }, "npm": { @@ -951,15 +951,17 @@ "yaml": "yaml@2.3.3" } }, - "@fensak-io/reng@1.3.0_@babel+core@7.23.2": { - "integrity": "sha512-L4OOs0NkbVpUAKNs7wLSaH2d5f4CiEvtw4HD+3/vfAy6T4rwB1eZs8SSf7GLKoJxCujvBflEAH/sFnm7+58Dtg==", + "@fensak-io/reng@2.0.0_@babel+core@7.23.2": { + "integrity": "sha512-KK+UIWoxBObsAp2oi8ycy+wQJhldpz3FdTeQhOJd5gkGYY87QZRYoyfY0Ox7LEzrq5g6lLLPYlklZMjGAcKw3A==", "dependencies": { "@babel/core": "@babel/core@7.23.2", "@babel/preset-env": "@babel/preset-env@7.23.2_@babel+core@7.23.2", "@babel/preset-typescript": "@babel/preset-typescript@7.23.2_@babel+core@7.23.2", "@fensak-io/front-matter": "@fensak-io/front-matter@1.0.0", "@octokit/rest": "@octokit/rest@20.0.2_@octokit+core@5.0.1", + "atlassian-jwt": "atlassian-jwt@2.0.2", "babel-preset-minify": "babel-preset-minify@0.5.2", + "jose": "jose@5.0.1", "json5": "json5@2.2.3", "microdiff": "microdiff@1.3.2", "toml": "toml@3.0.0", @@ -1004,15 +1006,15 @@ "@octokit/graphql": "@octokit/graphql@7.0.2", "@octokit/request": "@octokit/request@8.1.4", "@octokit/request-error": "@octokit/request-error@5.0.1", - "@octokit/types": "@octokit/types@12.1.0", + "@octokit/types": "@octokit/types@12.1.1", "before-after-hook": "before-after-hook@2.2.3", "universal-user-agent": "universal-user-agent@6.0.0" } }, - "@octokit/endpoint@9.0.1": { - "integrity": "sha512-hRlOKAovtINHQPYHZlfyFwaM8OyetxeoC81lAkBy34uLb8exrZB50SQdeW3EROqiY9G9yxQTpp5OHTV54QD+vA==", + "@octokit/endpoint@9.0.2": { + "integrity": "sha512-qhKW8YLIi+Kmc92FQUFGr++DYtkx/1fBv+Thua6baqnjnOsgBYJDCvWZR1YcINuHGOEQt416WOfE+A/oG60NBQ==", "dependencies": { - "@octokit/types": "@octokit/types@12.1.0", + "@octokit/types": "@octokit/types@12.1.1", "is-plain-object": "is-plain-object@5.0.0", "universal-user-agent": "universal-user-agent@6.0.0" } @@ -1021,19 +1023,19 @@ "integrity": "sha512-OJ2iGMtj5Tg3s6RaXH22cJcxXRi7Y3EBqbHTBRq+PQAqfaS8f/236fUrWhfSn8P4jovyzqucxme7/vWSSZBX2Q==", "dependencies": { "@octokit/request": "@octokit/request@8.1.4", - "@octokit/types": "@octokit/types@12.1.0", + "@octokit/types": "@octokit/types@12.1.1", "universal-user-agent": "universal-user-agent@6.0.0" } }, - "@octokit/openapi-types@19.0.1": { - "integrity": "sha512-zC+73r2HIoRb9rWW5S3Y759hrpadlD5pNnya/QfZv0JZE7mvMu+FUa7nxHqTadi2hZc4BPZjJ8veDTuJnh8+8g==", + "@octokit/openapi-types@19.0.2": { + "integrity": "sha512-8li32fUDUeml/ACRp/njCWTsk5t17cfTM1jp9n08pBrqs5cDFJubtjsSnuz56r5Tad6jdEPJld7LxNp9dNcyjQ==", "dependencies": {} }, - "@octokit/plugin-paginate-rest@9.1.0_@octokit+core@5.0.1": { - "integrity": "sha512-FK1WMa5261SaMX/33S1EOEzalnu9+YoKfrxzRVimciachMFSWH9kQ9SOKdxxxuZXX+KxCLw1knQkneSLYmgdbg==", + "@octokit/plugin-paginate-rest@9.1.2_@octokit+core@5.0.1": { + "integrity": "sha512-euDbNV6fxX6btsCDnZoZM4vw3zO1nj1Z7TskHAulO6mZ9lHoFTpwll6farf+wh31mlBabgU81bBYdflp0GLVAQ==", "dependencies": { "@octokit/core": "@octokit/core@5.0.1", - "@octokit/types": "@octokit/types@12.1.0" + "@octokit/types": "@octokit/types@12.1.1" } }, "@octokit/plugin-request-log@4.0.0_@octokit+core@5.0.1": { @@ -1042,17 +1044,17 @@ "@octokit/core": "@octokit/core@5.0.1" } }, - "@octokit/plugin-rest-endpoint-methods@10.1.0_@octokit+core@5.0.1": { - "integrity": "sha512-SnVot2WFI61LYkTeSCkKNfvfqw7FdgtqvaC8nMUwYiHA8UTKoGDjL+R5pCaCEvoLu3O55pUOtNaTIyo7ngJySQ==", + "@octokit/plugin-rest-endpoint-methods@10.1.2_@octokit+core@5.0.1": { + "integrity": "sha512-JztgZ82CY4JNlPTuF0jh4iWuuGpEi5czFCoXyAbMg4F2XyFBbG5DWAKfa3odRvdZww6Df1tQgBKnqpd9X0WF9g==", "dependencies": { "@octokit/core": "@octokit/core@5.0.1", - "@octokit/types": "@octokit/types@12.1.0" + "@octokit/types": "@octokit/types@12.1.1" } }, "@octokit/request-error@5.0.1": { "integrity": "sha512-X7pnyTMV7MgtGmiXBwmO6M5kIPrntOXdyKZLigNfQWSEQzVxR4a4vo49vJjTWX70mPndj8KhfT4Dx+2Ng3vnBQ==", "dependencies": { - "@octokit/types": "@octokit/types@12.1.0", + "@octokit/types": "@octokit/types@12.1.1", "deprecation": "deprecation@2.3.1", "once": "once@1.4.0" } @@ -1060,9 +1062,9 @@ "@octokit/request@8.1.4": { "integrity": "sha512-M0aaFfpGPEKrg7XoA/gwgRvc9MSXHRO2Ioki1qrPDbl1e9YhjIwVoHE7HIKmv/m3idzldj//xBujcFNqGX6ENA==", "dependencies": { - "@octokit/endpoint": "@octokit/endpoint@9.0.1", + "@octokit/endpoint": "@octokit/endpoint@9.0.2", "@octokit/request-error": "@octokit/request-error@5.0.1", - "@octokit/types": "@octokit/types@12.1.0", + "@octokit/types": "@octokit/types@12.1.1", "is-plain-object": "is-plain-object@5.0.0", "universal-user-agent": "universal-user-agent@6.0.0" } @@ -1071,15 +1073,15 @@ "integrity": "sha512-Ux8NDgEraQ/DMAU1PlAohyfBBXDwhnX2j33Z1nJNziqAfHi70PuxkFYIcIt8aIAxtRE7KVuKp8lSR8pA0J5iOQ==", "dependencies": { "@octokit/core": "@octokit/core@5.0.1", - "@octokit/plugin-paginate-rest": "@octokit/plugin-paginate-rest@9.1.0_@octokit+core@5.0.1", + "@octokit/plugin-paginate-rest": "@octokit/plugin-paginate-rest@9.1.2_@octokit+core@5.0.1", "@octokit/plugin-request-log": "@octokit/plugin-request-log@4.0.0_@octokit+core@5.0.1", - "@octokit/plugin-rest-endpoint-methods": "@octokit/plugin-rest-endpoint-methods@10.1.0_@octokit+core@5.0.1" + "@octokit/plugin-rest-endpoint-methods": "@octokit/plugin-rest-endpoint-methods@10.1.2_@octokit+core@5.0.1" } }, - "@octokit/types@12.1.0": { - "integrity": "sha512-JmjQr5ZbOnpnOLX5drI2O2I1N9suOYZAgINHXTlVVg4lRtUifMv2JssT+RhmNxQwXH153Pc8HaCMdTRkqI1oVQ==", + "@octokit/types@12.1.1": { + "integrity": "sha512-qnJTldJ1NyGT5MTsCg/Zi+y2IFHZ1Jo5+njNCjJ9FcainV7LjuHgmB697kA0g4MjZeDAJsM3B45iqCVsCLVFZg==", "dependencies": { - "@octokit/openapi-types": "@octokit/openapi-types@19.0.1" + "@octokit/openapi-types": "@octokit/openapi-types@19.0.2" } }, "ansi-styles@3.2.1": { @@ -1088,6 +1090,13 @@ "color-convert": "color-convert@1.9.3" } }, + "atlassian-jwt@2.0.2": { + "integrity": "sha512-HgG2p+gJeEqKREnPynEDy76UoShF01jTYMSe0NlRL2rEqXBNDzJiiCyUP7P2cbxcRmI4OC8g40zJjqftFNJ/4A==", + "dependencies": { + "jsuri": "jsuri@1.3.1", + "lodash": "lodash@4.17.21" + } + }, "babel-helper-evaluate-path@0.5.0": { "integrity": "sha512-mUh0UhS607bGh5wUMAQfOpt2JX2ThXMtppHRdRU1kL7ZLRWIXxoV2UIV1r2cAeeNeU1M5SB5/RSUgUxrK8yOkA==", "dependencies": {} @@ -1288,14 +1297,14 @@ "browserslist@4.22.1": { "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", "dependencies": { - "caniuse-lite": "caniuse-lite@1.0.30001554", - "electron-to-chromium": "electron-to-chromium@1.4.566", + "caniuse-lite": "caniuse-lite@1.0.30001558", + "electron-to-chromium": "electron-to-chromium@1.4.569", "node-releases": "node-releases@2.0.13", "update-browserslist-db": "update-browserslist-db@1.0.13_browserslist@4.22.1" } }, - "caniuse-lite@1.0.30001554": { - "integrity": "sha512-A2E3U//MBwbJVzebddm1YfNp7Nud5Ip+IPn4BozBmn4KqVX7AvluoIDFWjsv5OkGnKUXQVmMSoMKLa3ScCblcQ==", + "caniuse-lite@1.0.30001558": { + "integrity": "sha512-/Et7DwLqpjS47JPEcz6VnxU9PwcIdVi0ciLXRWBQdj1XFye68pSQYpV0QtPTfUKWuOaEig+/Vez2l74eDc1tPQ==", "dependencies": {} }, "chalk@2.4.2": { @@ -1336,8 +1345,8 @@ "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", "dependencies": {} }, - "electron-to-chromium@1.4.566": { - "integrity": "sha512-mv+fAy27uOmTVlUULy15U3DVJ+jg+8iyKH1bpwboCRhtDC69GKf1PPTZvEIhCyDr81RFqfxZJYrbgp933a1vtg==", + "electron-to-chromium@1.4.569": { + "integrity": "sha512-LsrJjZ0IbVy12ApW3gpYpcmHS3iRxH4bkKOW98y1/D+3cvDUWGcbzbsFinfUS8knpcZk/PG/2p/RnkMCYN7PVg==", "dependencies": {} }, "escalade@3.1.1": { @@ -1384,6 +1393,10 @@ "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", "dependencies": {} }, + "jose@5.0.1": { + "integrity": "sha512-gRVzy7s3RRdGbXmcTdlOswJOjhwPLx1ijIgAqLY6ktzFpOJxxYn4l0fC2vHaHHi4YBX/5FOL3aY+6W0cvQgpug==", + "dependencies": {} + }, "js-tokens@4.0.0": { "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dependencies": {} @@ -1400,6 +1413,10 @@ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dependencies": {} }, + "jsuri@1.3.1": { + "integrity": "sha512-LLdAeqOf88/X0hylAI7oSir6QUsz/8kOW0FcJzzu/SJRfORA/oPHycAOthkNp7eLPlTAbqVDFbqNRHkRVzEA3g==", + "dependencies": {} + }, "lodash.debounce@4.0.8": { "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", "dependencies": {} diff --git a/rules/sample.ts b/rules/sample.ts index 58b63a7..ea195d8 100644 --- a/rules/sample.ts +++ b/rules/sample.ts @@ -4,7 +4,7 @@ */ // fensak remove-start -import type { IChangeSetMetadata, IPatch } from "npm:@fensak-io/reng@^1.3.0"; +import type { IChangeSetMetadata, IPatch } from "npm:@fensak-io/reng@^2.0.0"; // fensak remove-end // deno-lint-ignore no-unused-vars diff --git a/rules/sample_test.ts b/rules/sample_test.ts index 3b9b838..650f63e 100644 --- a/rules/sample_test.ts +++ b/rules/sample_test.ts @@ -2,12 +2,12 @@ import { assert } from "https://deno.land/std@0.202.0/testing/asserts.ts"; import { compileRuleFn, emptyChangeSetMetadata, - IGitHubRepository, patchFromGitHubPullRequest, + Repository, RuleFnSourceLang, RuleLogMode, runRule, -} from "npm:@fensak-io/reng@^1.3.0"; +} from "npm:@fensak-io/reng@^2.0.0"; import { Octokit } from "npm:@octokit/rest@^20.0.0"; const __dirname = new URL(".", import.meta.url).pathname; @@ -18,7 +18,7 @@ const ruleFn = compileRuleFn( const octokit = new Octokit({ auth: Deno.env.get("GITHUB_API_TOKEN"), }); -const testRepo: IGitHubRepository = { +const testRepo: Repository = { owner: "fensak-io", name: "dotfensak-deno-template", };