Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rapiq

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rapiq - npm Package Compare versions

Comparing version 0.8.1 to 0.9.0

dist/errors/base.d.ts

1

dist/index.d.ts
export * from './build';
export * from './errors';
export * from './parameter';

@@ -3,0 +4,0 @@ export * from './parse';

export * from './build';
export * from './constants';
export * from './errors';
export * from './parse';

@@ -4,0 +5,0 @@ export * from './type';

@@ -16,2 +16,3 @@ import type { Flatten, KeyWithOptionalPrefix, NestedKeys, OnlyObject, SimpleKeys } from '../../type';

defaultPath?: string;
throwOnFailure?: boolean;
relations?: RelationsParseOutput;

@@ -18,0 +19,0 @@ };

3

dist/parameter/fields/utils/input.d.ts

@@ -1,5 +0,2 @@

import type { FieldsInputTransformed } from '../type';
export declare function removeFieldInputOperator(field: string): string;
export declare function transformFieldsInput(fields: string[]): FieldsInputTransformed;
export declare function parseFieldsInput(input: unknown): string[];
//# sourceMappingURL=input.d.ts.map
export * from './constants';
export * from './build';
export * from './errors';
export * from './parse';

@@ -4,0 +5,0 @@ export * from './type';

@@ -28,2 +28,3 @@ import type { Flatten, NestedKeys, ObjectLiteral, OnlyObject, OnlyScalar, TypeFromNestedKeyPath } from '../../type';

defaultPath?: string;
throwOnFailure?: boolean;
relations?: RelationsParseOutput;

@@ -30,0 +31,0 @@ validate?: FiltersValidatorOption<NestedKeys<T>>;

export * from './build';
export * from './errors';
export * from './parse';
export * from './type';
//# sourceMappingURL=index.d.ts.map

@@ -7,2 +7,3 @@ export type PaginationBuildInput = {

maxLimit?: number;
throwOnFailure?: boolean;
};

@@ -9,0 +10,0 @@ export type PaginationParseOutput = {

export * from './build';
export * from './errors';
export * from './parse';
export * from './type';
//# sourceMappingURL=index.d.ts.map

@@ -7,5 +7,6 @@ import type { Flatten, NestedResourceKeys, OnlyObject } from '../../type';

allowed?: NestedResourceKeys<T>[];
includeParents?: boolean | string[] | string;
mapping?: Record<string, string>;
pathMapping?: Record<string, string>;
includeParents?: boolean | string[] | string;
throwOnFailure?: boolean;
};

@@ -12,0 +13,0 @@ export type RelationsParseOutputElement = {

export * from './build';
export * from './errors';
export * from './parse';
export * from './type';
//# sourceMappingURL=index.d.ts.map

@@ -24,2 +24,3 @@ import type { Flatten, KeyWithOptionalPrefix, NestedKeys, OnlyObject, SimpleKeys } from '../../type';

defaultPath?: string;
throwOnFailure?: boolean;
relations?: RelationsParseOutput;

@@ -26,0 +27,0 @@ };

@@ -11,2 +11,3 @@ import type { Parameter, URLParameter } from '../constants';

defaultPath?: string;
throwOnFailure?: boolean;
};

@@ -13,0 +14,0 @@ export type ParseOutput = {

export * from './array';
export * from './mapping';
export * from './field';
export * from './key';

@@ -8,5 +7,4 @@ export * from './merge';

export * from './object';
export * from './simple';
export * from './type';
export * from './url';
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,3 @@

export declare function buildKeyWithPrefix(name: string, prefix?: string): string;
import type { KeyDetails } from './type';
export declare function parseKey(field: string): KeyDetails;
//# sourceMappingURL=key.d.ts.map

@@ -0,1 +1,2 @@

export declare function isObject(item: unknown): item is Record<string, any>;
export declare function hasOwnProperty<X extends Record<string, any>, Y extends PropertyKey>(obj: X, prop: Y): obj is X & Record<Y, unknown>;

@@ -2,0 +3,0 @@ type Options = {

import type { RelationsParseOutput } from '../parameter';
import type { FieldDetails } from './type';
export declare function isFieldNonRelational(field: string | FieldDetails): boolean;
export declare function isFieldPathAllowedByRelations(field: string | Pick<FieldDetails, 'path'>, includes?: RelationsParseOutput): boolean;
export declare function buildFieldWithPath(field: string | FieldDetails, path?: string): string;
import type { KeyDetails } from './type';
export declare function isPathAllowedByRelations(path?: string, includes?: RelationsParseOutput): boolean;
export declare function buildKeyWithPath(input: KeyDetails): string;
export declare function buildKeyWithPath(key: string, path: string): string;
//# sourceMappingURL=relation.d.ts.map

@@ -1,2 +0,2 @@

export type FieldDetails = {
export type KeyDetails = {
name: string;

@@ -3,0 +3,0 @@ path?: string;

{
"name": "rapiq",
"version": "0.8.1",
"version": "0.9.0",
"description": "A tiny library which provides utility types/functions for request and response query handling.",

@@ -64,25 +64,26 @@ "main": "dist/index.cjs",

"dependencies": {
"ebec": "^1.1.0",
"smob": "^1.4.0"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.0.2",
"@swc/core": "^1.3.60",
"@rollup/plugin-node-resolve": "^15.1.0",
"@swc/core": "^1.3.67",
"@swc/jest": "^0.2.26",
"@tada5hi/commitlint-config": "^1.0.2",
"@tada5hi/eslint-config-typescript": "^1.1.9",
"@tada5hi/semantic-release": "^0.1.0",
"@tada5hi/tsconfig": "^0.4.0",
"@types/jest": "^27.5.0",
"@tada5hi/commitlint-config": "^1.1.0",
"@tada5hi/eslint-config-typescript": "^1.2.0",
"@tada5hi/semantic-release": "^0.2.0",
"@tada5hi/tsconfig": "^0.5.0",
"@types/jest": "^29.5.2",
"@types/node": "^20.2.5",
"cross-env": "^7.0.3",
"eslint": "^8.41.0",
"eslint": "^8.44.0",
"husky": "^8.0.3",
"jest": "^27.5.1",
"jest": "^29.5.0",
"rimraf": "^5.0.1",
"rollup": "^3.23.0",
"rollup": "^3.26.0",
"semantic-release": "^19.0.5",
"typescript": "^5.0.4",
"vitepress": "^1.0.0-beta.1",
"typescript": "^5.1.6",
"vitepress": "^1.0.0-beta.5",
"vue": "^3.3.3"
}
}

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

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

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

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

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