@powfix/core-js 0.18.2 → 0.18.3

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.
@@ -10,7 +10,7 @@ export declare class UUID {
10
10
  static nil(): UUID;
11
11
  static equals(...uuids: UUID[]): boolean;
12
12
  static compare(uuid1: UUID, uuid2: UUID): number;
13
- private readonly bytes;
13
+ protected readonly bytes: Uint8Array;
14
14
  private _str?;
15
15
  private _hex?;
16
16
  constructor(input: string | ArrayBufferView);
@@ -3,5 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UUID = void 0;
4
4
  const UUID_1 = require("../../browser/utils/UUID");
5
5
  class UUID extends UUID_1.UUID {
6
+ toBuffer() {
7
+ return Buffer.from(this.bytes);
8
+ }
6
9
  }
7
10
  exports.UUID = UUID;
@@ -1,3 +1,6 @@
1
1
  import { UUID as BaseUUID } from "../../browser/utils/UUID.mjs";
2
2
  export class UUID extends BaseUUID {
3
+ toBuffer() {
4
+ return Buffer.from(this.bytes);
5
+ }
3
6
  }
@@ -10,7 +10,7 @@ export declare class UUID {
10
10
  static nil(): UUID;
11
11
  static equals(...uuids: UUID[]): boolean;
12
12
  static compare(uuid1: UUID, uuid2: UUID): number;
13
- private readonly bytes;
13
+ protected readonly bytes: Uint8Array;
14
14
  private _str?;
15
15
  private _hex?;
16
16
  constructor(input: string | ArrayBufferView);
@@ -1,3 +1,4 @@
1
1
  import { UUID as BaseUUID } from "../../browser/utils/UUID";
2
2
  export declare class UUID extends BaseUUID {
3
+ toBuffer(): Buffer;
3
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powfix/core-js",
3
- "version": "0.18.2",
3
+ "version": "0.18.3",
4
4
  "description": "core package",
5
5
  "author": "Kwon Kyung-Min <powfix@gmail.com>",
6
6
  "private": false,