diff --git a/plugins/bufbuild/es/v1.4.1/.dockerignore b/plugins/bufbuild/es/v1.4.1/.dockerignore new file mode 100644 index 000000000..771bbbaa9 --- /dev/null +++ b/plugins/bufbuild/es/v1.4.1/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!package*.json diff --git a/plugins/bufbuild/es/v1.4.1/Dockerfile b/plugins/bufbuild/es/v1.4.1/Dockerfile new file mode 100644 index 000000000..12417eb65 --- /dev/null +++ b/plugins/bufbuild/es/v1.4.1/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1.4 +FROM node:20.9.0-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/nodejs20-debian12 +COPY --link --from=build /app /app +USER nobody +ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-es" ] diff --git a/plugins/bufbuild/es/v1.4.1/buf.plugin.yaml b/plugins/bufbuild/es/v1.4.1/buf.plugin.yaml new file mode 100644 index 000000000..86154af64 --- /dev/null +++ b/plugins/bufbuild/es/v1.4.1/buf.plugin.yaml @@ -0,0 +1,18 @@ +version: v1 +name: buf.build/bufbuild/es +plugin_version: v1.4.1 +source_url: https://github.com/bufbuild/protobuf-es +integration_guide_url: https://github.com/bufbuild/protobuf-es#quickstart +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.4.1 +spdx_license_id: Apache-2.0 +license_url: https://github.com/bufbuild/protobuf-es/blob/v1.4.1/LICENSE diff --git a/plugins/bufbuild/es/v1.4.1/package-lock.json b/plugins/bufbuild/es/v1.4.1/package-lock.json new file mode 100644 index 000000000..a331d77a3 --- /dev/null +++ b/plugins/bufbuild/es/v1.4.1/package-lock.json @@ -0,0 +1,93 @@ +{ + "name": "plugins-bufbuild-protobuf-es", + "version": "1.4.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "plugins-bufbuild-protobuf-es", + "version": "1.4.1", + "dependencies": { + "@bufbuild/protoc-gen-es": "1.4.1" + } + }, + "node_modules/@bufbuild/protobuf": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.4.1.tgz", + "integrity": "sha512-4dthhwBGD9nlpY35ic8dMQC5R0dsND2b2xyeVO3qf+hBk8m7Y9dUs+SmMh6rqO2pGLUTKHefGXLDW+z19hBPdQ==" + }, + "node_modules/@bufbuild/protoc-gen-es": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@bufbuild/protoc-gen-es/-/protoc-gen-es-1.4.1.tgz", + "integrity": "sha512-YPEFzLl/RslDJXZoqI505YutOsYGIz1zGrYTltTrdgk0EZkDSAQfq6/Yu36mPkUSypHEaRSoDlrlcpthIwA19w==", + "dependencies": { + "@bufbuild/protoplugin": "1.4.1" + }, + "bin": { + "protoc-gen-es": "bin/protoc-gen-es" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@bufbuild/protobuf": "1.4.1" + }, + "peerDependenciesMeta": { + "@bufbuild/protobuf": { + "optional": true + } + } + }, + "node_modules/@bufbuild/protoplugin": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@bufbuild/protoplugin/-/protoplugin-1.4.1.tgz", + "integrity": "sha512-URC4/O5MsM94W7ed8NJMw1mUaFAKr5y0B67PMjhBdhVcDi6p8be76wz9+xW6/B6dMzlO+SpnicFYc9fEhLcQIw==", + "dependencies": { + "@bufbuild/protobuf": "1.4.1", + "@typescript/vfs": "^1.4.0", + "typescript": "4.5.2" + } + }, + "node_modules/@typescript/vfs": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.5.0.tgz", + "integrity": "sha512-AJS307bPgbsZZ9ggCT3wwpg3VbTKMFNHfaY/uF0ahSkYYrPF2dSSKDNIDIQAHm9qJqbLvCsSJH7yN4Vs/CsMMg==", + "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.4.1/package.json b/plugins/bufbuild/es/v1.4.1/package.json new file mode 100644 index 000000000..fe6edda01 --- /dev/null +++ b/plugins/bufbuild/es/v1.4.1/package.json @@ -0,0 +1,7 @@ +{ + "name": "plugins-bufbuild-protobuf-es", + "version": "1.4.1", + "dependencies": { + "@bufbuild/protoc-gen-es": "1.4.1" + } +} diff --git a/tests/testdata/buf.build/bufbuild/es/v1.4.1/eliza/plugin.sum b/tests/testdata/buf.build/bufbuild/es/v1.4.1/eliza/plugin.sum new file mode 100644 index 000000000..3bf0319f8 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/es/v1.4.1/eliza/plugin.sum @@ -0,0 +1 @@ +h1:D1QptvDdJj/MGNlC9MHxm0oGIZASFGKjD32/9sKxkZU= diff --git a/tests/testdata/buf.build/bufbuild/es/v1.4.1/petapis/plugin.sum b/tests/testdata/buf.build/bufbuild/es/v1.4.1/petapis/plugin.sum new file mode 100644 index 000000000..c9b5549b2 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/es/v1.4.1/petapis/plugin.sum @@ -0,0 +1 @@ +h1:QWNOxtR36Ljfm8G1Yt+yVJ9sqp3NUzxyLiYNKxs0c/M=