New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@peerbit/indexer-interface

Package Overview
Dependencies
Maintainers
0
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peerbit/indexer-interface - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4-03f5b18

5

dist/src/query.d.ts

@@ -25,2 +25,7 @@ import { IntegerValue } from "./id.js";

}
export type SortLike = string | {
key: string[] | string;
direction?: SortDirection | "asc" | "desc";
};
export declare const toSort: (sort?: SortLike | SortLike[]) => Sort[];
export declare abstract class LogicalQuery extends Query {

@@ -27,0 +32,0 @@ }

@@ -88,2 +88,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

export { Sort };
export const toSort = (sort) => {
if (!sort) {
return [];
}
if (typeof sort === "string") {
return [new Sort({ key: sort })];
}
if (Array.isArray(sort)) {
return sort.map((x) => {
if (typeof x === "string") {
return new Sort({ key: x });
}
return new Sort({ key: x.key, direction: x.direction });
});
}
return [new Sort({ key: sort.key, direction: sort.direction })];
};
let LogicalQuery = class LogicalQuery extends Query {

@@ -90,0 +107,0 @@ };

126

package.json
{
"name": "@peerbit/indexer-interface",
"version": "2.0.3",
"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.3"
}
"name": "@peerbit/indexer-interface",
"version": "2.0.4-03f5b18",
"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.3-03f5b18"
}
}

@@ -83,2 +83,23 @@ import { deserialize, field, serialize, variant, vec } from "@dao-xyz/borsh";

export type SortLike =
| string
| { key: string[] | string; direction?: SortDirection | "asc" | "desc" };
export const toSort = (sort?: SortLike | SortLike[]): Sort[] => {
if (!sort) {
return [];
}
if (typeof sort === "string") {
return [new Sort({ key: sort })];
}
if (Array.isArray(sort)) {
return sort.map((x) => {
if (typeof x === "string") {
return new Sort({ key: x });
}
return new Sort({ key: x.key, direction: x.direction });
});
}
return [new Sort({ key: sort.key, direction: sort.direction })];
};
@variant(1)

@@ -85,0 +106,0 @@ export abstract class LogicalQuery extends Query {}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc