@peerbit/string 1.0.15 → 2.0.0
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,6 +1,6 @@
|
|
|
1
1
|
import { Change, Log } from "@peerbit/log";
|
|
2
2
|
import { Entry } from "@peerbit/log";
|
|
3
|
-
import {
|
|
3
|
+
import { Program } from "@peerbit/program";
|
|
4
4
|
import { Range } from "./range.js";
|
|
5
5
|
export declare class StringOperation {
|
|
6
6
|
index: Range;
|
|
@@ -11,7 +11,7 @@ export declare class StringOperation {
|
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
export declare const encoding: import("@peerbit/log").Encoding<StringOperation>;
|
|
14
|
-
export declare class StringIndex extends
|
|
14
|
+
export declare class StringIndex extends Program {
|
|
15
15
|
_string: string;
|
|
16
16
|
_log: Log<StringOperation>;
|
|
17
17
|
constructor();
|
package/lib/esm/string-index.js
CHANGED
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { field, option, variant } from "@dao-xyz/borsh";
|
|
11
11
|
import { BORSH_ENCODING } from "@peerbit/log";
|
|
12
|
-
import {
|
|
12
|
+
import { Program } from "@peerbit/program";
|
|
13
13
|
import { Range } from "./range.js";
|
|
14
14
|
export let StringOperation = class StringOperation {
|
|
15
15
|
index;
|
|
@@ -34,7 +34,7 @@ StringOperation = __decorate([
|
|
|
34
34
|
__metadata("design:paramtypes", [Object])
|
|
35
35
|
], StringOperation);
|
|
36
36
|
export const encoding = BORSH_ENCODING(StringOperation);
|
|
37
|
-
export let StringIndex = class StringIndex extends
|
|
37
|
+
export let StringIndex = class StringIndex extends Program {
|
|
38
38
|
_string;
|
|
39
39
|
_log;
|
|
40
40
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-index.js","sourceRoot":"","sources":["../../src/string-index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OA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IAAI,SAAS,EAAE;QACjC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACjB,CAAC;YACA,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;gBAC1C,SAAS,CAAC,KAAK;gBACf,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACb,OAAO,CAAC,CAAC;KACT;SAAM;QACN,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;KAC7D;IACD,OAAO,CAAC,CAAC;AACV,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peerbit/string",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "String store",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@dao-xyz/borsh": "^5.1.5",
|
|
34
34
|
"@peerbit/logger": "1.0.1",
|
|
35
|
-
"@peerbit/program": "
|
|
36
|
-
"@peerbit/rpc": "
|
|
37
|
-
"@peerbit/shared-log": "^
|
|
38
|
-
"@peerbit/time": "1.0.
|
|
35
|
+
"@peerbit/program": "2.0.0",
|
|
36
|
+
"@peerbit/rpc": "2.0.0",
|
|
37
|
+
"@peerbit/shared-log": "^2.0.0",
|
|
38
|
+
"@peerbit/time": "1.0.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@peerbit/test-utils": "^1.0.
|
|
41
|
+
"@peerbit/test-utils": "^1.0.14"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "32f61ad9f3d5906e13d46f2a80f61c1826a3e817"
|
|
44
44
|
}
|
package/src/string-index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { field, option, variant } from "@dao-xyz/borsh";
|
|
2
2
|
import { BORSH_ENCODING, Change, Log } from "@peerbit/log";
|
|
3
3
|
import { Entry } from "@peerbit/log";
|
|
4
|
-
import {
|
|
4
|
+
import { Program } from "@peerbit/program";
|
|
5
5
|
import { Range } from "./range.js";
|
|
6
6
|
|
|
7
7
|
@variant(0)
|
|
@@ -22,7 +22,7 @@ export class StringOperation {
|
|
|
22
22
|
export const encoding = BORSH_ENCODING(StringOperation);
|
|
23
23
|
|
|
24
24
|
@variant("string_index")
|
|
25
|
-
export class StringIndex extends
|
|
25
|
+
export class StringIndex extends Program {
|
|
26
26
|
_string: string;
|
|
27
27
|
_log: Log<StringOperation>;
|
|
28
28
|
constructor() {
|