From 0a3899bdb5bae1dba559b72eb728c05c58a7e50d Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Tue, 23 Aug 2022 16:33:56 -0700 Subject: [PATCH] chore: update packages to use @launchbadge forks --- cli/package.json | 6 +++--- cli/pbjs.js | 2 +- cli/targets/json-module.js | 2 +- cli/targets/proto.js | 2 +- cli/targets/proto2.js | 2 +- cli/targets/proto3.js | 2 +- cli/targets/static-module.js | 2 +- cli/targets/static.js | 2 +- cli/util.js | 2 +- lib/fetch/index.js | 2 +- lib/inquire/package.json | 2 +- package.json | 4 ++-- src/util/minimal.js | 2 +- 13 files changed, 16 insertions(+), 16 deletions(-) diff --git a/cli/package.json b/cli/package.json index 453b3b9b0..128c08dac 100644 --- a/cli/package.json +++ b/cli/package.json @@ -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 ", @@ -18,7 +18,7 @@ "pbts": "bin/pbts" }, "peerDependencies": { - "protobufjs": "^7.0.0" + "@launchbadge/protobufjs": "^7.0.0" }, "dependencies": { "chalk": "^4.0.0", @@ -33,6 +33,6 @@ "uglify-js": "^3.7.7" }, "devDependencies": { - "protobufjs": "file:.." + "@launchbadge/protobufjs": "file:.." } } diff --git a/cli/pbjs.js b/cli/pbjs.js index 23750a4a8..d705fcb6a 100644 --- a/cli/pbjs.js +++ b/cli/pbjs.js @@ -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"); diff --git a/cli/targets/json-module.js b/cli/targets/json-module.js index b879026c4..11bd70b0b 100644 --- a/cli/targets/json-module.js +++ b/cli/targets/json-module.js @@ -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"; diff --git a/cli/targets/proto.js b/cli/targets/proto.js index 74abd5a14..61b2746c5 100644 --- a/cli/targets/proto.js +++ b/cli/targets/proto.js @@ -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, diff --git a/cli/targets/proto2.js b/cli/targets/proto2.js index b349f57e4..497df79ef 100644 --- a/cli/targets/proto2.js +++ b/cli/targets/proto2.js @@ -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"; diff --git a/cli/targets/proto3.js b/cli/targets/proto3.js index 397b5678f..2a2f4682e 100644 --- a/cli/targets/proto3.js +++ b/cli/targets/proto3.js @@ -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"; diff --git a/cli/targets/static-module.js b/cli/targets/static-module.js index 7d16c2f0a..bfb58bb53 100644 --- a/cli/targets/static-module.js +++ b/cli/targets/static-module.js @@ -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"; diff --git a/cli/targets/static.js b/cli/targets/static.js index 87bbaecc9..a31c577da 100644 --- a/cli/targets/static.js +++ b/cli/targets/static.js @@ -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, diff --git a/cli/util.js b/cli/util.js index 931362280..5bec92664 100644 --- a/cli/util.js +++ b/cli/util.js @@ -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), diff --git a/lib/fetch/index.js b/lib/fetch/index.js index 03431d4ca..127835c48 100644 --- a/lib/fetch/index.js +++ b/lib/fetch/index.js @@ -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"); diff --git a/lib/inquire/package.json b/lib/inquire/package.json index f2095999e..7fc310e43 100644 --- a/lib/inquire/package.json +++ b/lib/inquire/package.json @@ -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 ", diff --git a/package.json b/package.json index f46607168..fdfc1ff02 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "protobufjs", + "name": "@launchbadge/protobufjs", "version": "7.0.0", "versionScheme": "~", "description": "Protocol Buffers for JavaScript (& TypeScript).", @@ -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", diff --git a/src/util/minimal.js b/src/util/minimal.js index 05d8d2a2a..22a46101d 100644 --- a/src/util/minimal.js +++ b/src/util/minimal.js @@ -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");