@powfix/core-js 0.21.5 → 0.21.6

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.
@@ -300,6 +300,9 @@ class UUID {
300
300
  toJSON() {
301
301
  return this.toString();
302
302
  }
303
+ toBuffer() {
304
+ return this.bytes.buffer;
305
+ }
303
306
  }
304
307
  exports.UUID = UUID;
305
308
  /* --------------------------------------------------------------------
@@ -297,6 +297,9 @@ export class UUID {
297
297
  toJSON() {
298
298
  return this.toString();
299
299
  }
300
+ toBuffer() {
301
+ return this.bytes.buffer;
302
+ }
300
303
  }
301
304
  /* --------------------------------------------------------------------
302
305
  * Regular expressions used to validate UUIDs in different string forms
@@ -144,4 +144,5 @@ export declare class UUID {
144
144
  toBytes(): Uint8Array;
145
145
  /** JSON serialization helper – returns the RFC 4122 string. */
146
146
  toJSON(): string;
147
+ toBuffer(): ArrayBufferLike;
147
148
  }
@@ -300,6 +300,9 @@ class UUID {
300
300
  toJSON() {
301
301
  return this.toString();
302
302
  }
303
+ toBuffer() {
304
+ return this.bytes.buffer;
305
+ }
303
306
  }
304
307
  exports.UUID = UUID;
305
308
  /* --------------------------------------------------------------------
@@ -297,6 +297,9 @@ export class UUID {
297
297
  toJSON() {
298
298
  return this.toString();
299
299
  }
300
+ toBuffer() {
301
+ return this.bytes.buffer;
302
+ }
300
303
  }
301
304
  /* --------------------------------------------------------------------
302
305
  * Regular expressions used to validate UUIDs in different string forms
@@ -3,8 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UUID = void 0;
4
4
  const UUID_1 = require("../../shared/utils/UUID");
5
5
  class UUID extends UUID_1.UUID {
6
- toBuffer() {
7
- return Buffer.from(this.bytes);
8
- }
9
6
  }
10
7
  exports.UUID = UUID;
@@ -300,6 +300,9 @@ class UUID {
300
300
  toJSON() {
301
301
  return this.toString();
302
302
  }
303
+ toBuffer() {
304
+ return this.bytes.buffer;
305
+ }
303
306
  }
304
307
  exports.UUID = UUID;
305
308
  /* --------------------------------------------------------------------
@@ -1,6 +1,3 @@
1
1
  import { UUID as BaseUUID } from "../../shared/utils/UUID.mjs";
2
2
  export class UUID extends BaseUUID {
3
- toBuffer() {
4
- return Buffer.from(this.bytes);
5
- }
6
3
  }
@@ -297,6 +297,9 @@ export class UUID {
297
297
  toJSON() {
298
298
  return this.toString();
299
299
  }
300
+ toBuffer() {
301
+ return this.bytes.buffer;
302
+ }
300
303
  }
301
304
  /* --------------------------------------------------------------------
302
305
  * Regular expressions used to validate UUIDs in different string forms
@@ -1,4 +1,3 @@
1
1
  import { UUID as BaseUUID } from "../../shared/utils/UUID";
2
2
  export declare class UUID extends BaseUUID {
3
- toBuffer(): Buffer;
4
3
  }
@@ -144,4 +144,5 @@ export declare class UUID {
144
144
  toBytes(): Uint8Array;
145
145
  /** JSON serialization helper – returns the RFC 4122 string. */
146
146
  toJSON(): string;
147
+ toBuffer(): ArrayBufferLike;
147
148
  }
@@ -144,4 +144,5 @@ export declare class UUID {
144
144
  toBytes(): Uint8Array;
145
145
  /** JSON serialization helper – returns the RFC 4122 string. */
146
146
  toJSON(): string;
147
+ toBuffer(): ArrayBufferLike;
147
148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powfix/core-js",
3
- "version": "0.21.5",
3
+ "version": "0.21.6",
4
4
  "description": "core package",
5
5
  "author": "Kwon Kyung-Min <powfix@gmail.com>",
6
6
  "private": false,