Skip to content

Commit

Permalink
chore: update packages to use @launchbadge forks
Browse files Browse the repository at this point in the history
  • Loading branch information
mehcode committed Aug 23, 2022
1 parent 7aa864d commit 0a3899b
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions cli/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "protobufjs-cli",
"name": "@launchbadge/protobufjs-cli",
"description": "Translates between file formats and generates static code as well as TypeScript definitions.",
"version": "1.0.0",
"author": "Daniel Wirtz <[email protected]>",
Expand All @@ -18,7 +18,7 @@
"pbts": "bin/pbts"
},
"peerDependencies": {
"protobufjs": "^7.0.0"
"@launchbadge/protobufjs": "^7.0.0"
},
"dependencies": {
"chalk": "^4.0.0",
Expand All @@ -33,6 +33,6 @@
"uglify-js": "^3.7.7"
},
"devDependencies": {
"protobufjs": "file:.."
"@launchbadge/protobufjs": "file:.."
}
}
2 changes: 1 addition & 1 deletion cli/pbjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var path = require("path"),
pkg = require("./package.json"),
util = require("./util"),
glob = require("glob"),
protobuf = require("protobufjs");
protobuf = require("@launchbadge/protobufjs");

var targets = util.requireAll("./targets");

Expand Down
2 changes: 1 addition & 1 deletion cli/targets/json-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = json_module;

var util = require("../util");

var protobuf = require("protobufjs");
var protobuf = require("@launchbadge/protobufjs");

json_module.description = "JSON representation as a module";

Expand Down
2 changes: 1 addition & 1 deletion cli/targets/proto.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = proto_target;

proto_target.private = true;

var protobuf = require("protobufjs");
var protobuf = require("@launchbadge/protobufjs");

var Namespace = protobuf.Namespace,
Enum = protobuf.Enum,
Expand Down
2 changes: 1 addition & 1 deletion cli/targets/proto2.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
module.exports = proto2_target;

var protobuf = require("protobufjs");
var protobuf = require("@launchbadge/protobufjs");

proto2_target.description = "Protocol Buffers, Version 2";

Expand Down
2 changes: 1 addition & 1 deletion cli/targets/proto3.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
module.exports = proto3_target;

var protobuf = require("protobufjs");
var protobuf = require("@launchbadge/protobufjs");

proto3_target.description = "Protocol Buffers, Version 3";

Expand Down
2 changes: 1 addition & 1 deletion cli/targets/static-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = static_module_target;
// - AMD and global scope depend on the full library for now.

var util = require("../util"),
protobuf = require("protobufjs");
protobuf = require("@launchbadge/protobufjs");

static_module_target.description = "Static code without reflection as a module";

Expand Down
2 changes: 1 addition & 1 deletion cli/targets/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var UglifyJS = require("uglify-js"),
espree = require("espree"),
escodegen = require("escodegen"),
estraverse = require("estraverse"),
protobuf = require("protobufjs");
protobuf = require("@launchbadge/protobufjs");

var Type = protobuf.Type,
Service = protobuf.Service,
Expand Down
2 changes: 1 addition & 1 deletion cli/util.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
var fs = require("fs"),
path = require("path"),
protobuf = require("protobufjs");
protobuf = require("@launchbadge/protobufjs");

function basenameCompare(a, b) {
var aa = String(a).replace(/\.\w+$/, "").split(/(-?\d*\.?\d+)/g),
Expand Down
2 changes: 1 addition & 1 deletion lib/fetch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module.exports = fetch;

var asPromise = require("@protobufjs/aspromise"),
inquire = require("@protobufjs/inquire");
inquire = require("@launchbadge/protobufjs-inquire");

var fs = inquire("fs");

Expand Down
2 changes: 1 addition & 1 deletion lib/inquire/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@protobufjs/inquire",
"name": "@launchbadge/protobufjs-inquire",
"description": "Requires a module only if available.",
"version": "1.1.0",
"author": "Daniel Wirtz <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "protobufjs",
"name": "@launchbadge/protobufjs",
"version": "7.0.0",
"versionScheme": "~",
"description": "Protocol Buffers for JavaScript (& TypeScript).",
Expand Down Expand Up @@ -50,7 +50,7 @@
"@protobufjs/eventemitter": "^1.1.0",
"@protobufjs/fetch": "^1.1.0",
"@protobufjs/float": "^1.0.2",
"@protobufjs/inquire": "^1.1.0",
"@launchbadge/protobufjs-inquire": "^1.1.0",
"@protobufjs/path": "^1.1.2",
"@protobufjs/pool": "^1.1.0",
"@protobufjs/utf8": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/util/minimal.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ util.EventEmitter = require("@protobufjs/eventemitter");
util.float = require("@protobufjs/float");

// requires modules optionally and hides the call from bundlers
util.inquire = require("@protobufjs/inquire");
util.inquire = require("@launchbadge/protobufjs-inquire");

// converts to / from utf8 encoded strings
util.utf8 = require("@protobufjs/utf8");
Expand Down

0 comments on commit 0a3899b

Please sign in to comment.