Skip to content

Commit 0a2561f

Browse files
committed
Use official patched protobufjs as the PR was merged
protobufjs/protobuf.js#1744
1 parent 65bd244 commit 0a2561f

File tree

7 files changed

+30
-30
lines changed

7 files changed

+30
-30
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cldcvr/protobufjs-typescript-gen",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"main": "dist/index.js",
55
"author": "Nikhil Verma <[email protected]>",
66
"license": "MIT",
@@ -25,7 +25,7 @@
2525
"typescript": "^4.7.3"
2626
},
2727
"dependencies": {
28-
"@cldcvr/protobufjs": "^6.11.4",
28+
"protobufjs": "^7.0.0",
2929
"fs-extra": "^10.1.0",
3030
"glob": "^8.0.3",
3131
"prettier": "^2.6.2"

src/enums.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Enum } from '@cldcvr/protobufjs';
1+
import { Enum } from 'protobufjs';
22
import { getCommentBlock } from './utils';
33

44
export function getEnumCode(enum_: Enum) {

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import protobuf, { Enum, Namespace, Service, Type } from '@cldcvr/protobufjs';
1+
import protobuf, { Enum, Namespace, Service, Type } from 'protobufjs';
22
import { emptyDirSync, outputFileSync } from 'fs-extra';
33
import { glob } from 'glob';
44
import path from 'path';

src/services.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Method, Service, Type } from '@cldcvr/protobufjs';
1+
import { Method, Service, Type } from 'protobufjs';
22
import { getCommentBlock, getImport, Import, toLowerCaseFirstLetter } from './utils';
33

44
export function getServiceInfo(service: Service) {

src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Type } from '@cldcvr/protobufjs';
1+
import { Type } from 'protobufjs';
22
import { getEnumCode } from './enums';
33
import { ProtoGenOptions } from './options';
44
import {

src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Enum, FieldBase, Namespace, ReflectionObject, Service, Type } from '@cldcvr/protobufjs';
1+
import { Enum, FieldBase, Namespace, ReflectionObject, Service, Type } from 'protobufjs';
22
import { ProtoGenOptions } from './options';
33

44
export function getCommentBlock(object: ReflectionObject) {

yarn.lock

+23-23
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,6 @@
22
# yarn lockfile v1
33

44

5-
"@cldcvr/protobufjs@^6.11.4":
6-
version "6.11.4"
7-
resolved "https://registry.yarnpkg.com/@cldcvr/protobufjs/-/protobufjs-6.11.4.tgz#04677a9de822b9b81dcd0efa5c3069e947d2ef59"
8-
integrity sha512-O3Ib9vvfroQQs3PvMu7hymd8030Ay3b013HdlqE++R+/Teca+B6NG9uyVYewXRSYYH0ctUQo1U2pAskXHXsgHQ==
9-
dependencies:
10-
"@protobufjs/aspromise" "^1.1.2"
11-
"@protobufjs/base64" "^1.1.2"
12-
"@protobufjs/codegen" "^2.0.4"
13-
"@protobufjs/eventemitter" "^1.1.0"
14-
"@protobufjs/fetch" "^1.1.0"
15-
"@protobufjs/float" "^1.0.2"
16-
"@protobufjs/inquire" "^1.1.0"
17-
"@protobufjs/path" "^1.1.2"
18-
"@protobufjs/pool" "^1.1.0"
19-
"@protobufjs/utf8" "^1.1.0"
20-
"@types/long" "^4.0.1"
21-
"@types/node" ">=13.7.0"
22-
long "^4.0.0"
23-
245
"@cspotcode/source-map-support@^0.8.0":
256
version "0.8.1"
267
resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1"
@@ -810,10 +791,10 @@ lodash.merge@^4.6.2:
810791
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
811792
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
812793

813-
long@^4.0.0:
814-
version "4.0.0"
815-
resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28"
816-
integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==
794+
long@^5.0.0:
795+
version "5.2.0"
796+
resolved "https://registry.yarnpkg.com/long/-/long-5.2.0.tgz#2696dadf4b4da2ce3f6f6b89186085d94d52fd61"
797+
integrity sha512-9RTUNjK60eJbx3uz+TEGF7fUr29ZDxR5QzXcyDpeSfeH28S9ycINflOgOlppit5U+4kNTe83KQnMEerw7GmE8w==
817798

818799
lru-cache@^6.0.0:
819800
version "6.0.0"
@@ -920,6 +901,25 @@ prettier@^2.6.2:
920901
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.6.2.tgz#e26d71a18a74c3d0f0597f55f01fb6c06c206032"
921902
integrity sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==
922903

904+
protobufjs@^7.0.0:
905+
version "7.0.0"
906+
resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-7.0.0.tgz#8c678e1351fd926178fce5a4213913e8d990974f"
907+
integrity sha512-ffNIEm+quOcYtQvHdW406v1NQmZSuqVklxsXk076BtuFnlYZfigLU+JOMrTD8TUOyqHYbRI/fSVNvgd25YeN3w==
908+
dependencies:
909+
"@protobufjs/aspromise" "^1.1.2"
910+
"@protobufjs/base64" "^1.1.2"
911+
"@protobufjs/codegen" "^2.0.4"
912+
"@protobufjs/eventemitter" "^1.1.0"
913+
"@protobufjs/fetch" "^1.1.0"
914+
"@protobufjs/float" "^1.0.2"
915+
"@protobufjs/inquire" "^1.1.0"
916+
"@protobufjs/path" "^1.1.2"
917+
"@protobufjs/pool" "^1.1.0"
918+
"@protobufjs/utf8" "^1.1.0"
919+
"@types/long" "^4.0.1"
920+
"@types/node" ">=13.7.0"
921+
long "^5.0.0"
922+
923923
punycode@^2.1.0:
924924
version "2.1.1"
925925
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"

0 commit comments

Comments
 (0)