Skip to content

Commit

Permalink
Bump prettier from 3.0.3 to 3.1.0 (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Dec 1, 2023
1 parent c3e422f commit a2c4a9f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 17 deletions.
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-n": "^16.3.1",
"jest": "^29.7.0",
"prettier": "^3.0.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2"
},
"//": "avoid hoisting, see packages/protoplugin/src/ecmascript/transpile.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/protobuf/src/create-descriptor-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export function createDescriptorSet(
input instanceof FileDescriptorSet
? input.file
: input instanceof Uint8Array
? FileDescriptorSet.fromBinary(input).file
: input;
? FileDescriptorSet.fromBinary(input).file
: input;
const files = fileDescriptors.map((proto) => newFile(proto, cart));
return { files, ...cart };
}
Expand Down
4 changes: 2 additions & 2 deletions packages/protobuf/src/private/json-format-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ export function makeJsonFormatCommon(
? jsonMapKey == "true"
? true
: jsonMapKey == "false"
? false
: jsonMapKey
? false
: jsonMapKey
: jsonMapKey,
LongType.BIGINT,
).toString()
Expand Down
1 change: 1 addition & 0 deletions packages/protoplugin/src/ecmascript/custom-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export function findCustomEnumOption(
return findCustomScalarOption(desc, extensionNumber, ScalarType.INT32);
}

// prettier-ignore
/**
* ScalarValue is a conditional type that pairs a ScalarType value with its concrete type.
*/
Expand Down
12 changes: 3 additions & 9 deletions packages/upstream-protobuf/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,7 @@ export class UpstreamProtobuf {
}
break;
}
const url = `https://github.com/protocolbuffers/protobuf/releases/download/v${
this.#version
}/protoc-${this.#version}-${build}.zip`;
const url = `https://github.com/protocolbuffers/protobuf/releases/download/v${this.#version}/protoc-${this.#version}-${build}.zip`;
return this.#download(url, "protoc.zip");
}

Expand Down Expand Up @@ -413,19 +411,15 @@ export class UpstreamProtobuf {
`Unable to find conformance runner binary release for ${os.platform()} / ${os.arch()}`,
);
}
const url = `https://github.com/bufbuild/protobuf-conformance/releases/download/v${
this.#version
}/conformance_test_runner-${this.#version}-${build}.zip`;
const url = `https://github.com/bufbuild/protobuf-conformance/releases/download/v${this.#version}/conformance_test_runner-${this.#version}-${build}.zip`;
return this.#download(url, "conformance_test_runner.zip");
}

/**
* @return {Promise<string>}
*/
async #downloadProtobufSource() {
const url = `https://github.com/protocolbuffers/protobuf/releases/download/v${
this.#version
}/protobuf-${this.#version}.zip`;
const url = `https://github.com/protocolbuffers/protobuf/releases/download/v${this.#version}/protobuf-${this.#version}.zip`;
return this.#download(url, "protobuf.zip");
}

Expand Down

0 comments on commit a2c4a9f

Please sign in to comment.