Skip to content

Commit

Permalink
Extirpate
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocesar committed Dec 1, 2022
1 parent 1208726 commit 3e9fca0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@supernormalco/protobufjs",
"version": "7.1.3",
"version": "7.1.4",
"versionScheme": "~",
"description": "Protocol Buffers for JavaScript (& TypeScript).",
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
Expand Down
1 change: 0 additions & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ util.path = require("@protobufjs/path");
* Node's fs module if available.
* @type {Object.<string,*>}
*/
util.fs = util.inquire("fs");

/**
* Converts an object's values to an array.
Expand Down
26 changes: 0 additions & 26 deletions src/util/minimal.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ util.EventEmitter = require("@protobufjs/eventemitter");
// float handling accross browsers
util.float = require("@protobufjs/float");

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

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

Expand Down Expand Up @@ -119,21 +116,6 @@ util.isSet = function isSet(obj, prop) {
* @extends Uint8Array
*/

/**
* Node's Buffer class if available.
* @type {Constructor<Buffer>}
*/
util.Buffer = (function() {
try {
var Buffer = util.inquire("buffer").Buffer;
// refuse to use non-node buffers if not explicitly assigned (perf reasons):
return Buffer.prototype.utf8Write ? Buffer : /* istanbul ignore next */ null;
} catch (e) {
/* istanbul ignore next */
return null;
}
})();

// Internal alias of or polyfull for Buffer.from.
util._Buffer_from = null;

Expand Down Expand Up @@ -173,14 +155,6 @@ util.Array = typeof Uint8Array !== "undefined" ? Uint8Array /* istanbul ignore n
* @property {boolean} unsigned Whether unsigned or not
*/

/**
* Long.js's Long class if available.
* @type {Constructor<Long>}
*/
util.Long = /* istanbul ignore next */ util.global.dcodeIO && /* istanbul ignore next */ util.global.dcodeIO.Long
|| /* istanbul ignore next */ util.global.Long
|| util.inquire("long");

/**
* Regular expression used to verify 2 bit (`bool`) map keys.
* @type {RegExp}
Expand Down

0 comments on commit 3e9fca0

Please sign in to comment.