@powfix/core-js 0.21.4 → 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.
- package/dist/browser/cjs/shared/utils/UUID.js +3 -0
- package/dist/browser/esm/shared/utils/UUID.mjs +3 -0
- package/dist/browser/types/shared/utils/UUID.d.ts +3 -2
- package/dist/cjs/shared/utils/UUID.js +3 -0
- package/dist/esm/shared/utils/UUID.mjs +3 -0
- package/dist/node/cjs/nodejs/utils/UUID.js +0 -3
- package/dist/node/cjs/shared/utils/UUID.js +3 -0
- package/dist/node/esm/nodejs/utils/UUID.mjs +0 -3
- package/dist/node/esm/shared/utils/UUID.mjs +3 -0
- package/dist/node/types/nodejs/utils/UUID.d.ts +0 -1
- package/dist/node/types/shared/utils/UUID.d.ts +3 -2
- package/dist/types/shared/utils/UUID.d.ts +3 -2
- package/package.json +1 -1
|
@@ -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
|
|
@@ -115,8 +115,8 @@ export declare class UUID {
|
|
|
115
115
|
static compare(uuid1: UuidInput, uuid2: UuidInput): number;
|
|
116
116
|
/** Raw byte representation of the UUID. */
|
|
117
117
|
readonly bytes: Uint8Array;
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
protected _str?: string;
|
|
119
|
+
protected _hex?: string;
|
|
120
120
|
/**
|
|
121
121
|
* Constructs a new {@link UUID} instance from any supported input type.
|
|
122
122
|
* @param input - The value to parse (string or ArrayBufferView).
|
|
@@ -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
|
}
|
|
@@ -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
|
|
@@ -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
|
|
@@ -115,8 +115,8 @@ export declare class UUID {
|
|
|
115
115
|
static compare(uuid1: UuidInput, uuid2: UuidInput): number;
|
|
116
116
|
/** Raw byte representation of the UUID. */
|
|
117
117
|
readonly bytes: Uint8Array;
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
protected _str?: string;
|
|
119
|
+
protected _hex?: string;
|
|
120
120
|
/**
|
|
121
121
|
* Constructs a new {@link UUID} instance from any supported input type.
|
|
122
122
|
* @param input - The value to parse (string or ArrayBufferView).
|
|
@@ -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
|
}
|
|
@@ -115,8 +115,8 @@ export declare class UUID {
|
|
|
115
115
|
static compare(uuid1: UuidInput, uuid2: UuidInput): number;
|
|
116
116
|
/** Raw byte representation of the UUID. */
|
|
117
117
|
readonly bytes: Uint8Array;
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
protected _str?: string;
|
|
119
|
+
protected _hex?: string;
|
|
120
120
|
/**
|
|
121
121
|
* Constructs a new {@link UUID} instance from any supported input type.
|
|
122
122
|
* @param input - The value to parse (string or ArrayBufferView).
|
|
@@ -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
|
}
|