@icazemier/gibbons 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { Buffer } from "node:buffer";
1
2
  /**
2
3
  * A Gibbon
3
4
  * @param {ArrayBuffer} arrayBuffer - allocate this Gibbon with some working memory
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Gibbon = void 0;
4
+ const node_buffer_1 = require("node:buffer");
4
5
  const gibbon_processor_js_1 = require("./gibbon-processor.js");
5
6
  /**
6
7
  * A Gibbon
@@ -396,7 +397,7 @@ class Gibbon {
396
397
  * @returns {Gibbon}
397
398
  */
398
399
  static decode(data) {
399
- if (data instanceof Buffer) {
400
+ if (data instanceof node_buffer_1.Buffer) {
400
401
  return Gibbon.fromBuffer(data);
401
402
  }
402
403
  if (typeof data === "string") {
@@ -421,7 +422,7 @@ class Gibbon {
421
422
  * @returns {Buffer}
422
423
  */
423
424
  toBuffer() {
424
- return Buffer.from(this.arrayBuffer);
425
+ return node_buffer_1.Buffer.from(this.arrayBuffer);
425
426
  }
426
427
  static fromBuffer(buffer) {
427
428
  const arrayBuffer = new ArrayBuffer(buffer.length);
@@ -1,3 +1,4 @@
1
+ import { Buffer } from "node:buffer";
1
2
  /**
2
3
  * A Gibbon
3
4
  * @param {ArrayBuffer} arrayBuffer - allocate this Gibbon with some working memory
@@ -1,3 +1,4 @@
1
+ import { Buffer } from "node:buffer";
1
2
  import { GibbonProcessor } from "./gibbon-processor.js";
2
3
  /**
3
4
  * A Gibbon
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@icazemier/gibbons",
3
3
  "type": "module",
4
4
  "private": false,
5
- "version": "6.0.0",
5
+ "version": "6.0.1",
6
6
  "description": "Gibbons is a Node.js module which helps in managing user groups and user permissions with `bitwise` efficiency.",
7
7
  "contributors": [
8
8
  {