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

@hulla/api-request

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hulla/api-request - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

LICENSE

22

dist/index.d.ts

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

import { Args, Fn, Resolver, Context, Call } from '@hulla/api';
type Args = readonly unknown[];
type Methods$1 = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'CONNECT' | 'TRACE';
type Fn<A extends Args, R> = (...args: A) => R;
type Context<N extends string, CN extends string, A extends Args, RR extends string = string> = {
method: CN;
type: CN extends 'call' ? 'procedure' : CN extends LowercaseMethods$1 ? 'request' : 'custom';
route: N;
routerName: RR;
args: A;
};
type ResolverArgs<CTX, R> = [R, CTX];
type Resolver<CTX, R, R2 = R> = Fn<ResolverArgs<CTX, R>, R2>;
type Call<N extends string, CN extends string, CTX, A extends Args, R, R2 = R> = {
route: N;
fn: Fn<A, R>;
resolver?: Resolver<CTX, R, R2>;
method: CN;
};
type LowercaseMethods$1 = {
[K in Methods$1]: Lowercase<K>;
}[Methods$1];

@@ -3,0 +23,0 @@ type Methods = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'CONNECT' | 'TRACE';

21

package.json
{
"name": "@hulla/api-request",
"version": "1.0.0",
"version": "1.0.1",
"description": "The next-gen API/RPC manager 🚀",

@@ -34,10 +34,7 @@ "author": {

},
"peerDependencies": {
"devDependencies": {
"@hulla/api": "*"
},
"scripts": {
"lint": "eslint --ext .ts --fix .",
"build": "bunchee -m",
"format": "prettier --write .",
"test": "bun test"
"peerDependencies": {
"@hulla/api": "1.0.0"
},

@@ -68,3 +65,9 @@ "keywords": [

"tanstack"
]
}
],
"scripts": {
"lint": "eslint --ext .ts --fix .",
"build": "bunchee -m",
"format": "prettier --write .",
"test": "vitest run"
}
}

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