From 34351ed033189e32be6f22b6828cb6acf3563540 Mon Sep 17 00:00:00 2001 From: Mike Fridman Date: Mon, 17 Jul 2023 09:25:03 -0400 Subject: [PATCH 1/2] Add bufbuild/es v1.3.0 --- plugins/bufbuild/es/v1.3.0/.dockerignore | 3 + plugins/bufbuild/es/v1.3.0/Dockerfile | 11 +++ plugins/bufbuild/es/v1.3.0/buf.plugin.yaml | 17 ++++ plugins/bufbuild/es/v1.3.0/package-lock.json | 93 +++++++++++++++++++ plugins/bufbuild/es/v1.3.0/package.json | 7 ++ .../bufbuild/es/v1.3.0/eliza/plugin.sum | 1 + .../bufbuild/es/v1.3.0/petapis/plugin.sum | 1 + 7 files changed, 133 insertions(+) create mode 100644 plugins/bufbuild/es/v1.3.0/.dockerignore create mode 100644 plugins/bufbuild/es/v1.3.0/Dockerfile create mode 100644 plugins/bufbuild/es/v1.3.0/buf.plugin.yaml create mode 100644 plugins/bufbuild/es/v1.3.0/package-lock.json create mode 100644 plugins/bufbuild/es/v1.3.0/package.json create mode 100644 tests/testdata/buf.build/bufbuild/es/v1.3.0/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/bufbuild/es/v1.3.0/petapis/plugin.sum diff --git a/plugins/bufbuild/es/v1.3.0/.dockerignore b/plugins/bufbuild/es/v1.3.0/.dockerignore new file mode 100644 index 000000000..771bbbaa9 --- /dev/null +++ b/plugins/bufbuild/es/v1.3.0/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!package*.json diff --git a/plugins/bufbuild/es/v1.3.0/Dockerfile b/plugins/bufbuild/es/v1.3.0/Dockerfile new file mode 100644 index 000000000..40c8d63f1 --- /dev/null +++ b/plugins/bufbuild/es/v1.3.0/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1.4 +FROM node:18.16.1-alpine3.18 AS build +WORKDIR /app +COPY --link package*.json . +RUN npm ci +RUN sed -i -e 's|/usr/bin/env node|/nodejs/bin/node|g' /app/node_modules/@bufbuild/protoc-gen-es/bin/protoc-gen-es + +FROM gcr.io/distroless/nodejs18-debian11 +COPY --link --from=build /app /app +USER nobody +ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-es" ] diff --git a/plugins/bufbuild/es/v1.3.0/buf.plugin.yaml b/plugins/bufbuild/es/v1.3.0/buf.plugin.yaml new file mode 100644 index 000000000..1aa051aa3 --- /dev/null +++ b/plugins/bufbuild/es/v1.3.0/buf.plugin.yaml @@ -0,0 +1,17 @@ +version: v1 +name: buf.build/bufbuild/es +plugin_version: v1.3.0 +source_url: https://github.com/bufbuild/protobuf-es +description: Base types for TypeScript/JavaScript for use in web browsers and Node.js. Generates message and enum types. +output_languages: + - javascript + - typescript +registry: + npm: + import_style: module + rewrite_import_path_suffix: pb.js + deps: + - package: '@bufbuild/protobuf' + version: ^1.3.0 +spdx_license_id: Apache-2.0 +license_url: https://github.com/bufbuild/protobuf-es/blob/v1.3.0/LICENSE diff --git a/plugins/bufbuild/es/v1.3.0/package-lock.json b/plugins/bufbuild/es/v1.3.0/package-lock.json new file mode 100644 index 000000000..b389f06ec --- /dev/null +++ b/plugins/bufbuild/es/v1.3.0/package-lock.json @@ -0,0 +1,93 @@ +{ + "name": "plugins-bufbuild-protobuf-es", + "version": "1.3.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "plugins-bufbuild-protobuf-es", + "version": "1.3.0", + "dependencies": { + "@bufbuild/protoc-gen-es": "1.3.0" + } + }, + "node_modules/@bufbuild/protobuf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.3.0.tgz", + "integrity": "sha512-G372ods0pLt46yxVRsnP/e2btVPuuzArcMPFpIDeIwiGPuuglEs9y75iG0HMvZgncsj5TvbYRWqbVyOe3PLCWQ==" + }, + "node_modules/@bufbuild/protoc-gen-es": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protoc-gen-es/-/protoc-gen-es-1.3.0.tgz", + "integrity": "sha512-XxGZwpXMYlwoSyJwCTFb7SZ2xKmv2iCRM022t1wszhY3kNL7rjpyj+3GbpCOjaM1T7NAoLnW0Hyb/M0b0XDb3Q==", + "dependencies": { + "@bufbuild/protoplugin": "1.3.0" + }, + "bin": { + "protoc-gen-es": "bin/protoc-gen-es" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@bufbuild/protobuf": "1.3.0" + }, + "peerDependenciesMeta": { + "@bufbuild/protobuf": { + "optional": true + } + } + }, + "node_modules/@bufbuild/protoplugin": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protoplugin/-/protoplugin-1.3.0.tgz", + "integrity": "sha512-zye8CfJb9VWzaHR/f1qcEkddaRh9De+u6fORsj92Ten8EJUcyhiY5BivET+RMTissAKXKrp/f2zSBCV0dlFxPw==", + "dependencies": { + "@bufbuild/protobuf": "1.3.0", + "@typescript/vfs": "^1.4.0", + "typescript": "4.5.2" + } + }, + "node_modules/@typescript/vfs": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.4.0.tgz", + "integrity": "sha512-Pood7yv5YWMIX+yCHo176OnF8WUlKGImFG7XlsuH14Zb1YN5+dYD3uUtS7lqZtsH7tAveNUi2NzdpQCN0yRbaw==", + "dependencies": { + "debug": "^4.1.1" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/typescript": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz", + "integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + } + } +} diff --git a/plugins/bufbuild/es/v1.3.0/package.json b/plugins/bufbuild/es/v1.3.0/package.json new file mode 100644 index 000000000..f1e40fa77 --- /dev/null +++ b/plugins/bufbuild/es/v1.3.0/package.json @@ -0,0 +1,7 @@ +{ + "name": "plugins-bufbuild-protobuf-es", + "version": "1.3.0", + "dependencies": { + "@bufbuild/protoc-gen-es": "1.3.0" + } +} diff --git a/tests/testdata/buf.build/bufbuild/es/v1.3.0/eliza/plugin.sum b/tests/testdata/buf.build/bufbuild/es/v1.3.0/eliza/plugin.sum new file mode 100644 index 000000000..bbeccafb4 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/es/v1.3.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:EtlxDxG0RxqxpuCa/ZMlxJUev5pwltgbGb07BPym3+U= diff --git a/tests/testdata/buf.build/bufbuild/es/v1.3.0/petapis/plugin.sum b/tests/testdata/buf.build/bufbuild/es/v1.3.0/petapis/plugin.sum new file mode 100644 index 000000000..f897baf7b --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/es/v1.3.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:ITl4BZJsHgNAA+d1F82/wzsOhl6jpIgtBCRS+bCY7kc= From d4ed7d4c5ff3d128701ce5020e4b462f7f3062eb Mon Sep 17 00:00:00 2001 From: Mike Fridman Date: Mon, 17 Jul 2023 09:25:55 -0400 Subject: [PATCH 2/2] Add community/stephenh-ts-proto v1.155.1 --- .../stephenh-ts-proto/v1.155.1/.dockerignore | 3 + .../stephenh-ts-proto/v1.155.1/Dockerfile | 11 ++ .../v1.155.1/buf.plugin.yaml | 9 + .../v1.155.1/package-lock.json | 163 ++++++++++++++++++ .../stephenh-ts-proto/v1.155.1/package.json | 7 + .../v1.155.1/eliza/plugin.sum | 1 + .../v1.155.1/petapis/plugin.sum | 1 + 7 files changed, 195 insertions(+) create mode 100644 plugins/community/stephenh-ts-proto/v1.155.1/.dockerignore create mode 100644 plugins/community/stephenh-ts-proto/v1.155.1/Dockerfile create mode 100644 plugins/community/stephenh-ts-proto/v1.155.1/buf.plugin.yaml create mode 100644 plugins/community/stephenh-ts-proto/v1.155.1/package-lock.json create mode 100644 plugins/community/stephenh-ts-proto/v1.155.1/package.json create mode 100644 tests/testdata/buf.build/community/stephenh-ts-proto/v1.155.1/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/community/stephenh-ts-proto/v1.155.1/petapis/plugin.sum diff --git a/plugins/community/stephenh-ts-proto/v1.155.1/.dockerignore b/plugins/community/stephenh-ts-proto/v1.155.1/.dockerignore new file mode 100644 index 000000000..771bbbaa9 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v1.155.1/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!package*.json diff --git a/plugins/community/stephenh-ts-proto/v1.155.1/Dockerfile b/plugins/community/stephenh-ts-proto/v1.155.1/Dockerfile new file mode 100644 index 000000000..e69de7eee --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v1.155.1/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1.4 +FROM node:18.16.1-alpine3.18 AS build +WORKDIR /app +COPY --link package*.json . +RUN npm ci +RUN sed -i -e 's|/usr/bin/env node|/nodejs/bin/node|g' /app/node_modules/ts-proto/protoc-gen-ts_proto + +FROM gcr.io/distroless/nodejs18-debian11 +COPY --link --from=build /app /app +USER nobody +ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-ts_proto" ] diff --git a/plugins/community/stephenh-ts-proto/v1.155.1/buf.plugin.yaml b/plugins/community/stephenh-ts-proto/v1.155.1/buf.plugin.yaml new file mode 100644 index 000000000..e04cf3c1f --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v1.155.1/buf.plugin.yaml @@ -0,0 +1,9 @@ +version: v1 +name: buf.build/community/stephenh-ts-proto +plugin_version: v1.155.1 +source_url: https://github.com/stephenh/ts-proto +description: An idiomatic protobuf generator for TypeScript. +output_languages: + - typescript +spdx_license_id: Apache-2.0 +license_url: https://github.com/stephenh/ts-proto/blob/v1.155.1/LICENSE diff --git a/plugins/community/stephenh-ts-proto/v1.155.1/package-lock.json b/plugins/community/stephenh-ts-proto/v1.155.1/package-lock.json new file mode 100644 index 000000000..9ff72c4d1 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v1.155.1/package-lock.json @@ -0,0 +1,163 @@ +{ + "name": "plugins-stephenh-ts-proto", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "plugins-stephenh-ts-proto", + "version": "1.0.0", + "dependencies": { + "ts-proto": "1.155.1" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + }, + "node_modules/@types/node": { + "version": "20.4.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.2.tgz", + "integrity": "sha512-Dd0BYtWgnWJKwO1jkmTrzofjK2QXXcai0dmtzvIBhcA+RsG5h8R3xlyta0kGOZRNfL9GuRtb1knmPEhQrePCEw==" + }, + "node_modules/case-anything": { + "version": "2.1.13", + "resolved": "https://registry.npmjs.org/case-anything/-/case-anything-2.1.13.tgz", + "integrity": "sha512-zlOQ80VrQ2Ue+ymH5OuM/DlDq64mEm+B9UTdHULv5osUMD6HalNTblf2b1u/m6QecjsnOkBpqVZ+XPwIVsy7Ng==", + "engines": { + "node": ">=12.13" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/dprint-node": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/dprint-node/-/dprint-node-1.0.7.tgz", + "integrity": "sha512-NTZOW9A7ipb0n7z7nC3wftvsbceircwVHSgzobJsEQa+7RnOMbhrfX5IflA6CtC4GA63DSAiHYXa4JKEy9F7cA==", + "dependencies": { + "detect-libc": "^1.0.3" + } + }, + "node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, + "node_modules/protobufjs": { + "version": "7.2.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.4.tgz", + "integrity": "sha512-AT+RJgD2sH8phPmCf7OUZR8xGdcJRga4+1cOaXJ64hvcSkVhNcRHOwIxUatPH15+nj59WAGTDv3LSGZPEQbJaQ==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/ts-poet": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/ts-poet/-/ts-poet-6.5.0.tgz", + "integrity": "sha512-44jURLT1HG6+NsDcadM826V6Ekux+wk07Go+MX5Gfx+8zcPKfUiFEtnjL9imuRVGSCRtloRLqw4bDGZVJYGZMQ==", + "dependencies": { + "dprint-node": "^1.0.7" + } + }, + "node_modules/ts-proto": { + "version": "1.155.1", + "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-1.155.1.tgz", + "integrity": "sha512-7dGkBFJu8NVl1OJbRjcKKs05hUNcLhFXTJqI5GphkmLCKoid0SBVKhW0q1j0c0LgCZB/zoFv4L5ibgFzIB6kPQ==", + "dependencies": { + "case-anything": "^2.1.13", + "protobufjs": "^7.2.4", + "ts-poet": "^6.5.0", + "ts-proto-descriptors": "1.14.0" + }, + "bin": { + "protoc-gen-ts_proto": "protoc-gen-ts_proto" + } + }, + "node_modules/ts-proto-descriptors": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/ts-proto-descriptors/-/ts-proto-descriptors-1.14.0.tgz", + "integrity": "sha512-xqLA6cBTfof+mZ/sIw/pZviyhnWWcWqRBjyjaMW5O4fIogpawT4aa0wI8rKh0rYIrQzoHxLugmFu4+rdiWaGEQ==", + "dependencies": { + "long": "^5.0.0", + "protobufjs": "^7.2.4" + } + } + } +} diff --git a/plugins/community/stephenh-ts-proto/v1.155.1/package.json b/plugins/community/stephenh-ts-proto/v1.155.1/package.json new file mode 100644 index 000000000..bb6ccf2ab --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v1.155.1/package.json @@ -0,0 +1,7 @@ +{ + "name": "plugins-stephenh-ts-proto", + "version": "1.0.0", + "dependencies": { + "ts-proto": "1.155.1" + } +} diff --git a/tests/testdata/buf.build/community/stephenh-ts-proto/v1.155.1/eliza/plugin.sum b/tests/testdata/buf.build/community/stephenh-ts-proto/v1.155.1/eliza/plugin.sum new file mode 100644 index 000000000..2e5877240 --- /dev/null +++ b/tests/testdata/buf.build/community/stephenh-ts-proto/v1.155.1/eliza/plugin.sum @@ -0,0 +1 @@ +h1:ylDnwJcGghsib//K4d4vC4z8crP6bOV8Kcf0NtH7+GY= diff --git a/tests/testdata/buf.build/community/stephenh-ts-proto/v1.155.1/petapis/plugin.sum b/tests/testdata/buf.build/community/stephenh-ts-proto/v1.155.1/petapis/plugin.sum new file mode 100644 index 000000000..48deca767 --- /dev/null +++ b/tests/testdata/buf.build/community/stephenh-ts-proto/v1.155.1/petapis/plugin.sum @@ -0,0 +1 @@ +h1:9scs+1tq9rOsU4INUYcD+X3hjHUEAPHBfqL/Hc71vk8=