@peerbit/indexer-interface
Advanced tools
Comparing version 2.0.0 to 2.0.1-05f4bef
@@ -48,3 +48,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
if (!Number.isInteger(number) || number > 4294967295 || number < 0) { | ||
throw new Error("Number is not u32"); | ||
throw new Error("Number is not u32: " + number); | ||
} | ||
@@ -51,0 +51,0 @@ this.number = number; |
@@ -5,2 +5,3 @@ export * from "./id.js"; | ||
export * from "./utils.js"; | ||
export * from "./errors.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,2 +5,3 @@ export * from "./id.js"; | ||
export * from "./utils.js"; | ||
export * from "./errors.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -96,7 +96,7 @@ import { IntegerValue } from "./id.js"; | ||
id: string; | ||
path: string; | ||
path: string[]; | ||
query: Query[]; | ||
constructor(props: { | ||
id?: string; | ||
path: string; | ||
path: string | string[]; | ||
query: Query[] | Query | Record<string, string | number | bigint | Uint8Array | boolean | null | undefined>; | ||
@@ -103,0 +103,0 @@ }); |
@@ -318,3 +318,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
super(); | ||
this.path = props.path; | ||
this.path = Array.isArray(props.path) ? props.path : [props.path]; | ||
this.id = props.id ?? uuid(); | ||
@@ -329,4 +329,4 @@ this.query = toQuery(props.query); | ||
__decorate([ | ||
field({ type: "string" }), | ||
__metadata("design:type", String) | ||
field({ type: vec("string") }), | ||
__metadata("design:type", Array) | ||
], Nested.prototype, "path", void 0); | ||
@@ -333,0 +333,0 @@ __decorate([ |
126
package.json
{ | ||
"name": "@peerbit/indexer-interface", | ||
"version": "2.0.0", | ||
"description": "Indexer store interface", | ||
"sideEffects": false, | ||
"type": "module", | ||
"types": "./dist/src/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
], | ||
"src/*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"src", | ||
"dist", | ||
"!dist/e2e", | ||
"!dist/test", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./dist/src/index.js" | ||
} | ||
}, | ||
"eslintConfig": { | ||
"extends": "peerbit", | ||
"parserOptions": { | ||
"project": true, | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": [ | ||
"!.aegir.js", | ||
"test/ts-use", | ||
"*.d.ts" | ||
] | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"clean": "aegir clean", | ||
"build": "aegir build --no-bundle", | ||
"test": "aegir test", | ||
"lint": "aegir lint" | ||
}, | ||
"author": "dao.xyz", | ||
"license": "MIT", | ||
"dependencies": { | ||
"uuid": "^10.0.0", | ||
"@dao-xyz/borsh": "^5.2.3", | ||
"@peerbit/crypto": "^2.3.2" | ||
} | ||
"name": "@peerbit/indexer-interface", | ||
"version": "2.0.1-05f4bef", | ||
"description": "Indexer store interface", | ||
"sideEffects": false, | ||
"type": "module", | ||
"types": "./dist/src/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
], | ||
"src/*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"src", | ||
"dist", | ||
"!dist/e2e", | ||
"!dist/test", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./dist/src/index.js" | ||
} | ||
}, | ||
"eslintConfig": { | ||
"extends": "peerbit", | ||
"parserOptions": { | ||
"project": true, | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": [ | ||
"!.aegir.js", | ||
"test/ts-use", | ||
"*.d.ts" | ||
] | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"clean": "aegir clean", | ||
"build": "aegir build --no-bundle", | ||
"test": "aegir test", | ||
"lint": "aegir lint" | ||
}, | ||
"author": "dao.xyz", | ||
"license": "MIT", | ||
"dependencies": { | ||
"uuid": "^10.0.0", | ||
"@dao-xyz/borsh": "^5.2.3", | ||
"@peerbit/crypto": "2.3.2-05f4bef" | ||
} | ||
} |
@@ -38,3 +38,3 @@ import { field, variant } from "@dao-xyz/borsh"; | ||
if (!Number.isInteger(number) || number > 4294967295 || number < 0) { | ||
throw new Error("Number is not u32"); | ||
throw new Error("Number is not u32: " + number); | ||
} | ||
@@ -41,0 +41,0 @@ this.number = number; |
@@ -111,3 +111,2 @@ import type { AbstractType } from "@dao-xyz/borsh"; | ||
): IndexIterator<T, S>; | ||
getSize(): MaybePromise<number>; | ||
@@ -114,0 +113,0 @@ start(): MaybePromise<void>; |
@@ -5,1 +5,2 @@ export * from "./id.js"; | ||
export * from "./utils.js"; | ||
export * from "./errors.js"; |
@@ -259,4 +259,4 @@ import { deserialize, field, serialize, variant, vec } from "@dao-xyz/borsh"; | ||
@field({ type: "string" }) | ||
path: string; | ||
@field({ type: vec("string") }) | ||
path: string[]; | ||
@@ -268,3 +268,3 @@ @field({ type: vec(Query) }) | ||
id?: string; | ||
path: string; | ||
path: string | string[]; | ||
query: | ||
@@ -279,3 +279,3 @@ | Query[] | ||
super(); | ||
this.path = props.path; | ||
this.path = Array.isArray(props.path) ? props.path : [props.path]; | ||
this.id = props.id ?? uuid(); | ||
@@ -282,0 +282,0 @@ this.query = toQuery(props.query); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
82929
31
1827
2
+ Added@peerbit/cache@2.1.0-05f4bef(transitive)
+ Added@peerbit/crypto@2.3.2-05f4bef(transitive)
- Removed@peerbit/cache@2.1.2(transitive)
- Removed@peerbit/crypto@2.3.5(transitive)