New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bufbuild/protoc-gen-es

Package Overview
Dependencies
Maintainers
6
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bufbuild/protoc-gen-es - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

dist/cjs/package.json
{
"name": "@bufbuild/protoc-gen-es",
"version": "0.2.0",
"version": "0.2.1",
"description": "Protocol Buffers code generator for ECMAScript",

@@ -23,6 +23,6 @@ "license": "Apache-2.0",

"dependencies": {
"@bufbuild/protoplugin": "0.2.0"
"@bufbuild/protoplugin": "0.2.1"
},
"peerDependencies": {
"@bufbuild/protobuf": "0.2.0"
"@bufbuild/protobuf": "0.2.1"
},

@@ -29,0 +29,0 @@ "peerDependenciesMeta": {

@@ -18,3 +18,2 @@ "use strict";

const ecmascript_1 = require("@bufbuild/protoplugin/ecmascript");
const match_wkt_js_1 = require("./match-wkt.js");
function generateDts(schema) {

@@ -123,3 +122,3 @@ for (const file of schema.files) {

function generateWktMethods(schema, f, message) {
const ref = (0, match_wkt_js_1.matchWkt)(message);
const ref = (0, ecmascript_1.reifyWkt)(message);
if (ref === undefined) {

@@ -165,3 +164,3 @@ return;

function generateWktStaticMethods(schema, f, message) {
const ref = (0, match_wkt_js_1.matchWkt)(message);
const ref = (0, ecmascript_1.reifyWkt)(message);
if (ref === undefined) {

@@ -168,0 +167,0 @@ return;

@@ -19,3 +19,2 @@ "use strict";

const ecmascript_1 = require("@bufbuild/protoplugin/ecmascript");
const match_wkt_js_1 = require("./match-wkt.js");
function generateJs(schema) {

@@ -152,3 +151,3 @@ for (const file of schema.files) {

var _a;
const ref = (0, match_wkt_js_1.matchWkt)(message);
const ref = (0, ecmascript_1.reifyWkt)(message);
if (ref === undefined) {

@@ -183,2 +182,5 @@ return;

f.print(" }");
f.print(` if (Object.keys(json).length == 0) {`);
f.print(` return this;`);
f.print(` }`);
f.print(` const typeUrl = json["@type"];`);

@@ -506,3 +508,3 @@ f.print(` if (typeof typeUrl != "string" || typeUrl == "") {`);

function generateWktStaticMethods(schema, f, message) {
const ref = (0, match_wkt_js_1.matchWkt)(message);
const ref = (0, ecmascript_1.reifyWkt)(message);
if (ref === undefined) {

@@ -509,0 +511,0 @@ return;

@@ -19,3 +19,2 @@ "use strict";

const ecmascript_1 = require("@bufbuild/protoplugin/ecmascript");
const match_wkt_js_1 = require("./match-wkt.js");
const javascript_js_1 = require("./javascript.js");

@@ -153,3 +152,3 @@ const ecmascript_2 = require("@bufbuild/protoplugin/ecmascript");

var _a;
const ref = (0, match_wkt_js_1.matchWkt)(message);
const ref = (0, ecmascript_1.reifyWkt)(message);
if (ref === undefined) {

@@ -184,2 +183,5 @@ return;

f.print(" }");
f.print(` if (Object.keys(json).length == 0) {`);
f.print(` return this;`);
f.print(` }`);
f.print(` const typeUrl = json["@type"];`);

@@ -507,3 +509,3 @@ f.print(` if (typeof typeUrl != "string" || typeUrl == "") {`);

function generateWktStaticMethods(schema, f, message) {
const ref = (0, match_wkt_js_1.matchWkt)(message);
const ref = (0, ecmascript_1.reifyWkt)(message);
if (ref === undefined) {

@@ -510,0 +512,0 @@ return;

{
"name": "@bufbuild/protoc-gen-es",
"version": "0.2.0",
"version": "0.2.1",
"description": "Protocol Buffers code generator for ECMAScript",

@@ -23,6 +23,6 @@ "license": "Apache-2.0",

"dependencies": {
"@bufbuild/protoplugin": "0.2.0"
"@bufbuild/protoplugin": "0.2.1"
},
"peerDependencies": {
"@bufbuild/protobuf": "0.2.0"
"@bufbuild/protobuf": "0.2.1"
},

@@ -29,0 +29,0 @@ "peerDependenciesMeta": {

@@ -31,4 +31,4 @@ // Copyright 2021-2022 Buf Technologies, Inc.

makeJsDoc,
reifyWkt,
} from "@bufbuild/protoplugin/ecmascript";
import { matchWkt } from "./match-wkt.js";

@@ -149,3 +149,3 @@ export function generateDts(schema: Schema) {

function generateWktMethods(schema: Schema, f: GeneratedFile, message: DescMessage) {
const ref = matchWkt(message);
const ref = reifyWkt(message);
if (ref === undefined) {

@@ -195,3 +195,3 @@ return;

function generateWktStaticMethods(schema: Schema, f: GeneratedFile, message: DescMessage) {
const ref = matchWkt(message);
const ref = reifyWkt(message);
if (ref === undefined) {

@@ -198,0 +198,0 @@ return;

@@ -27,4 +27,4 @@ // Copyright 2021-2022 Buf Technologies, Inc.

makeJsDoc,
reifyWkt,
} from "@bufbuild/protoplugin/ecmascript";
import { matchWkt } from "./match-wkt.js";

@@ -161,3 +161,3 @@ export function generateJs(schema: Schema) {

function generateWktMethods(schema: Schema, f: GeneratedFile, message: DescMessage) {
const ref = matchWkt(message);
const ref = reifyWkt(message);
if (ref === undefined) {

@@ -195,2 +195,5 @@ return;

f.print(" }");
f.print(` if (Object.keys(json).length == 0) {`);
f.print(` return this;`);
f.print(` }`);
f.print(` const typeUrl = json["@type"];`);

@@ -519,3 +522,3 @@ f.print(` if (typeof typeUrl != "string" || typeUrl == "") {`);

function generateWktStaticMethods(schema: Schema, f: GeneratedFile, message: DescMessage) {
const ref = matchWkt(message);
const ref = reifyWkt(message);
if (ref === undefined) {

@@ -522,0 +525,0 @@ return;

@@ -32,4 +32,4 @@ // Copyright 2021-2022 Buf Technologies, Inc.

makeJsDoc,
reifyWkt,
} from "@bufbuild/protoplugin/ecmascript";
import { matchWkt } from "./match-wkt.js";
import { generateFieldInfo } from "./javascript.js";

@@ -179,3 +179,3 @@ import { literalString } from "@bufbuild/protoplugin/ecmascript";

function generateWktMethods(schema: Schema, f: GeneratedFile, message: DescMessage) {
const ref = matchWkt(message);
const ref = reifyWkt(message);
if (ref === undefined) {

@@ -219,2 +219,5 @@ return;

f.print(" }");
f.print(` if (Object.keys(json).length == 0) {`);
f.print(` return this;`);
f.print(` }`);
f.print(` const typeUrl = json["@type"];`);

@@ -543,3 +546,3 @@ f.print(` if (typeof typeUrl != "string" || typeUrl == "") {`);

function generateWktStaticMethods(schema: Schema, f: GeneratedFile, message: DescMessage) {
const ref = matchWkt(message);
const ref = reifyWkt(message);
if (ref === undefined) {

@@ -546,0 +549,0 @@ return;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc