@adobe/data 0.9.6 → 0.9.7
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/package.json +1 -1
- package/service/index.d.ts +1 -0
- package/service/is-data-service.d.ts +11 -0
- package/service/is-data-service.js +2 -0
- package/service/is-data-service.js.map +1 -0
- package/service/is-service.js.map +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/typed-buffer/public.d.ts +2 -0
- package/typed-buffer/public.js +4 -0
- package/typed-buffer/public.js.map +1 -0
- package/typed-buffer/typed-buffer.d.ts +8 -0
- package/typed-buffer/typed-buffer.js +8 -0
- package/typed-buffer/typed-buffer.js.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.js","sourceRoot":"","sources":["../../src/typed-buffer/public.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,iBAAiB,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TypedArray } from "../internal/typed-array/index.js";
|
|
2
2
|
import { Schema } from "../schema/index.js";
|
|
3
|
+
import { typedBufferEquals } from "./typed-buffer-equals.js";
|
|
3
4
|
export type TypedBufferType = "array" | "const" | "number" | "struct";
|
|
4
5
|
export interface ReadonlyTypedBuffer<T> {
|
|
5
6
|
readonly type: TypedBufferType;
|
|
@@ -28,4 +29,11 @@ export declare abstract class TypedBuffer<T> implements ReadonlyTypedBuffer<T> {
|
|
|
28
29
|
abstract set(index: number, value: T): void;
|
|
29
30
|
abstract copy(): TypedBuffer<T>;
|
|
30
31
|
abstract isDefault(index: number): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Checks if two TypedBuffer instances are deeply equal.
|
|
34
|
+
* @param a The first TypedBuffer.
|
|
35
|
+
* @param b The second TypedBuffer.
|
|
36
|
+
* @returns True if the buffers are deeply equal, false otherwise.
|
|
37
|
+
*/
|
|
38
|
+
static equals: typeof typedBufferEquals;
|
|
31
39
|
}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
import { typedBufferEquals } from "./typed-buffer-equals.js";
|
|
1
2
|
export class TypedBuffer {
|
|
2
3
|
constructor(schema) {
|
|
3
4
|
this.schema = schema;
|
|
4
5
|
this.__brand = "TypedBuffer";
|
|
5
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* Checks if two TypedBuffer instances are deeply equal.
|
|
9
|
+
* @param a The first TypedBuffer.
|
|
10
|
+
* @param b The second TypedBuffer.
|
|
11
|
+
* @returns True if the buffers are deeply equal, false otherwise.
|
|
12
|
+
*/
|
|
13
|
+
static { this.equals = typedBufferEquals; }
|
|
6
14
|
}
|
|
7
15
|
//# sourceMappingURL=typed-buffer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-buffer.js","sourceRoot":"","sources":["../../src/typed-buffer/typed-buffer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typed-buffer.js","sourceRoot":"","sources":["../../src/typed-buffer/typed-buffer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAc7D,MAAM,OAAgB,WAAW;IAI7B,YAA4B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QAF1B,YAAO,GAAG,aAAa,CAAC;IAGxC,CAAC;IAiBD;;;;;OAKG;aACI,WAAM,GAAG,iBAAiB,AAApB,CAAqB"}
|